Lune

ACL2022Top-tier venue

Efficient Cluster-Based k-Nearest-Neighbor Machine Translation

Dexin Wang, Kai Fan, Boxing Chen, Deyi Xiong

Abstract

k-Nearest-Neighbor Machine Translation (kNN-MT) has been recently proposed as a non-parametric solution for domain adaptation in neural machine translation (NMT). It aims to alleviate the performance degradation of advanced MT systems in translating out-ofdomain sentences by coordinating with an additional token-level feature-based retrieval module constructed from in-domain data. Previous studies (Khandelwal et al., 2021; Zheng et al., 2021a) have already demonstrated that non-parametric NMT is even superior to models fine-tuned on out-of-domain data. In spite of this success, kNN retrieval is at the expense of high latency, in particular for large datastores. To make it practical, in this paper, we explore a more efficient kNN-MT and propose to use clustering to improve the retrieval efficiency. Concretely, we first propose a cluster-based Compact Network for feature reduction in a contrastive learning manner to compress context features into 90+% lower dimensional vectors. We then suggest a cluster-based pruning solution to filter out 10% 40% redundant nodes in large datastores while retaining translation quality. Our proposed methods achieve better or comparable performance while reducing up to 57% inference latency against the advanced non-parametric MT model on several machine translation benchmarks. Experimental results indicate that the proposed methods maintain the most useful information of the original datastore and the Compact Network shows good generalization on unseen domains. Codes are available at https: //github.com/tjunlp-lab/PCKMT .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine Translation cites Learning Kernel-Smoothed Machine Translation with Retrieved Examples
  • kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine Translation cites Simple and Scalable Nearest Neighbor Machine Translation
  • kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine Translation cites Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation
  • kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine Translation cites Efficient Nearest Neighbor Language Models
  • kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine Translation cites Nearest Neighbor Machine Translation
  • Learning Kernel-Smoothed Machine Translation with Retrieved Examples cites Nearest Neighbor Machine Translation
  • Simple and Scalable Nearest Neighbor Machine Translation cites Learning Kernel-Smoothed Machine Translation with Retrieved Examples
  • Simple and Scalable Nearest Neighbor Machine Translation cites Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation
  • Simple and Scalable Nearest Neighbor Machine Translation cites Efficient Nearest Neighbor Language Models
  • Simple and Scalable Nearest Neighbor Machine Translation cites Nearest Neighbor Machine Translation
  • Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation cites Nearest Neighbor Machine Translation
  • Efficient Nearest Neighbor Language Models cites Nearest Neighbor Machine Translation
  • Towards Robust k-Nearest-Neighbor Machine Translation cites Learning Kernel-Smoothed Machine Translation with Retrieved Examples
  • Towards Robust k-Nearest-Neighbor Machine Translation cites Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation
  • Towards Robust k-Nearest-Neighbor Machine Translation cites Nearest Neighbor Machine Translation
  • Why do Nearest Neighbor Language Models Work? cites Efficient Nearest Neighbor Language Models
  • Why do Nearest Neighbor Language Models Work? cites Nearest Neighbor Machine Translation
  • An interpretable error correction method for enhancing code-to-code translation cites Nearest Neighbor Machine Translation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 citations
  2. Towards Robust k-Nearest-Neighbor Machine TranslationHui Jiang, Ziyao Lu, Fandong Meng, Chulun Zhou et al.EMNLP 2022 · 16 citations
  3. kNN-TL: k-Nearest-Neighbor Transfer Learning for Low-Resource Neural Machine TranslationShudong Liu, Xuebo Liu, Derek F. Wong, Zhaocong Li et al.ACL 2023 · 14 citations
  4. An interpretable error correction method for enhancing code-to-code translationMin Xue, Artur Andrzejak, Marla LeutherICLR 2024 · 10 citations
  5. Simple and Scalable Nearest Neighbor Machine TranslationYuhan Dai, Zhirui Zhang, Qiuzhi Liu, Qu Cui et al.ICLR 2023 · 9 citations

Builds on4

  1. Nearest Neighbor Machine TranslationUrvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2021 · 323 citations
  2. Non-Parametric Unsupervised Domain Adaptation for Neural Machine TranslationXin Zheng, Zhirui Zhang, Shujian Huang, Boxing Chen et al.EMNLP Findings 2021 · 23 citations
  3. Learning Kernel-Smoothed Machine Translation with Retrieved ExamplesQingnan Jiang, Mingxuan Wang, Jun Cao, Shanbo Cheng et al.EMNLP 2021 · 1 citation
  4. Efficient Nearest Neighbor Language ModelsJunxian He, Graham Neubig, Taylor Berg-KirkpatrickEMNLP 2021

Related papers

  1. Efficient k-Nearest-Neighbor Machine Translation with Dynamic RetrievalYan Gao, Zhiwei Cao, Zhongjian Miao, Baosong Yang et al.ACL Findings 2024 · 1 citation
  2. Subset Retrieval Nearest Neighbor Machine TranslationHiroyuki Deguchi, Taro Watanabe, Yusuke Matsui, Masao Utiyama et al.ACL 2023 · 7 citations
  3. Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection LayerRuize Gao, Zhirui Zhang, Yichao Du, Lemao Liu et al.EMNLP 2023 · 3 citations
  4. Chunk-based Nearest Neighbor Machine TranslationPedro Henrique Martins, Zita Marinho, André F. T. MartinsEMNLP 2022 · 17 citations
  5. Fast Nearest Neighbor Machine TranslationYuxian Meng, Xiaoya Li, Xiayu Zheng, Fei Wu et al.ACL Findings 2022 · 32 citations
Dusk over the sea between two cliffs drawn in fine vertical lines