Learning to Encode Position for Transformer with Continuous Dynamical Model
Not on the map. Why?
Abstract (arXiv)
We introduce a new way of learning to encode position information for non-recurrent models, such as Transformer models. Unlike RNN and LSTM, which contain inductive bias by loading the input tokens sequentially, non-recurrent models are less sensitive to position. The main reason is that position information among input units is not inherently encoded, i.e., the models are permutation equivalent; this problem justifies why all of the existing models are accompanied by a sinusoidal encoding/embedding layer at the input. However, this solution has clear limitations: the sinusoidal encoding is not flexible enough as it is manually designed and does not contain any learnable parameters, whereas the position embedding restricts the maximum length of input sequences. It is thus desirable to design a new position layer that contains learnable parameters to adjust to different datasets and different architectures. At the same time, we would also like the encodings to extrapolate in accordance with the variable length of inputs. In our proposed solution, we borrow from the recent Neural ODE approach, which may be viewed as a versatile continuous version of a ResNet. This model is capable of modeling many kinds of dynamical systems. We model the evolution of encoded results along position index by such a dynamical system, thereby overcoming the above limitations of existing methods. We evaluate our new position layers on a variety of neural machine translation and language understanding tasks, the experimental results show consistent improvements over the baselines.
Key facts. Cited by 61 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 16; 2022: 14; 2023: 7; 2024: 7; 2025: 15; 2026: 2.
61 papers.
Sort:
By area:
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021A Survey of Transformerscited by 399
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2021Position Information in Transformers: An Overviewcited by 103
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2024Graph Mamba: Towards Learning on Graphs with State Space Modelscited by 84
- 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
- 2021SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimizationcited by 59
- 2022Your Transformer May Not be as Powerful as You Expectcited by 55
- 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 36
- 2021Rethinking Positional Encodingcited by 36
38 more
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
- 2021Neural Delay Differential Equationscited by 26
- 2021The Case for Translation-Invariant Self-Attention in Transformer-Based Language Modelscited by 23
- 2021ROPE: Reading Order Equivariant Positional Encoding for Graph-based Document Information Extractioncited by 22
- 2025Key-value memory in the braincited by 22
- 2022Learning Object Placement via Dual-path Graph Completioncited by 20
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRINGcited by 19
- 2022Trading Positional Complexity vs. Deepness in Coordinate Networkscited by 16
- 2022Generalized Classification of Satellite Image Time Series with Thermal Positional Encodingcited by 14
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
- 2024Ex3: Automatic Novel Writing by Extracting, Excelsior and Expandingcited by 10
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2022PulseImpute: A Novel Benchmark Task for Pulsative Physiological Signal Imputationcited by 9
- 2024RadCLIP: Enhancing Radiologic Image Analysis through Contrastive Language-Image Pre-trainingcited by 8
- 2021Learning Positional Embeddings for Coordinate-MLPscited by 7
- 2023Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenationcited by 6
- 2022Expressing Multivariate Time Series as Graphs with Time Series Attention Transformercited by 5
- 2022P-Transformer: Towards Better Document-to-Document Neural Machine Translationcited by 5
- 2023Koopman Invertible Autoencoder: Leveraging Forward and Backward Dynamics for Temporal Modelingcited by 5
- 2025Group Representational Position Encodingcited by 5
- 2022Multi-branch Cascaded Swin Transformers with Attention to k-space Sampling Pattern for Accelerated MRI Reconstructioncited by 4
- 2023AnyPose: Anytime 3D Human Pose Forecasting via Neural Ordinary Differential Equationscited by 4
- 2021Conformer-based End-to-end Speech Recognition With Rotary Position Embeddingcited by 3
- 2021PESTO: Switching Point based Dynamic and Relative Positional Encoding for Code-Mixed Languagescited by 3
- 2022Investigating Neural Architectures by Synthetic Dataset Designcited by 3
- 2024Continuous-Time Linear Positional Embedding for Irregular Time Series Forecastingcited by 3
- 2023CONFLATOR: Incorporating Switching Point based Rotatory Positional Encodings for Code-Mixed Language Modelingcited by 2
- 2025ID-Align: RoPE-Conscious Position Remapping for Dynamic High-Resolution Adaptation in Vision-Language Modelscited by 2
- 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
- 2025A Circular Argument : Does RoPE need to be Equivariant for Vision?cited by 2
- 2021Hierarchical RNNs-Based Transformers MADDPG for Mixed Cooperative-Competitive Environmentscited by 1
- 2022DecBERT: Enhancing the Language Understanding of BERT with Causal Attention Maskscited by 1
- 2024Cross-variable Linear Integrated ENhanced Transformer for Photovoltaic power forecastingcited by 1
- 2025PIPE: Physics-Informed Position Encoding for Alignment of Satellite Images and Time Seriescited by 1
- 2025Pre-trained Transformer-models using chronic invasive electrophysiology for symptom decoding without patient-individual trainingcited by 1
- 2025Rotary Position Encodings for Graphscited by 1
50 most cited of 61 All 61 (JSON)
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026Positional-aware Spatio-Temporal Network for Large-Scale Traffic Prediction25 Feb 2026
- 2025Group Representational Position Encoding8 Dec 2025
- 2025TabGRU: An Enhanced Design for Urban Rainfall Intensity Estimation Using Commercial Microwave Links2 Dec 2025
- 2025Improving the Generalisation of Learned Reconstruction Frameworks16 Nov 2025
- 2025A Circular Argument : Does RoPE need to be Equivariant for Vision?11 Nov 2025
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025Vocabulary In-Context Learning in Transformers: Benefits of Positional Encoding9 Nov 2025
- 2025Rotary Position Encodings for Graphs26 Sep 2025
- 2025Deep Learning Empowered Super-Resolution: A Comprehensive Survey and Future Prospects19 Sep 2025
- 2025Pre-trained Transformer-models using chronic invasive electrophysiology for symptom decoding without patient-individual training13 Aug 2025
- 2025SeqPE: Transformer with Sequential Position Encoding16 Jun 2025
38 more
- 2025PIPE: Physics-Informed Position Encoding for Alignment of Satellite Images and Time Series27 May 2025
- 2025ID-Align: RoPE-Conscious Position Remapping for Dynamic High-Resolution Adaptation in Vision-Language Models27 May 2025
- 2025POET: Prompt Offset Tuning for Continual Human Action Adaptation25 Apr 2025
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRING4 Feb 2025
- 2025Key-value memory in the brain6 Jan 2025
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024Continuous-Time Linear Positional Embedding for Irregular Time Series Forecasting30 Sep 2024
- 2024Ex3: Automatic Novel Writing by Extracting, Excelsior and Expanding16 Aug 2024
- 2024Cross-variable Linear Integrated ENhanced Transformer for Photovoltaic power forecasting6 Jun 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024RadCLIP: Enhancing Radiologic Image Analysis through Contrastive Language-Image Pre-training15 Mar 2024
- 2024Graph Mamba: Towards Learning on Graphs with State Space Models13 Feb 2024
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encoding28 Dec 2023
- 2023Koopman Invertible Autoencoder: Leveraging Forward and Backward Dynamics for Temporal Modeling19 Sep 2023
- 2023CONFLATOR: Incorporating Switching Point based Rotatory Positional Encodings for Code-Mixed Language Modeling11 Sep 2023
- 2023AnyPose: Anytime 3D Human Pose Forecasting via Neural Ordinary Differential Equations9 Sep 2023
- 2023Randomized Positional Encodings Boost Length Generalization of Transformers26 May 2023
- 2023Neural Delay Differential Equations: System Reconstruction and Image Classification11 Apr 2023
- 2023Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenation13 Feb 2023
- 2022PulseImpute: A Novel Benchmark Task for Pulsative Physiological Signal Imputation14 Dec 2022
- 2022P-Transformer: Towards Better Document-to-Document Neural Machine Translation12 Dec 2022
- 2022Sequence and Circle: Exploring the Relationship Between Patches18 Oct 2022
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Models24 Aug 2022
- 2022Expressing Multivariate Time Series as Graphs with Time Series Attention Transformer19 Aug 2022
- 2022Learning Object Placement via Dual-path Graph Completion23 Jul 2022
- 2022Multi-branch Cascaded Swin Transformers with Attention to k-space Sampling Pattern for Accelerated MRI Reconstruction18 Jul 2022
- 2022Your Transformer May Not be as Powerful as You Expect26 May 2022
- 2022Trading Positional Complexity vs. Deepness in Coordinate Networks18 May 2022
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goes27 Apr 2022
- 2022Investigating Neural Architectures by Synthetic Dataset Design23 Apr 2022
- 2022DecBERT: Enhancing the Language Understanding of BERT with Causal Attention Masks19 Apr 2022
- 2022Dynamic Position Encoding for Transformers18 Apr 2022
- 2022Generalized Classification of Satellite Image Time Series with Thermal Positional Encoding17 Mar 2022
- 2021Learning Positional Embeddings for Coordinate-MLPs21 Dec 2021
- 2021Relating transformers to models and neural representations of the hippocampal formation7 Dec 2021
- 2021PESTO: Switching Point based Dynamic and Relative Positional Encoding for Code-Mixed Languages12 Nov 2021
- 2021Conformer-based End-to-end Speech Recognition With Rotary Position Embedding13 Jul 2021
- 2021Rethinking Positional Encoding6 Jul 2021
50 newest of 61 All 61 (JSON)
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021A Survey of Transformerscited by 399
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2021Position Information in Transformers: An Overviewcited by 103
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
- 2021SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimizationcited by 59
- 2022Your Transformer May Not be as Powerful as You Expectcited by 55
- 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 36
- 2021Rethinking Positional Encodingcited by 36
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
12 most cited of 58 All 58 (JSON)
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026Positional-aware Spatio-Temporal Network for Large-Scale Traffic Prediction25 Feb 2026
- 2025Group Representational Position Encoding8 Dec 2025
- 2025TabGRU: An Enhanced Design for Urban Rainfall Intensity Estimation Using Commercial Microwave Links2 Dec 2025
- 2025Improving the Generalisation of Learned Reconstruction Frameworks16 Nov 2025
- 2025A Circular Argument : Does RoPE need to be Equivariant for Vision?11 Nov 2025
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025Vocabulary In-Context Learning in Transformers: Benefits of Positional Encoding9 Nov 2025
- 2025Rotary Position Encodings for Graphs26 Sep 2025
- 2025Deep Learning Empowered Super-Resolution: A Comprehensive Survey and Future Prospects19 Sep 2025
- 2025Pre-trained Transformer-models using chronic invasive electrophysiology for symptom decoding without patient-individual training13 Aug 2025
- 2025SeqPE: Transformer with Sequential Position Encoding16 Jun 2025
12 newest of 58 All 58 (JSON)