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

$N$ -gram回归:基于$n$ -gram语言模型的神经文本生成的残差学习

$N$-gram Is Back: Residual Learning of Neural Text Generation with $n$-gram Language Model

Nara Institute of Science and Technology(奈良先端科学技术大学院大学);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);The Chinese University of Hong Kong(香港中文大学)

Huayang Li, Deng Cai, Jin Xu, Taro Watanabe

摘要:

$N$ -语法语言模型(LM)已经在很大程度上被神经LM所取代,因为后者表现出更好的性能。然而,我们发现,$n$ -gram模型可以在很大比例的测试用例上取得令人满意的性能,这表明它们已经以相对较低的计算成本捕获了丰富的语言知识。有了这个观察,我们建议学习一个神经LM,它适合$n$ -gram LM和真实数据分布之间的残差。$n$ -gram和神经LM的组合不仅允许神经部分专注于对语言的更深理解,而且还提供了一种灵活的方式来通过切换底层的$n$ -gram模型而不改变神经模型来定制LM。三个典型的语言任务的实验结果(即,语言建模、机器翻译和摘要)表明,我们的方法始终比流行的独立神经模型获得额外的性能增益。我们还表明,我们的方法允许通过简单地切换到特定于域的$n$ -gram模型,无需任何额外的训练,有效的领域自适应。我们的代码发布在https://github.com/ghrua/NgramRes。

英文摘要:

$N$-gram language models (LM) have been largely superseded by neural LMs as the latter exhibits better performance. However, we find that $n$-gram models can achieve satisfactory performance on a large proportion of testing cases, indicating they have already captured abundant knowledge of the language with relatively low computational cost. With this observation, we propose to learn a neural LM that fits the residual between an $n$-gram LM and the real-data distribution. The combination of $n$-gram and neural LMs not only allows the neural part to focus on the deeper understanding of language but also provides a flexible way to customize an LM by switching the underlying $n$-gram model without changing the neural model. Experimental results on three typical language tasks (i.e., language modeling, machine translation, and summarization) demonstrate that our approach attains additional performance gains over popular standalone neural models consistently. We also show that our approach allows for effective domain adaptation by simply switching to a domain-specific $n$-gram model, without any extra training. Our code is released at https://github.com/ghrua/NgramRes.

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

↑