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

相同的训练前损失,更好的下游:语言模型的隐式偏差问题

Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Models

Stanford University(斯坦福大学)

Hong Liu, Sang Michael Xie, Zhiyuan Li, Tengyu Ma

摘要:

在大规模数据集上进行语言建模,可以在各种下游语言任务上获得令人印象深刻的性能提升。在开发语言模型时,验证预训练损失(或自回归语言建模中的困惑)通常用作评估指标,因为预训练损失往往与下游性能(其本身难以全面评估)密切相关。与这种传统观点相反,本文表明:1)预训练损失不能完全解释下游性能,2)模型的平坦性与下游性能密切相关,而预训练损失则不相关。在简化的数据集上,我们确定了三种方法来生成具有相同(统计上最优)预训练损失但不同下游性能的模型:在收敛后继续预训练,增加模型大小和改变训练算法。这些实验证明了预训练算法/优化器的隐式偏差的存在-在具有相同最小预训练损失的模型中,它们隐式地更喜欢可转移的模型。为了理解这种隐含的偏见,我们证明了标准小批量噪声的SGD隐含地更喜欢语言模型中更平坦的最小值,并根据经验观察到具有相同最小预训练损失的模型之间的平坦度和下游性能之间的强相关性。我们还在合成语言环境中证明,在具有最小预训练损失的模型中,最平坦的模型转移到下游任务。

英文摘要:

Language modeling on large-scale datasets leads to impressive performance gains on various downstream language tasks. The validation pre-training loss (or perplexity in autoregressive language modeling) is often used as the evaluation metric when developing language models since the pre-training loss tends to be well-correlated with downstream performance (which is itself difficult to evaluate comprehensively). Contrary to this conventional wisdom, this paper shows that 1) pre-training loss cannot fully explain downstream performance and 2) flatness of the model is well-correlated with downstream performance where pre-training loss is not. On simplified datasets, we identify three ways to produce models with the same (statistically optimal) pre-training loss but different downstream performance: continue pre-training after convergence, increasing the model size, and changing the training algorithm. These experiments demonstrate the existence of implicit bias of pre-training algorithms/optimizers -- among models with the same minimal pre-training loss, they implicitly prefer more transferable ones. Toward understanding this implicit bias, we prove that SGD with standard mini-batch noise implicitly prefers flatter minima in language models, and empirically observe a strong correlation between flatness and downstream performance among models with the same minimal pre-training loss. We also prove in a synthetic language setting that among the models with the minimal pre-training loss, the flattest model transfers to downstream tasks.

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

↑