mlsanityData to 7 Oct 2026

A Controlled Study on Long Context Extension and Generalization in LLMs

arXiv 2409.12181 ↗First posted 18 Sep 2024cs.CL cs.LGcited by 26

Not on the map. Why?

Abstract (arXiv)

Broad textual understanding and in-context learning require language models that utilize full document contexts. Due to the implementation challenges associated with directly training long-context models, many methods have been proposed for extending models to handle long contexts. However, owing to differences in data and model classes, it has been challenging to compare these approaches, leading to uncertainty as to how to evaluate long-context performance and whether it differs from standard evaluation. We implement a controlled protocol for extension methods with a standardized evaluation, utilizing consistent base models and extension data. Our study yields several insights into long-context behavior. First, we reaffirm the critical role of perplexity as a general-purpose performance indicator even in longer-context tasks. Second, we find that current approximate attention methods systematically underperform across long-context tasks. Finally, we confirm that exact fine-tuning based methods are generally effective within the range of their extension, whereas extrapolation remains challenging. All codebases, models, and checkpoints will be made available open-source, promoting transparency and facilitating further research in this critical area of AI development.

Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 22 of its 39 references that are in the map. First posted on arXiv 18 Sep 2024.

Builds on

22 of 39 references.

References · 22

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  6. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  7. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  10. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  11. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  12. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
10 more
  1. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  2. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  3. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  4. 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
  5. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  6. 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
  7. 2023A Benchmark for Learning to Translate a New Language from One Grammar Bookcited by 74
  8. 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 43
  9. 2023In-Context Learning with Many Demonstration Examplescited by 39
  10. 2024LongHeads: Multi-Head Attention is Secretly a Long Context Processorcited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 13; 2026: 11.

26 papers.

Sort:

By area:

  1. 2024How to Train Long-Context Language Models (Effectively)cited by 141
  2. 2025Learning without training: The implicit dynamics of in-context learningcited by 41
  3. 2026Single-Agent LLMs Outperform Multi-Agent Systems on Multi-Hop Reasoning Under Equal Thinking Token Budgetscited by 28
  4. 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
  5. 2025Token Weighting for Long-Range Language Modelingcited by 14
  6. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Modelscited by 13
  7. 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 9
  8. 2025The Role of Sparsity for Length Generalization in Transformerscited by 8
  9. 2025SkyLadder: Better and Faster Pretraining via Context Window Schedulingcited by 6
  10. 2025Understanding and Improving Length Generalization in Hierarchical Sparse Attention Modelscited by 6
  11. 2025100-LongBench: Are de facto Long-Context Benchmarks Literally Evaluating Long-Context Ability?cited by 5
  12. 2025Revisiting Long-context Modeling from Context Denoising Perspectivecited by 5
14 more
  1. 2025PERK: Long-Context Reasoning as Test-Time Learningcited by 4
  2. 2025Scaling Multi-Document Event Summarization: Evaluating Compression vs. Full-Text Approachescited by 3
  3. 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMscited by 3
  4. 2026Simulating Human Memory with Language Modelscited by 2
  5. 2026FCPRAG: Fusion-Controller Parametric Retrieval-Augmented Generation for Stable Multi-Passage LoRA Injectioncited by 2
  6. 2026TeamLLM: A Human-Like Team-Oriented Collaboration Framework for Multi-Step Contextualized Taskscited by 1
  7. 2026Randomized YaRN Improves Length Generalization for Long-Context Reasoningcited by 1
  8. 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
  9. 2024How much do contextualized representations encode long-range context?cited by 0
  10. 2025Effective Length Extrapolation via Dimension-Wise Positional Embeddings Manipulationcited by 0
  11. 2026Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengthscited by 0
  12. 2026AttentionRetriever: Attention Layers are Secretly Long Document Retrieverscited by 0
  13. 2026EndPrompt: Efficient Long-Context Extension via Terminal Anchoringcited by 0
  14. 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extensioncited by 0