Empirical Capacity Model for Self-Attention Neural Networks

Aki Härmä, Marcin Pietrasik, Anna Wilbik
7/22/2024
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hrm2024empirical,
  title  = {Empirical Capacity Model for Self-Attention Neural Networks},
  author = {Aki Härmä and Marcin Pietrasik and Anna Wilbik},
  year   = {2024},
  eprint = {2407.15425},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.15425v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.15425.svg)](https://codeofpaper.com/paper/2407.15425)

Discussion