Positional Encoding Helps Recurrent Neural Networks Handle a Large Vocabulary
Not on the map. Why?
Abstract (arXiv)
This study reports an unintuitive finding that positional encoding enhances learning of recurrent neural networks (RNNs). Positional encoding is a high-dimensional representation of time indices on input data. Most famously, positional encoding complements the capabilities of Transformer neural networks, which lack an inherent mechanism for representing the data order. By contrast, RNNs can encode the temporal information of data points on their own, rendering their use of positional encoding seemingly redundant/unnecessary. Nonetheless, investigations through synthetic benchmarks reveal an advantage of coupling positional encoding and RNNs, especially for handling a large vocabulary that yields low-frequency tokens. Further scrutinization unveils that these low-frequency tokens destabilizes the gradients of vanilla RNNs, and the positional encoding resolves this instability. These results shed a new light on the utility of positional encoding beyond its canonical role as a timekeeper for Transformers.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 34 of its 81 references that are in the map. First posted on arXiv 31 Jan 2024.
Builds on
34 of 81 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
22 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2015Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcastingcited by 1,428
- 2018On the Spectral Bias of Neural Networkscited by 1,321
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
- 2017Convolutional Sequence to Sequence Learningcited by 550
- 2013Generating Sequences With Recurrent Neural Networkscited by 549
- 2023Shap-E: Generating Conditional 3D Implicit Functionscited by 379
- 2015Unitary Evolution Recurrent Neural Networkscited by 291
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2018Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Contextcited by 113
- 2016Phased LSTM: Accelerating Recurrent Network Training for Long or Event-based Sequencescited by 98
- 2018Echo state networks are universalcited by 86
- 2017Dilated Recurrent Neural Networkscited by 83
- 2016Tunable Efficient Unitary Neural Networks (EUNN) and their application to RNNscited by 62
- 2018Reservoir Computing Universality With Stochastic Inputscited by 48
- 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
- 2017Gated Orthogonal Recurrent Units: On Learning to Forgetcited by 31
- 2017Recurrent Neural Networks as Weighted Language Recognizerscited by 30
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 2.
5 papers.
- 2024Oscillations enhance time-series prediction in reservoir computing with feedbackcited by 1
- 2025Design Principles for Sequence Models via Coefficient Dynamicscited by 1
- 2024Predictive Analysis of Tuberculosis Treatment Outcomes Using Machine Learning: A Karnataka TB Data Study at a Scalecited by 0
- 2026Towards Infinite Length Extrapolation: A Unified Approachcited by 0
- 2026Circuit-Inspired High-Order Neural Networks with Unified Neural Dynamics Modeling for PDE Solving and Visual Perceptioncited by 0
- 2026Circuit-Inspired High-Order Neural Networks with Unified Neural Dynamics Modeling for PDE Solving and Visual Perception25 Mar 2026
- 2026Towards Infinite Length Extrapolation: A Unified Approach3 Jan 2026
- 2025Design Principles for Sequence Models via Coefficient Dynamics10 Oct 2025
- 2024Oscillations enhance time-series prediction in reservoir computing with feedback5 Jun 2024
- 2024Predictive Analysis of Tuberculosis Treatment Outcomes Using Machine Learning: A Karnataka TB Data Study at a Scale13 Mar 2024