arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.21068cs.CLcs.AI
收藏

代码预训练提升语言模型的实体追踪能力

Code Pretraining Improves Entity Tracking Abilities of Language Models

Boston University(波士顿大学);University College London(伦敦大学学院);NVIDIA(英伟达)

Najoung Kim, Sebastian Schuster, Shubham Toshniwal

AI总结:

本研究通过对比基础模型与额外经过代码、数学及alignment tuning训练的模型,证实了代码预训练能显著提升语言模型的实体追踪能力,而数学训练和alignment tuning则无一致收益。

摘要:

近期的研究提供了间接证据,表明在代码上预训练语言模型能提升模型追踪自然语言中表达的语篇实体状态变化的能力。在本研究中,我们通过比较语言模型对的实体追踪表现,系统性地测试了这一主张。关键在于,这些模型对由基础模型以及在这些基础模型之上使用额外代码数据训练而成的模型组成。我们将此分析扩展到额外检验数学训练(另一种高度结构化的数据类型)和alignment tuning(提升模型可用性的重要步骤)的影响。我们发现了明确的证据,表明在大量代码上额外训练的模型优于基础模型。另一方面,我们发现额外的数学训练或alignment tuning在各个模型家族中没有带来一致的收益。

英文摘要:

Recent work has provided indirect evidence that pretraining language models on code improves the ability of models to track state changes of discourse entities expressed in natural language. In this work, we systematically test this claim by comparing pairs of language models on their entity tracking performance. Critically, the pairs consist of base models and models trained on top of these base models with additional code data. We extend this analysis to additionally examine the effect of math training, another highly structured data type, and alignment tuning, an important step for enhancing the usability of models. We find clear evidence that models additionally trained on large amounts of code outperform the base models. On the other hand, we find no consistent benefit of additional math training or alignment tuning across various model families.

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

↑