一种用于分析大语言模型训练动力学的可扩展损失景观曲率度量 A Scalable Measure of Loss Landscape Curvature for Analyzing the Training Dynamics of LLMs 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-01-23
⬇️ 4 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型训练时,损失景观的曲率变化对稳定性至关重要,但直接计算Hessian最大特征值成本极高。本文提出“临界锐度”,只需不到10次前向传播即可高效估计,并首次在70亿参数模型上验证了渐进锐化和稳定边缘等现象。还引入“相对临界锐度”分析预训练到微调的过渡,指导数据混合策略,为大规模训练诊断提供了实用工具。
领域机器学习/深度学习,大语言模型训练动力学
适合谁读需要一定专业背景(深度学习、优化理论)
核心贡献1. 提出计算高效的临界锐度度量,仅需少于10次前向传播即可捕捉Hessian锐度的关键现象;2. 首次在70亿参数规模上验证渐进锐化和稳定边缘,并引入相对临界锐度分析预训练到微调的过渡,指导数据混合。
关键数据临界锐度计算成本低于10次前向传播;在OLMo-2模型上验证,参数规模达70亿;成功捕捉渐进锐化和稳定边缘现象。
推荐理由如果你关心大模型训练为何不稳定、如何调参和配数据,这篇论文提供了既便宜又有效的曲率诊断工具,实验规模大到70亿参数,非常实用。
关键词["损失景观曲率", "Hessian锐度", "训练动力学", "大语言模型", "临界锐度", "数据混合"]

原文摘要

查看英文原文摘要

Understanding the curvature evolution of the loss landscape is fundamental to analyzing the training dynamics of neural networks. The most commonly studied measure, Hessian sharpness ($λ_{\max}^H$) -- the largest eigenvalue of the loss Hessian -- determines local training stability and interacts with the learning rate throughout training. Despite its significance in analyzing training dynamics, direct measurement of Hessian sharpness remains prohibitive for Large Language Models (LLMs) due to high computational cost. We analyze $\textit{critical sharpness}$ ($λ_c$), a computationally efficient measure requiring fewer than $10$ forward passes given the update direction $Δ\mathbfθ$. Critically, this measure captures well-documented Hessian sharpness phenomena, including progressive sharpening and Edge of Stability. Using this measure, we provide the first demonstration of these sharpness phenomena at scale, up to $7$B parameters, spanning both pre-training and mid-training of OLMo-2 models. We further introduce $\textit{relative critical sharpness}$ ($λ_c^{1\to 2}$), which quantifies the curvature of one loss landscape while optimizing another, to analyze the transition from pre-training to fine-tuning and guide data mixing strategies. Critical sharpness provides practitioners with a practical tool for diagnosing curvature dynamics and informing data composition choices at scale. More broadly, our work shows that scalable curvature measures can provide actionable insights for large-scale training.