DEMix Layers: Disentangling Domains for Modular Language Modeling
Not on the map. Why?
Cited by 42 in Mixture-of-experts, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
We introduce a new domain expert mixture (DEMix) layer that enables conditioning a language model (LM) on the domain of the input text. A DEMix layer is a collection of expert feedforward networks, each specialized to a domain, that makes the LM modular: experts can be mixed, added or removed after initial training. Extensive experiments with autoregressive transformer LMs (up to 1.3B parameters) show that DEMix layers reduce test-time perplexity, increase training efficiency, and enable rapid adaptation with little overhead. We show that mixing experts during inference, using a parameter-free weighted ensemble, allows the model to better generalize to heterogeneous or unseen domains. We also show that experts can be added to iteratively incorporate new domains without forgetting older ones, and that experts can be removed to restrict access to unwanted domains, without additional training. Overall, these results demonstrate benefits of explicitly conditioning on textual domains during language modeling.
Key facts. Cited by 130 papers in the map (data through 7 Oct 2026). Builds on 53 of its 84 references that are in the map. First posted on arXiv 11 Aug 2021.
Builds on
53 of 84 references.
References · 53
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2017Gradient Episodic Memory for Continual Learningcited by 1,871
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
38 more
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2016Progressive Neural Networkscited by 1,332
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2020Beyond English-Centric Multilingual Machine Translationcited by 559
- 2019Defending Against Neural Fake Newscited by 553
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2020MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfercited by 443
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 315
- 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 302
- 2020The Pushshift Reddit Datasetcited by 289
- 2017Meta Networkscited by 268
- 2019Massively Multilingual Neural Machine Translation in the Wild: Findings and Challengescited by 253
- 2021Hash Layers For Large Sparse Modelscited by 236
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 232
- 2019Episodic Memory in Lifelong Language Learningcited by 188
- 2020CORD-19: The COVID-19 Open Research Datasetcited by 179
- 2020Recipes for Safety in Open-domain Chatbotscited by 168
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2019LAMOL: LAnguage MOdeling for Lifelong Language Learningcited by 156
- 2020Better Fine-Tuning by Reducing Representational Collapsecited by 156
- 2019Distributionally Robust Language Modelingcited by 142
- 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 142
- 2021Anticipating Safety Issues in E2E Conversational AI: Framework and Toolingcited by 77
- 2020The Radicalization Risks of GPT-3 and Advanced Neural Language Modelscited by 76
- 2018Predicting Factuality of Reporting and Bias of News Media Sourcescited by 71
- 2018Multi-Source Domain Adaptation with Mixture of Expertscited by 62
- 2017Neural Models for Documents with Metadatacited by 46
- 2016What to do about non-standard (or non-canonical) language in NLPcited by 35
- 2016Neurogenesis Deep Learningcited by 32
- 2020Transformer Based Multi-Source Domain Adaptationcited by 23
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2021: 4; 2022: 19; 2023: 30; 2024: 36; 2025: 27; 2026: 14.
130 papers.
Sort:
By area:
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 391
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
- 2022Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpointscited by 207
- 2023Continual Pre-training of Language Modelscited by 194
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2022A Review of Sparse Expert Models in Deep Learningcited by 147
- 2022Lifting the Curse of Multilinguality by Pre-training Modular Transformerscited by 145
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
- 2021Lifelong Pretraining: Continually Adapting Language Models to Emerging Corporacited by 114
- 2022ERNIE-ViLG 2.0: Improving Text-to-Image Diffusion Model with Knowledge-Enhanced Mixture-of-Denoising-Expertscited by 110
- 2024Branch-Train-MiX: Mixing Expert LLMs into a Mixture-of-Experts LLMcited by 106
- 2021Time Waits for No One! Analysis and Challenges of Temporal Misalignmentcited by 91
38 more
- 2023Soft Merging of Experts with Adaptive Routingcited by 88
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2022Continual Learning of Natural Language Processing Tasks: A Surveycited by 83
- 2023Modular Deep Learningcited by 82
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2022ELLE: Efficient Lifelong Pre-training for Emerging Datacited by 70
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
- 2023Lifelong Language Pretraining with Distribution-Specialized Expertscited by 64
- 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learningcited by 63
- 2022NLPeer: A Unified Resource for the Computational Study of Peer Reviewcited by 60
- 2024Towards Lifelong Learning of Large Language Models: A Surveycited by 60
- 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 54
- 2023Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language Modelscited by 46
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
- 2024D-CPT Law: Domain-specific Continual Pre-Training Scaling Law for Large Language Modelscited by 39
- 2024Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Modelscited by 38
- 2023Emergent Modularity in Pre-trained Transformerscited by 37
- 2024Breaking the Curse of Multilinguality with Cross-lingual Expert Language Modelscited by 36
- 2023Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models Memoriescited by 34
- 2022Continual Training of Language Models for Few-Shot Learningcited by 33
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advancescited by 33
- 2021Efficient Hierarchical Domain Adaptation for Pretrained Language Modelscited by 32
- 2024Recent Advances in Generative AI and Large Language Models: Current Status, Challenges, and Perspectivescited by 30
- 2024Gradient Routing: Masking Gradients to Localize Computation in Neural Networkscited by 28
- 2024Model Swarms: Collaborative Search to Adapt LLM Experts via Swarm Intelligencecited by 27
- 2022M2D2: A Massively Multi-domain Language Modeling Datasetcited by 26
- 2023CombLM: Adapting Black-Box Language Models through Small Fine-Tuned Modelscited by 26
- 2023mmT5: Modular Multilingual Pre-Training Solves Source Language Hallucinationscited by 24
- 2024Towards Efficient Mixture of Experts: A Holistic Study of Compression Techniquescited by 24
- 2024Self-MoE: Towards Compositional Large Language Models with Self-Specialized Expertscited by 22
- 2024Unlocking Continual Learning Abilities in Language Modelscited by 22
- 2022KALA: Knowledge-Augmented Language Model Adaptationcited by 21
- 2024Layerwise Recurrent Router for Mixture-of-Expertscited by 21
- 2023ModuleFormer: Modularity Emerges from Mixture-of-Expertscited by 17
- 2023ConPET: Continual Parameter-Efficient Tuning for Large Language Modelscited by 16
50 most cited of 130 All 130 (JSON)
- 2026Evidence-Aligned Local Composition of Discrete Experts for Sequence Restoration5 Sep 2026
- 2026Routing Divergence Is Not Evidence of Behavioral Influence in Same-Weight MoE Self-Distillation16 Aug 2026
- 2026SpecDrop: Parameter-Free Category-Conditioned Routing for Modular Specialization4 Aug 2026
- 2026Capacity and Redundancy Trade-offs in Multi-Task Learning17 Jul 2026
- 2026Modular Pretraining Enables Access Control9 Jul 2026
- 2026A theoretical model for task routing in mixture-of-expert transformers12 Jun 2026
- 2026Natively Unlearnable Large Language Models11 Jun 2026
- 2026Tiny Brains, Giant Impact: Uncovering the Keystone Neurons of LLM with Just a Few Prompts24 May 2026
- 2026FAME: Failure-Aware Mixture-of-Experts for Message-Level Log Anomaly Detection21 May 2026
- 2026CAMERA: Adapting to Semantic Camouflage in Unsupervised Text-Attributed Graph Fraud Detection19 May 2026
- 2026Equifinality in Mixture of Experts: Routing Topology Does Not Determine Language Modeling Quality15 Apr 2026
- 2026Training-Free Dynamic Upcycling of Expert Language Models31 Mar 2026
38 more
- 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Training17 Mar 2026
- 2026What Gets Activated: Uncovering Domain and Driver Experts in MoE Language Models15 Jan 2026
- 2025Mitigating Forgetting in Low Rank Adaptation19 Dec 2025
- 2025Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs5 Dec 2025
- 2025CREST: Improving Interpretability and Effectiveness of Troubleshooting at Ericsson through Criterion-Specific Trouble Report Retrieval21 Nov 2025
- 2025AnaCP: Toward Upper-Bound Continual Learning via Analytic Contrastive Projection17 Nov 2025
- 2025Robust Uncertainty Quantification for Self-Evolving Large Language Models via Continual Domain Pretraining27 Oct 2025
- 2025Neuronal Group Communication for Efficient Neural representation19 Oct 2025
- 2025Analyzing and Internalizing Complex Policy Documents for LLM Agents13 Oct 2025
- 2025JE-IRT: A Geometric Lens on LLM Abilities through Joint Embedding Item Response Theory26 Sep 2025
- 2025Cosine-Similarity Routing with Semantic Anchors for Interpretable Mixture-of-Experts Language Models12 Sep 2025
- 2025Mixture-of-Clustered-Experts: Advancing Expert Specialization and Generalization in Instruction Tuning3 Sep 2025
- 2025ExpertSim: Fast Particle Detector Simulation Using Mixture-of-Generative-Experts28 Aug 2025
- 2025Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models3 Aug 2025
- 2025Dynamic-DINO: Fine-Grained Mixture of Experts Tuning for Real-time Open-Vocabulary Object Detection23 Jul 2025
- 2025Memorization Sinks: Isolating Memorization during LLM Training14 Jul 2025
- 2025FlexOlmo: Open Language Models for Flexible Data Use9 Jul 2025
- 2025Long-Tailed Distribution-Aware Router For Mixture-of-Experts in Large Vision-Language Model2 Jul 2025
- 2025Mixture of Cognitive Reasoners: Modular Reasoning with Brain-Like Specialization16 Jun 2025
- 2025From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertise9 Jun 2025
- 2025Point-MoE: Large-Scale Multi-Dataset Training with Mixture-of-Experts for 3D Semantic Segmentation29 May 2025
- 2025Multi-Domain Explainability of Preferences26 May 2025
- 2025THOR-MoE: Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation20 May 2025
- 2025NoEsis: Differentially Private Knowledge Transfer in Modular LLM Adaptation25 Apr 2025
- 2025MoLAE: Mixture of Latent Experts for Parameter-Efficient Language Models29 Mar 2025
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformer4 Mar 2025
- 2025HDEE: Heterogeneous Domain Expert Ensemble26 Feb 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025Autonomy-of-Experts Models22 Jan 2025
- 2024In-context Continual Learning Assisted by an External Continual Learner20 Dec 2024
- 2024Continual Learning Using Only Large Language Model Prompting20 Dec 2024
- 2024Multi-expert Prompting Improves Reliability, Safety, and Usefulness of Large Language Models1 Nov 2024
- 2024Model Swarms: Collaborative Search to Adapt LLM Experts via Swarm Intelligence15 Oct 2024
- 2024More Experts Than Galaxies: Conditionally-overlapping Experts With Biologically-Inspired Fixed Routing10 Oct 2024
- 2024Automatic Curriculum Expert Iteration for Reliable LLM Reasoning10 Oct 2024
- 2024Gradient Routing: Masking Gradients to Localize Computation in Neural Networks6 Oct 2024
- 2024Exploring the Benefit of Activation Sparsity in Pre-training4 Oct 2024
- 2024Revisiting SMoE Language Models by Evaluating Inefficiencies with Task Specific Expert Pruning2 Sep 2024
50 newest of 130 All 130 (JSON)
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 391
- 2022Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpointscited by 207
- 2022A Review of Sparse Expert Models in Deep Learningcited by 147
- 2023Soft Merging of Experts with Adaptive Routingcited by 88
- 2023Lifelong Language Pretraining with Distribution-Specialized Expertscited by 64
- 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learningcited by 63
- 2024Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Modelscited by 38
- 2024Towards Efficient Mixture of Experts: A Holistic Study of Compression Techniquescited by 24
- 2024Self-MoE: Towards Compositional Large Language Models with Self-Specialized Expertscited by 22
- 2024Layerwise Recurrent Router for Mixture-of-Expertscited by 21
- 2023ModuleFormer: Modularity Emerges from Mixture-of-Expertscited by 17
- 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 14
12 most cited of 38 All 38 (JSON)
- 2026Routing Divergence Is Not Evidence of Behavioral Influence in Same-Weight MoE Self-Distillation16 Aug 2026
- 2026SpecDrop: Parameter-Free Category-Conditioned Routing for Modular Specialization4 Aug 2026
- 2026A theoretical model for task routing in mixture-of-expert transformers12 Jun 2026
- 2026FAME: Failure-Aware Mixture-of-Experts for Message-Level Log Anomaly Detection21 May 2026
- 2026Equifinality in Mixture of Experts: Routing Topology Does Not Determine Language Modeling Quality15 Apr 2026
- 2026Training-Free Dynamic Upcycling of Expert Language Models31 Mar 2026
- 2026What Gets Activated: Uncovering Domain and Driver Experts in MoE Language Models15 Jan 2026
- 2025Cosine-Similarity Routing with Semantic Anchors for Interpretable Mixture-of-Experts Language Models12 Sep 2025
- 2025Mixture-of-Clustered-Experts: Advancing Expert Specialization and Generalization in Instruction Tuning3 Sep 2025
- 2025FlexOlmo: Open Language Models for Flexible Data Use9 Jul 2025
- 2025Point-MoE: Large-Scale Multi-Dataset Training with Mixture-of-Experts for 3D Semantic Segmentation29 May 2025
- 2025THOR-MoE: Hierarchical Task-Guided and Context-Responsive Routing for Neural Machine Translation20 May 2025
12 newest of 38 All 38 (JSON)
- 2024Branch-Train-MiX: Mixing Expert LLMs into a Mixture-of-Experts LLMcited by 106
- 2024Automatic Curriculum Expert Iteration for Reliable LLM Reasoningcited by 16
- 2023A Study of Situational Reasoning for Traffic Understandingcited by 13
- 2025Mixture of Cognitive Reasoners: Modular Reasoning with Brain-Like Specializationcited by 9
- 2022Disentangling Reasoning Capabilities from Language Models with Compositional Reasoning Transformerscited by 3
- 2024Can Large Language Models Learn Independent Causal Mechanisms?cited by 3
- 2025Mixture of Cognitive Reasoners: Modular Reasoning with Brain-Like Specialization16 Jun 2025
- 2024Automatic Curriculum Expert Iteration for Reliable LLM Reasoning10 Oct 2024
- 2024Branch-Train-MiX: Mixing Expert LLMs into a Mixture-of-Experts LLM12 Mar 2024
- 2024Can Large Language Models Learn Independent Causal Mechanisms?4 Feb 2024
- 2023A Study of Situational Reasoning for Traffic Understanding5 Jun 2023
- 2022Disentangling Reasoning Capabilities from Language Models with Compositional Reasoning Transformers20 Oct 2022
- 2024Learning To See But Forgetting To Follow: Visual Instruction Tuning Makes LLMs More Prone To Jailbreak Attackscited by 13
- 2024Solving Token Gradient Conflict in Mixture-of-Experts for Large Vision-Language Modelcited by 11
- 2025Dynamic-DINO: Fine-Grained Mixture of Experts Tuning for Real-time Open-Vocabulary Object Detectioncited by 8
- 2025Long-Tailed Distribution-Aware Router For Mixture-of-Experts in Large Vision-Language Modelcited by 6
- 2025Dynamic-DINO: Fine-Grained Mixture of Experts Tuning for Real-time Open-Vocabulary Object Detection23 Jul 2025
- 2025Long-Tailed Distribution-Aware Router For Mixture-of-Experts in Large Vision-Language Model2 Jul 2025
- 2024Solving Token Gradient Conflict in Mixture-of-Experts for Large Vision-Language Model28 Jun 2024
- 2024Learning To See But Forgetting To Follow: Visual Instruction Tuning Makes LLMs More Prone To Jailbreak Attacks7 May 2024
- 2025Multi-Domain Explainability of Preferencescited by 2
- 2025Multi-Domain Explainability of Preferences26 May 2025
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
- 2023Continual Pre-training of Language Modelscited by 194
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2022Lifting the Curse of Multilinguality by Pre-training Modular Transformerscited by 145
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
- 2021Lifelong Pretraining: Continually Adapting Language Models to Emerging Corporacited by 114
- 2021Time Waits for No One! Analysis and Challenges of Temporal Misalignmentcited by 91
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2022Continual Learning of Natural Language Processing Tasks: A Surveycited by 83
- 2023Modular Deep Learningcited by 82
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
12 most cited of 76 All 76 (JSON)
- 2026Evidence-Aligned Local Composition of Discrete Experts for Sequence Restoration5 Sep 2026
- 2026Capacity and Redundancy Trade-offs in Multi-Task Learning17 Jul 2026
- 2026Modular Pretraining Enables Access Control9 Jul 2026
- 2026Tiny Brains, Giant Impact: Uncovering the Keystone Neurons of LLM with Just a Few Prompts24 May 2026
- 2026CAMERA: Adapting to Semantic Camouflage in Unsupervised Text-Attributed Graph Fraud Detection19 May 2026
- 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Training17 Mar 2026
- 2025Mitigating Forgetting in Low Rank Adaptation19 Dec 2025
- 2025CREST: Improving Interpretability and Effectiveness of Troubleshooting at Ericsson through Criterion-Specific Trouble Report Retrieval21 Nov 2025
- 2025AnaCP: Toward Upper-Bound Continual Learning via Analytic Contrastive Projection17 Nov 2025
- 2025Neuronal Group Communication for Efficient Neural representation19 Oct 2025
- 2025JE-IRT: A Geometric Lens on LLM Abilities through Joint Embedding Item Response Theory26 Sep 2025
- 2025ExpertSim: Fast Particle Detector Simulation Using Mixture-of-Generative-Experts28 Aug 2025
12 newest of 76 All 76 (JSON)