arXiv:2507.01241cs.LGcs.AI2025-07被引 3

用随机共轭子梯度提升大模型训练速度与稳定性

Beyond First-Order: Training LLMs with Stochastic Conjugate Subgradients and AdamW

  • 结合自适应采样与共轭子梯度方向,优化搜索路径
  • 收敛速度更快,且在多数据集上超越传统SGD表现
  • 适合追求高效训练的大模型研究者与工程团队

基于随机梯度下降(SGD)的优化方法长期主导大语言模型(LLM)训练,但其在大规模应用中的性能局限日益显现。本文提出一种面向LLM训练的随机共轭子梯度方法,结合自适应采样策略,动态调整样本规模;通过随机共轭子梯度确定搜索方向,并采用类似AdamW的自适应步长机制。该方法在保持一阶方法优势的同时,有效应对训练过程中的非凸性与非光滑性问题。理论分析表明其具有更优收敛性,实验结果显示该方法不仅维持了传统SGD的可扩展性,还在多个数据集上显著提升了优化速度与精度。

原文摘要 · Abstract (English)

Stochastic gradient-based descent (SGD), have long been central to training large language models (LLMs). However, their effectiveness is increasingly being questioned, particularly in large-scale applications where empirical evidence suggests potential performance limitations. In response, this paper proposes a stochastic conjugate subgradient method together with adaptive sampling tailored specifically for training LLMs. The method not only achieves faster convergence per iteration but also demonstrates improved scalability compared to traditional SGD techniques. It leverages sample complexity analysis to adaptively choose the sample size, employs a stochastic conjugate subgradient approach to determine search directions and utilizing an AdamW-like algorithm to adaptively adjust step sizes. This approach preserves the key advantages of first-order methods while effectively addressing the nonconvexity and non-smoothness inherent in LLMs training. Additionally, we provide a detailed analysis of the advantage of the algorithm. Experimental results show that the proposed method not only maintains, but in many cases surpasses, the scalability of traditional SGD techniques, significantly enhancing both the speed and accuracy of the optimization process.

大模型训练优化算法随机梯度

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。