Unsupervised Domain Clusters in Pretrained Language Models

Roee Aharoni, Yoav Goldberg
4/5/2020
cs.CL

Official code: roeeaharoni/unsupervised-domain-clusters (58 stars, Jupyter Notebook, last commit 2020-08-22).

Abstract

The notion of "in-domain data" in NLP is often over-simplistic and vague, as textual data varies in many nuanced linguistic aspects such as topic, style or level of formality. In addition, domain labels are many times unavailable, making it challenging to build domain-specific systems.

Show full abstract

We show that massive pre-trained language models implicitly learn sentence representations that cluster by domains without supervision -- suggesting a simple data-driven definition of domains in textual data. We harness this property and propose domain data selection methods based on such models, which require only a small set of in-domain monolingual data. We evaluate our data selection methods for neural machine translation across five diverse domains, where they outperform an established approach as measured by both BLEU and by precision and recall of sentence selection with respect to an oracle.

View on arXivView PDF

Code Implementations(1)

Code and data accompanying our ACL 2020 paper, "Unsupervised Domain Clusters in Pretrained Language Models".

583Jupyter NotebookApr 4, 20206 years ago
machine-learningmachine-translationnatural-language-processing

Similar Papers

Cite this paper

@article{aharoni2020unsupervised,
  title  = {Unsupervised Domain Clusters in Pretrained Language Models},
  author = {Roee Aharoni and Yoav Goldberg},
  year   = {2020},
  eprint = {2004.02105},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.02105}
}

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

Discussion