Research map / Architectures and efficiency / Attention and transformers
LLoCO: Learning Long Contexts Offline
Sijun Tan, Xiuyu Li, Shishir Patil, Ziyang Wu, Tianjun Zhang, Kurt Keutzer, Joeseph E. Gonzalez, Raluca Ada Popa
University of California, Berkeley
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- HotpotQA leaderboard F1 37.83 · rank 162 of 174 papers
- NarrativeQA leaderboard F1 28.34 · rank 8 of 17 papers
- QASPER leaderboard F1 29.01 · rank 10 of 14 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add in-domain LoRA finetuning on compressed contexts (LLoCO vs. AutoCompressor out of the box) | AutoCompressor on LLaMA2-7B · long document QA average | average score: 18.75 -> 30.67 | Improved |
| use compressed-context LLoCO instead of 32k original context | LLaMA2-7B-32k · long document QA average | average score: 24.70 -> 30.67 | Improved |
| finetune LLaMA2-7B-32k with original uncompressed context (ablation) | LLaMA2-7B-32k · long document QA average | average score: 24.70 -> 31.32 | Improved |
| finetune on compressed vs original context (ablation) | LLoCO vs finetuned LLaMA2-7B-32k · long document QA average | average score: 30.67 vs 31.32 | No clear effect |
| compress 2048 tokens into 50 (40x) instead of 1536 (30x) or 1024 (20x) (ablation) | LLoCO · QuALITY, QMSum, NarrativeQA | task metrics | Hurt |
| use 30x instead of 20x compression ratio (ablation) | LLoCO · QuALITY, QMSum, NarrativeQA | task metrics | No clear effect |
| train one combined finetuned model instead of per-dataset finetuning (ablation) | LLoCO · long document QA average | average score: 30.67 -> 29.65 | Hurt |
| combined finetuning on QuALITY (ablation) | LLoCO · QuALITY | exact match: 41.51 -> 47.07 | Improved |
| use ICAE instead of AutoCompressor as context encoder (ablation) | LLoCO · QuALITY, Qasper, QMSum, NarrativeQA | task metrics: Qasper 29.01 -> 16.14 | Hurt |
| LLoCO with 32k-truncated documents vs LLaMA2-7B-32k (ablation) | LLoCO · NarrativeQA | F1: 16.76 -> 27.99 | Improved |
| use LLoCO instead of LLaMA2-7B-128k on NarrativeQA | LLoCO · NarrativeQA | F1: 28.22 -> 28.34 | No clear effect |
| LLoCO on GovReport (long generation) | LLoCO · LongBench GovReport | LongBench score: 30.8 -> 17.6 | Hurt |
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts (ICLR 2025 · similarity 0.89)
- Retrieval meets Long Context Large Language Models (ICLR 2024 · similarity 0.89)
- Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference (AAAI 2025 · similarity 0.89)
- Training with “Paraphrasing the Original Text” Teaches LLM to Better Retrieve in Long-Context Tasks (AAAI 2025 · similarity 0.89)
- LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models (ICLR 2024 · similarity 0.89)
- LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens (ICML 2024 · similarity 0.88)
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.