Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Data

Anton Changalidis, Aki Härmä
6/17/2025
cs.CL

No official code found. Best implementation: um-dacs-nlp/capacity (0 stars, CC-BY-4.0, last commit 2025-06-20).

Abstract

This paper studies how the model architecture and data configurations influence the empirical memorization capacity of generative transformers. The models are trained using synthetic text datasets derived from the Systematized Nomenclature of Medicine (SNOMED) knowledge graph: triplets, representing static connections, and sequences, simulating complex relation patterns. The results show that embedding size is the primary determinant of learning speed and capacity, while additional layers provide limited benefits and may hinder performance on simpler datasets. Activation functions play a crucial role, and Softmax demonstrates greater stability and capacity. Furthermore, increasing the complexity of the data set seems to improve the final memorization. These insights improve our understanding of transformer memory mechanisms and provide a framework for optimizing model design with structured real-world data.

View on arXivView PDF

Code Implementations(1)

CC-BY-4.0
00Python, Jupyter NotebookSep 17, 20241 years agoCC-BY-4.0

Similar Papers

Cite this paper

@article{changalidis2025capacity,
  title  = {Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Data},
  author = {Anton Changalidis and Aki Härmä},
  year   = {2025},
  eprint = {2506.14704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14704v1}
}

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/2506.14704.svg)](https://codeofpaper.com/paper/2506.14704)

Discussion