arXiv:2510.09379cs.LGcs.AI2025-10被引 1

用特征值分析统一评估注意力与状态空间模型的记忆能力

Eigenvalues as a Metric for Memory Dynamics in Sequence Models

  • 将注意力模型纳入动力系统框架,以特征值谱分析其记忆动态
  • 特征值影响长程依赖建模,不同任务有对应的谱特征签名
  • 可指导网络结构修改、训练优化和特征重要性分析

尽管softmax注意力在序列建模中表现卓越,但其二次复杂度促使线性替代方案如状态空间模型(SSMs)的发展。然而两类模型的结构差异阻碍了它们在记忆动态上的直接比较,亟需一个通用指标来分析、解释和改进其信息处理能力。受近期基于特征值指导的SSM性能提升启发,我们利用动力系统框架,将注意力模型纳入与SSMs统一的分析框架中。通过在多种注意力模型和SSMs上进行广泛实证研究,我们发现特征值对两类模型的记忆能力和长程依赖建模均有显著影响,揭示出与任务需求一致的谱特征签名。基于这些发现,我们展示了如何利用谱特征指导架构修改、训练过程优化以及特征重要性判断。结果表明,特征值分析可作为解释、阐明并最终提升序列模型能力的原理性度量工具。

原文摘要 · Abstract (English)

While softmax attention drives state-of-the-art performance in sequence modeling, its quadratic complexity motivates linear alternatives such as state space models (SSMs). Structural differences between the two model classes, however, hinder direct comparisons of their memory dynamics, creating the need for a common metric to analyze, interpret, and improve their information processing capabilities. Inspired by recent advances in SSM performance driven by eigenvalue-guided insights, we leverage the dynamical systems framework to bring attention models into a unified analytical framework with SSMs. This allows us to perform a structured analysis, which investigates the applicability of an eigenvalue-spectrum memory dynamics metric to attention models. To this end, we first conduct an extensive empirical study across diverse attention-based models and SSMs on a range of benchmarks. We show that, for both model classes, eigenvalues influence key aspects of memory and long-range dependency modeling, revealing spectral signatures that align with task requirements. Building on these findings, we show how spectral signatures can motivate architectural modifications, how they can be guided through the training process, and how they can provide information about feature importance. The results thereby enable and emphasize the role of eigenvalue analysis as a principled metric for interpreting, explaining, and ultimately improving the capabilities of sequence models.

序列建模特征值分析注意力机制状态空间模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。