跳到正文
实时
Liquid AI Blog·· 2025-04-2765

有效状态大小(ESS):衡量模型内存利用率的代理指标

How Effectively Does a Model Use Its Memory

要点速览

Effective State-Size (ESS) 是一个衡量模型内存利用率的代理指标。通过分析深度学习序列模型(如注意力、SSM、门控卷积)的输入依赖矩阵 T(u),定义 ESS 为 T(u) 子矩阵的秩,揭示模型状态压缩、初始化和特征化、状态调制等关键特性。研究发现,有效调节 ESS 的 LLM 在高召回任务中表现更优。

正文

Even with the same state/cache size, models can differ significantly in how well they utilize memory—impacting recall, compression, and trainability.

We introduce Effective State-Size (ESS): A proxy metric for memory utilization.

Read the paper

At its core, many deep learning sequence models—attention, SSMs, gated convs—can be expressed as: y = T(u)u, where T(u) is an input-dependent matrix.

By extending classic signal processing results, we show that any equivalent recurrence must materialize a state whose size is at least the rank of the submatrices of T(u). We define this rank as the ESS and interpret it as a measure of the model’s memory utilization.

Our analysis of ESS reveals several key insights:

  • State compression: Sequence models with high ESS (high memory utilization) are harder to distill into smaller-state students.
  • Initialization and featurization: ESS can inform initialization and featurization schemes for better recall performance.
  • State modulation: ESS can be tracked at each time step, revealing how models adjust memory usage in response to context—e.g., around EOS tokens. We find that LLMs that modulate ESS more effectively tend to perform better on recall-intensive tasks.

This work was accepted at ICML 2025.

For all the details refer to the paper: “Quantifying Memory Utilization with Effective State-Size”.

Citation

If you use this work, please cite the technical report:

Rom N. Parnichkun, Neehal Tumma, Armin W. Thomas, Alessandro Moro, Qi An, Taiji Suzuki, Atsushi Yamashita, Michael Poli, and Stefano Massaroli (2025). Quantifying Memory Utilization with Effective State-Size. arXiv:2504.19561.

来源: Liquid AI Blog · liquid.ai