调大权重衰减能让语言模型更易适应下游任务
Weight Decay Improves Language Model Plasticity
- 通过增大预训练时的权重衰减提升模型可塑性
- 权重衰减越大,微调后下游性能提升越明显
- 适合关注模型泛化与优化策略的研究者
大型语言模型通常分为两个阶段训练:先进行预训练得到基础模型,再通过进一步训练提升下游性能。然而,超参数优化和缩放定律的研究主要基于基础模型的验证损失,忽略了关键属性——下游适应能力。本文从模型可塑性(即基础模型在额外训练后成功适配下游任务的能力)角度研究预训练。聚焦预训练中的关键正则化参数权重衰减,系统实验表明:更大的权重衰减能提升预训练模型的可塑性,使微调后获得更大性能增益。这一效应可能导致反直觉结果:预训练后表现较差的基础模型,在后续训练中反而表现更好。进一步机制分析发现,权重衰减促进线性可分表示、正则化注意力矩阵,并减少对训练数据的过拟合。这些发现强调了预训练模型可塑性的重要性,揭示了仅以交叉熵损失为优化指标的局限性,以及单一优化超参数在塑造模型行为中的多重作用。
原文摘要 · Abstract (English)
Large language models are typically trained in two broad phases: pretraining to produce a base model, followed by further training to improve downstream performance. However, hyperparameter optimization and scaling laws are studied primarily from the perspective of the base model's validation loss, overlooking a crucial model property: downstream adaptability. In this work, we study pretraining from the perspective of model plasticity, that is, the ability of the base model to successfully adapt to downstream tasks upon additional training. We focus on the role of weight decay, a key regularization parameter during pretraining, and show through systematic experiments that larger weight decay increases the plasticity of the pretrained model, resulting in greater performance gains downstream after fine-tuning. This effect can lead to counterintuitive trade-offs where base models that perform worse after pretraining can perform better after further training. Further investigation of weight decay's mechanistic effects on model behavior reveals that it encourages linearly separable representations, regularizes attention matrices, and reduces overfitting on the training data. Together, these findings highlight the importance of pretrained model plasticity, the limits of using cross-entropy loss as the sole metric for hyperparameter optimization, and the multifaceted role that a single optimization hyperparameter plays in shaping model behavior.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。