Saved in:
Bibliographic Details
Main Authors: Härmä, Aki, Pietrasik, Marcin, Wilbik, Anna
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.15425
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917737939337216
author Härmä, Aki
Pietrasik, Marcin
Wilbik, Anna
author_facet Härmä, Aki
Pietrasik, Marcin
Wilbik, Anna
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_15425
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Empirical Capacity Model for Self-Attention Neural Networks
Härmä, Aki
Pietrasik, Marcin
Wilbik, Anna
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Empirical Capacity Model for Self-Attention Neural Networks
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2407.15425