paper-with-me

Papers

ModuleFormer: Modularity Emerges from Mixture-of-Experts

2023-06-07 · Yikang Shen, Zheyu Zhang, Tianyou Cao, Shawn Tan, Zhenfang Chen, Chuang Gan

Large Language Models (LLMs) have achieved remarkable results. However, existing models are expensive to train and deploy, and it is also difficult to expand their knowledge beyond pre-training data without forgetting previous knowledge. This paper proposes a new neural network architecture, ModuleFormer, that leverages modularity to improve the efficiency and flexibility of large language models. ModuleFormer is based on the Sparse Mixture of Experts (SMoE). Unlike the previous SMoE-based modular language model, which requires domain-labeled data to learn domain-specific experts, ModuleFormer can induce modularity from uncurated data with its new load balancing and concentration losses. ModuleFormer is a modular architecture that includes two different types of modules: new stick-breaking attention heads and feedforward experts. Different modules are sparsely activated conditions on the input token during training and inference. In our experiment, we found that the modular architecture enables three important abilities for large pre-trained language models: 1) Efficiency, since ModuleFormer only activates a subset of its modules for each input token, thus it could achieve the same performance as dense LLMs with more than two times throughput; 2) Extendability, ModuleFormer is more immune to catastrophic forgetting than dense LLMs and can be easily extended with new modules to learn new knowledge that is not included in the training data; 3) Specialisation, finetuning ModuleFormer could specialize a subset of modules to the finetuning task and the task-unrelated modules could be easily pruned for a lightweight deployment.

📄 PDF Abstract BibTeX arXiv:2306.04640

Code (1)

ibm/moduleformer 공식 구현 pytorch

Tasks

Language ModellingLightweight DeploymentMixture-of-Experts

Similar Papers 제목 키워드 기반

Emergent Modularity in Pre-trained Transformers

2023-05-28 · Zhengyan Zhang, Zhiyuan Zeng, Yankai Lin, Chaojun Xiao 외

This work examines the presence of modularity in pre-trained Transformers, a feature commonly found in human brains and thought to be vital for general intelligence. In analogy to human brains, we consider two main chara…

Mixture-of-Experts

How Modular Is a Frontier Mixture-of-Experts? A Pre-registered Causal Test in Which Apparent Expert Modularity Mostly Dissolves

2026-06-23 · Tony Salomone, Deep Gandhi, Ali Asaria arxiv

Sparse Mixture-of-Experts (MoE) models route each token to a few of many experts, inviting the hypothesis that experts form functional modules tied to capabilities or languages. We test this causally on Command A+, a fro…

BADGER: Learning to (Learn [Learning Algorithms] through Multi-Agent Communication)

2019-12-03 · Marek Rosa, Olga Afanasjeva, Simon Andersson, Joseph Davidson 외

In this work, we propose a novel memory-based multi-agent meta-learning architecture and learning procedure that allows for learning of a shared communication policy that enables the emergence of rapid adaptation to new …

Meta-Learning

EMO: Pretraining Mixture of Experts for Emergent Modularity

2026-05-07 · Ryan Wang, Akshita Bhagia, Sewon Min arxiv

Large language models are typically deployed as monolithic systems, requiring the full model even when applications need only a narrow subset of capabilities, e.g., code, math, or domain-specific knowledge. Mixture-of-Ex…

Expert2Coder: Capturing Divergent Brain Regions Using Mixture of Regression Experts

2019-09-26 · Subba Reddy Oota, Naresh Manwani, Raju S. Bapi

fMRI semantic category understanding using linguistic encoding models attempts to learn a forward mapping that relates stimuli to the corresponding brain activation. State-of-the-art encoding models use a single global m…

Clusteringregression