atlas

Research map / Large language models / Retrieval and knowledge

Retrieval meets Long Context Large Language Models

ICLR 2024 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 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.

Compares retrieval augmentation against positional-interpolation context extension (4K to 16K/32K) for GPT-43B and Llama2-70B on long-context QA and summarization tasks, and shows that combining both gives the best results.

Problem

Whether extending the context window of LLMs or augmenting them with retrieval works better for long-context downstream tasks, and whether the two can be combined.

Approach

Systematic controlled comparison of retrieval-augmentation against positional-interpolation context extension on instruction-tuned 43B and 70B LLMs, finding a 4K model with retrieval rivals a 16K model without it, and that retrieval further improves long-context models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add retrieval (top 5 chunks) to the 4k modelGPT-43B · Seven long-context tasksaverage score: 26.44 -> 29.32Helped
Add retrieval (top 5 chunks) to the 16k modelGPT-43B · Seven long-context tasksaverage score: 29.45 -> 29.65Helped
Add retrieval (top 5 chunks) to the 4k modelLlama2-70B · Seven long-context tasksaverage score: 31.61 -> 36.02Helped
Add retrieval (top 5 chunks) to the 16k modelLlama2-70B · Seven long-context tasksaverage score: 36.78 -> 37.23Helped
Add retrieval (top 5 chunks) to the 32k modelLlama2-70B · Seven long-context tasksaverage score: 37.36 -> 39.60Helped
Add retrieval to the 32k modelLlama2-7B · Seven long-context tasksaverage score: 28.20 -> 27.63Hurt
Use Dragon instead of no retrieval (ablation)Llama2-70B, 4k · Seven long-context tasksaverage score: 31.61 -> 35.73Helped
Use Contriever instead of no retrieval (ablation)Llama2-70B, 4k · Seven long-context tasksaverage score: 31.61 -> 36.02Helped
Use OpenAI embeddings instead of no retrieval (ablation)Llama2-70B, 4k · Seven long-context tasksaverage score: 31.61 -> 35.79Helped
Increase retrieved chunks from 5 to 10 (ablation)Llama2-70B, 16k · Seven long-context tasksaverage score: 37.23 -> 38.31Helped
Increase retrieved chunks from 5 to 20 (ablation)Llama2-70B, 16k · Seven long-context tasksaverage score: 37.23 -> 36.61Hurt
Increase retrieved chunks from 5 to 20 (ablation)Llama2-70B, 32k · Seven long-context tasksaverage score: 39.60 -> 38.38Hurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile Soda ELI5 FLAN Open Assistant Dolly QMSum Qasper NarrativeQA QuALITY HotpotQA MuSiQue

Benchmarks: ZeroSCROLLS (QMSum, Qasper, NarrativeQA, QuALITY) LongBench (HotpotQA, MuSiQue, MultiFieldQA-en, Trec, SAMSum)

Metrics: ROUGE geometric mean exact match F1 average score

Baselines: GPT-3.5-turbo-16k Davinci-003 GPT-3.5-turbo-4k Llama2-7B-32k

Builds on: positional interpolation Dragon retriever Contriever FlashAttention

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