paper-with-me

Papers

Chunk-based Nearest Neighbor Machine Translation

2022-05-24 · Pedro Henrique Martins, Zita Marinho, André F. T. Martins

Semi-parametric models, which augment generation with retrieval, have led to impressive results in language modeling and machine translation, due to their ability to retrieve fine-grained information from a datastore of examples. One of the most prominent approaches, $k$NN-MT, exhibits strong domain adaptation capabilities by retrieving tokens from domain-specific datastores \citep{khandelwal2020nearest}. However, $k$NN-MT requires an expensive retrieval operation for every single generated token, leading to a very low decoding speed (around 8 times slower than a parametric model). In this paper, we introduce a \textit{chunk-based} $k$NN-MT model which retrieves chunks of tokens from the datastore, instead of a single token. We propose several strategies for incorporating the retrieved chunks into the generation process, and for selecting the steps at which the model needs to search for neighbors in the datastore. Experiments on machine translation in two settings, static and ``on-the-fly'' domain adaptation, show that the chunk-based $k$NN-MT model leads to significant speed-ups (up to 4 times) with only a small drop in translation quality.

📄 PDF Abstract BibTeX arXiv:2205.12230

Code (1)

deep-spin/chunk-based_knn-mt 공식 구현 pytorch

Tasks

Domain AdaptationLanguage ModelingLanguage ModellingMachine TranslationRetrievalTranslation

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

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