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

最近邻机器翻译

Nearest Neighbor Machine Translation

Stanford University(斯坦福大学);Facebook AI Research(Facebook人工智能研究院)

Urvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer, Mike Lewis

摘要:

我们介绍了$k$ -最近邻机器翻译($k$ NN-MT),它使用神经翻译模型的表示进行相似性搜索,在大量缓存示例中使用最近邻分类器预测令牌。这种方法不需要额外的训练和缩放,就可以让解码器在测试时直接存取数十亿个示例,从而产生一个高度表达的模型,在许多设置中始终提高性能。简单地添加最近邻搜索将最先进的德英翻译模型提高了1.5 BLEU。$k$ NN-MT通过使用特定于域的训练器,允许单个模型适应不同的域,在zero-shot传输上将结果平均提高9.2 BLEU,并实现新的最先进的结果-无需在这些域上进行训练。一个大规模的多语言模型也可以专门用于特定的语言对,并在从英语翻译成德语和中文方面进行了3 BLEU的改进。同样,$k$ NN-MT易于解释;它结合了源和目标上下文来检索高度相关的示例。

英文摘要:

We introduce $k$-nearest-neighbor machine translation ($k$NN-MT), which predicts tokens with a nearest neighbor classifier over a large datastore of cached examples, using representations from a neural translation model for similarity search. This approach requires no additional training and scales to give the decoder direct access to billions of examples at test time, resulting in a highly expressive model that consistently improves performance across many settings. Simply adding nearest neighbor search improves a state-of-the-art German-English translation model by 1.5 BLEU. $k$NN-MT allows a single model to be adapted to diverse domains by using a domain-specific datastore, improving results by an average of 9.2 BLEU over zero-shot transfer, and achieving new state-of-the-art results -- without training on these domains. A massively multilingual model can also be specialized for particular language pairs, with improvements of 3 BLEU for translating from English into German and Chinese. Qualitatively, $k$NN-MT is easily interpretable; it combines source and target context to retrieve highly relevant examples.

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

↑