Skip to main navigation Skip to search Skip to main content

On Memorization and Generalization in Compact Transformers

Research output: Contribution to journal › Article › Academic › peer-review

Abstract

Large language models (LLMs) seem to demonstrate human-like understanding and generalization of language content. These arise from the capabilities of the models to memorize and generalize the training content. In this paper, we review the recent literature and theories on the mechanisms in self-attention neural networks. We also report three computational experiments that give insights into the underlying mechanisms and capabilities of the models. We also report three computational experiments showing that memorization capacity in compact transformers can be empirically linked to architectural parameters, that structured domain knowledge can be retained in small decoder-only models, and that in-context abstraction requires sufficient architectural depth. These findings suggest that the current models are superfluous for many specific applications, especially in on-edge use cases. A better understanding of application requirements and architecture details can be expected to help in building new LLM architectures that can be efficiently implemented on dedicated on-edge circuits.
Original languageEnglish
Article number1847
Number of pages39
JournalElectronics
Volume15
Issue number9
Early online date1 Apr 2026
DOIs
Publication statusPublished - 27 Apr 2026

Keywords

  • natural language processing
  • large language models
  • memory capacity
  • generalization
  • on-edge AI
  • transformer architectures
  • ASIC implementations
  • CLASSIFICATION

Fingerprint

Dive into the research topics of 'On Memorization and Generalization in Compact Transformers'. Together they form a unique fingerprint.

Cite this