Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolation
Not on the map. Why?
Abstract (arXiv)
In this work, we leverage the intrinsic segmentation of language sequences and design a new positional encoding method called Bilevel Positional Encoding (BiPE). For each position, our BiPE blends an intra-segment encoding and an inter-segment encoding. The intra-segment encoding identifies the locations within a segment and helps the model capture the semantic information therein via absolute positional encoding. The inter-segment encoding specifies the segment index, models the relationships between segments, and aims to improve extrapolation capabilities via relative positional encoding. Theoretical analysis shows this disentanglement of positional information makes learning more effective. The empirical results also show that our BiPE has superior length extrapolation capabilities across a wide range of tasks in diverse text modalities.
Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). Builds on 42 of its 57 references that are in the map. First posted on arXiv 29 Jan 2024.
Builds on
42 of 57 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Let's Verify Step by Stepcited by 3,789
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2018Self-Attention with Relative Position Representationscited by 1,120
30 more
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 365
- 2021Efficient Attentions for Long Document Summarizationcited by 345
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 208
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
- 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 148
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
- 2022A Length-Extrapolatable Transformercited by 127
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2019Fine-tune BERT for Extractive Summarizationcited by 122
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 111
- 2016Hierarchical Multiscale Recurrent Neural Networkscited by 104
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2021SummScreen: A Dataset for Abstractive Screenplay Summarizationcited by 79
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
- 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 42
- 2023Monotonic Location Attention for Length Generalizationcited by 9
Built on by
Citing papers per year: 2024: 6; 2025: 13; 2026: 5.
24 papers.
Sort:
By area:
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigmscited by 12
- 2024Let the Code LLM Edit Itself When You Edit the Codecited by 10
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimizationcited by 10
- 2025HoPE: Hyperbolic Rotary Positional Encoding for Stable Long-Range Dependency Modeling in Large Language Modelscited by 10
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 9
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encodingcited by 4
- 2025SAS: Simulated Attention Scorecited by 4
12 more
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2026On the Ability of Transformers to Verify Planscited by 2
- 2024Two are better than one: Context window extension with multi-grained self-injectioncited by 1
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 1
- 2025LexPro-1.0 Technical Reportcited by 1
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2025Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolationcited by 0
- 2025On the Limitations and Capabilities of Position Embeddings for Length Generalizationcited by 0
- 2026Stacked from One: Multi-Scale Self-Injection for Context Window Extensioncited by 0
- 2026A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limitscited by 0
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoderscited by 0
- 2026Length Generalization Needs Proper Regularizationcited by 0
- 2026Length Generalization Needs Proper Regularization3 Oct 2026
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limits19 May 2026
- 2026On the Ability of Transformers to Verify Plans20 Mar 2026
- 2026Stacked from One: Multi-Scale Self-Injection for Context Window Extension5 Mar 2026
- 2025On the Limitations and Capabilities of Position Embeddings for Length Generalization5 Oct 2025
- 2025HoPE: Hyperbolic Rotary Positional Encoding for Stable Long-Range Dependency Modeling in Large Language Models5 Sep 2025
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillation21 Aug 2025
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigms5 Jun 2025
- 2025Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolation1 Jun 2025
12 more
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities27 May 2025
- 2025SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization16 May 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025LexPro-1.0 Technical Report10 Mar 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encoding1 Jan 2025
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator16 Dec 2024
- 2024Two are better than one: Context window extension with multi-grained self-injection25 Oct 2024
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024Let the Code LLM Edit Itself When You Edit the Code3 Jul 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024Training-Free Long-Context Scaling of Large Language Models27 Feb 2024
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigmscited by 12
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encodingcited by 4
- 2025LexPro-1.0 Technical Reportcited by 1
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2026A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limitscited by 0
- 2026A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limits19 May 2026
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigms5 Jun 2025
- 2025LexPro-1.0 Technical Report10 Mar 2025
- 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encoding1 Jan 2025
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025HoPE: Hyperbolic Rotary Positional Encoding for Stable Long-Range Dependency Modeling in Large Language Modelscited by 10
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
- 2025SAS: Simulated Attention Scorecited by 4
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2026On the Ability of Transformers to Verify Planscited by 2
- 2024Two are better than one: Context window extension with multi-grained self-injectioncited by 1
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 1
- 2025Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolationcited by 0
12 most cited of 15 All 15 (JSON)
- 2026Length Generalization Needs Proper Regularization3 Oct 2026
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026On the Ability of Transformers to Verify Plans20 Mar 2026
- 2025On the Limitations and Capabilities of Position Embeddings for Length Generalization5 Oct 2025
- 2025HoPE: Hyperbolic Rotary Positional Encoding for Stable Long-Range Dependency Modeling in Large Language Models5 Sep 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolation1 Jun 2025
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities27 May 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator16 Dec 2024
- 2024Two are better than one: Context window extension with multi-grained self-injection25 Oct 2024
12 newest of 15 All 15 (JSON)