Resonance RoPE: Improving Context Length Generalization of Large Language Models
Not on the map. Why?
Abstract (arXiv)
This paper addresses the challenge of train-short-test-long (TSTL) scenarios in Large Language Models (LLMs) equipped with Rotary Position Embedding (RoPE), where models pre-trained on shorter sequences face difficulty with out-of-distribution (OOD) token positions in longer sequences. We introduce Resonance RoPE, a novel approach designed to narrow the generalization gap in TSTL scenarios by refining the interpolation of RoPE features for OOD positions, significantly improving the model performance without additional online computational costs. Furthermore, we present PosGen, a new synthetic benchmark specifically designed for fine-grained behavior analysis in TSTL scenarios, aiming to isolate the constantly increasing difficulty of token generation on long contexts from the challenges of recognizing new token positions. Our experiments on synthetic tasks show that after applying Resonance RoPE, Transformers recognize OOD position better and more robustly. Our extensive LLM experiments also show superior performance after applying Resonance RoPE to the current state-of-the-art RoPE scaling method, YaRN, on both upstream language modeling tasks and a variety of downstream long-text applications.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 22 of its 32 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
22 of 32 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
10 more
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 232
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
- 2023Scaling Laws of RoPE-based Extrapolationcited by 124
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
Built on by
Citing papers per year: 2024: 9; 2025: 10; 2026: 6.
25 papers.
Sort:
By area:
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargementcited by 36
- 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Modelscited by 23
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoningcited by 13
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddingscited by 10
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contextscited by 9
- 2025UltraFlux: Data-Model Co-Design for High-quality Native 4K Text-to-Image Generation across Diverse Aspect Ratioscited by 6
13 more
- 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrievalcited by 5
- 2025Scale-invariant Attentioncited by 5
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMscited by 3
- 2025Improving GUI Grounding with Explicit Position-to-Coordinate Mappingcited by 3
- 2026MrRoPE: Mixed-radix Rotary Position Embeddingcited by 3
- 2026Frayed RoPE and Long Inputs: A Geometric Perspectivecited by 3
- 2026Exploration of Fast-Slow Latent Recurrence for Train-Short, Test-Long Generalizationcited by 2
- 2025Multi-Model Synthetic Training for Mission-Critical Small Language Modelscited by 1
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 0
- 2025Of All StrIPEs: Investigating Structure-informed Positional Encoding for Efficient Music Generationcited by 0
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptationcited by 0
- 2026Disentangling the Expressivity of RoPEcited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation15 Apr 2026
- 2026Exploration of Fast-Slow Latent Recurrence for Train-Short, Test-Long Generalization2 Apr 2026
- 2026Frayed RoPE and Long Inputs: A Geometric Perspective24 Feb 2026
- 2026MrRoPE: Mixed-radix Rotary Position Embedding28 Jan 2026
- 2025UltraFlux: Data-Model Co-Design for High-quality Native 4K Text-to-Image Generation across Diverse Aspect Ratios22 Nov 2025
- 2025Improving GUI Grounding with Explicit Position-to-Coordinate Mapping3 Oct 2025
- 2025Multi-Model Synthetic Training for Mission-Critical Small Language Models16 Sep 2025
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddings5 Sep 2025
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs13 Jun 2025
- 2025Scale-invariant Attention20 May 2025
13 more
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement22 Apr 2025
- 2025Of All StrIPEs: Investigating Structure-informed Positional Encoding for Efficient Music Generation7 Apr 2025
- 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrieval28 Mar 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024LLMs are Also Effective Embedding Models: An In-depth Overview17 Dec 2024
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Training20 Nov 2024
- 2024Why Does the Effective Context Length of LLMs Fall Short?24 Oct 2024
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts2 Oct 2024
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning10 Sep 2024
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Models31 Aug 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024LongEmbed: Extending Embedding Models for Long Context Retrieval18 Apr 2024
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Modelscited by 23
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddingscited by 10
- 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrievalcited by 5
- 2025Scale-invariant Attentioncited by 5
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMscited by 3
- 2025Improving GUI Grounding with Explicit Position-to-Coordinate Mappingcited by 3
12 most cited of 20 All 20 (JSON)
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Exploration of Fast-Slow Latent Recurrence for Train-Short, Test-Long Generalization2 Apr 2026
- 2026Frayed RoPE and Long Inputs: A Geometric Perspective24 Feb 2026
- 2026MrRoPE: Mixed-radix Rotary Position Embedding28 Jan 2026
- 2025Improving GUI Grounding with Explicit Position-to-Coordinate Mapping3 Oct 2025
- 2025Multi-Model Synthetic Training for Mission-Critical Small Language Models16 Sep 2025
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddings5 Sep 2025
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs13 Jun 2025
- 2025Scale-invariant Attention20 May 2025
- 2025Of All StrIPEs: Investigating Structure-informed Positional Encoding for Efficient Music Generation7 Apr 2025
- 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrieval28 Mar 2025
12 newest of 20 All 20 (JSON)