atlas

Research map / Large language models / Retrieval and knowledge

Generative Representational Instruction Tuning

ICLR 2025 · Large language models › Retrieval and knowledge · approach: Retrieval-augmented reasoning · 15 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GRIT, which finetunes a single LLM (GritLM 7B and 8x7B) on both embedding data (contrastive loss) and generative data (next-token loss), distinguished by instructions, unifying text embedding and generation without performance loss.

Problem

Existing LLMs perform well at either generation or text embedding but not both, so separate models are needed for tasks like RAG, reranking, and serving.

Approach

Jointly finetune one pretrained LLM with a contrastive representational loss (bidirectional attention, mean pooling, in-batch negatives from the same dataset) on embedding data and a language-modeling loss on generative data, with instructions/format tokens telling the model which objective applies; also mixes sample- and token-level generative loss aggregation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
unify embedding and generation instruction tuningMistral 7B · MTEB (56 datasets)average: 66.8 vs 66.8No clear effect
unify embedding and generation instruction tuningMistral 7B · Generative task averageaverage: 55.2 -> 55.5Helped
scale unified model to 8x7BGritLM · Generative task averageaverage: 55.5 -> 65.7Helped
scale unified model from 7B to 8x7BGritLM · MTEB (56 datasets)average: 66.8 -> 65.7Hurt
apply KTO alignment after GRIT (ablation)GritLM 7B · MTEB (56 datasets)average: 66.8 to 66.7Hurt
apply KTO alignment after GRIT (ablation)GritLM 7B · Generative task averageaverage: 55.5 -> 57.4Helped
use bidirectional attention and mean pooling for embedding (ablation)GritLM embedding pathway · MTEB (56 datasets)average: 60.0 -> 61.8Helped
replace causal attention with bidirectional attention for generative instructions (ablation)Generative-only model · Generative task averageaverage: 55.2 -> 50.7Hurt
replace Mistral 7B initialization with Llama 2 7B (ablation)GRIT · MTEB (56 datasets)average: 54.6 -> 48.2Hurt
replace Mistral 7B initialization with GPT-J 6B (ablation)GRIT · Generative task averageaverage: 22.4 -> 14.0Hurt
use E5 instead of MEDI2 for embedding training (ablation)GritLM · MTEB (56 datasets)average: 64.7 -> 66.0Helped
replace Tülü 2 with OASST for generative training (ablation)GritLM · Generative task averageaverage: 55.2 -> 37.7Hurt

Surprising findings

Limitations

Experimental setup

Datasets: E5 S2ORC Tulu 2 MEDI MEDI2 UltraFeedback OASST UltraChat Natural Questions BEIR NQ corpus

Benchmarks: MTEB MMLU GSM8K BBH TyDi QA HumanEvalSynthesize AlpacaEval 1.0 Natural Questions RAG

Metrics: nDCG@10 V-measure accuracy average precision MAP Spearman exact match F1 pass@1 % win

Baselines: OpenAI v3 E5 Mistral 7B BGE Large Instructor XL Llama 2 70B Mixtral 8x7B Instruct Tulu 2 70B Zephyr 7B beta SGPT BE 5.8B

Builds on: SGPT E5 Tulu 2 MEDI Mistral 7B

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy