mlsanityData to 7 Oct 2026

Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrieval

arXiv 2406.06073 ↗First posted 10 Jun 2024cs.CLcited by 2

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

  1. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  2. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  3. 2017Billion-scale similarity search with GPUscited by 2,477
  4. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  5. 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
  6. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  7. 2020Nearest Neighbor Machine Translationcited by 209
  8. 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
  9. 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
  10. 2021Efficient Nearest Neighbor Language Modelscited by 93
  11. 2020Norm-Based Curriculum Learning for Neural Machine Translationcited by 60
  12. 2021Adaptive Nearest Neighbor Machine Translationcited by 58
8 more
  1. 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
  2. 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
  3. 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
  4. 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
  5. 2022What Knowledge Is Needed? Towards Explainable Memory for kNN-MT Domain Adaptationcited by 7
  6. 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
  7. 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
  8. 2023Towards Faster k-Nearest-Neighbor Machine Translationcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.