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

语言生成模型的自然偏置

A Natural Bias for Language Generation Models

ETH Zürich(苏黎世联邦理工学院);DeepMind(深度思维);University of Cambridge(剑桥大学)

Clara Meister, Wojciech Stokowiec, Tiago Pimentel, Lei Yu, Laura Rimell, Adhiguna Kuncoro

AI总结:

本文提出通过将最终线性层的偏置项初始化为log-unigram分布,为语言生成模型注入先验频率知识,在神经机器翻译中提升学习效率与性能,并解耦频率效应。

摘要:

经过仅几百次训练更新后,一个标准的语言生成概率模型很可能尚未学会自然语言的许多语义或句法规则,这使得估计下一个词元的概率分布变得困难。然而,大约在这个阶段,这些模型已经识别出一种简单的、能最小化损失的行为:输出目标训练语料的unigram分布。使用这种启发式方法引发了一个问题:我们能否用这种行为初始化我们的模型,从而节省宝贵的计算资源和模型容量?在这里,我们表明,我们可以通过简单地将模型最终线性层中的偏置项初始化为log-unigram分布,有效地为标准神经语言生成模型配备一个反映unigram频率统计作为先验知识的独立模块。我们使用神经机器翻译作为这种简单技术的测试平台,并观察到它:(i)提高了学习效率;(ii)实现了更好的整体性能;也许最重要的是(iii)通过鼓励模型专注于与频率无关的语言方面,似乎解开了强频率效应的影响。

英文摘要:

After just a few hundred training updates, a standard probabilistic model for language generation has likely not yet learnt many semantic or syntactic rules of natural language, making it difficult to estimate the probability distribution over next tokens. Yet around this point, these models have identified a simple, loss-minimising behaviour: to output the unigram distribution of the target training corpus. The use of such a heuristic raises the question: Can we initialise our models with this behaviour and save precious compute resources and model capacity? Here we show that we can effectively endow standard neural language generation models with a separate module that reflects unigram frequency statistics as prior knowledge, simply by initialising the bias term in a model's final linear layer with the log-unigram distribution. We use neural machine translation as a test bed for this simple technique and observe that it: (i) improves learning efficiency; (ii) achieves better overall performance; and perhaps most importantly (iii) appears to disentangle strong frequency effects by encouraging the model to specialise in non-frequency-related aspects of language.

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

↑