CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddings
Not on the map. Why?
Abstract (arXiv)
Without positional information, attention-based Transformer neural networks are permutation-invariant. Absolute or relative positional embeddings are the most popular ways to feed Transformer models with positional information. Absolute positional embeddings are simple to implement, but suffer from generalization issues when evaluating on sequences longer than seen at training time. Relative positions are more robust to input length change, but are more complex to implement and yield inferior model throughput due to extra computational and memory costs. In this paper, we propose an augmentation-based approach (CAPE) for absolute positional embeddings, which keeps the advantages of both absolute (simplicity and speed) and relative positional embeddings (better generalization). In addition, our empirical evaluation on state-of-the-art models in machine translation, image and speech recognition demonstrates that CAPE leads to better generalization performance as well as increased stability with respect to training hyper-parameters.
Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Builds on 46 of its 60 references that are in the map. First posted on arXiv 6 Jun 2021.
Builds on
46 of 60 references.
References · 46
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
34 more
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2019SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognitioncited by 1,355
- 2017Random Erasing Data Augmentationcited by 1,235
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2018Image Transformercited by 770
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2018Universal Transformerscited by 613
- 2020Recipes for building an open-domain chatbotcited by 593
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2019Attention Augmented Convolutional Networkscited by 363
- 2021Video Transformer Networkcited by 271
- 2018TED-LIUM 3: twice as much data and corpus repartition for experiments on speaker adaptationcited by 224
- 2018Music Transformercited by 207
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2020Pushing the Limits of Semi-Supervised Learning for Automatic Speech Recognitioncited by 185
- 2021Position Information in Transformers: An Overviewcited by 103
- 2019Transformer-based Acoustic Modeling for Hybrid Speech Recognitioncited by 86
- 2019MultiGrain: a unified image embedding for classes and instancescited by 85
- 2021SpeechStew: Simply Mix All Available Speech Recognition Data to Train One Large Neural Networkcited by 83
- 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
- 2020Rethinking Evaluation in ASR: Are Our Models Robust Enough?cited by 72
- 2019Encoding word order in complex embeddingscited by 53
- 2020Very Deep Transformers for Neural Machine Translationcited by 50
- 2019Transformers with convolutional context for ASRcited by 44
- 2018Deep Metric Transfer for Label Propagation with Limited Annotated Datacited by 33
- 2019Improving Generalization of Transformer for Speech Recognition with Parallel Schedule Sampling and Relative Positional Embeddingcited by 12
Built on by
Citing papers per year: 2021: 3; 2022: 8; 2023: 16; 2024: 8; 2025: 11; 2026: 1.
47 papers.
Sort:
By area:
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023Transformers in Speech Processing: A Surveycited by 38
- 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generationcited by 36
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
35 more
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2021Pseudo-Labeling for Massively Multilingual Speech Recognitioncited by 23
- 2023How to Scale Your EMAcited by 22
- 2023Linearized Relative Positional Encodingcited by 17
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrievalcited by 16
- 2022Variable Attention Masking for Configurable Transformer Transducer Speech Recognitioncited by 14
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2022Continual Transformers: Redundancy-Free Attention for Online Inferencecited by 12
- 2022Continuous Pseudo-Labeling from the Startcited by 11
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2023Monotonic Location Attention for Length Generalizationcited by 9
- 2025LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encodingcited by 9
- 2023Extract-and-Adaptation Network for 3D Interacting Hand Mesh Recoverycited by 7
- 2022Continuous Soft Pseudo-Labeling in ASRcited by 6
- 2024HSViT: Horizontally Scalable Vision Transformercited by 6
- 2023AV-CPL: Continuous Pseudo-Labeling for Audio-Visual Speech Recognitioncited by 5
- 2025Group Representational Position Encodingcited by 5
- 2022Similarity and Content-based Phonetic Self Attention for Speech Recognitioncited by 3
- 2023NeuroCodeBench: a plain C neural network benchmark for software verificationcited by 3
- 2023Long-MIL: Scaling Long Contextual Multiple Instance Learning for Histopathology Whole Slide Image Analysiscited by 3
- 2022More Speaking or More Speakers?cited by 2
- 2023LEA: Improving Sentence Similarity Robustness to Typos Using Lexical Attention Biascited by 2
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2025Floating-Point Neural Network Verification at the Software Levelcited by 2
- 2022Parameterization of Cross-Token Relations with Relative Positional Encoding for Vision MLPcited by 1
- 2025Positional Encoding via Token-Aware Phase Attentioncited by 1
- 2023Extending Input Contexts of Language Models through Training on Segmented Sequencescited by 0
- 2024Knowledge-enhanced Transformer for Multivariate Long Sequence Time-series Forecastingcited by 0
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 0
- 2025Input Resolution Downsizing as a Compression Technique for Vision Deep Learning Systemscited by 0
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifierscited by 0
- 2025PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysiscited by 0
- 2025Segmental Attention Decoding With Long Form Acoustic Encodingscited by 0
- 2026Position Encoding with Random Float Sampling Enhances Length Generalization of Transformerscited by 0
- 2026Position Encoding with Random Float Sampling Enhances Length Generalization of Transformers15 Feb 2026
- 2025Segmental Attention Decoding With Long Form Acoustic Encodings16 Dec 2025
- 2025Group Representational Position Encoding8 Dec 2025
- 2025Floating-Point Neural Network Verification at the Software Level27 Oct 2025
- 2025Positional Encoding via Token-Aware Phase Attention16 Sep 2025
- 2025PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysis12 Jun 2025
- 2025LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding22 May 2025
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifiers19 May 2025
- 2025Input Resolution Downsizing as a Compression Technique for Vision Deep Learning Systems1 Apr 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generation5 Feb 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
35 more
- 2024Knowledge-enhanced Transformer for Multivariate Long Sequence Time-series Forecasting17 Nov 2024
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrieval6 Aug 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024HSViT: Horizontally Scalable Vision Transformer8 Apr 2024
- 2024Rotary Position Embedding for Vision Transformer20 Mar 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
- 2023Long-MIL: Scaling Long Contextual Multiple Instance Learning for Histopathology Whole Slide Image Analysis21 Nov 2023
- 2023Extending Input Contexts of Language Models through Training on Segmented Sequences23 Oct 2023
- 2023AV-CPL: Continuous Pseudo-Labeling for Audio-Visual Speech Recognition29 Sep 2023
- 2023NeuroCodeBench: a plain C neural network benchmark for software verification7 Sep 2023
- 2023Extract-and-Adaptation Network for 3D Interacting Hand Mesh Recovery5 Sep 2023
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models30 Aug 2023
- 2023How to Scale Your EMA25 Jul 2023
- 2023Linearized Relative Positional Encoding18 Jul 2023
- 2023LEA: Improving Sentence Similarity Robustness to Typos Using Lexical Attention Bias6 Jul 2023
- 2023Monotonic Location Attention for Length Generalization31 May 2023
- 2023The Impact of Positional Encoding on Length Generalization in Transformers31 May 2023
- 2023DINOv2: Learning Robust Visual Features without Supervision14 Apr 2023
- 2023Transformers in Speech Processing: A Survey21 Mar 2023
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapse11 Mar 2023
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexity12 Feb 2023
- 2022Continuous Soft Pseudo-Labeling in ASR11 Nov 2022
- 2022Variable Attention Masking for Configurable Transformer Transducer Speech Recognition2 Nov 2022
- 2022More Speaking or More Speakers?2 Nov 2022
- 2022Continuous Pseudo-Labeling from the Start17 Oct 2022
- 2022Parameterization of Cross-Token Relations with Relative Positional Encoding for Vision MLP15 Jul 2022
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation20 May 2022
- 2022Similarity and Content-based Phonetic Self Attention for Speech Recognition19 Mar 2022
- 2022Continual Transformers: Redundancy-Free Attention for Online Inference17 Jan 2022
- 2021Pseudo-Labeling for Massively Multilingual Speech Recognition30 Oct 2021
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation27 Aug 2021
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processing12 Aug 2021
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023Transformers in Speech Processing: A Surveycited by 38
- 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
12 most cited of 46 All 46 (JSON)
- 2026Position Encoding with Random Float Sampling Enhances Length Generalization of Transformers15 Feb 2026
- 2025Segmental Attention Decoding With Long Form Acoustic Encodings16 Dec 2025
- 2025Group Representational Position Encoding8 Dec 2025
- 2025Floating-Point Neural Network Verification at the Software Level27 Oct 2025
- 2025Positional Encoding via Token-Aware Phase Attention16 Sep 2025
- 2025PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysis12 Jun 2025
- 2025LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding22 May 2025
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifiers19 May 2025
- 2025Input Resolution Downsizing as a Compression Technique for Vision Deep Learning Systems1 Apr 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2024Knowledge-enhanced Transformer for Multivariate Long Sequence Time-series Forecasting17 Nov 2024
12 newest of 46 All 46 (JSON)