mlsanityData to 7 Oct 2026

M2D2: A Massively Multi-domain Language Modeling Dataset

arXiv 2210.07370 ↗First posted 13 Oct 2022cs.CLcited by 26

Not on the map. Why?

Abstract (arXiv)

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. 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.

Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 12 of its 20 references that are in the map. First posted on arXiv 13 Oct 2022.

Builds on

12 of 20 references.

References · 12

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  5. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  6. 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
  7. 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 142
  8. 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 130
  9. 2018Strong Baselines for Neural Semi-supervised Learning under Domain Shiftcited by 39
  10. 2021Efficient Hierarchical Domain Adaptation for Pretrained Language Modelscited by 32
  11. 2021Should We Be Pre-training? An Argument for End-task Aware Training as an Alternativecited by 26
  12. 2017Knowledge Adaptation: Teaching to Adaptcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 8; 2024: 8; 2025: 4; 2026: 6.

26 papers.

Sort:

By area:

  1. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  2. 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
  3. 2023FLASK: Fine-grained Language Model Evaluation based on Alignment Skill Setscited by 198
  4. 2023Controlled Text Generation with Natural Language Instructionscited by 87
  5. 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
  6. 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
  7. 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 54
  8. 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
  9. 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
  10. 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptationcited by 15
  11. 2024Exploring the Capabilities of Prompted Large Language Models in Educational and Assessment Applicationscited by 12
  12. 2023Measuring the Robustness of NLP Models to Domain Shiftscited by 11
14 more
  1. 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Mergingcited by 11
  2. 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?cited by 8
  3. 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimizationcited by 6
  4. 2024M2QA: Multi-domain Multilingual Question Answeringcited by 5
  5. 2025HDEE: Heterogeneous Domain Expert Ensemblecited by 4
  6. 2025Hierarchical Material Recognition from Local Appearancecited by 3
  7. 2025From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertisecited by 1
  8. 2026Revisiting the Shape Convention of Transformer Language Modelscited by 1
  9. 2026Training-Free Dynamic Upcycling of Expert Language Modelscited by 1
  10. 2026Data Scarcity and Model Sparsity: Mixtures-of-Experts Overfit More to Repeated Datacited by 1
  11. 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferencescited by 0
  12. 2026IR3DE: A Linear Router for Large Language Modelscited by 0
  13. 2026Fidelity-Diversity Metrics for Textcited by 0
  14. 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extensioncited by 0