[2402.09906] Generative Representational Instruction Tuning


View a PDF of the paper titled Generative Representational Instruction Tuning, by Niklas Muennighoff and 7 other authors

View PDF
HTML (experimental)

Abstract: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 this https URL.

Submission history

From: Niklas Muennighoff [view email]
[v1]
Thu, 15 Feb 2024 12:12:19 UTC (573 KB)
[v2]
Wed, 17 Apr 2024 17:12:05 UTC (574 KB)
[v3]
Mon, 3 Mar 2025 04:28:49 UTC (653 KB)



Source link

Leave a Comment

Your email address will not be published. Required fields are marked *

Review Your Cart
0
Add Coupon Code
Subtotal

 
Scroll to Top