Research map / Large language models / Language, safety and interpretability
Long-Context Language Modeling with Parallel Context Encoding
Howard Yen, Tianyu Gao, Danqi Chen
Princeton University
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use CEPE (small parallel encoder + cross-attention) instead of full fine-tuning for 128K context | Llama-2-7B · ArXiv/Book/PG19/ProofPile 128K | perplexity: ArXiv 2.359 (YaRN-128K) -> 2.217 | Improved |
| process long context with CEPE | Llama-2-7B · Throughput/memory at 128K | throughput, memory: 9.90x throughput, 38.6 GB vs 235.6 GB (YaRN-128K) | Improved |
| use CEPE in retrieval-augmented LM with more passages | Llama-2-7B · RedPajama retrieval-augmented LM | perplexity: avg 4.568 (k=8) -> 4.550 (k=50) | Improved |
| add CEPE to Llama-2 for open-domain QA with more passages | Llama-2-7B · Natural Questions | exact match: 32.27 (k=10) -> 34.07 (k=60) | Improved |
| add extra demonstrations via the CEPE encoder | Llama-2-7B · ICL classification (11 datasets) | accuracy: SST5 3.9 -> 46.7; TREC-F 16.7 -> 25.1 | Improved |
| encoder demonstrations versus 40 demonstrations in decoder | CEPE · ICL classification | accuracy: TREC-F 25.1 vs oracle 54.8 | Hurt |
| apply CEPE-Distilled to Llama-2-7B-Chat | Llama-2-7B-Chat · ZeroSCROLLS NarrativeQA | F1: 17.1 -> 19.5 (2K+2K), 21.9 (2K+All) | Improved |
| CEPE-Distilled versus Llama-2-7B-32K-Instruct | CEPE-Distilled · ZeroSCROLLS (6 tasks) | F1/accuracy/ROUGE-L: QuALITY 30.2 vs 41.6; GovReport 16.5 vs 19.9 | Mixed |
| train on retrieved documents (RetDoc) instead of the default mixture (ablation) | CEPE · retrieval-augmented vs long-context LM | perplexity: retrieval 4.57 -> 4.53 (k=8); long-context 3.97 -> 4.01 (8K) | Mixed |
| train only on filtered ArXiv/Books (RPtrain-filter only) (ablation) | CEPE · long-context vs retrieval LM | perplexity: long 3.97 -> 3.96 (8K); retrieval 4.57 -> 4.75 (k=8) | Mixed |
| add the warmup stage (ablation) | CEPE · long-context LM (8K) | perplexity: 4.03 -> 3.97 | Improved |
| fine-tune a pre-trained encoder (vs frozen) (ablation) | CEPE · long-context LM (8K) | perplexity: 4.01 -> 3.97 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 2 of 2 on most shared results.
- YaRN-128K — YaRN: Efficient Context Window Extension of Large Language Models (ICLR 2024) · better on 6 of 6 shared results
- REPLUG — REPLUG: Retrieval-Augmented Black-Box Language Models (NAACL 2024) · better on 2 of 2 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 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)
- An Efficient Recipe for Long Context Extension via Middle-Focused Positional Encoding (NeurIPS 2024 · similarity 0.89)
- Retrieval meets Long Context Large Language Models (ICLR 2024 · similarity 0.89)
- LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens (ICML 2024 · similarity 0.89)
- YaRN: Efficient Context Window Extension of Large Language Models (ICLR 2024 · similarity 0.88)
- LongRoPE2: Near-Lossless LLM Context Window Scaling (ICML 2025 · 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.