Manifold-Preserving Transformers are Effective for Short-Long Range Encoding
Not on the map. Why?
Abstract (arXiv)
Multi-head self-attention-based Transformers have shown promise in different learning tasks. Albeit these models exhibit significant improvement in understanding short-term and long-term contexts from sequences, encoders of Transformers and their variants fail to preserve layer-wise contextual information. Transformers usually project tokens onto sparse manifolds and fail to preserve mathematical equivalence among the token representations. In this work, we propose TransJect, an encoder model that guarantees a theoretical bound for layer-wise distance preservation between a pair of tokens. We propose a simple alternative to dot-product attention to ensure Lipschitz continuity. This allows TransJect to learn injective mappings to transform token representations to different manifolds with similar topology and preserve Euclidean distance between every pair of tokens in subsequent layers. Evaluations across multiple benchmark short- and long-sequence classification tasks show maximum improvements of 6.8% and 5.9%, respectively, over the variants of Transformers. Additionally, TransJect displays 79% better performance than Transformer on the language modeling task. We further highlight the shortcomings of multi-head self-attention from the statistical physics viewpoint. Although multi-head self-attention was incepted to learn different abstraction levels within the networks, our empirical analyses suggest that different attention heads learn randomly and unorderly. In contrast, TransJect adapts a mixture of experts for regularization; these experts are more orderly and balanced and learn different sparse representations from the input sequences. TransJect exhibits very low entropy and can be efficiently scaled to larger depths.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 36 of its 59 references that are in the map. First posted on arXiv 22 Oct 2023.
Builds on
36 of 59 references.
References · 36
- 2017Attention Is All You Needcited by 60,106
- 2016Gaussian Error Linear Units (GELUs)cited by 3,472
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,463
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,319
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,994
- 2020Big Bird: Transformers for Longer Sequencescited by 1,681
- 2020Reformer: The Efficient Transformercited by 1,662
- 2020Rethinking Attention with Performerscited by 1,594
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,469
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,323
- 2015Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)cited by 1,061
24 more
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 697
- 2019Quantifying the Carbon Emissions of Machine Learningcited by 519
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 469
- 2021Random Feature Attentioncited by 351
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 259
- 2020Sparse Sinkhorn Attentioncited by 251
- 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 215
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
- 2018Dynamical Isometry and a Mean Field Theory of CNNs: How to Train 10,000-Layer Vanilla Convolutional Neural Networkscited by 176
- 2020The Lipschitz Constant of Self-Attentioncited by 172
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2017Resurrecting the sigmoid in deep learning through dynamical isometry: theory and practicecited by 131
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2019Trivializations for Gradient-Based Optimization on Manifoldscited by 78
- 2020Shortformer: Better Language Modeling using Shorter Inputscited by 76
- 2017Reversible Architectures for Arbitrarily Deep Residual Neural Networkscited by 69
- 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
- 2020Similarity Analysis of Contextual Word Representation Modelscited by 54
- 2020A Mathematical Theory of Attentioncited by 45
- 2020Deep Isometric Learning for Visual Recognitioncited by 38
- 2022A Theoretical View on Sparsely Activated Networkscited by 6
- 2015Why are deep nets reversible: A simple theory, with implications for trainingcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Dual Dimensionality for Local and Global Attention
- 2022Overcoming a Theoretical Limitation of Self-Attention
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
- 2025The Origins of Representation Manifolds in Large Language Models
- 2025Preserve and Sculpt: Manifold-Aligned Fine-tuning of Vision-Language Models for Few-Shot Learning
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers
- 2025Bridging the Dimensional Chasm: Uncover Layer-wise Dimensional Reduction in Transformers through Token Correlation
- 2025Attention-Only Transformers via Unrolled Subspace Denoising