mlsanityData to 7 Oct 2026

Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models

arXiv 2412.07171 ↗First posted 10 Dec 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Recently, Large language models (LLMs) have revolutionized Natural Language Processing (NLP). Pretrained LLMs, due to limited training context size, struggle with handling long token sequences, limiting their performance on various downstream tasks. Current solutions toward long context modeling often employ multi-stage continual pertaining, which progressively increases the effective context length through several continual pretraining stages. However, those approaches require extensive manual tuning and human expertise. In this paper, we introduce a novel single-stage continual pretraining method, Head-Adaptive Rotary Position Encoding (HARPE), to equip LLMs with long context modeling capabilities while simplifying the training process. Our HARPE leverages different Rotary Position Encoding (RoPE) base frequency values across different attention heads and directly trains LLMs on the target context length. Extensive experiments on 4 language modeling benchmarks, including the latest RULER benchmark, demonstrate that HARPE excels in understanding and integrating long-context tasks with single-stage training, matching and even outperforming existing multi-stage methods. Our results highlight that HARPE successfully breaks the stage barrier for training LLMs with long context modeling capabilities.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 43 of its 62 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

43 of 62 references.

References · 43

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2024The Llama 3 Herd of Modelscited by 14,192
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  9. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  10. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  11. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  12. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
31 more
  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2023Qwen Technical Reportcited by 3,273
  3. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  4. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  5. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  6. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  9. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
  10. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  11. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  12. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  13. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
  14. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  15. 2019Text Summarization with Pretrained Encoderscited by 553
  16. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  17. 2021Efficient Attentions for Long Document Summarizationcited by 342
  18. 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 196
  19. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  20. 2023Scaling Laws of RoPE-based Extrapolationcited by 124
  21. 2021Luna: Linear Unified Nested Attentioncited by 96
  22. 2024One Thousand and One Pairs: A "novel" challenge for long-context language modelscited by 80
  23. 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
  24. 2021Fastformer: Additive Attention Can Be All You Needcited by 61
  25. 2024Base of RoPE Bounds Context Lengthcited by 49
  26. 2020Sparse and Continuous Attention Mechanismscited by 37
  27. 2023Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Trainingcited by 31
  28. 2023Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool Usecited by 27
  29. 2023Functional Interpolation for Relative Positions Improves Long Context Transformerscited by 18
  30. 2024MaskMoE: Boosting Token-Level Learning via Routing Mask in Mixture-of-Expertscited by 9
  31. 2024Explore the Limits of Omni-modal Pretraining at Scalecited by 4

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.