paper-with-me

홈 › Papers

Faster Nearest Neighbor Machine Translation

2021-12-15 · Shuhe Wang, Jiwei Li, Yuxian Meng, Rongbin Ouyang, Guoyin Wang, Xiaoya Li, Tianwei Zhang, Shi Zong

$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 of the query representation from the entire datastore, which is prohibitively time-intensive when the datastore size is large. In this work, we propose \textbf{Faster $k$NN-MT} to address this issue. The core idea of Faster $k$NN-MT is to use a hierarchical clustering strategy to approximate the distance between the query and a data point in the datastore, which is decomposed into two parts: the distance between the query and the center of the cluster that the data point belongs to, and the distance between the data point and the cluster center. We propose practical ways to compute these two parts in a significantly faster manner. Through extensive experiments on different MT benchmarks, we show that \textbf{Faster $k$NN-MT} is faster than Fast $k$NN-MT \citep{meng2021fast} and only slightly (1.2 times) slower than its vanilla counterpart while preserving model performance as $k$NN-MT. Faster $k$NN-MT enables the deployment of $k$NN-MT models on real-world MT services.

📄 PDF Abstract BibTeX arXiv:2112.08152

Code (0)

등록된 구현이 없습니다.

Tasks

Machine TranslationTranslation

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

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

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 retrie…

Machine TranslationRetrievalTranslation

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