paper-with-me

홈 › Papers

Towards Faster k-Nearest-Neighbor Machine Translation

2023-12-12 · Xiangyu Shi, Yunlong Liang, Jinan Xu, Yufeng Chen

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

📄 PDF Abstract BibTeX arXiv:2312.07419

Code (0)

등록된 구현이 없습니다.

Tasks

Machine TranslationRetrievalTranslation

Similar Papers 제목 키워드 기반

Fast Nearest Neighbor Machine Translation

2021-05-30 · Findings (ACL) 2022 5 · Yuxian Meng, Xiaoya Li, Xiayu Zheng, Fei Wu 외

Though nearest neighbor Machine Translation ($k$NN-MT) \citep{khandelwal2020nearest} has proved to introduce significant performance boosts over standard neural MT systems, it is prohibitively slow since it uses the enti…

Machine TranslationNMTSentenceTranslation

Faster Nearest Neighbor Machine Translation

2021-12-15 · Shuhe Wang, Jiwei Li, Yuxian Meng, Rongbin Ouyang 외

$k$NN based neural machine translation ($k$NN-MT) has achieved state-of-the-art results in a variety of MT tasks. One significant shortcoming of $k$NN-MT lies in its inefficiency in identifying the $k$ nearest neighbors …

Machine TranslationTranslation

Faster Nearest Neighbor Machine Translation

2022-01-16 · ACL ARR January 2022 1 · Anonymous

$k$NN based neural machine translation ($k$NN-MT) has achieved state-of-the-art results in a variety of MT tasks. One significant shortcoming of $k$NN-MT lies in its inefficiency in identifying the $k$ nearest neighbors …

Machine TranslationTranslation

Simple and Scalable Nearest Neighbor Machine Translation

2023-02-23 · Yuhan Dai, Zhirui Zhang, Qiuzhi Liu, Qu Cui 외

$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) retri…

Domain AdaptationMachine TranslationNMTRetrieval+2

Nearest Neighbor Machine Translation

2020-10-01 · ICLR 2021 1 · Urvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer 외

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 …

DecoderMachine TranslationTranslation