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