Residual Koopman Spectral Profiling for Predicting and Preventing Transformer Training Instability
Not on the map. Why?
Abstract (arXiv)
Training divergence in transformers wastes compute, yet practitioners discover instability only after expensive runs begin. They therefore need an expected probability of failure for a transformer before training starts. Our study of Residual Koopman Spectral Profiling (RKSP) provides such an estimate. From a single forward pass at initialization, RKSP extracts Koopman spectral features by applying whitened dynamic mode decomposition to layer-wise residual snapshots. Our central diagnostic, the near-unit spectral mass, quantifies the fraction of modes concentrated near the unit circle, which captures instability risk. For predicting divergence across extensive configurations, this estimator achieves an AUROC of 0.995, outperforming the best gradient baseline. We further make this diagnostic actionable through Koopman Spectral Shaping (KSS), which reshapes spectra during training. We empirically validate that our method works in practice: RKSP predicts divergence at initialization, and when RKSP flags high risk, turning on KSS successfully prevents divergence. In the challenging high learning rate regime without normalization layers, KSS reduces the divergence rate from 66.7% to 12.5% and enables learning rates that are 50% to 150% higher. These findings generalize to WikiText-103 language modeling, vision transformers on CIFAR-10, and pretrained language models, including GPT-2 and LLaMA-2 up to 7B, as well as emerging architectures such as MoE, Mamba-style SSMs, and KAN.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 26 Feb 2026.
Builds on
32 of 51 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2016Layer Normalizationcited by 5,579
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2018Spectral Normalization for Generative Adversarial Networkscited by 1,618
20 more
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
- 2016Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networkscited by 541
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2017Deep learning for universal linear embeddings of nonlinear dynamicscited by 491
- 2023Symbolic Discovery of Optimization Algorithmscited by 423
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
- 2017Stable Architectures for Deep Neural Networkscited by 340
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 260
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 260
- 2019Fixup Initialization: Residual Learning Without Normalizationcited by 194
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
- 2016Linear predictors for nonlinear dynamical systems: Koopman operator meets model predictive controlcited by 134
- 2017Resurrecting the sigmoid in deep learning through dynamical isometry: theory and practicecited by 132
- 2015Optimal whitening and decorrelationcited by 93
- 2022Residual Dynamic Mode Decomposition: Robust and verified Koopmanismcited by 36
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Variance Is Not Importance: Structural Analysis of Transformer Compressibility Across Model Scales
- 2026Learnable Koopman-Enhanced Transformer-Based Time Series Forecasting with Spectral Control
- 2026Tensor Decomposition of Transformer Key-Value Caches: Spectral Structure and Format Comparison
- 2026Geometric and Behavioral Stratification in Transformer Residual Streams
- 2026The Residual Stream Is All You Need: On the Redundancy of the KV Cache in Transformer Inference
- 2025Mixture-of-Transformers Learn Faster: A Theoretical Study on Classification Problems
- 2024ElastiFormer: Learned Redundancy Reduction in Transformer via Self-Distillation
- 2026LEAP: Layer-wise Exit-Aware Pretraining for Efficient Transformer Inference