Saved in:
Bibliographic Details
Main Authors: Parnichkun, Rom N., Tumma, Neehal, Thomas, Armin W., Moro, Alessandro, An, Qi, Suzuki, Taiji, Yamashita, Atsushi, Poli, Michael, Massaroli, Stefano
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.19561
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912349907058688
author Parnichkun, Rom N.
Tumma, Neehal
Thomas, Armin W.
Moro, Alessandro
An, Qi
Suzuki, Taiji
Yamashita, Atsushi
Poli, Michael
Massaroli, Stefano
author_facet Parnichkun, Rom N.
Tumma, Neehal
Thomas, Armin W.
Moro, Alessandro
An, Qi
Suzuki, Taiji
Yamashita, Atsushi
Poli, Michael
Massaroli, Stefano
contents The need to develop a general framework for architecture analysis is becoming increasingly important, given the expanding design space of sequence models. To this end, we draw insights from classical signal processing and control theory, to develop a quantitative measure of \textit{memory utilization}: the internal mechanisms through which a model stores past information to produce future outputs. This metric, which we call \textbf{\textit{effective state-size}} (ESS), is tailored to the fundamental class of systems with \textit{input-invariant} and \textit{input-varying linear operators}, encompassing a variety of computational units such as variants of attention, convolutions, and recurrences. Unlike prior work on memory utilization, which either relies on raw operator visualizations (e.g. attention maps), or simply the total \textit{memory capacity} (i.e. cache size) of a model, our metrics provide highly interpretable and actionable measurements. In particular, we show how ESS can be leveraged to improve initialization strategies, inform novel regularizers and advance the performance-efficiency frontier through model distillation. Furthermore, we demonstrate that the effect of context delimiters (such as end-of-speech tokens) on ESS highlights cross-architectural differences in how large language models utilize their available memory to recall information. Overall, we find that ESS provides valuable insights into the dynamics that dictate memory utilization, enabling the design of more efficient and effective sequence models.
format Preprint
id arxiv_https___arxiv_org_abs_2504_19561
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Quantifying Memory Utilization with Effective State-Size
Parnichkun, Rom N.
Tumma, Neehal
Thomas, Armin W.
Moro, Alessandro
An, Qi
Suzuki, Taiji
Yamashita, Atsushi
Poli, Michael
Massaroli, Stefano
Machine Learning
The need to develop a general framework for architecture analysis is becoming increasingly important, given the expanding design space of sequence models. To this end, we draw insights from classical signal processing and control theory, to develop a quantitative measure of \textit{memory utilization}: the internal mechanisms through which a model stores past information to produce future outputs. This metric, which we call \textbf{\textit{effective state-size}} (ESS), is tailored to the fundamental class of systems with \textit{input-invariant} and \textit{input-varying linear operators}, encompassing a variety of computational units such as variants of attention, convolutions, and recurrences. Unlike prior work on memory utilization, which either relies on raw operator visualizations (e.g. attention maps), or simply the total \textit{memory capacity} (i.e. cache size) of a model, our metrics provide highly interpretable and actionable measurements. In particular, we show how ESS can be leveraged to improve initialization strategies, inform novel regularizers and advance the performance-efficiency frontier through model distillation. Furthermore, we demonstrate that the effect of context delimiters (such as end-of-speech tokens) on ESS highlights cross-architectural differences in how large language models utilize their available memory to recall information. Overall, we find that ESS provides valuable insights into the dynamics that dictate memory utilization, enabling the design of more efficient and effective sequence models.
title Quantifying Memory Utilization with Effective State-Size
topic Machine Learning
url https://arxiv.org/abs/2504.19561