Does Self-Attention Need Separate Weights in Transformers?
Not on the map. Why?
Abstract (arXiv)
The success of self-attention lies in its ability to capture long-range dependencies and enhance context understanding, but it is limited by its computational complexity and challenges in handling sequential data with inherent directionality. This work introduces a shared weight self-attention-based BERT model that only learns one weight matrix for (Key, Value, and Query) representations instead of three individual matrices for each of them. Our shared weight attention reduces the training parameter size by more than half and training time by around one-tenth. Furthermore, we demonstrate higher prediction accuracy on small tasks of GLUE over the BERT baseline and in particular a generalization power on noisy and out-of-domain data. Experimental results indicate that our shared self-attention method achieves a parameter size reduction of 66.53% in the attention block. In the GLUE dataset, the shared weight self-attention-based BERT model demonstrates accuracy improvements of 0.38%, 5.81%, and 1.06% over the standard, symmetric, and pairwise attention-based BERT models, respectively. The model and source code are available at Anonymous.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 25 of its 36 references that are in the map. First posted on arXiv 30 Nov 2024.
Builds on
25 of 36 references.
References · 25
- 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
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
13 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
- 2016Exploring the Limits of Language Modelingcited by 172
- 2022RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encodercited by 118
- 2019Attention in Natural Language Processingcited by 100
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2023A Survey on Efficient Training of Transformerscited by 37
- 2020Adversarial Robustness for Codecited by 36
- 2024Symmetric Dot-Product Attention for Efficient Training of BERT Language Modelscited by 5
- 2024Token Trails: Navigating Contextual Depths in Conversational AI with ChatLLMcited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variantscited by 3
- 2025Hyper-SET: Designing Transformers via Hyperspherical Energy Minimizationcited by 2
- 2025CascadedViT: Cascaded Chunk-FeedForward and Cascaded Group Attention Vision Transformercited by 0
- 2026LiME: Lightweight Mixture of Experts for Efficient Multimodal Multi-task Learningcited by 0
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026LiME: Lightweight Mixture of Experts for Efficient Multimodal Multi-task Learning1 Feb 2026
- 2025CascadedViT: Cascaded Chunk-FeedForward and Cascaded Group Attention Vision Transformer18 Nov 2025
- 2025Hyper-SET: Designing Transformers via Hyperspherical Energy Minimization17 Feb 2025