Generative Representational Instruction Tuning
Muennighoff, Niklas, Su, Hongjin, Wang, Liang, Yang, Nan, Wei, Furu, Yu, Tao, Singh, Amanpreet, Kiela, Douwe
–arXiv.org Artificial Intelligence
All text-based language problems can be reduced to either generation or embedding. Current models only perform well at one or the other. We introduce generative representational instruction tuning (GRIT) whereby a large language model is trained to handle both generative and embedding tasks by distinguishing between them through instructions. Compared to other open models, our resulting GritLM 7B sets a new state of the art on the Massive Text Embedding Benchmark (MTEB) and outperforms all models up to its size on a range of generative tasks. By scaling up further, GritLM 8x7B outperforms all open generative language models that we tried while still being among the best embedding models. Notably, we find that GRIT matches training on only generative or embedding data, thus we can unify both at no performance loss. Among other benefits, the unification via GRIT speeds up Retrieval-Augmented Generation (RAG) by > 60% for long documents, by no longer requiring separate retrieval and generation models. Models, code, etc. are freely available at https://github.com/ContextualAI/gritlm.
arXiv.org Artificial Intelligence
Feb-15-2024
- Country:
- South America (0.04)
- Europe > United Kingdom (0.04)
- Atlantic Ocean > Caribbean Sea (0.04)
- Pacific Ocean > North Pacific Ocean
- Gulf of California (0.04)
- North America
- Mexico (0.04)
- Honduras (0.04)
- Guatemala (0.04)
- Central America (0.04)
- Belize (0.04)
- United States
- Alaska (0.04)
- California
- San Diego County > San Diego (0.04)
- Los Angeles County > Los Angeles (0.04)
- Asia
- Middle East > Jordan (0.04)
- China > Hong Kong (0.04)
- Myanmar > Tanintharyi Region
- Dawei (0.04)
- Japan > Honshū
- Kantō > Tokyo Metropolis Prefecture > Tokyo (0.04)
- Genre:
- Research Report > New Finding (0.92)
- Industry:
- Health & Medicine (1.00)
- Information Technology > Services (0.67)
- Energy > Power Industry (0.45)
- Technology: