M2D2: A Massively Multi-domain Language Modeling Dataset
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
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
- 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 142
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 130
- 2018Strong Baselines for Neural Semi-supervised Learning under Domain Shiftcited by 39
- 2021Efficient Hierarchical Domain Adaptation for Pretrained Language Modelscited by 32
- 2021Should We Be Pre-training? An Argument for End-task Aware Training as an Alternativecited by 26
- 2017Knowledge Adaptation: Teaching to Adaptcited by 17
Built on by
Citing papers per year: 2023: 8; 2024: 8; 2025: 4; 2026: 6.
26 papers.
Sort:
By area:
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
- 2023FLASK: Fine-grained Language Model Evaluation based on Alignment Skill Setscited by 198
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 54
- 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
- 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptationcited by 15
- 2024Exploring the Capabilities of Prompted Large Language Models in Educational and Assessment Applicationscited by 12
- 2023Measuring the Robustness of NLP Models to Domain Shiftscited by 11
14 more
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Mergingcited by 11
- 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?cited by 8
- 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimizationcited by 6
- 2024M2QA: Multi-domain Multilingual Question Answeringcited by 5
- 2025HDEE: Heterogeneous Domain Expert Ensemblecited by 4
- 2025Hierarchical Material Recognition from Local Appearancecited by 3
- 2025From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertisecited by 1
- 2026Revisiting the Shape Convention of Transformer Language Modelscited by 1
- 2026Training-Free Dynamic Upcycling of Expert Language Modelscited by 1
- 2026Data Scarcity and Model Sparsity: Mixtures-of-Experts Overfit More to Repeated Datacited by 1
- 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferencescited by 0
- 2026IR3DE: A Linear Router for Large Language Modelscited by 0
- 2026Fidelity-Diversity Metrics for Textcited by 0
- 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extensioncited by 0
- 2026Data Scarcity and Model Sparsity: Mixtures-of-Experts Overfit More to Repeated Data10 Sep 2026
- 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension10 Aug 2026
- 2026Fidelity-Diversity Metrics for Text6 Jul 2026
- 2026IR3DE: A Linear Router for Large Language Models4 Jun 2026
- 2026Training-Free Dynamic Upcycling of Expert Language Models31 Mar 2026
- 2026Revisiting the Shape Convention of Transformer Language Models6 Feb 2026
- 2025From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertise9 Jun 2025
- 2025Hierarchical Material Recognition from Local Appearance28 May 2025
- 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptation25 Mar 2025
- 2025HDEE: Heterogeneous Domain Expert Ensemble26 Feb 2025
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Merging21 Oct 2024
- 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?8 Oct 2024
14 more
- 2024OLMoE: Open Mixture-of-Experts Language Models3 Sep 2024
- 2024M2QA: Multi-domain Multilingual Question Answering1 Jul 2024
- 2024Exploring the Capabilities of Prompted Large Language Models in Educational and Assessment Applications19 May 2024
- 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferences31 Mar 2024
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implications27 Feb 2024
- 2024OLMo: Accelerating the Science of Language Models1 Feb 2024
- 2023Paloma: A Benchmark for Evaluating Language Model Fit16 Dec 2023
- 2023Evaluating Large Language Models on Controlled Generation Tasks23 Oct 2023
- 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimization5 Oct 2023
- 2023FLASK: Fine-grained Language Model Evaluation based on Alignment Skill Sets20 Jul 2023
- 2023Measuring the Robustness of NLP Models to Domain Shifts31 May 2023
- 2023Controlled Text Generation with Natural Language Instructions27 Apr 2023
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages23 Mar 2023
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models14 Feb 2023
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 54
- 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
- 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptationcited by 15
- 2024Exploring the Capabilities of Prompted Large Language Models in Educational and Assessment Applicationscited by 12
- 2023Measuring the Robustness of NLP Models to Domain Shiftscited by 11
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Mergingcited by 11
- 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?cited by 8
12 most cited of 21 All 21 (JSON)
- 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension10 Aug 2026
- 2026Fidelity-Diversity Metrics for Text6 Jul 2026
- 2026IR3DE: A Linear Router for Large Language Models4 Jun 2026
- 2025From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertise9 Jun 2025
- 2025Hierarchical Material Recognition from Local Appearance28 May 2025
- 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptation25 Mar 2025
- 2025HDEE: Heterogeneous Domain Expert Ensemble26 Feb 2025
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Merging21 Oct 2024
- 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?8 Oct 2024
- 2024M2QA: Multi-domain Multilingual Question Answering1 Jul 2024
- 2024Exploring the Capabilities of Prompted Large Language Models in Educational and Assessment Applications19 May 2024
- 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferences31 Mar 2024
12 newest of 21 All 21 (JSON)