Simple and Scalable Nearest Neighbor Machine Translation
Not on the map. Why?
Abstract (arXiv)
kNN-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 (kNN) retrieval to achieve domain adaptation without retraining. Despite being conceptually attractive, kNN-MT is burdened with massive storage requirements and high computational complexity since it conducts nearest neighbor searches over the entire reference corpus. In this paper, we propose a simple and scalable nearest neighbor machine translation framework to drastically promote the decoding and storage efficiency of kNN-based models while maintaining the translation performance. To this end, we dynamically construct an extremely small datastore for each input via sentence-level retrieval to avoid searching the entire datastore in vanilla kNN-MT, based on which we further introduce a distance-aware adapter to adaptively incorporate the kNN retrieval results into the pre-trained NMT models. Experiments on machine translation in two general settings, static domain adaptation and online learning, demonstrate that our proposed approach not only achieves almost 90% speed as the NMT model without performance degradation, but also significantly reduces the storage requirements of kNN-MT.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 40 of its 55 references that are in the map. First posted on arXiv 23 Feb 2023.
Builds on
40 of 55 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 351
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2019Simple, Scalable Adaptation for Neural Machine Translationcited by 239
28 more
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2018Achieving Human Parity on Automatic Chinese to English News Translationcited by 119
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2018A Survey of Domain Adaptation for Neural Machine Translationcited by 64
- 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
- 2021Neural Machine Translation with Monolingual Translation Memorycited by 61
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2019compare-mt: A Tool for Holistic Comparison of Language Generation Systemscited by 43
- 2021Fast Nearest Neighbor Machine Translationcited by 37
- 2019Non-Parametric Adaptation for Neural Machine Translationcited by 34
- 2019Domain Adaptation of Neural Machine Translation by Lexicon Inductioncited by 33
- 2021Efficient Retrieval Augmented Generation from Unstructured Knowledge for Task-Oriented Dialogcited by 33
- 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
- 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2018Joint Training for Neural Machine Translation Models with Monolingual Datacited by 20
- 2021Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translationcited by 20
- 2018Compact Personalized Models for Neural Machine Translationcited by 19
- 2019Unsupervised Domain Adaptation for Neural Machine Translation with Domain-Aware Feature Embeddingscited by 14
- 2020Dictionary-based Data Augmentation for Cross-Domain Neural Machine Translationcited by 13
- 2020Iterative Domain-Repaired Back-Translationcited by 13
- 2022Non-Parametric Domain Adaptation for End-to-End Speech Translationcited by 12
- 2021Non-Parametric Online Learning from Human Feedback for Neural Machine Translationcited by 8
- 2022Efficient Machine Translation Domain Adaptationcited by 7
- 2019Selecting Artificially-Generated Sentences for Fine-Tuning Neural Machine Translationcited by 3
- 2021Translation Transformers Rediscover Inherent Data Domainscited by 2
Built on by
Citing papers per year: 2023: 6; 2024: 4; 2025: 1; 2026: 1.
12 papers.
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 70
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Taskscited by 8
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrievalcited by 2
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layercited by 1
- 2023Rethinking Translation Memory Augmented Neural Machine Translationcited by 1
- 2023Synslator: An Interactive Machine Translation Tool with Online Learningcited by 1
- 2023knn-seq: Efficient, Extensible kNN-MT Frameworkcited by 1
- 2023Towards Faster k-Nearest-Neighbor Machine Translationcited by 1
- 2025Angular Dispersion Accelerates k-Nearest Neighbors Machine Translationcited by 1
- 2023IMTLab: An Open-Source Platform for Building, Evaluating, and Diagnosing Interactive Machine Translation Systemscited by 0
- 2024Simply Trainable Nearest Neighbour Machine Translation with GPU Inferencecited by 0
- 2026Differentially Private Datastore Generation for Retrieval-Augmented Inferencecited by 0
- 2026Differentially Private Datastore Generation for Retrieval-Augmented Inference31 May 2026
- 2025Angular Dispersion Accelerates k-Nearest Neighbors Machine Translation20 Sep 2025
- 2024Simply Trainable Nearest Neighbour Machine Translation with GPU Inference29 Jul 2024
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrieval10 Jun 2024
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Tasks18 Jan 2024
- 2023Towards Faster k-Nearest-Neighbor Machine Translation12 Dec 2023
- 2023knn-seq: Efficient, Extensible kNN-MT Framework18 Oct 2023
- 2023IMTLab: An Open-Source Platform for Building, Evaluating, and Diagnosing Interactive Machine Translation Systems17 Oct 2023
- 2023Synslator: An Interactive Machine Translation Tool with Online Learning8 Oct 2023
- 2023Rethinking Translation Memory Augmented Neural Machine Translation12 Jun 2023
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layer22 May 2023