atlas

Research map / Large language models / Language, safety and interpretability

Scaling Retrieval-Based Language Models with a Trillion-Token Datastore

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 8 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.

Builds MassiveDS, a 1.4-trillion-token open datastore, and an efficient subsampling pipeline to study how inference-time datastore scale improves retrieval-in-context LMs on language modeling and QA/reasoning tasks.

Problem

Scaling laws usually consider only training data and parameters; it is unknown how the size of an inference-time retrieval datastore affects retrieval-based LMs across broad tasks, since prior trillion-token datastores were proprietary or evaluated narrowly.

Approach

Treat inference-time datastore size as a scaling dimension: construct an open, multi-domain 1.4T-token datastore and reorder the pipeline (index and retrieve top-K once, then subsample, dedup, decontaminate and rerank per variant) so that datastore scaling studies are ~10x cheaper while equivalent to the naive pipeline with high probability.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Scale up the datastoreRetrieval-based LMs · Language modeling on general web and scientific papersperplexityHelped
Scale up the datastoreRetrieval-based LMs · TQA and NQaccuracyHelped
Scale up the datastoreRetrieval-based LMs · MMLUaccuracyHelped
Scale up the datastoreRetrieval-based LMs · MedQAaccuracyMixed
Use retrieval from a large datastore instead of LM-only inferenceLlama-2 7B · Language modelingperplexityHelped
Use retrieval-based models rather than LM-only models at the same training computePythia and OLMo · Downstream tasksperformanceHelped
Use a broad, multi-domain datastore instead of single-domain datastores (ablation)Llama-2 7B retrieval-based LM · TQA, MMLU, RedPajama, and S2ORCperformance: TQA: 72.9 -> 77.0; MMLU: 48.3 -> 49.3; RedPajama PPL: 3.87 -> 3.50; S2ORC PPL: 6.64 -> 6.57Helped
Use a broad, multi-domain datastore instead of the best single-domain datastore (ablation)Llama-2 7B retrieval-based LM · NQ and MedQAaccuracy: NQ: 34.6 -> 34.6; MedQA: 39.8 -> 39.4No clear effect
Add a cross-encoder reranker (ablation)Llama-2 7B retrieval-based LM · TQA and NQaccuracyHelped
Use a lexical oracle reranker (ablation)Llama-2 7B retrieval-based LM · TQA and NQaccuracyHelped
Use more aggressive decontamination (ablation)Llama-2 7B retrieval-based LM · Language modelingperplexityHurt
Vary decontamination level (ablation)Llama-2 7B retrieval-based LM · NQaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: MassiveDS (RedPajama Books, peS2o, RPJ ArXiv, Wikipedia, StackExchange, GitHub, OpenWebMath, NaturalProofs, PubMed, Comm RedPajama S2ORC TriviaQA Natural Questions MMLU MedQA

Benchmarks: TriviaQA Natural Questions MMLU MedQA RedPajama perplexity S2ORC perplexity

Metrics: accuracy perplexity

Baselines: LM-only models RETRO Sphere single-domain datastores (Wikipedia, PubMed, peS2o, RedPajama subsets) cross-encoder reranker (MiniLM-L12)

Builds on: RETRO RALM (retrieval-in-context) Contriever Pythia scaling suite OLMo

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