mlsanityData to 7 Oct 2026

Empirical Capacity Model for Self-Attention Neural Networks

arXiv 2407.15425 ↗First posted 22 Jul 2024cs.LG cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Large pretrained self-attention neural networks, or transformers, have been very successful in various tasks recently. The performance of a model on a given task depends on its ability to memorize and generalize the training data. Large transformer models, which may have billions of parameters, in theory have a huge capacity to memorize content. However, the current algorithms for the optimization fall short of the theoretical capacity, and the capacity is also highly dependent on the content. In this paper, we focus on the memory capacity of these models obtained using common training algorithms and synthetic training data. Based on the results, we derive an empirical capacity model (ECM) for a generic transformer. The ECM can be used to design task-specific transformer models with an optimal number of parameters in cases where the target memorization capability of the task can be defined.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 22 Jul 2024.

Builds on

19 of 32 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
  7. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  8. 2020Hopfield Networks is All You Needcited by 461
  9. 2018An Empirical Model of Large-Batch Trainingcited by 268
  10. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  11. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  12. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 142
7 more
  1. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
  2. 2021A Survey of Visual Transformerscited by 117
  3. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
  4. 2019Overparameterized Neural Networks Implement Associative Memorycited by 45
  5. 2021On the Optimal Memorization Power of ReLU Neural Networkscited by 40
  6. 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
  7. 2024Bridging Associative Memory and Probabilistic Modelingcited by 5

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.