mlsanityData to 7 Oct 2026

Improve Transformer Models with Better Relative Position Embeddings

arXiv 2009.13658 ↗First posted 28 Sep 2020cs.CLcited by 73

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 16; 2022: 13; 2023: 16; 2024: 12; 2025: 13; 2026: 3.

73 papers.

Sort:

By area:

  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  2. 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
  3. 2022Mega: Moving Average Equipped Gated Attentioncited by 178
  4. 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
  5. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  6. 2021Position Information in Transformers: An Overviewcited by 103
  7. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
  8. 2022NUWA-Infinity: Autoregressive over Autoregressive Generation for Infinite Visual Synthesiscited by 71
  9. 2023Length Generalization in Arithmetic Transformerscited by 64
  10. 2024Mitigating Object Hallucination via Concentric Causal Attentioncited by 48
  11. 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
  12. 2023Improving Position Encoding of Transformers for Multivariate Time Series Classificationcited by 44
38 more
  1. 2021SIGN: Spatial-information Incorporated Generative Network for Generalized Zero-shot Semantic Segmentationcited by 41
  2. 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
  3. 2024KeyPoint Relative Position Encoding for Face Recognitioncited by 37
  4. 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 36
  5. 2022Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectivescited by 32
  6. 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
  7. 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
  8. 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 32
  9. 2021Disentangled Sequence to Sequence Learning for Compositional Generalizationcited by 30
  10. 2022Peripheral Vision Transformercited by 27
  11. 2021Relative Molecule Self-Attention Transformercited by 21
  12. 2023Window Attention is Bugged: How not to Interpolate Position Embeddingscited by 18
  13. 2023Linearized Relative Positional Encodingcited by 17
  14. 2025Positional Encoding in Transformer-Based Time Series Models: A Surveycited by 13
  15. 2025Person Recognition at Altitude and Range: Fusion of Face, Body Shape and Gaitcited by 13
  16. 2021BERT-like Pre-training for Symbolic Piano Music Classification Taskscited by 12
  17. 2021Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Modelscited by 11
  18. 2023Causal Decision Transformer for Recommender Systems via Offline Reinforcement Learningcited by 11
  19. 2025MCA-LLaVA: Manhattan Causal Attention for Reducing Hallucination in Large Vision-Language Modelscited by 11
  20. 2023SLSG: Industrial Image Anomaly Detection by Learning Better Feature Embeddings and One-Class Classificationcited by 10
  21. 2021Syntax-Aware Graph-to-Graph Transformer for Semantic Role Labellingcited by 8
  22. 2025The Role of Sparsity for Length Generalization in Transformerscited by 8
  23. 2021The Impact of Positional Encodings on Multilingual Compressioncited by 5
  24. 2022P-Transformer: Towards Better Document-to-Document Neural Machine Translationcited by 5
  25. 2023Transformers as Graph-to-Graph Modelscited by 5
  26. 2023DETR Doesn't Need Multi-Scale or Locality Designcited by 4
  27. 2024A Morphology-Based Investigation of Positional Encodingscited by 4
  28. 2022Real-World Compositional Generalization with Disentangled Sequence-to-Sequence Learningcited by 3
  29. 2023Revisiting File Context for Source Code Summarizationcited by 3
  30. 2023Long-MIL: Scaling Long Contextual Multiple Instance Learning for Histopathology Whole Slide Image Analysiscited by 3
  31. 2024EulerFormer: Sequential User Behavior Modeling with Complex Vector Attentioncited by 3
  32. 2026Do Transformers Need Three Projections? Systematic Study of QKV Variantscited by 3
  33. 2023HyPE: Attention with Hyperbolic Biases for Relative Positional Encodingcited by 2
  34. 2024Rethinking Attention Module Design for Point Cloud Analysiscited by 2
  35. 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
  36. 2021Symbolic integration by integrating learning models with different strengths and weaknessescited by 1
  37. 2022FIGARO: Generating Symbolic Music with Fine-Grained Artistic Controlcited by 1
  38. 2022TANet: Thread-Aware Pretraining for Abstractive Conversational Summarizationcited by 1

50 most cited of 73 All 73 (JSON)