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

简单可扩展的最近邻机器翻译

Simple and Scalable Nearest Neighbor Machine Translation

University of Science and Technology of China(中国科学技术大学);Tencent AI Lab(腾讯人工智能实验室)

Yuhan Dai, Zhirui Zhang, Qiuzhi Liu, Qu Cui, Weihua Li, Yichao Du, Tong Xu

摘要:

$k$ NN-MT是一种简单而强大的快速域自适应方法,它直接将预训练的神经机器翻译(NMT)模型与特定于域的令牌级$k$ -最近邻($k$ NN)检索插入,以实现领域自适应,而无需重新训练。尽管在概念上很有吸引力,但$k$ NN-MT由于在整个参考语料库上进行最近邻搜索而具有大量存储需求和高计算复杂性。在本文中,我们提出了一个简单且可扩展的最近邻机器翻译框架,以大幅提高基于$k$ NN的模型的解码和存储效率,同时保持翻译性能。为此,我们动态地构建一个非常小的搜索每个输入通过检索级检索,以避免搜索整个搜索香草$k$ NN-MT,在此基础上,我们进一步引入了一个距离感知适配器,自适应地将$k$ NN检索结果到预训练的NMT模型。在静态领域自适应和在线学习两种环境下的机器翻译实验表明,该方法不仅在不降低性能的情况下实现了NMT模型的近90%的速度,而且显著降低了$k$ NN-MT的存储需求。

英文摘要:

$k$NN-MT is a straightforward yet powerful approach for fast domain adaptation, which directly plugs pre-trained neural machine translation (NMT) models with domain-specific token-level $k$-nearest-neighbor ($k$NN) retrieval to achieve domain adaptation without retraining. Despite being conceptually attractive, $k$NN-MT is burdened with massive storage requirements and high computational complexity since it conducts nearest neighbor searches over the entire reference corpus. In this paper, we propose a simple and scalable nearest neighbor machine translation framework to drastically promote the decoding and storage efficiency of $k$NN-based models while maintaining the translation performance. To this end, we dynamically construct an extremely small datastore for each input via sentence-level retrieval to avoid searching the entire datastore in vanilla $k$NN-MT, based on which we further introduce a distance-aware adapter to adaptively incorporate the $k$NN retrieval results into the pre-trained NMT models. Experiments on machine translation in two general settings, static domain adaptation and online learning, demonstrate that our proposed approach not only achieves almost 90% speed as the NMT model without performance degradation, but also significantly reduces the storage requirements of $k$NN-MT.

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

↑