Modular Deep Learning
Jonas Pfeiffer, Sebastian Ruder, Ivan Vulić, Edoardo Maria Ponti
TL;DR
Modular deep learning addresses transfer learning limitations by separating computation, routing, and aggregation into autonomous modules that can be combined and updated locally. The paper provides a unified taxonomy of computation functions (parameter, input, function, hypernetworks), routing strategies (fixed, learned hard/soft, with varying levels), and aggregation methods, and maps these to training settings and applications. It demonstrates that modularity enables positive transfer, continual learning, and parameter-efficient fine-tuning across NLP, speech, CV, and cross-modal tasks, with concrete case studies and design principles. The work highlights potential for scalable generalisation, domain knowledge injection, and multi-task to lifelong learning, and points to future directions such as modular instruction tuning and standardized evaluation.
Abstract
Transfer learning has recently become the dominant paradigm of machine learning. Pre-trained models fine-tuned for downstream tasks achieve better performance with fewer labelled examples. Nonetheless, it remains unclear how to develop models that specialise towards multiple tasks without incurring negative interference and that generalise systematically to non-identically distributed tasks. Modular deep learning has emerged as a promising solution to these challenges. In this framework, units of computation are often implemented as autonomous parameter-efficient modules. Information is conditionally routed to a subset of modules and subsequently aggregated. These properties enable positive transfer and systematic generalisation by separating computation from routing and updating modules locally. We offer a survey of modular architectures, providing a unified view over several threads of research that evolved independently in the scientific literature. Moreover, we explore various additional purposes of modularity, including scaling language models, causal inference, programme induction, and planning in reinforcement learning. Finally, we report various concrete applications where modularity has been successfully deployed such as cross-lingual and cross-modal knowledge transfer. Related talks and projects to this survey, are available at https://www.modulardeeplearning.com/.
