Functional Interpolation for Relative Positions Improves Long Context Transformers
Not on the map. Why?
Abstract (arXiv)
Preventing the performance decay of Transformers on inputs longer than those used for training has been an important challenge in extending the context length of these models. Though the Transformer architecture has fundamentally no limits on the input sequence lengths it can process, the choice of position encoding used during training can limit the performance of these models on longer inputs. We propose a novel functional relative position encoding with progressive interpolation, FIRE, to improve Transformer generalization to longer contexts. We theoretically prove that this can represent some of the popular relative position encodings, such as T5's RPE, Alibi, and Kerple. We next empirically show that FIRE models have better generalization to longer contexts on both zero-shot language modeling and long text benchmarks.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 20 of its 66 references that are in the map. First posted on arXiv 6 Oct 2023.
Builds on
20 of 66 references.
References · 20
- 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
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
8 more
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2018Constituency Parsing with a Self-Attentive Encodercited by 196
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
- 2021A Simple and Effective Positional Encoding for Transformerscited by 37
- 2021Can Vision Transformers Perform Convolution?cited by 18
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
- 2023Monotonic Location Attention for Length Generalizationcited by 9
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 12; 2026: 1.
18 papers.
Sort:
By area:
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 22
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025Self-Adjust Softmaxcited by 3
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More Morecited by 3
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasonercited by 3
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2025Image Recognition with Online Lightweight Vision Transformer: A Surveycited by 2
- 2025DoPE: Denoising Rotary Position Embeddingcited by 2
- 2024MLissard: Multilingual Long and Simple Sequential Reasoning Benchmarkscited by 1
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Modelscited by 1
6 more
- 2025A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation (GALI)cited by 1
- 2025Privacy-Preserving Transformers: SwiftKey's Differential Privacy Implementationcited by 1
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 0
- 2025ResFormer: All-Time Reservoir Memory for Long Sequence Classificationcited by 0
- 2025Exploring Depth Generalization in Large Language Models for Solving Recursive Logic Taskscited by 0
- 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
- 2025Exploring Depth Generalization in Large Language Models for Solving Recursive Logic Tasks2 Dec 2025
- 2025DoPE: Denoising Rotary Position Embedding12 Nov 2025
- 2025ResFormer: All-Time Reservoir Memory for Long Sequence Classification28 Sep 2025
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasoner17 Jul 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Privacy-Preserving Transformers: SwiftKey's Differential Privacy Implementation8 May 2025
- 2025Image Recognition with Online Lightweight Vision Transformer: A Survey6 May 2025
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More More13 Mar 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025Self-Adjust Softmax25 Feb 2025
- 2025A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation (GALI)4 Feb 2025
6 more
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models10 Dec 2024
- 2024MLissard: Multilingual Long and Simple Sequential Reasoning Benchmarks8 Oct 2024
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structure31 May 2024
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Models16 Jan 2024
- 2023Efficient Large Language Models: A Survey6 Dec 2023
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 22
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025Self-Adjust Softmaxcited by 3
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More Morecited by 3
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2025Image Recognition with Online Lightweight Vision Transformer: A Surveycited by 2
- 2025DoPE: Denoising Rotary Position Embeddingcited by 2
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Modelscited by 1
- 2025A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation (GALI)cited by 1
- 2025Privacy-Preserving Transformers: SwiftKey's Differential Privacy Implementationcited by 1
12 most cited of 15 All 15 (JSON)
- 2025Exploring Depth Generalization in Large Language Models for Solving Recursive Logic Tasks2 Dec 2025
- 2025DoPE: Denoising Rotary Position Embedding12 Nov 2025
- 2025ResFormer: All-Time Reservoir Memory for Long Sequence Classification28 Sep 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Privacy-Preserving Transformers: SwiftKey's Differential Privacy Implementation8 May 2025
- 2025Image Recognition with Online Lightweight Vision Transformer: A Survey6 May 2025
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More More13 Mar 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025Self-Adjust Softmax25 Feb 2025
- 2025A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation (GALI)4 Feb 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models10 Dec 2024
12 newest of 15 All 15 (JSON)