Task-Level Insights from Eigenvalues across Sequence Models

Rahel Rickenbach, Jelena Trisovic, Alexandre Didier, Jerome Sieber, Melanie N. ZeilingerarXiv 2025 · DOI

Introduction

The rapid evolution of sequence modeling has produced a diverse array of architectures, from standard Transformers to State Space Models (SSMs) like Mamba. While empirical benchmarks distinguish these models by performance, a deeper understanding of their internal mechanics—specifically how they manage memory and selectivity—has remained elusive. This paper introduces a unified framework to analyze these models as dynamical systems, using eigenvalue spectra as a "microscope" to observe how information is processed and retained.

The Dynamical Systems Framework

By representing architectures such as Softmax Attention, Norm Attention, and Linear Attention as Linear Parameter-Varying (LPV) systems, the authors describe each model through a state transition matrix, $\Lambda_i$. The eigenvalues of this matrix provide a direct window into the model's memory strategy:

  • Eigenvalues near 1 signify slow decay, indicating long-term information retention.
  • Eigenvalues near 0 indicate rapid forgetting, serving as a mechanism for selective gating.
  • Eigenvalues > 1 suggest potential instability, a trait often found in standard attention but constrained in SSMs.

Task-Specific Spectral Signatures

A core finding of this research is that the nature of the task fundamentally shapes the learned eigenvalue distribution. For instance, in hierarchical reasoning tasks like ListOps, where every token is critical for the final answer, models learn to avoid eigenvalues near zero to prevent information loss. In contrast, language modeling on WikiText-103 requires significant "gating" to filter out irrelevant context, resulting in prominent spectral peaks near zero.

Comprehensive eigenvalue spectra across CIFAR-10, IMDb, ListOps, and WikiText, showing how different tasks drive unique spectral signatures.

Architectural Innovations and Memory Offloading

The research highlights how specific architectural components physically reallocate processing duties, allowing the dynamical system to focus on memory or selectivity:

  • Convolutions: Adding a 1D convolution before an attention layer shifts the spectrum. The convolution handles local, short-range context, "freezing" the recurrent part of the model to focus on selective gating (shifting eigenvalues toward zero). On CIFAR-10, this simple addition improved Norm Attention performance by 13.2%.
  • Gating Mechanisms: Explicit gating (e.g., SiLU-gated projections) alleviates "dynamical stress." Without it, models like Softmax Attention often "hack" their own dynamics to perform gating, leading to a messy mix of very low and very high eigenvalues. Adding explicit gating to Norm Attention on the MQAR task transformed it from a failure to a near-perfect success (95.3% accuracy).
Detailed spectral analysis for the CIFAR-10 image classification task, illustrating the distribution of eigenvalues across layers.

Key Results and Performance

The analysis demonstrates that Mamba-2 occupies a "sweet spot," maintaining a flexible eigenvalue distribution that avoids the instability of Transformers while offering more adaptability than older Linear Time-Invariant (LTI) models like S4. This versatility allows it to excel at both long-range reasoning and selective recall tasks.

Conclusion and Future Directions

This spectral analysis provides a principled way to compare disparate architectures under a single mathematical lens. The authors suggest that these insights could lead to informed initialization, where models are initialized with eigenvalue spectra already "tuned" for the specific memory requirements of a target task, potentially accelerating training and improving final performance.

Summary updated

BibTeX
@misc{rickenbach2025task,
  author = {Rahel Rickenbach and Jelena Trisovic and Alexandre Didier and Jerome Sieber and Melanie N. Zeilinger},
  title = {{Task-Level Insights from Eigenvalues across Sequence Models}},
  year = {2025},
  eprint = {2510.09379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09379},
}
Figure