Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layer
Not on the map. Why?
Abstract (arXiv)
Nearest Neighbor Machine Translation (kNN-MT) has achieved great success in domain adaptation tasks by integrating pre-trained Neural Machine Translation (NMT) models with domain-specific token-level retrieval. However, the reasons underlying its success have not been thoroughly investigated. In this paper, we comprehensively analyze kNN-MT through theoretical and empirical studies. Initially, we provide new insights into the working mechanism of kNN-MT as an efficient technique to implicitly execute gradient descent on the output projection layer of NMT, indicating that it is a specific case of model fine-tuning. Subsequently, we conduct multi-domain experiments and word-level analysis to examine the differences in performance between kNN-MT and entire-model fine-tuning. Our findings suggest that: (1) Incorporating kNN-MT with adapters yields comparable translation performance to fine-tuning on in-domain test sets, while achieving better performance on out-of-domain test sets; (2) Fine-tuning significantly outperforms kNN-MT on the recall of in-domain low-frequency words, but this gap could be bridged by optimizing the context representations with additional adapter layers.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 50 references that are in the map. First posted on arXiv 22 May 2023.
Builds on
38 of 50 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
26 more
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2018Achieving Human Parity on Automatic Chinese to English News Translationcited by 119
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 45
- 2020Incorporating BERT into Parallel Sequence Decoding with Adapterscited by 39
- 2021Fast Nearest Neighbor Machine Translationcited by 37
- 2021Efficient Retrieval Augmented Generation from Unstructured Knowledge for Task-Oriented Dialogcited by 33
- 2023Why do Nearest Neighbor Language Models Work?cited by 29
- 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
- 2022Efficient Cluster-Based k-Nearest-Neighbor Machine Translationcited by 24
- 2022Improving Few-Shot Performance of Language Models via Nearest Neighbor Calibrationcited by 24
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2021Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translationcited by 20
- 2022Non-Parametric Domain Adaptation for End-to-End Speech Translationcited by 12
- 2023Simple and Scalable Nearest Neighbor Machine Translationcited by 12
- 2021Frequency-Aware Contrastive Learning for Neural Machine Translationcited by 11
- 2022What Knowledge Is Needed? Towards Explainable Memory for kNN-MT Domain Adaptationcited by 7
- 2023Federated Nearest Neighbor Machine Translationcited by 5
- 2022Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translationcited by 2
Built on by
Citing papers per year: 2024: 1.
1 paper.