Fast Nearest Neighbor Machine Translation
Not on the map. Why?
Abstract (arXiv)
Though nearest neighbor Machine Translation (kNN-MT) citepkhandelwal2020nearest has proved to introduce significant performance boosts over standard neural MT systems, it is prohibitively slow since it uses the entire reference corpus as the datastore for the nearest neighbor search. This means each step for each beam in the beam search has to search over the entire reference corpus. kNN-MT is thus two-orders slower than vanilla MT models, making it hard to be applied to real-world applications, especially online services. In this work, we propose Fast kNN-MT to address this issue. Fast kNN-MT constructs a significantly smaller datastore for the nearest neighbor search: for each word in a source sentence, Fast kNN-MT first selects its nearest token-level neighbors, which is limited to tokens that are the same as the query token. Then at each decoding step, in contrast to using the entire corpus as the datastore, the search space is limited to target tokens corresponding to the previously selected reference source tokens. This strategy avoids search through the whole datastore for nearest neighbors and drastically improves decoding efficiency. Without loss of performance, Fast kNN-MT is two-orders faster than kNN-MT, and is only two times slower than the standard NMT model. Fast kNN-MT enables the practical use of kNN-MT systems in real-world MT applications. The code is available at urlhttps://github.com/ShannonAI/fast-knn-nmt
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 41 of its 54 references that are in the map. First posted on arXiv 30 May 2021.
Builds on
41 of 54 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 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
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,028
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
29 more
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2017Convolutional Sequence to Sequence Learningcited by 550
- 2021Random Feature Attentioncited by 350
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2019Massively Multilingual Neural Machine Translation in the Wild: Findings and Challengescited by 253
- 2019Massively Multilingual Neural Machine Translationcited by 246
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2020Nearest Neighbor Machine Translationcited by 209
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2020Pre-training via Paraphrasingcited by 92
- 2018Retrieve and Refine: Improved Sequence Generation Models For Dialoguecited by 82
- 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2017Learning to Remember Translation History with a Continuous Cachecited by 39
- 2020Incorporating BERT into Parallel Sequence Decoding with Adapterscited by 39
- 2016Mutual Information and Diverse Decoding Improve Neural Machine Translationcited by 35
- 2019Non-Parametric Adaptation for Neural Machine Translationcited by 34
- 2021Efficient Retrieval Augmented Generation from Unstructured Knowledge for Task-Oriented Dialogcited by 33
- 2020SAC: Accelerating and Structuring Self-Attention via Sparse Adaptive Connectioncited by 13
- 2020Time-aware Large Kernel Convolutionscited by 8
- 2016One Sentence One Model for Neural Machine Translationcited by 7
- 2019Large-scale Pretraining for Neural Machine Translation with Tens of Billions of Sentence Pairscited by 4
Built on by
Citing papers per year: 2021: 3; 2022: 13; 2023: 14; 2024: 5; 2025: 1; 2026: 1.
37 papers.
Sort:
By area:
- 2022A Survey on Retrieval-Augmented Text Generationcited by 157
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-designcited by 28
- 2021GNN-LM: Language Modeling based on Global Contexts via GNNcited by 27
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2023Augmenting Large Language Model Translators via Translation Memoriescited by 21
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighborscited by 21
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
- 2023Retrosynthesis Prediction with Local Template Retrievalcited by 15
25 more
- 2022Non-Parametric Domain Adaptation for End-to-End Speech Translationcited by 12
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2022Nearest Neighbor Knowledge Distillation for Neural Machine Translationcited by 10
- 2021Faster Nearest Neighbor Machine Translationcited by 8
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Taskscited by 8
- 2022Efficient Machine Translation Domain Adaptationcited by 7
- 2022Improving Retrieval Augmented Neural Machine Translation by Controlling Source and Fuzzy-Match Interactionscited by 7
- 2022kNN-NER: Named Entity Recognition with Nearest Neighbor Searchcited by 6
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
- 2022GNN-SL: Sequence Labeling Based on Nearest Examples via GNNcited by 3
- 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
- 2022Improving Robustness of Retrieval Augmented Translation via Shuffling of Suggestionscited by 2
- 2022Nearest Neighbor Language Models for Stylistic Controllable Generationcited by 2
- 2022Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translationcited by 2
- 2023Prompting Neural Machine Translation with Translation Memoriescited by 2
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformerscited by 2
- 2023N-Gram Nearest Neighbor Machine Translationcited by 1
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layercited by 1
- 2023Rethinking Translation Memory Augmented Neural Machine Translationcited by 1
- 2024Cross-lingual Contextualized Phrase Retrievalcited by 1
- 2023Bridging the Domain Gaps in Context Representations for k-Nearest Neighbor Neural Machine Translationcited by 0
- 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
- 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Searchcited by 0
- 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translationcited by 0
- 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translation2 Jun 2026
- 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Search4 Aug 2025
- 2024Simply Trainable Nearest Neighbour Machine Translation with GPU Inference29 Jul 2024
- 2024Cross-lingual Contextualized Phrase Retrieval25 Mar 2024
- 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-design8 Mar 2024
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighbors1 Feb 2024
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Tasks18 Jan 2024
- 2023Multilingual k-Nearest-Neighbor Machine Translation23 Oct 2023
- 2023IMTLab: An Open-Source Platform for Building, Evaluating, and Diagnosing Interactive Machine Translation Systems17 Oct 2023
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Models15 Oct 2023
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformers13 Oct 2023
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
25 more
- 2023Rethinking Translation Memory Augmented Neural Machine Translation12 Jun 2023
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translation10 Jun 2023
- 2023Retrosynthesis Prediction with Local Template Retrieval7 Jun 2023
- 2023Augmenting Large Language Model Translators via Translation Memories27 May 2023
- 2023Bridging the Domain Gaps in Context Representations for k-Nearest Neighbor Neural Machine Translation26 May 2023
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layer22 May 2023
- 2023Simple and Scalable Nearest Neighbor Machine Translation23 Feb 2023
- 2023N-Gram Nearest Neighbor Machine Translation30 Jan 2023
- 2023Prompting Neural Machine Translation with Translation Memories13 Jan 2023
- 2022Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translation17 Dec 2022
- 2022GNN-SL: Sequence Labeling Based on Nearest Examples via GNN5 Dec 2022
- 2022Nearest Neighbor Language Models for Stylistic Controllable Generation27 Oct 2022
- 2022Towards Robust k-Nearest-Neighbor Machine Translation17 Oct 2022
- 2022Improving Robustness of Retrieval Augmented Translation via Shuffling of Suggestions11 Oct 2022
- 2022Improving Retrieval Augmented Neural Machine Translation by Controlling Source and Fuzzy-Match Interactions10 Oct 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2022Chunk-based Nearest Neighbor Machine Translation24 May 2022
- 2022Non-Parametric Domain Adaptation for End-to-End Speech Translation23 May 2022
- 2022Nearest Neighbor Knowledge Distillation for Neural Machine Translation1 May 2022
- 2022Efficient Machine Translation Domain Adaptation26 Apr 2022
- 2022kNN-NER: Named Entity Recognition with Nearest Neighbor Search31 Mar 2022
- 2022A Survey on Retrieval-Augmented Text Generation2 Feb 2022
- 2021Faster Nearest Neighbor Machine Translation15 Dec 2021
- 2021GNN-LM: Language Modeling based on Global Contexts via GNN17 Oct 2021
- 2021Layer-wise Model Pruning based on Mutual Information28 Aug 2021
- 2022A Survey on Retrieval-Augmented Text Generationcited by 157
- 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-designcited by 28
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
- 2022Improving Retrieval Augmented Neural Machine Translation by Controlling Source and Fuzzy-Match Interactionscited by 7
- 2022kNN-NER: Named Entity Recognition with Nearest Neighbor Searchcited by 6
- 2022Improving Robustness of Retrieval Augmented Translation via Shuffling of Suggestionscited by 2
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformerscited by 2
- 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Searchcited by 0
- 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Search4 Aug 2025
- 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-design8 Mar 2024
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Models15 Oct 2023
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformers13 Oct 2023
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
- 2022Improving Robustness of Retrieval Augmented Translation via Shuffling of Suggestions11 Oct 2022
- 2022Improving Retrieval Augmented Neural Machine Translation by Controlling Source and Fuzzy-Match Interactions10 Oct 2022
- 2022kNN-NER: Named Entity Recognition with Nearest Neighbor Search31 Mar 2022
- 2022A Survey on Retrieval-Augmented Text Generation2 Feb 2022
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2021GNN-LM: Language Modeling based on Global Contexts via GNNcited by 27
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2023Augmenting Large Language Model Translators via Translation Memoriescited by 21
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighborscited by 21
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
- 2023Retrosynthesis Prediction with Local Template Retrievalcited by 15
- 2022Non-Parametric Domain Adaptation for End-to-End Speech Translationcited by 12
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2022Nearest Neighbor Knowledge Distillation for Neural Machine Translationcited by 10
- 2021Faster Nearest Neighbor Machine Translationcited by 8
12 most cited of 28 All 28 (JSON)
- 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translation2 Jun 2026
- 2024Simply Trainable Nearest Neighbour Machine Translation with GPU Inference29 Jul 2024
- 2024Cross-lingual Contextualized Phrase Retrieval25 Mar 2024
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighbors1 Feb 2024
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Tasks18 Jan 2024
- 2023Multilingual k-Nearest-Neighbor Machine Translation23 Oct 2023
- 2023IMTLab: An Open-Source Platform for Building, Evaluating, and Diagnosing Interactive Machine Translation Systems17 Oct 2023
- 2023Rethinking Translation Memory Augmented Neural Machine Translation12 Jun 2023
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translation10 Jun 2023
- 2023Retrosynthesis Prediction with Local Template Retrieval7 Jun 2023
- 2023Augmenting Large Language Model Translators via Translation Memories27 May 2023
- 2023Bridging the Domain Gaps in Context Representations for k-Nearest Neighbor Neural Machine Translation26 May 2023
12 newest of 28 All 28 (JSON)