迈向更快的 k-近邻机器翻译
Towards Faster k-Nearest-Neighbor Machine Translation
AI总结:
针对 kNN-MT 每 token 全库检索开销大的问题,本文用 MLP 预测是否需要 kNN 联合翻译,最多减少 53% 检索开销且可兼容现有系统。
摘要:
近期研究已证明,k-近邻机器翻译(k-nearest-neighbor machine translation,又称 kNN-MT)方法能够在跨领域翻译中取得显著提升。然而,这类模型在解码每个 token 时都需要在整个数据存储上进行检索,因此承受沉重的检索开销。我们观察到,在解码阶段,约 67% 至 84% 的 token 在对语料库数据存储进行搜索后并未发生变化,这意味着大多数 token 触发了徒劳的检索,并因启动 k-近邻搜索而引入不必要的计算成本。我们认为这一现象在语言学上是可解释的,并提出一个简单而有效的多层感知机(MLP)网络,用于预测某个 token 应当由神经机器翻译模型与 kNN 产生的概率共同翻译,还是仅由神经模型翻译。结果表明,我们的方法成功减少了冗余检索操作,并在翻译质量轻微下降的代价下,将 kNN 检索开销显著降低至多 53%。此外,我们的方法能够与所有现有 kNN-MT 系统协同工作。本工作已被期刊《Advances in Artificial Intelligence and Machine Learning》(ISSN: 2582-9793)录用发表。最终出版版本可在 DOI: https://dx.doi.org/10.54364/AAIML.2024.41111 查阅。
英文摘要:
Recent works have proven the effectiveness of k-nearest-neighbor machine translation(a.k.a kNN-MT) approaches to produce remarkable improvement in cross-domain translations. However, these models suffer from heavy retrieve overhead on the entire datastore when decoding each token. We observe that during the decoding phase, about 67% to 84% of tokens are unvaried after searching over the corpus datastore, which means most of the tokens cause futile retrievals and introduce unnecessary computational costs by initiating k-nearest-neighbor searches. We consider this phenomenon is explainable in linguistics and propose a simple yet effective multi-layer perceptron (MLP) network to predict whether a token should be translated jointly by the neural machine translation model and probabilities produced by the kNN or just by the neural model. The results show that our method succeeds in reducing redundant retrieval operations and significantly reduces the overhead of kNN retrievals by up to 53% at the expense of a slight decline in translation quality. Moreover, our method could work together with all existing kNN-MT systems. This work has been accepted for publication in the jornal Advances in Artificial Intelligence and Machine Learning (ISSN: 2582-9793). The final published version can be found at DOI: https://dx.doi.org/10.54364/AAIML.2024.41111
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。