acceptodds
Published as a conference paper at NeurIPS 2026

Two Layers of Attention Stability: A Koopman-Operator Analysis of Linear and Softmax Attention

zhenglong chen

Abstract

We develop a Koopman-operator analysis of self-attention that resolves a long-standing puzzle: why does linear attention diverge on long sequences while softmax attention remains stable, even though both share the same next-step prediction objective? We show that attention stability is intrinsically a *two-layer* problem. The *architectural layer* concerns the spectrum of the token-mixing matrix and is data-independent; the *dynamical layer* concerns the spectrum of the dual operator induced by training and should be data-determined. We prove three concrete results within this framework: (i) under a shared encoder, the dual operator of linear attention coincides with the EDMD Koopman estimator at the global optimum, and its spectral radius is unconstrained; (ii) causal softmax attention enjoys an architectural guarantee via row-stochasticity, while its value projection leaves the dynamical layer entirely unconstrained; (iii) LayerNorm makes the empirical Gram matrix rank-deficient with kernel , producing a -parameter family of loss-equivalent but spectrally distinct EDMD solutions, while RMSNorm preserves invertibility. The framework yields an immediate design principle—constrain the architectural layer, free the dynamical layer—which we instantiate as two stabilized linear-attention variants (SN-LA, RN-LA). Numerical experiments reveal a *hierarchy* of architectural stability: vanilla linear attention has neither bound and diverges immediately under autoregressive rollout; our stabilized variants enforce only the single-pass spectral bound and delay divergence; softmax attains the strictly stronger pointwise contraction via row-stochasticity and remains bounded. On real time-series benchmarks (ETT, Weather), our methods close of the vanilla-to-softmax gap and surpass softmax on datasets at long horizons, while preserving the dynamical-layer freedom that constraints on the dual operator forfeit.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_qpRuOpenReview ↗
Rating
4
Clarity
2
Confidence
2
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper attempts to understand the difference between linear and softmax attention on the long distance stability. The authors argue that the dual operator of linear attention has unconstrained radius, but softmax attention has ρ≤1\rho \le 1. Based on these observations, the authors design two new frameworks for linear attention by imposing a spectral bound on the architectural matrix AlinA^{\mathrm{lin}} and leave the dual operator unconstrained. Finally, the authors conduct several numerical experiments to verify these choices.

Strengths and weaknesses

Strengths

I think one strength is that the paper gives a clear chain of discussion: connecting linear attention to the Koopman language, observing the unconstrained problem of the dual operator, discussing the softmax attention, comparing with linear attention, giving new design principle, and verifying that in experiments.

Weaknesses

  • My main concern is about the use of Koopman language, which, I think, seems unnecessary. In particular, the main results, including vanilla linear attention is unstable, softmax is stable, and SN-LA/RN-LA improve stability, can be directly explained by elementary properties of unnormalized vs. normalized token-mixing matrices (e.g., Alin(Z)=ZWQWK⊤Z⊤A_{\mathrm{lin}}(Z)=ZW_QW_K^\top Z^\top is scale-sensitive and unconstrained, causal softmax is row-stochastic, and the proposed methods explicitly normalize AlinA_{\mathrm{lin}}). The authors did not identify a result or design choice that genuinely depends on Koopman theory; the current presentation risks overselling a linear-algebraic normalization story using sophisticated operator-theoretic language.

  • Furthermore, the analysis of linear attention should more explicitly account for input magnitude. Specifically, rescaling the token matrix ZZ by α\alpha rescales AlinA_{\mathrm{lin}} by α2\alpha^2, and hence rescales its spectral radius by α2\alpha^2. Thus, the instability of vanilla linear attention is not solely an architectural absence of a spectral constraint; it is also strongly related to input magnitude. This makes the comparison with softmax partly a comparison between unnormalized bilinear mixing and normalized row-stochastic mixing, which is incomplete. In this sense, I think the explanation may be overgeneralized.

  • In addition, the theory analyzes rollout instability using Zt=Z0(C∗)tZ_t = Z_0(C^*)^t. But in attention, the realized mixing matrix is input-dependent and should be written as A(Z)A(Z). Thus autoregressive prediction induces a nonlinear, state-dependent update Zt+1=A(Zt)ZtWVZ_{t+1}=A(Z_t)Z_tW_V, rather than the powers of one fixed matrix.

  • The clarity has some issues:

    • The authors argue that the token-mixing matrix is data-independent, but that matrix depends on ZZ explicitly.
    • Where is the formal definition of ρ\rho?
    • Where is the formal definition of shared encoder?
    • Furthermore, I don’t understand why Lemma 1 is stated in the main paper. It just lists some well-known, direct facts of softmax, which is confusing.
    • Corollary 1 is also confusing—it is just a direct result of triangular matrices.
Questions
  1. Is Koopman language really necessary in the paper?

  2. Following the second point of the Weaknesses, what if the data is normalized?

  3. Again, following the third point of the Weakness, why did the authors not write the rollout with A(Zt)A(Z_t) depending on ZtZ_{t}?

  4. Please other questions in the fourth point of the Weaknesses above.

Limitations

Yes, but only partially.

Paper formatting concerns

No such issue.

Final justification

The response has clarified my question on the use of Koopman language, so I increased my score from 3 to 4. But, after reading other reviewers' comment, I'm not sure about the practical significance, so I lowered my confidence to 2.

Reviewer_4CvaOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This work addresses the central challenge of understanding why linear attention diverges on long sequences while softmax attention remains stable. The authors introduce a "dual-level stability" framework based on Koopman-operator theory, decoupling the attention mechanism into a data-independent "architectural layer" (token-mixing matrix) and a data-driven "dynamical layer" (state-space dual operator). Based on this framework, the paper attempts to explain the divergence of vanilla linear attention and the robustness of softmax attention, and to reveal the fundamental differences in architectural stability between LayerNorm and RMSNorm. Furthermore, it proposes two improved variants (SN-LA and RN-LA) that constrain only the architectural layer.

Strengths and weaknesses

Strengths:

  1. The paper introduces a highly novel perspective by deeply integrating the attention mechanism with Extended Dynamic Mode Decomposition (EDMD) and Koopman operator theory. This provides a unified mathematical framework, and the design philosophy of decoupling architectural constraints from dynamical freedom is inspiring.

  2. The theoretical claims presented in the paper are well-supported by rigorous mathematical proofs and carefully designed synthetic experiments. Specifically, the derivations of theoretical boundaries, such as population limits and truncation error lower bounds (e.g., Theorems 1-6), are remarkably solid.

Weaknesses:

  1. The proposed methods lose the core computational advantage of linear attention models. The proposed SN-LA and RN-LA require the explicit computation of the n×n attention matrix, degrading the computational complexity to O(n^2) and rendering the methods primarily of theoretical diagnostic value rather than deployable linear alternatives.

  2. The evaluation on real-world benchmarks does not fully expose the vulnerabilities of autoregressive generation. On the ETT and Weather datasets, the models utilize a patch-based decoder (PatchTST) rather than token-by-token autoregressive rollout, which somewhat circumvents the error accumulation issues that typically plague models during long-range generation and slightly weakens the validity of the empirical results.

  3. The theoretical analysis relies on somewhat idealized assumptions that may not fully capture the complex mechanisms of modern Transformers, particularly the single-head and shared-encoder assumptions. By assuming fixed and shared encoders for queries and keys, the framework overlooks the intricate interactions of multi-head mechanisms and the dynamic updates of the encoders themselves during practical end-to-end training.

  4. There remain hidden risks of divergence during long-sequence autoregressive rollouts. Although the new methods guarantee a single-step spectral radius 𝜌(𝐴)≤1, this is necessary but not sufficient for multi-step autoregressive generation; experiments (Figure 2) show that SN-LA and RN-LA merely delay the onset of divergence, failing to achieve the absolute rollout stability of softmax attention which relies on point-wise contraction (||A||_{inf} ≤1).

Questions
  1. Is it possible to approximate the architectural constraint \rho(A_lin) <= 1 while preserving the O(n) computational complexity? For instance, could this be achieved through specific regularization on the parameter spaces of W_Q and W_K during training, rather than explicitly computing the n x n matrix?

  2. How do you view the applicability of this theoretical framework under more complex, non-linear benchmarks where the linear approximation heavily degrades? For highly non-linear real-world dynamical systems, the truncation error epsilon_d^2 of the linear Koopman estimator can be substantial.

  3. How does your dual-level stability framework apply to recent linear-time sequence models like Mamba or RWKV? I am curious if their empirical stability in long-sequence generation can be explained or diagnosed through the lens of your Koopman-operator architectural layer.

  4. How does the stability of a single attention layer propagate in deep networks? Since the theoretical analysis primarily focuses on a single layer, I wonder if compounding effects in multi-layer architectures require even stricter bounds on the spectral radius rho(A_tilde).

  5. How would other normalization schemes affect the stability of the architectural layer in your framework? While the distinction between LayerNorm and RMSNorm is elegantly analyzed, it would be interesting to know the impact of techniques like GroupNorm or the choice between pre-norm versus post-norm structures.

Limitations

Although the authors propose an elegant analytical framework based on Koopman-operator theory, this method suffers from overly idealized assumptions, such as the reliance on single-head and shared-encoder configurations, which do not fully reflect the complex dynamics of modern Transformers. Furthermore, the paper fails to introduce a practical and highly usable architectural improvement based on this theoretical analysis. Specifically, the proposed variants (SN-LA and RN-LA) critically regress to a computational complexity of 𝑂(𝑛^2), completely losing the primary efficiency advantage of linear sequence models, while still delivering empirical performance that remains inferior to standard full self-attention.

Paper formatting concerns

No major issues in this paper with respect to violation of formatting, anonymity, etc.

Final justification

I appreciate the authors’ thorough and careful responses. However, my core concern (W1) has only been partially addressed. Overall, I think the theoretical contributions presented in this work are valuable, and I therefore retain my borderline accept\textbf{borderline~accept} score.

Reviewer_LStaOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper studies the stability discrepancies between linear and softmax attention architectures, when handling a long context. The authors formalize the stability into two factors:

  1. Architectural Layer: Governed by the spectrum of the n×n token-mixing matrix or the Gramia of the context, which deliver information within a sequence independently of the data.
  2. Dynamical Layer: Governed by the spectrum of the d×d dual operator or the projections in attention layers, which is learned from and determined by the training data.

Then, the authors attribute the long-input issue of linear attention to an unconstrained Extended Dynamic Mode Decomposition (EDMD) in the Dynamical Layer. To address the issue, the authors propose two stabilized variants: Spectral-Normalized (SN-LA) and Row-Normalized (RN-LA) via explicitly constraint in architectural layer.

Strengths and weaknesses

Strengths:

  1. It looks like the method is very simple and straightforward.
  • SN-LA (eq.9) only requires computing the spectural value for deviation.
  • RN-LA (eq.10) only requires the normalization of the sum.
  1. To me, the presentation is clear and the math is rigorous.

  2. I also appreciate the transparency of the paper. The authors privode "almost-ready-to-run" pseudo code.

Weaknesses:

  1. I think the computation time is my concern. Linear attention is O(N), but both new methods require at least O(N^2).

  2. The experimental result Figure 2 does not support the claim, if I understand correctly. The model still diverges.

Questions

Please see weakness.

Limitations

Yes.

Paper formatting concerns

No

Final justification

The authors addressed my W1 concern, but W2 seems a critical limitation.

Comments on the paper

1 comment
Meta-review

The reviewers generally agree that the paper presents an interesting theoretical perspective on the stability of linear and softmax attention. At the same time, there are two main issues that should be addressed in the rebuttal. First, several reviewers ask for a clearer discussion of the practical implications of the proposed methods. In particular, they note that the proposed stabilized variants appear to sacrifice the computational efficiency that motivates linear attention, while the current experiments suggest that they improve but do not fully resolve long-horizon instability. Clarifying the intended role of these methods and the practical design insights that follow from the theory would strengthen the paper. Second, the reviewers encourage the authors to better clarify the relationship between the theoretical framework and practical attention models. In particular, they ask for a clearer discussion of the assumptions underlying the analysis, their applicability to modern attention architectures. Addressing these points convincingly would substantially strengthen the paper and improve its prospects for acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.