Dispelling the Curse of Singularities in Neural Network Optimizations
Hengjie Cao, Mengyi Chen, Yifeng Yang, Fang Dong, Ruijun Huang, Anrui Chen, Jixian Zhou, Mingzhi Dong, Yujiang Wang, Dongsheng Li, Wenyi Fang, Yuanyi Lin, Fan Wu, Li Shang
TL;DR
The paper identifies a curse of singularities in neural network optimization, where mutually reinforcing growth of parametric and representation singularities leads to training instability and sharp loss explosions. Through a combination of theory on a one-layer Transformer and empirical observations, it shows that gradient updates amplify dominant singular directions and that gradient norms become less constrained as singularity grows. To mitigate this, the authors propose Parametric Singularity Smoothing (PSS), a lightweight mechanism that detects instability via gradient norms and smooths the dominant spectrum of weight matrices, preserving learned directions and improving trainability. Extensive experiments across BERT, GPT-2, and larger models demonstrate that PSS expands the stable learning-rate range, reduces instability, and maintains or improves downstream performance with minimal computational overhead, offering a practical stabilization tool for large-scale training.
Abstract
This work investigates the optimization instability of deep neural networks from a less-explored yet insightful perspective: the emergence and amplification of singularities in the parametric space. Our analysis reveals that parametric singularities inevitably grow with gradient updates and further intensify alignment with representations, leading to increased singularities in the representation space. We show that the gradient Frobenius norms are bounded by the top singular values of the weight matrices, and as training progresses, the mutually reinforcing growth of weight and representation singularities, termed the curse of singularities, relaxes these bounds, escalating the risk of sharp loss explosions. To counter this, we propose Parametric Singularity Smoothing (PSS), a lightweight, flexible, and effective method for smoothing the singular spectra of weight matrices. Extensive experiments across diverse datasets, architectures, and optimizers demonstrate that PSS mitigates instability, restores trainability even after failure, and improves both training efficiency and generalization.
