kNN-BOX: A Unified Framework for Nearest Neighbor Generation
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
- 2017Attention Is All You Needcited by 60,361
- 2020Beyond English-Centric Multilingual Machine Translationcited by 561
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2018When and Why are Pre-trained Word Embeddings Useful for Neural Machine Translation?cited by 126
- 2020Neural CRF Model for Sentence Alignment in Text Simplificationcited by 106
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2017Quasar: Datasets for Question Answering by Search and Readingcited by 50
- 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
- 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
- 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
2 more
Built on by
Citing papers per year: 2023: 1; 2024: 2.
3 papers.