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

迈向基于原则性样本选择的高效LLM退火

Towards Efficient LLMs Annealing with Principled Sample Selection

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Fudan University(复旦大学);Microsoft Research Asia(微软亚洲研究院)

Yuanjian Xu, Jianing Hao, Wanbo Zhang, Zhong Li, Guang Zhang

AI总结:

本文通过损失景观的谱几何特性,将退火阶段的数据选择建模为有约束优化问题,提出DiReCT框架,利用Hessian谱对梯度施加方向约束,实现高效样本选择,显著提升模型性能。

摘要:

退火阶段是LLM预训练中关键的收敛阶段,最终决定模型质量。然而,在此阶段有效选择训练数据仍是一个关键挑战。当前策略依赖于经验启发式方法,如领域过滤或上下文扩展,缺乏优化理论的原则性基础。在这项工作中,我们通过损失景观的谱几何视角来刻画退火阶段。我们认为,最优收敛需要梯度更新满足不同特征方向上的异构约束。基于这一见解,我们将数据选择形式化为满足这些方向约束的问题。为此,我们提出了DiReCT(方向约束训练),这是一个新颖的框架,将退火阶段的样本选择重新表述为约束优化问题。通过基于Hessian的谱特性对每个样本的梯度施加显式的方向约束,DiReCT识别出与最优曲率感知下降路径一致的样本。跨多种模型尺度的广泛实验表明,DiReCT始终达到最先进的性能。为便于未来研究,代码可在https://github.com/xuyj233/Direct获取。

英文摘要:

The annealing phase is a pivotal convergence stage in LLM pre-training that ultimately determines final model quality. However, effectively selecting training data during this phase remains a key challenge. Current strategies rely on empirical heuristics, such as domain filtering or context extension, which lack a principled grounding in optimization theory. In this work, we characterize the annealing phase through the lens of the loss landscape's spectral geometry. We argue that optimal convergence requires gradient updates to satisfy heterogeneous constraints across different eigen-directions. Building on this insight, we formulate data selection as a problem of satisfying these directional constraints. To this end, we propose DiReCT (Directionally-Restrained Constrained Training), a novel framework that reformulates sample selection in the annealing stage as a constrained optimization problem. By imposing explicit directional constraints on per-sample gradients based on the spectral properties of the Hessian, DiReCT identifies samples that align with the optimal curvature-aware descent path. Extensive experiments across various model scales demonstrate that DiReCT consistently achieves state-of-the-art performance. For future research, code is available at https://github.com/xuyj233/Direct.

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

↑