Improve Transformer Models with Better Relative Position Embeddings
Not on the map. Why?
Abstract (arXiv)
Transformer architectures rely on explicit position encodings in order to preserve a notion of word order. In this paper, we argue that existing work does not fully utilize position information. For example, the initial proposal of a sinusoid embedding is fixed and not learnable. In this paper, we first review absolute position embeddings and existing methods for relative position embeddings. We then propose new techniques that encourage increased interaction between query, key and relative position embeddings in the self-attention mechanism. Our most promising approach is a generalization of the absolute position embedding, improving results on SQuAD1.1 compared to previous position embeddings approaches. In addition, we address the inductive property of whether a position embedding can be robust enough to handle long sequences. We demonstrate empirically that our relative position embedding method is reasonably generalized and robust from the inductive perspective. Finally, we show that our proposed method can be adopted as a near drop-in replacement for improving the accuracy of large models with a small computational budget.
Key facts. Cited by 73 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 16; 2022: 13; 2023: 16; 2024: 12; 2025: 13; 2026: 3.
73 papers.
Sort:
By area:
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2021Position Information in Transformers: An Overviewcited by 103
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2022NUWA-Infinity: Autoregressive over Autoregressive Generation for Infinite Visual Synthesiscited by 71
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2024Mitigating Object Hallucination via Concentric Causal Attentioncited by 48
- 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
- 2023Improving Position Encoding of Transformers for Multivariate Time Series Classificationcited by 44
38 more
- 2021SIGN: Spatial-information Incorporated Generative Network for Generalized Zero-shot Semantic Segmentationcited by 41
- 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
- 2024KeyPoint Relative Position Encoding for Face Recognitioncited by 37
- 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 36
- 2022Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectivescited by 32
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 32
- 2021Disentangled Sequence to Sequence Learning for Compositional Generalizationcited by 30
- 2022Peripheral Vision Transformercited by 27
- 2021Relative Molecule Self-Attention Transformercited by 21
- 2023Window Attention is Bugged: How not to Interpolate Position Embeddingscited by 18
- 2023Linearized Relative Positional Encodingcited by 17
- 2025Positional Encoding in Transformer-Based Time Series Models: A Surveycited by 13
- 2025Person Recognition at Altitude and Range: Fusion of Face, Body Shape and Gaitcited by 13
- 2021BERT-like Pre-training for Symbolic Piano Music Classification Taskscited by 12
- 2021Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Modelscited by 11
- 2023Causal Decision Transformer for Recommender Systems via Offline Reinforcement Learningcited by 11
- 2025MCA-LLaVA: Manhattan Causal Attention for Reducing Hallucination in Large Vision-Language Modelscited by 11
- 2023SLSG: Industrial Image Anomaly Detection by Learning Better Feature Embeddings and One-Class Classificationcited by 10
- 2021Syntax-Aware Graph-to-Graph Transformer for Semantic Role Labellingcited by 8
- 2025The Role of Sparsity for Length Generalization in Transformerscited by 8
- 2021The Impact of Positional Encodings on Multilingual Compressioncited by 5
- 2022P-Transformer: Towards Better Document-to-Document Neural Machine Translationcited by 5
- 2023Transformers as Graph-to-Graph Modelscited by 5
- 2023DETR Doesn't Need Multi-Scale or Locality Designcited by 4
- 2024A Morphology-Based Investigation of Positional Encodingscited by 4
- 2022Real-World Compositional Generalization with Disentangled Sequence-to-Sequence Learningcited by 3
- 2023Revisiting File Context for Source Code Summarizationcited by 3
- 2023Long-MIL: Scaling Long Contextual Multiple Instance Learning for Histopathology Whole Slide Image Analysiscited by 3
- 2024EulerFormer: Sequential User Behavior Modeling with Complex Vector Attentioncited by 3
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variantscited by 3
- 2023HyPE: Attention with Hyperbolic Biases for Relative Positional Encodingcited by 2
- 2024Rethinking Attention Module Design for Point Cloud Analysiscited by 2
- 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
- 2021Symbolic integration by integrating learning models with different strengths and weaknessescited by 1
- 2022FIGARO: Generating Symbolic Music with Fine-Grained Artistic Controlcited by 1
- 2022TANet: Thread-Aware Pretraining for Abstractive Conversational Summarizationcited by 1
50 most cited of 73 All 73 (JSON)
- 2026Overflip: Repetition-Induced Label Flips in Guardrail Models14 Sep 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026BSAT: B-Spline Adaptive Tokenizer for Long-Term Time Series Forecasting2 Jan 2026
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features20 Sep 2025
- 2025Positional Encoding via Token-Aware Phase Attention16 Sep 2025
- 2025Multi-Class Human/Object Detection on Robot Manipulators using Proprioceptive Sensing4 Aug 2025
- 2025MCA-LLaVA: Manhattan Causal Attention for Reducing Hallucination in Large Vision-Language Models12 Jul 2025
- 2025SeqPE: Transformer with Sequential Position Encoding16 Jun 2025
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformations22 May 2025
- 2025Person Recognition at Altitude and Range: Fusion of Face, Body Shape and Gait7 May 2025
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modeling6 Mar 2025
38 more
- 2025UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Security6 Mar 2025
- 2025The Role of Sparsity for Length Generalization in Transformers24 Feb 2025
- 2025Positional Encoding in Transformer-Based Time Series Models: A Survey17 Feb 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024Rethinking Associative Memory Mechanism in Induction Head16 Dec 2024
- 2024Mitigating Object Hallucination via Concentric Causal Attention21 Oct 2024
- 2024EMCNet : Graph-Nets for Electron Micrographs Classification21 Aug 2024
- 2024Order-Preserving Dimension Reduction for Multimodal Semantic Embedding15 Aug 2024
- 2024Rethinking Attention Module Design for Point Cloud Analysis27 Jul 2024
- 2024Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numbers6 May 2024
- 2024A Morphology-Based Investigation of Positional Encodings6 Apr 2024
- 2024EulerFormer: Sequential User Behavior Modeling with Complex Vector Attention26 Mar 2024
- 2024KeyPoint Relative Position Encoding for Face Recognition21 Mar 2024
- 2024Local and Global Contexts for Conversation31 Jan 2024
- 2024SymTC: A Symbiotic Transformer-CNN Net for Instance Segmentation of Lumbar Spine MRI17 Jan 2024
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey15 Jan 2024
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encoding28 Dec 2023
- 2023Compositional Generalization in Spoken Language Understanding25 Dec 2023
- 2023Long-MIL: Scaling Long Contextual Multiple Instance Learning for Histopathology Whole Slide Image Analysis21 Nov 2023
- 2023Window Attention is Bugged: How not to Interpolate Position Embeddings9 Nov 2023
- 2023HyPE: Attention with Hyperbolic Biases for Relative Positional Encoding30 Oct 2023
- 2023Transformers as Graph-to-Graph Models27 Oct 2023
- 2023Revisiting File Context for Source Code Summarization5 Sep 2023
- 2023DETR Doesn't Need Multi-Scale or Locality Design3 Aug 2023
- 2023Linearized Relative Positional Encoding18 Jul 2023
- 2023Length Generalization in Arithmetic Transformers27 Jun 2023
- 2023Improving Position Encoding of Transformers for Multivariate Time Series Classification26 May 2023
- 2023Deep Multiple Instance Learning with Distance-Aware Self-Attention17 May 2023
- 2023SLSG: Industrial Image Anomaly Detection by Learning Better Feature Embeddings and One-Class Classification30 Apr 2023
- 2023Technical Report: Impact of Position Bias on Language Models in Token Classification26 Apr 2023
- 2023Causal Decision Transformer for Recommender Systems via Offline Reinforcement Learning17 Apr 2023
- 2023Enhancing Multivariate Time Series Classifiers through Self-Attention and Relative Positioning Infusion13 Feb 2023
- 2022Real-World Compositional Generalization with Disentangled Sequence-to-Sequence Learning12 Dec 2022
- 2022P-Transformer: Towards Better Document-to-Document Neural Machine Translation12 Dec 2022
- 2022Mega: Moving Average Equipped Gated Attention21 Sep 2022
- 2022NUWA-Infinity: Autoregressive over Autoregressive Generation for Infinite Visual Synthesis20 Jul 2022
- 2022Parameterization of Cross-Token Relations with Relative Positional Encoding for Vision MLP15 Jul 2022
- 2022VReBERT: A Simple and Flexible Transformer for Visual Relationship Detection18 Jun 2022
50 newest of 73 All 73 (JSON)
- 2024Rethinking Associative Memory Mechanism in Induction Head16 Dec 2024
- 2024Mitigating Object Hallucination via Concentric Causal Attention21 Oct 2024
- 2026Overflip: Repetition-Induced Label Flips in Guardrail Models14 Sep 2026
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2021Position Information in Transformers: An Overviewcited by 103
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2022NUWA-Infinity: Autoregressive over Autoregressive Generation for Infinite Visual Synthesiscited by 71
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
- 2023Improving Position Encoding of Transformers for Multivariate Time Series Classificationcited by 44
- 2021SIGN: Spatial-information Incorporated Generative Network for Generalized Zero-shot Semantic Segmentationcited by 41
12 most cited of 68 All 68 (JSON)
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026BSAT: B-Spline Adaptive Tokenizer for Long-Term Time Series Forecasting2 Jan 2026
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features20 Sep 2025
- 2025Positional Encoding via Token-Aware Phase Attention16 Sep 2025
- 2025Multi-Class Human/Object Detection on Robot Manipulators using Proprioceptive Sensing4 Aug 2025
- 2025SeqPE: Transformer with Sequential Position Encoding16 Jun 2025
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformations22 May 2025
- 2025Person Recognition at Altitude and Range: Fusion of Face, Body Shape and Gait7 May 2025
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modeling6 Mar 2025
- 2025UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Security6 Mar 2025
- 2025The Role of Sparsity for Length Generalization in Transformers24 Feb 2025
12 newest of 68 All 68 (JSON)