mlsanityData to 7 Oct 2026

Fast Nearest Neighbor Machine Translation

arXiv 2105.14528 ↗First posted 30 May 2021cs.CLcited by 37

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  7. 2017Billion-scale similarity search with GPUscited by 2,477
  8. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  9. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  10. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  11. 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,028
  12. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
29 more
  1. 2020On Layer Normalization in the Transformer Architecturecited by 906
  2. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  3. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  4. 2017Convolutional Sequence to Sequence Learningcited by 550
  5. 2021Random Feature Attentioncited by 350
  6. 2017Six Challenges for Neural Machine Translationcited by 334
  7. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  8. 2019Massively Multilingual Neural Machine Translation in the Wild: Findings and Challengescited by 253
  9. 2019Massively Multilingual Neural Machine Translationcited by 246
  10. 2020Understanding the Difficulty of Training Transformerscited by 210
  11. 2020Nearest Neighbor Machine Translationcited by 209
  12. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  13. 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
  14. 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
  15. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  16. 2021Finetuning Pretrained Transformers into RNNscited by 94
  17. 2020Pre-training via Paraphrasingcited by 92
  18. 2018Retrieve and Refine: Improved Sequence Generation Models For Dialoguecited by 82
  19. 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
  20. 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
  21. 2017Learning to Remember Translation History with a Continuous Cachecited by 39
  22. 2020Incorporating BERT into Parallel Sequence Decoding with Adapterscited by 39
  23. 2016Mutual Information and Diverse Decoding Improve Neural Machine Translationcited by 35
  24. 2019Non-Parametric Adaptation for Neural Machine Translationcited by 34
  25. 2021Efficient Retrieval Augmented Generation from Unstructured Knowledge for Task-Oriented Dialogcited by 33
  26. 2020SAC: Accelerating and Structuring Self-Attention via Sparse Adaptive Connectioncited by 13
  27. 2020Time-aware Large Kernel Convolutionscited by 8
  28. 2016One Sentence One Model for Neural Machine Translationcited by 7
  29. 2019Large-scale Pretraining for Neural Machine Translation with Tens of Billions of Sentence Pairscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 13; 2023: 14; 2024: 5; 2025: 1; 2026: 1.

37 papers.

Sort:

By area:

  1. 2022A Survey on Retrieval-Augmented Text Generationcited by 157
  2. 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
  3. 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-designcited by 28
  4. 2021GNN-LM: Language Modeling based on Global Contexts via GNNcited by 27
  5. 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
  6. 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
  7. 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
  8. 2023Augmenting Large Language Model Translators via Translation Memoriescited by 21
  9. 2024Non-Exchangeable Conformal Language Generation with Nearest Neighborscited by 21
  10. 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
  11. 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
  12. 2023Retrosynthesis Prediction with Local Template Retrievalcited by 15
25 more
  1. 2022Non-Parametric Domain Adaptation for End-to-End Speech Translationcited by 12
  2. 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
  3. 2022Nearest Neighbor Knowledge Distillation for Neural Machine Translationcited by 10
  4. 2021Faster Nearest Neighbor Machine Translationcited by 8
  5. 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Taskscited by 8
  6. 2022Efficient Machine Translation Domain Adaptationcited by 7
  7. 2022Improving Retrieval Augmented Neural Machine Translation by Controlling Source and Fuzzy-Match Interactionscited by 7
  8. 2022kNN-NER: Named Entity Recognition with Nearest Neighbor Searchcited by 6
  9. 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
  10. 2022GNN-SL: Sequence Labeling Based on Nearest Examples via GNNcited by 3
  11. 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
  12. 2022Improving Robustness of Retrieval Augmented Translation via Shuffling of Suggestionscited by 2
  13. 2022Nearest Neighbor Language Models for Stylistic Controllable Generationcited by 2
  14. 2022Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translationcited by 2
  15. 2023Prompting Neural Machine Translation with Translation Memoriescited by 2
  16. 2023Towards Example-Based NMT with Multi-Levenshtein Transformerscited by 2
  17. 2023N-Gram Nearest Neighbor Machine Translationcited by 1
  18. 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layercited by 1
  19. 2023Rethinking Translation Memory Augmented Neural Machine Translationcited by 1
  20. 2024Cross-lingual Contextualized Phrase Retrievalcited by 1
  21. 2023Bridging the Domain Gaps in Context Representations for k-Nearest Neighbor Neural Machine Translationcited by 0
  22. 2023IMTLab: An Open-Source Platform for Building, Evaluating, and Diagnosing Interactive Machine Translation Systemscited by 0
  23. 2024Simply Trainable Nearest Neighbour Machine Translation with GPU Inferencecited by 0
  24. 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Searchcited by 0
  25. 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translationcited by 0