cs.LGOct 14, 2026

CAST: History-Adaptive Spectral Clipping for LLM Pretraining

Authors: Jiacheng Li, Jianchao Tan, Kefeng Zhang, Yuchen Xie, Xunliang Cai

Organizations: Meituan, Beijing, China

Abstract

Soft spectral clipping (SSC) reduces gradient singular values, but its effect depends on the gradient scale and clipping threshold. We introduce CAST (Clipping with Adaptive Scales and Thresholds), a history-adaptive extension of SSC. AdamW's previous second moment sets row and column scales. An exponential moving average of the clipped output's estimated spectral norm sets each matrix's threshold. CAST restores the original coordinates before the AdamW update. We train a mixture-of-experts (MoE) model with 19.08B total parameters for 83.89B tokens. CAST achieves lower training and mean validation losses than nine gradient-processing baselines, with the fewest relative gradient spikes. It reaches the best baseline's final smoothed training loss in 7.2% fewer steps.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Enhancing LLM Training via Spectral Clipping

    Mar 15, 2026Xiaowen Jiang, Andrei Semenov, Sebastian U. StichLLM Input OptimizationSpectral Regularization

  2. Spectral Allocation: Why Muon Outperforms Adam, and How to Improve Muon

    Aug 26, 2026Xiaodong Wu, Wenyi Yu, Chao Zhang +1Deep Learning OptimizationMuon Optimizer

  3. ORCA: The Annealed Spectral Conditioning Optimizer for Faster, Better LLM Training

    Oct 5, 2026Yuanshi Liu, Boyuan Jiang, Liang Hou +4Spectral RegularizationDeep Learning Optimization