arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.00576cs.LGcs.AI
收藏

数据分布作为引导优化器实现LLM超一般化的杠杆

Data Distribution as a Lever for Guiding Optimizers Toward Superior Generalization in LLMs

University of California, Los Angeles(加州大学洛杉矶分校);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Tushaar Gangavarapu, Jiping Li, Christopher Vattheuer, Zhangyang Wang, Baharan Mirzasoleiman

AI总结:

通过调整训练数据分布降低简单性偏见,提升大型语言模型的泛化能力,实验表明在数学推理任务中性能提升达18%。

摘要:

在训练大型语言模型(LLMs)时,修改训练数据分布能否引导优化器向具有改进泛化能力的解决方案发展?本文理论分析了带有多头线性自注意力机制的上下文线性回归模型,并比较了两种基于梯度的优化器——梯度下降(GD)和锐度感知最小化(SAM)的训练动态。后者具有更优的泛化性能,但对训练甚至中等规模的LLMs来说成本过高。我们首次证明,SAM会降低简单性偏见(SB)——优化器在训练早期倾向于学习更简单特征的倾向,并将这种减少识别为其改进泛化性能的关键因素。受此启发,我们展示通过在训练过程中上采样或增强后期学习的例子来改变训练数据分布,同样能降低SB并提高泛化能力。我们的广泛实验表明,我们的策略提高了多个LLM的性能,包括Phi2-2.7B、Llama3.2-1B、Gemma3-1B-PT和Qwen3-0.6B-Base,在使用AdamW和Muon微调时,在数学推理任务中实现了高达18%的相对准确率提升。

英文摘要:

Can modifying the training data distribution guide optimizers toward solutions with improved generalization when training large language models (LLMs)? In this work, we theoretically analyze an in-context linear regression model with multi-head linear self-attention, and compare the training dynamics of two gradient based optimizers, namely gradient descent (GD) and sharpness-aware minimization (SAM), the latter exhibiting superior generalization properties but is prohibitively expensive for training even medium-sized LLMs. We show, for the first time, that SAM induces a lower simplicity bias (SB)-the tendency of an optimizer to preferentially learn simpler features earlier in training-and identify this reduction as a key factor underlying its improved generalization performance. Motivated by this insight, we demonstrate that altering the training data distribution by upsampling or augmenting examples learned later in training similarly reduces SB and leads to improved generalization. Our extensive experiments show that our strategy improves the performance of multiple LLMs-including Phi2-2.7B , Llama3.2-1B, Gemma3-1B-PT, and Qwen3-0.6B-Base-achieving relative accuracy gains up to 18% when fine-tuned with AdamW and Muon on mathematical reasoning tasks.

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

↑