Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrieval
Not on the map. Why?
Abstract (arXiv)
To achieve non-parametric NMT domain adaptation, k-Nearest-Neighbor Machine Translation (kNN-MT) constructs an external datastore to store domain-specific translation knowledge, which derives a kNN distribution to interpolate the prediction distribution of the NMT model via a linear interpolation coefficient λ. Despite its success, kNN retrieval at each timestep leads to substantial time overhead. To address this issue, dominant studies resort to kNN-MT with adaptive retrieval (kNN-MT-AR), which dynamically estimates λ and skips kNN retrieval if λ is less than a fixed threshold. Unfortunately, kNN-MT-AR does not yield satisfactory results. In this paper, we first conduct a preliminary study to reveal two key limitations of kNN-MT-AR: 1) the optimization gap leads to inaccurate estimation of λ for determining kNN retrieval skipping, and 2) using a fixed threshold fails to accommodate the dynamic demands for kNN retrieval at different timesteps. To mitigate these limitations, we then propose kNN-MT with dynamic retrieval (kNN-MT-DR) that significantly extends vanilla kNN-MT in two aspects. Firstly, we equip kNN-MT with a MLP-based classifier for determining whether to skip kNN retrieval at each timestep. Particularly, we explore several carefully-designed scalar features to fully exert the potential of the classifier. Secondly, we propose a timestep-aware threshold adjustment method to dynamically generate the threshold, which further improves the efficiency of our model. Experimental results on the widely-used datasets demonstrate the effectiveness and generality of our model.footnoteOur code is available at urlhttps://github.com/DeepLearnXMU/knn-mt-dr.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 20 of its 32 references that are in the map. First posted on arXiv 10 Jun 2024.
Builds on
20 of 32 references.
References · 20
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2020Norm-Based Curriculum Learning for Neural Machine Translationcited by 60
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
8 more
- 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2022What Knowledge Is Needed? Towards Explainable Memory for kNN-MT Domain Adaptationcited by 7
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
- 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
- 2023Towards Faster k-Nearest-Neighbor Machine Translationcited by 1
Built on by
Citing papers per year: 2025: 2.
2 papers.