[Paper Review] Modular Deep Learning
A survey of modular deep learning architectures, detailing how modules, routing, aggregation, and training components interoperate to enable positive transfer, compositional generalisation, and parameter efficiency across NLP, vision, speech, and RL tasks.
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/.
Motivation & Objective
- Explain why modularity helps with transfer learning and systematic generalisation.
- Provide a unified taxonomy of modular deep learning, covering computation, routing, aggregation, and training.
- Survey existing module implementations, routing strategies, and aggregation mechanisms and how they interact with training settings.
- Highlight applications and future directions for modularity in NLP, vision, speech, and reinforcement learning.
Proposed method
- Define a general modular function composed of computation, routing, and aggregation blocks.
- Categorise computation into parameter, input, and function composition plus hypernetworks.
- Differentiate routing by fixed versus learned, and soft versus hard routing, including top-k and Mixture-of-Experts variants.
- Describe aggregation strategies ranging from deterministic weighting to attention-based learnable aggregators.
- Discuss training settings: joint multitask learning, continual learning, and post-hoc modularisation of pre-trained models.
- Provide a unified notation and algorithmic view of modular function forward passes (Algorithm 1).
Experimental results
Research questions
- RQ1How can modular architectures mitigate interference and forgetting in multi-task and continual learning?
- RQ2What are the design choices (computation, routing, aggregation) that enable positive transfer and systematic generalisation?
- RQ3How do various modular approaches scale across languages, modalities, and tasks?
- RQ4What are practical training regimes to deploy modular components with pre-trained backbones?
- RQ5Which applications demonstrate the benefits of modularity in transfer learning and generalisation?
Key findings
- Modularity decouples computation from routing and updating, enabling local module updates and improved robustness to distribution shifts.
- A unified view shows many methods as combinations of computation, routing, aggregation, and training, clarifying connections across literature.
- Sparse and low-rank adapters, prompt-based, and hypernetwork-based modules offer parameter-efficient fine-tuning and scalable growth.
- Hard routing with selective module activation enables conditional computation and modular specialisation, while soft routing provides gradient-friendly training.
- Modularity supports cross-lingual, cross-modal knowledge transfer and broader transfer learning applications across NLP, CV, and speech.
- Modularity also informs hierarchical RL, programme simulation, causal discovery, and general-purpose agents.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.