M2D2: A Massively Multi-domain Language Modeling Dataset

Machel Reid, Victor Zhong, Suchin Gururangan, Luke Zettlemoyer
10/13/2022
cs.CL

Official code: machelreid/m2d2 (56 stars, Python, last commit 2022-11-21).

Abstract

We present M2D2, a fine-grained, massively multi-domain corpus for studying domain adaptation in language models (LMs). M2D2 consists of 8.5B tokens and spans 145 domains extracted from Wikipedia and Semantic Scholar.

Show full abstract

Using ontologies derived from Wikipedia and ArXiv categories, we organize the domains in each data source into 22 groups. This two-level hierarchy enables the study of relationships between domains and their effects on in- and out-of-domain performance after adaptation. We also present a number of insights into the nature of effective domain adaptation in LMs, as examples of the new types of studies M2D2 enables. To improve in-domain performance, we show the benefits of adapting the LM along a domain hierarchy; adapting to smaller amounts of fine-grained domain-specific data can lead to larger in-domain performance gains than larger amounts of weakly relevant data. We further demonstrate a trade-off between in-domain specialization and out-of-domain generalization within and across ontologies, as well as a strong correlation between out-of-domain performance and lexical overlap between domains.

View on arXivView PDF

Code Implementations(1)

machelreid/m2d2Official100%

M2D2: A Massively Multi-domain Language Modeling Dataset (EMNLP 2022) by Machel Reid, Victor Zhong, Suchin Gururangan, Luke Zettlemoyer

563Python, ShellOct 7, 20224 years ago
datasetdomainlanguage-modelingmulti-domain

Similar Papers

Cite this paper

@article{reid2022md,
  title  = {M2D2: A Massively Multi-domain Language Modeling Dataset},
  author = {Machel Reid and Victor Zhong and Suchin Gururangan and Luke Zettlemoyer},
  year   = {2022},
  eprint = {2210.07370},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07370}
}

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

Discussion