Research map / Large language models / Language, safety and interpretability
LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models
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 |
|---|---|---|---|
| apply LM-Infinite (Lambda mask + distance ceiling) | Llama-2-7B · ArXiv perplexity (8K) | perplexity: 8.5x10^3 -> 3.3 | Improved |
| apply LM-Infinite | Llama-2-7B · ArXiv perplexity (32K) | perplexity: NaN -> 6.5 | Improved |
| apply LM-Infinite instead of fine-tuning on long text | MPT-7B · ArXiv | perplexity: MPT-7B+LM-Infinite 5.8 vs MPT-7B-SW 4.3 at 8K | Mixed |
| apply LM-Infinite with top-5 middle tokens | Llama-2-7b-chat · Passkey Retrieval | accuracy: 44.0 -> 81.2 (truncated baseline); 0.0 original | Improved |
| apply LM-Infinite with top-5 middle tokens | Llama-2-7b-chat · Qasper | score: 30.1 -> 31.3 | Improved |
| add Lambda-shaped mask without distance ceiling (ablation) | LM-Infinite · ArXiv NLL | NLL: NLL explodes after pre-training length | Hurt |
| add distance ceiling without Lambda mask (ablation) | LM-Infinite · ArXiv NLL | NLL: ever-increasing NLL | Hurt |
| use plain sliding window instead of keeping start tokens (ablation) | LM-Infinite · ArXiv NLL | NLL: second worst NLL | Hurt |
| attend to starting tokens (n_starting=0 vs 10) (ablation) | LM-Infinite · ArXiv 16K validation | average NLL: 6.43 -> 1.02 | Improved |
| increase n_starting to 1000 / 2000 (ablation) | LM-Infinite · ArXiv 16K validation | average NLL: 1.02 -> 1.81 / 4.96 | Hurt |
| apply LM-Infinite instead of repeated truncation | Llama-2-7B · ArXiv 10k-token generation | BLEU: about 5 BLEU at similar computation | Improved |
| apply LM-Infinite on 32K sequences | Llama-2-7B · efficiency | decoding speed / GPU memory: 2.7x speedup, 7.5x memory saving | Improved |
Later papers that compared with this method
3 later accepted papers report LM-Infinite as a baseline in their results tables; 3 of them report a better number on most of the results they share with it.
- RetroLM: Retrieval-Augmented KVs for Long-Context Processing (AAAI 2026 · better on 2 of 2 shared results)
- Dynamic Chunking and Selection for Reading Comprehension of Ultra-Long Context in Large Language Models (ACL 2025 · better on 2 of 2 shared results)
- SparQ Attention: Bandwidth-Efficient LLM Inference (ICML 2024 · better on 3 of 3 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
- Long-Short Alignment for Effective Long-Context Modeling in LLMs (ICML 2025 · similarity 0.92)
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory (NeurIPS 2024 · similarity 0.91)
- A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts (ICLR 2025 · similarity 0.91)
- Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum (NeurIPS 2024 · similarity 0.90)
- The Role of Sparsity for Length Generalization in LLMs (ICML 2025 · similarity 0.90)
- Scaling Instruction-tuned LLMs to Million-token Contexts via Hierarchical Synthetic Data Generation (ICLR 2025 · similarity 0.90)
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.