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

高效训练语言模型填充中间

Efficient Training of Language Models to Fill in the Middle

OpenAI(开放人工智能研究中心)

Mohammad Bavarian, Heewoo Jun, Nikolas Tezak, John Schulman, Christine McLeavey, Jerry Tworek, Mark Chen

摘要:

我们证明了自回归语言模型可以在我们对数据集进行简单的转换后学习填充文本,该转换只是将一段文本从文档的中间移动到其末尾。虽然这种数据增强近年来引起了人们的极大兴趣,但我们提供了大量证据,证明以这种方式转换的大部分数据的训练模型不会损害原始的从左到右生成能力,如通过困惑度和广泛尺度的采样评估所测量的。考虑到训练模型的有用性、简单性和效率,我们建议未来的自回归语言模型默认使用填充中间(fill-in-the-middle,简写为fill-in-the-middle,简写为fill-in-the-middle)进行训练。为此,我们对关键的超参数进行了一系列的消融,例如数据转换频率,转换的结构以及选择填充跨度的方法。我们使用这些消融来规定强默认设置和最佳实践,以训练模型。我们已经发布了我们最好的填充模型,并在我们的API中使用最佳实践进行训练,并发布了我们的填充基准以帮助未来的研究。

英文摘要:

We show that autoregressive language models can learn to infill text after we apply a straightforward transformation to the dataset, which simply moves a span of text from the middle of a document to its end. While this data augmentation has garnered much interest in recent years, we provide extensive evidence that training models with a large fraction of data transformed in this way does not harm the original left-to-right generative capability, as measured by perplexity and sampling evaluations across a wide range of scales. Given the usefulness, simplicity, and efficiency of training models to fill-in-the-middle (FIM), we suggest that future autoregressive language models be trained with FIM by default. To this end, we run a series of ablations on key hyperparameters, such as the data transformation frequency, the structure of the transformation, and the method of selecting the infill span. We use these ablations to prescribe strong default settings and best practices to train FIM models. We have released our best infilling model trained with best practices in our API, and release our infilling benchmarks to aid future research.

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

↑