arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.28116cs.CL
收藏

机制驱动的LLM训练不稳定性抢先检测监控器

Mechanism-Aligned Observability for Training Instability of Large Language Models

HKUST(香港科技大学);Huawei(华为);Independent Researcher(独立研究者)

Ruixuan Huang, Yipei Wang, Wenyi Fang, Hantao Huang, Ansheng You, Shuai Wang, Fan Wu, Yang Zheng

AI总结:

针对大语言模型训练中的数值或超参数故障,提出基于模块功能角色的内部监控器,通过QK双线性分解谱熵和MoE路由器指标,在损失发散前数千步检测到不稳定性。

摘要:

前沿大语言模型训练消耗大量加速器集群和长时钟时间,使得稳定性故障发生时代价高昂。在数值或超参数故障已经破坏训练动态后,它可能持续数千步,而损失和梯度范数仍看似正常。我们通过从每个关键模块的功能角色以及预期故障产生可测量信号的最早计算位置推导内部监控器,研究机制驱动的训练不稳定性检测。对于低精度闪存注意力,我们监控QK双线性分解的谱熵,其第一阶项在损失完全崩溃前变得异常。对于MoE路由器,我们从其在专家选择中的作用推导指标。我们在低精度注意力、大学习率和组合故障上的故障注入实验表明,这些信号为不同故障提供了独特的特征,在损失发散前数千步触发警报。

英文摘要:

Frontier large language model training consumes massive accelerator fleets over long wall-clock times, making stability failures extremely costly. However, global symptoms such as loss divergences often emerge only after the underlying fault has already affected the training dynamics, further increasing the sunk compute. In which internal representation can a training fault become persistently and interpretably observable before it appears in global training metrics? We propose a mechanism-aligned principle for training observability: identify the internal state into which a fault is persistently written, derive the structure induced by its mechanism, and construct monitors in representations aligned with the computation of the affected module. For FlashAttention, we show that biased backward errors accumulate into a persistent low-dimensional structure in weight updates, producing spectral concentration. For MoE routers, we characterize routing dynamics through per-token routing behavior rather than parameter similarity, which may change without altering the routing function. Experiments show that the two monitors respond selectively to changes in their corresponding modules, before degradation becomes visible in global training metrics.

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

↑