mlsanityData to 14 Oct 2026

kNN-BOX: A Unified Framework for Nearest Neighbor Generation

arXiv 2302.13574 ↗First posted 27 Feb 2023cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Augmenting the base neural model with a token-level symbolic datastore is a novel generation paradigm and has achieved promising results in machine translation (MT). In this paper, we introduce a unified framework kNN-BOX, which enables quick development and interactive analysis for this novel paradigm. kNN-BOX decomposes the datastore-augmentation approach into three modules: datastore, retriever and combiner, thus putting diverse kNN generation methods into a unified way. Currently, kNN-BOX has provided implementation of seven popular kNN-MT variants, covering research from performance enhancement to efficiency optimization. It is easy for users to reproduce these existing works or customize their own models. Besides, users can interact with their kNN generation systems with kNN-BOX to better understand the underlying inference process in a visualized way. In the experiment section, we apply kNN-BOX for machine translation and three other seq2seq generation tasks, namely, text simplification, paraphrase generation and question generation. Experiment results show that augmenting the base neural model with kNN-BOX leads to a large performance improvement in all these tasks. The code and document of kNN-BOX is available at https://github.com/NJUNLP/knn-box.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 14 of its 28 references that are in the map. First posted on arXiv 27 Feb 2023.

Builds on

14 of 28 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Beyond English-Centric Multilingual Machine Translationcited by 561
  3. 2020Nearest Neighbor Machine Translationcited by 209
  4. 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
  5. 2018When and Why are Pre-trained Word Embeddings Useful for Neural Machine Translation?cited by 126
  6. 2020Neural CRF Model for Sentence Alignment in Text Simplificationcited by 106
  7. 2021Efficient Nearest Neighbor Language Modelscited by 93
  8. 2021Adaptive Nearest Neighbor Machine Translationcited by 58
  9. 2017Quasar: Datasets for Question Answering by Search and Readingcited by 50
  10. 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
  11. 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
  12. 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
2 more
  1. 2022Efficient Machine Translation Domain Adaptationcited by 7
  2. 2022What Knowledge Is Needed? Towards Explainable Memory for kNN-MT Domain Adaptationcited by 7

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 2.

3 papers.