Translation Transformers Rediscover Inherent Data Domains

Maksym Del, Elizaveta Korotkova, Mark Fishel
9/16/2021
cs.CL
transformer-attention

Official code: TartuNLP/inherent-domains-wmt21 (0 stars, Jupyter Notebook, last commit 2022-04-09).

Abstract

Many works proposed methods to improve the performance of Neural Machine Translation (NMT) models in a domain/multi-domain adaptation scenario. However, an understanding of how NMT baselines represent text domain information internally is still lacking.

Show full abstract

Here we analyze the sentence representations learned by NMT Transformers and show that these explicitly include the information on text domains, even after only seeing the input sentences without domains labels. Furthermore, we show that this internal information is enough to cluster sentences by their underlying domains without supervision. We show that NMT models produce clusters better aligned to the actual domains compared to pre-trained language models (LMs). Notably, when computed on document-level, NMT cluster-to-domain correspondence nears 100%. We use these findings together with an approach to NMT domain adaptation using automatically extracted domains. Whereas previous work relied on external LMs for text clustering, we propose re-using the NMT model as a source of unsupervised clusters. We perform an extensive experimental study comparing two approaches across two data scenarios, three language pairs, and both sentence-level and document-level clustering, showing equal or significantly superior performance compared to LMs.

View on arXivView PDF

Code Implementations(1)

This is the official code release for the "Translation Transformers Rediscover Inherent Data Domains", WMT21

00Jupyter Notebook, PythonSep 15, 20214 years ago

Similar Papers

Cite this paper

@article{del2021translation,
  title  = {Translation Transformers Rediscover Inherent Data Domains},
  author = {Maksym Del and Elizaveta Korotkova and Mark Fishel},
  year   = {2021},
  eprint = {2109.07864},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07864}
}

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.07864.svg)](https://codeofpaper.com/paper/2109.07864)

Discussion