mlsanityData to 7 Oct 2026

Does Self-Attention Need Separate Weights in Transformers?

arXiv 2412.00359 ↗First posted 30 Nov 2024cs.CLcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2020Reformer: The Efficient Transformercited by 1,658
  11. 2020Rethinking Attention with Performerscited by 1,584
  12. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
13 more
  1. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  2. 2018Self-Attention with Relative Position Representationscited by 1,112
  3. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  4. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  5. 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
  6. 2016Exploring the Limits of Language Modelingcited by 172
  7. 2022RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encodercited by 118
  8. 2019Attention in Natural Language Processingcited by 100
  9. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  10. 2023A Survey on Efficient Training of Transformerscited by 37
  11. 2020Adversarial Robustness for Codecited by 36
  12. 2024Symmetric Dot-Product Attention for Efficient Training of BERT Language Modelscited by 5
  13. 2024Token Trails: Navigating Contextual Depths in Conversational AI with ChatLLMcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.