Two Layers of Attention Stability: A Koopman-Operator Analysis of Linear and Softmax Attention
zhenglong chen
Abstract
We study long-horizon attention stability by separating the $n\times n$ token-mixing matrix from the $d\times d$ projected dynamical operator. Under a fixed shared encoder, full rank, one head with full-width square projections, and an unmasked full window, the optimal dual operator equals the EDMD estimator, giving a Koopman/Galerkin interpretation and an approximation-error floor. Causal masking generally precludes this global identity. Independently, softmax and absolute-row normalization supply an input-uniform induced-norm bound for compatible token-mixing products, regardless of entry signs. Per-step spectral radius alone does not provide this bound, and neither certificate guarantees complete-network rollout stability. Non-affine LayerNorm also makes the full-window least-squares solution non-identifiable under a generic-rank assumption, whereas non-affine RMSNorm preserves rank. Across $120$ synthetic runs, RN-LA and softmax meet a joint rollout-and-training-fit criterion in $18/20$ and $17/20$ runs, with no non-finite rollout. Exact spectral-radius and spectral-norm controls do not close this joint gap. Free-running ETTh1 and input-scale diagnostics complement the ETT/Weather forecasting experiments. The evaluated sign-general normalizers cost $O(n^2)$; structured spectral-radius constraints can be linear in sequence length, while the non-negative row-certified special case recovers existing normalized linear attention. The framework thus connects scoped projected-dynamics theory with token-mixing design criteria and finite-horizon empirical diagnostics.
Successful Page Load