Scaling Laws of RoPE-based Extrapolation
Not on the map. Why?
Abstract (arXiv)
The extrapolation capability of Large Language Models (LLMs) based on Rotary Position Embedding is currently a topic of considerable interest. The mainstream approach to addressing extrapolation with LLMs involves modifying RoPE by replacing 10000, the rotary base of θn=10000-2n/d in the original RoPE, with a larger value and providing longer fine-tuning text. In this work, we first observe that fine-tuning a RoPE-based LLM with either a smaller or larger base in pre-training context length could significantly enhance its extrapolation performance. After that, we propose textbftextitScaling Laws of RoPE-based Extrapolation, a unified framework from the periodic perspective, to describe the relationship between the extrapolation performance and base value as well as tuning context length. In this process, we also explain the origin of the RoPE-based extrapolation issue by textbftextitcritical dimension for extrapolation. Besides these observations and analyses, we achieve extrapolation up to 1 million context length within only 16K training length on LLaMA2 7B and 13B.
Key facts. Cited by 124 papers in the map (data through 7 Oct 2026). Builds on 39 of its 59 references that are in the map. First posted on arXiv 8 Oct 2023.
Builds on
39 of 59 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 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
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
27 more
- 2023Qwen Technical Reportcited by 3,273
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 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
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 232
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
- 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
- 2022A Length-Extrapolatable Transformercited by 123
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
- 2023Giraffe: Adventures in Expanding Context Lengths in LLMscited by 32
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
- 2016Towards Machine Comprehension of Spoken Content: Initial TOEFL Listening Comprehension Test by Machinecited by 23
Built on by
Citing papers per year: 2023: 5; 2024: 54; 2025: 39; 2026: 26.
124 papers.
Sort:
By area:
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrievalcited by 233
- 2025SmolVLM: Redefining small and efficient multimodal modelscited by 226
- 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 196
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
- 2024Make Your LLM Fully Utilize the Contextcited by 118
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2024FiT: Flexible Vision Transformer for Diffusion Modelcited by 84
- 2024Flooding Spread of Manipulated Knowledge in LLM-Based Multi-Agent Communitiescited by 84
- 2023Exchange-of-Thought: Enhancing Large Language Model Capabilities through Cross-Model Communicationcited by 78
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
38 more
- 2025VideoRoPE: What Makes for Good Video Rotary Position Embedding?cited by 63
- 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 61
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 52
- 2024Base of RoPE Bounds Context Lengthcited by 49
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2024Can Perplexity Reflect Large Language Model's Ability in Long Text Understanding?cited by 45
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Timecited by 43
- 2024D-CPT Law: Domain-specific Continual Pre-Training Scaling Law for Large Language Modelscited by 39
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2024Mind the Time: Temporally-Controlled Multi-Event Video Generationcited by 39
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 38
- 2024JudgeRank: Leveraging Large Language Models for Reasoning-Intensive Rerankingcited by 34
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
- 2025Training Sparse Mixture Of Experts Text Embedding Modelscited by 32
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2023Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool Usecited by 27
- 2024Resonance RoPE: Improving Context Length Generalization of Large Language Modelscited by 25
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
- 2024PyBench: Evaluating LLM Agent on various real-world coding taskscited by 24
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMscited by 24
- 2024Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolationcited by 23
- 2024Apple Intelligence Foundation Language Modelscited by 22
- 2025A Multi-Power Law for Loss Curve Prediction Across Learning Rate Schedulescited by 22
- 2025LongRoPE2: Near-Lossless LLM Context Window Scalingcited by 21
- 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verificationcited by 19
- 2026jina-embeddings-v5-text: Task-Targeted Embedding Distillationcited by 19
- 2024LongSkywork: A Training Recipe for Efficiently Extending Context Length in Large Language Modelscited by 18
- 2025FullPart: Generating each 3D Part at Full Resolutioncited by 17
- 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 16
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Modelcited by 15
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
- 2024CLongEval: A Chinese Benchmark for Evaluating Long-Context Large Language Modelscited by 13
- 2024Understanding the RoPE Extensions of Long-Context LLMs: An Attention Perspectivecited by 13
- 2024ReAttention: Training-Free Infinite Context with Finite Attention Scopecited by 13
- 2024Towards LifeSpan Cognitive Systemscited by 13
50 most cited of 124 All 124 (JSON)
- 2026Higher-Dimensional Rotary Position Embedding30 Aug 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Position Encoding in Transformers: From Absolute and Relative Methods to Rotary Position Embeddings and Long-Context Scaling9 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026State Propagation Also Satisfies: A Complex-Valued State-Space Model for Deterministic State Tracking4 Aug 2026
- 2026LeRoPE: Learnable RoPE Frequencies Improve Language Modeling11 Jul 2026
- 2026Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPE8 Jul 2026
- 2026PJ-RoPE: A Fourier-Jet-Affine Position Space for Relative Attention3 Jun 2026
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding3 Jun 2026
- 2026Llamion Technical Report25 May 2026
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably15 May 2026
- 2026Mitigating Mask Prior Drift and Positional Attention Collapse in Large Diffusion Vision-Language Models14 May 2026
38 more
- 2026Remember to Forget: Gated Adaptive Positional Encoding11 May 2026
- 2026FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuning11 May 2026
- 2026SepSeq: A Training-Free Framework for Long Numerical Sequence Processing in LLMs9 Apr 2026
- 2026Short Data, Long Context: Distilling Positional Knowledge in Transformers7 Apr 2026
- 2026LumosX: Relate Any Identities with Their Attributes for Personalized Video Generation20 Mar 2026
- 2026Anchoring and Rescaling Attention for Semantically Coherent Inbetweening18 Mar 2026
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs18 Mar 2026
- 2026Frayed RoPE and Long Inputs: A Geometric Perspective24 Feb 2026
- 2026jina-embeddings-v5-text: Task-Targeted Embedding Distillation17 Feb 2026
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Scheduling15 Feb 2026
- 2026Prism: Spectral-Aware Block-Sparse Attention9 Feb 2026
- 2026RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inference5 Feb 2026
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMs5 Feb 2026
- 2026MrRoPE: Mixed-radix Rotary Position Embedding28 Jan 2026
- 2025Radiology Report Generation with Layer-Wise Anatomical Attention18 Dec 2025
- 2025Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMs8 Dec 2025
- 2025BiSparse-AAS: Bilinear Sparse Attention and Adaptive Spans Framework for Scalable and Efficient Text Summarization31 Oct 2025
- 2025FullPart: Generating each 3D Part at Full Resolution30 Oct 2025
- 2025SEGA: A Stepwise Evolution Paradigm for Content-Aware Layout Generation with Design Prior17 Oct 2025
- 2025On Pretraining for Project-Level Code Completion15 Oct 2025
- 2025Head-wise Adaptive Rotary Positional Encoding for Fine-Grained Image Generation12 Oct 2025
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformers3 Oct 2025
- 2025Improving GUI Grounding with Explicit Position-to-Coordinate Mapping3 Oct 2025
- 2025Hyperparameter Loss Surfaces Are Simple Near their Optima3 Oct 2025
- 2025Mamba Modulation: On the Length Generalization of Mamba23 Sep 2025
- 2025Positional Encoding via Token-Aware Phase Attention16 Sep 2025
- 2025Video-LevelGauge: Investigating Contextual Positional Bias in Large Video Language Models27 Aug 2025
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scale26 Jul 2025
- 2025Technical Report of TeleChat2, TeleChat2.5 and T124 Jul 2025
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent3 Jul 2025
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs17 Jun 2025
- 2025Curse of High Dimensionality Issue in Transformer for Long-context Modeling28 May 2025
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformations22 May 2025
- 2025Scale-invariant Attention20 May 2025
- 2025Mechanistic Interpretability of GPT-like Models on Summarization Tasks20 May 2025
- 2025Scaling Context, Not Parameters: Training a Compact 7B Language Model for Efficient Long-Context Processing13 May 2025
- 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modeling11 Apr 2025
- 2025NeedleInATable: Exploring Long-Context Capability of Large Language Models towards Long-Structured Tables9 Apr 2025
50 newest of 124 All 124 (JSON)
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2023Exchange-of-Thought: Enhancing Large Language Model Capabilities through Cross-Model Communicationcited by 78
- 2024JudgeRank: Leveraging Large Language Models for Reasoning-Intensive Rerankingcited by 34
- 2024Aggregation of Reasoning: A Hierarchical Framework for Enhancing Answer Selection in Large Language Modelscited by 5
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encodingcited by 4
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent3 Jul 2025
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encoding1 Jan 2025
- 2024JudgeRank: Leveraging Large Language Models for Reasoning-Intensive Reranking31 Oct 2024
- 2024Aggregation of Reasoning: A Hierarchical Framework for Enhancing Answer Selection in Large Language Models21 May 2024
- 2023Exchange-of-Thought: Enhancing Large Language Model Capabilities through Cross-Model Communication4 Dec 2023
- 2024Flooding Spread of Manipulated Knowledge in LLM-Based Multi-Agent Communitiescited by 84
- 2024PyBench: Evaluating LLM Agent on various real-world coding taskscited by 24
- 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verificationcited by 19
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verification24 Feb 2025
- 2024PyBench: Evaluating LLM Agent on various real-world coding tasks23 Jul 2024
- 2024Flooding Spread of Manipulated Knowledge in LLM-Based Multi-Agent Communities10 Jul 2024
- 2024FiT: Flexible Vision Transformer for Diffusion Modelcited by 84
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 38
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Modelcited by 15
- 2026LumosX: Relate Any Identities with Their Attributes for Personalized Video Generationcited by 6
- 2026LumosX: Relate Any Identities with Their Attributes for Personalized Video Generation20 Mar 2026
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs17 Jun 2025
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Model17 Oct 2024
- 2024FiT: Flexible Vision Transformer for Diffusion Model19 Feb 2024
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 52
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encodingcited by 1
- 2026Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPEcited by 0
- 2026Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPE8 Jul 2026
- 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding3 Jun 2026
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generation3 Oct 2024
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilities19 Jul 2024
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Timecited by 43
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMscited by 24
- 2024StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Lossescited by 9
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs17 Feb 2025
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time7 Aug 2024
- 2024StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Losses13 Mar 2024
- 2025Training Sparse Mixture Of Experts Text Embedding Modelscited by 32
- 2025Training Sparse Mixture Of Experts Text Embedding Models11 Feb 2025
- 2024LongSafety: Enhance Safety for Long-Context LLMscited by 11
- 2024LongSafety: Enhance Safety for Long-Context LLMs11 Nov 2024
- 2025Mamba Modulation: On the Length Generalization of Mambacited by 13
- 2025Mamba Modulation: On the Length Generalization of Mamba23 Sep 2025
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrievalcited by 233
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
- 2024Make Your LLM Fully Utilize the Contextcited by 118
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2025VideoRoPE: What Makes for Good Video Rotary Position Embedding?cited by 63
- 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 61
- 2024Base of RoPE Bounds Context Lengthcited by 49
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2024Can Perplexity Reflect Large Language Model's Ability in Long Text Understanding?cited by 45
12 most cited of 98 All 98 (JSON)
- 2026Higher-Dimensional Rotary Position Embedding30 Aug 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Position Encoding in Transformers: From Absolute and Relative Methods to Rotary Position Embeddings and Long-Context Scaling9 Aug 2026
- 2026State Propagation Also Satisfies: A Complex-Valued State-Space Model for Deterministic State Tracking4 Aug 2026
- 2026LeRoPE: Learnable RoPE Frequencies Improve Language Modeling11 Jul 2026
- 2026PJ-RoPE: A Fourier-Jet-Affine Position Space for Relative Attention3 Jun 2026
- 2026Llamion Technical Report25 May 2026
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably15 May 2026
- 2026Remember to Forget: Gated Adaptive Positional Encoding11 May 2026
- 2026FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuning11 May 2026
- 2026SepSeq: A Training-Free Framework for Long Numerical Sequence Processing in LLMs9 Apr 2026
- 2026Short Data, Long Context: Distilling Positional Knowledge in Transformers7 Apr 2026
12 newest of 98 All 98 (JSON)