Chunk-based Nearest Neighbor Machine Translation
Not on the map. Why?
Abstract (arXiv)
Semi-parametric models, which augment generation with retrieval, have led to impressive results in language modeling and machine translation, due to their ability to retrieve fine-grained information from a datastore of examples. One of the most prominent approaches, kNN-MT, exhibits strong domain adaptation capabilities by retrieving tokens from domain-specific datastores citepkhandelwal2020nearest. However, kNN-MT requires an expensive retrieval operation for every single generated token, leading to a very low decoding speed (around 8 times slower than a parametric model). In this paper, we introduce a textitchunk-based kNN-MT model which retrieves chunks of tokens from the datastore, instead of a single token. We propose several strategies for incorporating the retrieved chunks into the generation process, and for selecting the steps at which the model needs to search for neighbors in the datastore. Experiments on machine translation in two settings, static and ``on-the-fly'' domain adaptation, show that the chunk-based kNN-MT model leads to significant speed-ups (up to 4 times) with only a small drop in translation quality.
Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 34 of its 51 references that are in the map. First posted on arXiv 24 May 2022.
Builds on
34 of 51 references.
References · 34
- 2017Attention Is All You Needcited by 60,361
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,799
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2014Memory Networkscited by 363
22 more
- 2017Six Challenges for Neural Machine Translationcited by 335
- 2020Multilingual Translation with Extensible Multilingual Pretraining and Finetuningcited by 287
- 2019Simple, Scalable Adaptation for Neural Machine Translationcited by 242
- 2020Distilling Knowledge from Reader to Retriever for Question Answeringcited by 226
- 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
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2021Learning Language Specific Sub-network for Multilingual Machine Translationcited by 48
- 2021Domain Adaptation and Multi-Domain Adaptation for Neural Machine Translation: A Surveycited by 46
- 2021Fast Nearest Neighbor Machine Translationcited by 37
- 2019Non-Parametric Adaptation for Neural Machine Translationcited by 34
- 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
- 2021Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translationcited by 20
- 2018Compact Personalized Models for Neural Machine Translationcited by 19
- 2021Faster Nearest Neighbor Machine Translationcited by 8
- 2022Efficient Machine Translation Domain Adaptationcited by 7
Built on by
Citing papers per year: 2022: 2; 2023: 9; 2024: 8; 2025: 1; 2026: 1.
21 papers.
Sort:
By area:
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 256
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 25
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighborscited by 21
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LMcited by 18
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Taskscited by 8
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparisoncited by 7
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
- 2024NNOSE: Nearest Neighbor Occupational Skill Extractioncited by 5
- 2024Investigating Neural Machine Translation for Low-Resource Languages: Using Bavarian as a Case Studycited by 5
9 more
- 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
- 2023Prompting Neural Machine Translation with Translation Memoriescited by 2
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformerscited by 2
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrievalcited by 2
- 2023N-Gram Nearest Neighbor Machine Translationcited by 1
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layercited by 1
- 2023knn-seq: Efficient, Extensible kNN-MT Frameworkcited by 1
- 2025Angular Dispersion Accelerates k-Nearest Neighbors Machine Translationcited by 1
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNetscited by 0
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNets11 Feb 2026
- 2025Angular Dispersion Accelerates k-Nearest Neighbors Machine Translation20 Sep 2025
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrieval10 Jun 2024
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution29 May 2024
- 2024Investigating Neural Machine Translation for Low-Resource Languages: Using Bavarian as a Case Study12 Apr 2024
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparison3 Apr 2024
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighbors1 Feb 2024
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Tasks18 Jan 2024
- 2023Multilingual k-Nearest-Neighbor Machine Translation23 Oct 2023
- 2023knn-seq: Efficient, Extensible kNN-MT Framework18 Oct 2023
9 more
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformers13 Oct 2023
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation6 Oct 2023
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translation10 Jun 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
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LM28 Oct 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 256
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparisoncited by 7
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformerscited by 2
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparison3 Apr 2024
- 2023Towards Example-Based NMT with Multi-Levenshtein Transformers13 Oct 2023
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation6 Oct 2023
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighborscited by 21
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LMcited by 18
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Taskscited by 8
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
- 2024NNOSE: Nearest Neighbor Occupational Skill Extractioncited by 5
- 2024Investigating Neural Machine Translation for Low-Resource Languages: Using Bavarian as a Case Studycited by 5
- 2023Multilingual k-Nearest-Neighbor Machine Translationcited by 3
- 2023Prompting Neural Machine Translation with Translation Memoriescited by 2
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrievalcited by 2
- 2023N-Gram Nearest Neighbor Machine Translationcited by 1
12 most cited of 16 All 16 (JSON)
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNets11 Feb 2026
- 2025Angular Dispersion Accelerates k-Nearest Neighbors Machine Translation20 Sep 2025
- 2024Efficient k-Nearest-Neighbor Machine Translation with Dynamic Retrieval10 Jun 2024
- 2024Investigating Neural Machine Translation for Low-Resource Languages: Using Bavarian as a Case Study12 Apr 2024
- 2024Non-Exchangeable Conformal Language Generation with Nearest Neighbors1 Feb 2024
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024
- 2024Communication-Efficient Personalized Federated Learning for Speech-to-Text Tasks18 Jan 2024
- 2023Multilingual k-Nearest-Neighbor Machine Translation23 Oct 2023
- 2023knn-seq: Efficient, Extensible kNN-MT Framework18 Oct 2023
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translation10 Jun 2023
- 2023Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layer22 May 2023
- 2023Simple and Scalable Nearest Neighbor Machine Translation23 Feb 2023
12 newest of 16 All 16 (JSON)