mlsanityData to 14 Oct 2026

Long-Short Alignment for Effective Long-Context Modeling in LLMs

arXiv 2506.11769 ↗First posted 13 Jun 2025cs.CL cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have exhibited impressive performance and surprising emergent properties. However, their effectiveness remains limited by the fixed context window of the transformer architecture, posing challenges for long-context modeling. Among these challenges, length generalization -- the ability to generalize to sequences longer than those seen during training -- is a classical and fundamental problem. In this work, we propose a fresh perspective on length generalization, shifting the focus from the conventional emphasis on input features such as positional encodings or data structures to the output distribution of the model. Specifically, through case studies on synthetic tasks, we highlight the critical role of long-short alignment -- the consistency of output distributions across sequences of varying lengths. Extending this insight to natural language tasks, we propose a metric called Long-Short Misalignment to quantify this phenomenon, uncovering a strong correlation between the metric and length generalization performance. Building on these findings, we develop a regularization term that promotes long-short alignment during training. Extensive experiments validate the effectiveness of our approach, offering new insights for achieving more effective long-context modeling in LLMs. Code is available at https://github.com/PKU-ML/LongShortAlignment.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 41 of its 46 references that are in the map. First posted on arXiv 13 Jun 2025.

Builds on

41 of 46 references.

References · 41

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  8. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  9. 2023Qwen Technical Reportcited by 3,344
  10. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  11. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  12. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
29 more
  1. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  2. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  3. 2022Towards Reasoning in Large Language Models: A Surveycited by 596
  4. 2019Symmetric Cross Entropy for Robust Learning with Noisy Labelscited by 500
  5. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  6. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  7. 2022Transformers Learn Shortcuts to Automatacited by 268
  8. 2022Neural Networks and the Chomsky Hierarchycited by 217
  9. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  10. 2022Exploring Length Generalization in Large Language Modelscited by 206
  11. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  12. 2025When More is Less: Understanding Chain-of-Thought Length in LLMscited by 183
  13. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
  14. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
  15. 2022A Length-Extrapolatable Transformercited by 127
  16. 2023Teaching Arithmetic to Small Transformerscited by 123
  17. 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
  18. 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 98
  19. 2021Neural Algorithmic Reasoningcited by 94
  20. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
  21. 2021Making Transformers Solve Compositional Taskscited by 72
  22. 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 69
  23. 2023Length Generalization in Arithmetic Transformerscited by 66
  24. 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
  25. 2024A Theoretical Understanding of Self-Correction through In-context Alignmentcited by 44
  26. 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 42
  27. 2024Resonance RoPE: Improving Context Length Generalization of Large Language Modelscited by 27
  28. 2024Extending LLMs' Context Window with 100 Samplescited by 21
  29. 2024Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretrainingcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LongAlign: A Recipe for Long Context Alignment of Large Language Models
  2. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models
  3. 2025Beyond Single-Task: Robust Multi-Task Length Generalization for LLMs
  4. 2024Efficient Alignment of Large Language Models via Data Sampling
  5. 2024Long Context Alignment with Short Instructions and Synthesized Positions
  6. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
  7. 2023A Comprehensive Overview of Large Language Models
  8. 2025LongPO: Long Context Self-Evolution of Large Language Models through Short-to-Long Preference Optimization