paper-with-me

홈 › Papers

Towards Robust k-Nearest-Neighbor Machine Translation

2022-10-17 · Hui Jiang, Ziyao Lu, Fandong Meng, Chulun Zhou, Jie zhou, Degen Huang, Jinsong Su

k-Nearest-Neighbor Machine Translation (kNN-MT) becomes an important research direction of NMT in recent years. Its main idea is to retrieve useful key-value pairs from an additional datastore to modify translations without updating the NMT model. However, the underlying retrieved noisy pairs will dramatically deteriorate the model performance. In this paper, we conduct a preliminary study and find that this problem results from not fully exploiting the prediction of the NMT model. To alleviate the impact of noise, we propose a confidence-enhanced kNN-MT model with robust training. Concretely, we introduce the NMT confidence to refine the modeling of two important components of kNN-MT: kNN distribution and the interpolation weight. Meanwhile we inject two types of perturbations into the retrieved pairs for robust training. Experimental results on four benchmark datasets demonstrate that our model not only achieves significant improvements over current kNN-MT models, but also exhibits better robustness. Our code is available at https://github.com/DeepLearnXMU/Robust-knn-mt.

📄 PDF Abstract BibTeX arXiv:2210.08808

Code (3)

deeplearnxmu/robust-knn-mt 공식 구현 pytorch
cordercorder/knn-models pytorch
njunlp/knn-box pytorch

Tasks

Machine TranslationNMTTranslation

Similar Papers 제목 키워드 기반

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

N-Gram Nearest Neighbor Machine Translation

2023-01-30 · Rui Lv, Junliang Guo, Rui Wang, Xu Tan 외

Nearest neighbor machine translation augments the Autoregressive Translation~(AT) with $k$-nearest-neighbor retrieval, by comparing the similarity between the token-level context representations of the target tokens in t…

Domain AdaptationMachine TranslationRetrievalTranslation

Adaptive Nearest Neighbor Machine Translation

2021-05-27 · ACL 2021 5 · Xin Zheng, Zhirui Zhang, Junliang Guo, ShuJian Huang 외

kNN-MT, recently proposed by Khandelwal et al. (2020a), successfully combines pre-trained neural machine translation (NMT) model with token-level k-nearest-neighbor (kNN) retrieval to improve the translation accuracy. Ho…

Machine TranslationNMTRetrievalTranslation

An Intrinsic Nearest Neighbor Analysis of Neural Machine Translation Architectures

2019-07-08 · WS 2019 8 · Hamidreza Ghader, Christof Monz

Earlier approaches indirectly studied the information captured by the hidden states of recurrent and non-recurrent neural machine translation models by feeding them into different classifiers. In this paper, we look at t…

Machine TranslationTranslationWord Embeddings