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

语言模型预训练期间学习曲线的特征刻画:学习、遗忘与稳定性

Characterizing Learning Curves During Language Model Pre-Training: Learning, Forgetting, and Stability

University of California San Diego(加利福尼亚大学圣迭戈分校);Halıcıoğlu Data Science Institute(哈利乔格鲁数据科学学院);Department of Cognitive Science(认知科学系)

Tyler A. Chang, Zhuowen Tu, Benjamin K. Bergen

AI总结:

该研究通过分析五次预训练运行中100万token的学习曲线,揭示了语言模型先学n-gram再逐步细化尾部预测的学习规律,并发现token频率和上下文特征会系统影响学习速度、稳定性与遗忘行为。

摘要:

语言模型在预训练期间是如何学会进行预测的?为研究这一问题,我们从五次自回归英语语言模型预训练运行中提取了学习曲线,涉及上下文中的100万个未见过的token。我们观察到,语言模型在学会生成更长且更连贯的文本之前,会先生成简短的重复性短语。我们还发现,单个token的损失经常出现突然的上升或下降,而且这种波动在不同预训练运行之间表现出惊人地一致。为了更好地理解这些波动,我们量化了上下文中单个token学习曲线的最终惊讶度、运行内变异性、习得年龄、可遗忘性和跨运行变异性。更频繁出现的token能达到更低的最终惊讶度,在单次运行内和跨运行之间表现出更小的变异性,更早被习得,并且在预训练期间更不容易被“遗忘”。更高的n-gram概率进一步强化了这些效应。与目标token无关的是,更短且更频繁出现的上下文与略微更稳定且更快习得的预测相关。基于我们的结果,我们论证了不同模型能力之间存在顺序性学习依赖关系,并将语言模型的学习特征刻画为早期的n-gram学习,随后逐步细化尾部n-gram预测。

英文摘要:

How do language models learn to make predictions during pre-training? To study this, we extract learning curves from five autoregressive English language model pre-training runs, for 1M unseen tokens in context. We observe that the language models generate short repetitive phrases before learning to generate longer and more coherent text. We also find that individual tokens often exhibit sudden increases or decreases in loss that are surprisingly consistent across pre-training runs. To better understand these fluctuations, we quantify the final surprisal, within-run variability, age of acquisition, forgettability, and cross-run variability of learning curves for individual tokens in context. More frequent tokens reach lower final surprisals, exhibit less variability within and across pre-training runs, are learned earlier, and are less likely to be "forgotten" during pre-training. Higher n-gram probabilities further accentuate these effects. Independent of the target token, shorter and more frequent contexts correlate with marginally more stable and quickly acquired predictions. Based on our results, we argue for the existence of sequential learning dependencies between different model capabilities, and we characterize language model learning as early n-gram learning before gradual refinement of tail n-gram predictions.

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

↑