mlsanityData to 7 Oct 2026

Pit One Against Many: Leveraging Attention-head Embeddings for Parameter-efficient Multi-head Attention

arXiv 2310.07911 ↗First posted 11 Oct 2023cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Scaling pre-trained language models has resulted in large performance gains in various natural language processing tasks but comes with a large cost in memory requirements. Inspired by the position embeddings in transformers, we aim to simplify and reduce the memory footprint of the multi-head attention (MHA) mechanism. We propose an alternative module that uses only a single shared projection matrix and multiple head embeddings (MHE), i.e. one per head. We empirically demonstrate that our MHE attention is substantially more memory efficient compared to alternative attention mechanisms while achieving high predictive performance retention ratio to vanilla MHA on several downstream tasks. MHE attention only requires a negligible fraction of additional parameters (3nd, where n is the number of attention heads and d the size of the head embeddings) compared to a single-head attention, while MHA requires (3n2-3n)d2-3nd additional parameters.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 73 of its 89 references that are in the map. First posted on arXiv 11 Oct 2023.

Builds on

73 of 89 references.

References · 73

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  9. 2020Scaling Laws for Neural Language Modelscited by 6,411
  10. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  11. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  12. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
38 more
  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  2. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  8. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  10. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  12. 2020Reformer: The Efficient Transformercited by 1,658
  13. 2020Rethinking Attention with Performerscited by 1,584
  14. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  15. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  16. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  17. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  18. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  19. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  20. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  21. 2020Efficient Transformers: A Surveycited by 784
  22. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  23. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
  24. 2019Green AIcited by 620
  25. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
  26. 2021Datasets: A Community Library for Natural Language Processingcited by 526
  27. 2019Quantifying the Carbon Emissions of Machine Learningcited by 516
  28. 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
  29. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  30. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  31. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  32. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  33. 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 413
  34. 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
  35. 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 364
  36. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  37. 2021FNet: Mixing Tokens with Fourier Transformscited by 343
  38. 2019Q8BERT: Quantized 8Bit BERTcited by 296

50 most cited of 73 All 73 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.