Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation

Xin Zheng, Zhirui Zhang, Shujian Huang, Boxing Chen, Jun Xie +2 more
9/14/2021
cs.CLcs.AIcs.LG

Official code: zhengxxn/UDA-KNN (12 stars, Python, MIT, last commit 2021-08-31).

Abstract

Recently, $k$NN-MT has shown the promising capability of directly incorporating the pre-trained neural machine translation (NMT) model with domain-specific token-level $k$-nearest-neighbor ($k$NN) retrieval to achieve domain adaptation without retraining. Despite being conceptually attractive, it heavily relies on high-quality in-domain parallel corpora, limiting its capability on unsupervised domain adaptation, where in-domain parallel corpora are scarce or nonexistent.

Show full abstract

In this paper, we propose a novel framework that directly uses in-domain monolingual sentences in the target language to construct an effective datastore for $k$-nearest-neighbor retrieval. To this end, we first introduce an autoencoder task based on the target language, and then insert lightweight adapters into the original NMT model to map the token-level representation of this task to the ideal representation of translation task. Experiments on multi-domain datasets demonstrate that our proposed approach significantly improves the translation accuracy with target-side monolingual data, while achieving comparable performance with back-translation.

View on arXivView PDF

Code Implementations(1)

zhengxxn/UDA-KNNOfficial100%
MIT
120Python, CudaAug 31, 20215 years agoMIT

Similar Papers

Cite this paper

@article{zheng2021nonparametric,
  title  = {Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translation},
  author = {Xin Zheng and Zhirui Zhang and Shujian Huang and Boxing Chen and Jun Xie and Weihua Luo and Jiajun Chen},
  year   = {2021},
  eprint = {2109.06604},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06604}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.06604.svg)](https://codeofpaper.com/paper/2109.06604)

Discussion