atlas

Research map / Large language models / Instruction and fine-tuning

Repurposing Language Models into Embedding Models: Finding the Compute-Optimal Recipe

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 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.

Studies compute-optimal contrastive fine-tuning of Pythia decoder-only LMs into text embedders across full FT, block freezing, bias-only tuning and LoRA, fits scaling laws, and derives a budget-based recipe choosing full FT below ~9e16 FLOP and LoRA above.

Problem

Given a fixed training compute budget, which decoder-only LLM size, data quantity, and parameter-efficient fine-tuning method yield the best contrastively trained text embedding model; this has not been studied systematically.

Approach

Runs IsoFLOP grid searches over model size, data and fine-tuning method, fits an extended scaling law that includes the fraction of trainable parameters, and turns the resulting compute-optimal frontier into an algorithm that selects full fine-tuning or LoRA (with rank) for a given budget.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use mean pooling instead of last-token pooling (ablation)Pythia embedding models · MTEB (without MSMarco subset)Avg. score: 0.36 -> 0.47Helped
Set Temperature^-1 to 40 rather than 50 (ablation)Partial-tuning embedding models · MTEB subsetAvg. score: 0.5 -> 0.51Helped
Set Temperature^-1 to 40 rather than 35 or 30 (ablation)Partial-tuning embedding models · MTEB subsetAvg. score: 0.5 -> 0.51Helped
Set Temperature^-1 to 40 rather than 10 (ablation)Partial-tuning embedding models · MTEB subsetAvg. score: 0.47 -> 0.51Helped
Set Temperature^-1 to 40 rather than 1 (ablation)Partial-tuning embedding models · MTEB subsetAvg. score: 0.3 -> 0.51Helped
Use learning rate 1e3 instead of 1e2 (ablation)LoRA rank 8 · LoRA learning-rate gridLoss: 1.96 -> 1.35Helped
Use learning rate 1e3 instead of 1e4 (ablation)LoRA rank 8 · LoRA learning-rate gridLoss: 2.22 -> 1.35Helped
Use learning rate 1e3 instead of 1e2 (ablation)LoRA rank 16 · LoRA learning-rate gridLoss: 1.96 -> 1.34Helped
Use learning rate 1e3 instead of 1e4 (ablation)LoRA rank 16 · LoRA learning-rate gridLoss: 2.22 -> 1.34Helped
Use learning rate 1e3 instead of 1e2 (ablation)LoRA rank 32 · LoRA learning-rate gridLoss: 2.09 -> 1.32Helped
Use learning rate 1e3 instead of 1e4 (ablation)LoRA rank 32 · LoRA learning-rate gridLoss: 2.19 -> 1.32Helped
Use learning rate 1e2 instead of 1e3 (ablation)Bias tuning · Bias-tuning learning-rate gridLoss: 1.37 -> 1.24Helped

Surprising findings

Limitations

Experimental setup

Datasets: BAAI BGE English dataset The Pile

Benchmarks: MTEB subset (EmotionClassification, TwentyNewsgroupsClustering, SprintDuplicateQuestions, AskUbuntuDupQuestions, SciFact

Metrics: contrastive training loss MTEB subset score

Baselines: full fine-tuning bias-only tuning LoRA rank 16 (prior work) block freezing

Builds on: Chinchilla scaling laws LoRA Pythia GradCache BGE

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