arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.04202cs.LG
收藏

谱对齐作为神经网络训练中损失爆炸的预测指标

Spectral Alignment as Predictor of Loss Explosion in Neural Network Training

Tsinghua University(清华大学);Beijing Institute of Mathematical Sciences and Applications(北京数学科学研究院)

Haiquan Qiu, You Wu, Yingjie Tan, Yaqing Wang, Quanming Yao

AI总结:

针对神经网络训练中损失爆炸难以及时预警的问题,提出具有理论基础的谱对齐(SA)指标,通过监测层输入与权重矩阵主奇异向量的分布对齐符号多样性崩塌,实现比传统指标更早更清晰的损失爆炸预警,且计算开销低,实用性强。

摘要:

深度神经网络训练中的损失爆炸可能使耗费数百万美元的训练运行付诸东流。权重范数、梯度范数等传统监测指标通常是滞后且模糊的预测因子,因为它们的数值在不同模型间甚至同一模型的不同层间差异极大,难以建立统一标准来检测即将发生的故障。我们提出谱对齐(Spectral Alignment,SA)——一种具有理论基础的新型指标,用于监测层输入与权重矩阵主奇异向量之间的分布对齐情况。我们证明,这种对齐的符号多样性崩塌是表征崩塌和训练发散的强有力早期预测信号。在语言模型上的实验结果表明,监测SA分布能比传统标量指标显著更早、更清晰地发出损失爆炸预警。SA的计算开销极低,是保障模型训练安全的实用工具。

英文摘要:

Loss explosions in training deep neural networks can nullify multi-million dollar training runs. Conventional monitoring metrics like weight and gradient norms are often lagging and ambiguous predictors, as their values vary dramatically across different models and even between layers of the same model, making it difficult to establish a unified standard for detecting impending failure. We introduce Spectral Alignment (SA), a novel, theoretically-grounded metric that monitors the distributional alignment between layer inputs and the principal singular vectors of weight matrices. We show that a collapse in the sign diversity of this alignment is a powerful early predictor of representational collapse and training divergence. Empirical results on language models demonstrate that monitoring the SA distribution provides a significantly earlier and clearer warning of loss explosions than traditional scalar metrics. SA's low computational overhead makes it a practical tool for safeguarding model training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑