Introduction
Deep learning has historically leaned towards "monolithic" architectures—black boxes where every parameter potentially influences every output. While powerful, these systems are notoriously difficult to debug, expensive to scale, and lack the flexibility to be easily repurposed. In their survey, Haozhe Sun and Isabelle Guyon argue that modularity is the essential organizational principle needed to overcome these hurdles, enabling human-like generalization, scalability, and interpretability.
A Unified Taxonomy of Modularity
The core contribution of this survey is a comprehensive taxonomy that categorizes modularity across three critical axes: data, task, and model. This framework moves beyond architectural "tricks" to define modularity as a property inherent throughout the machine learning lifecycle.
1. Data Modularity
Data modularity refers to how information is grouped or partitioned.
- Intrinsic Modularity: Natural divisions found in data, such as object classes (e.g., dogs vs. cats) or different modalities (e.g., video vs. audio).
- Imposed Modularity: Human-defined structures introduced during training, such as mini-batches, data augmentation strategies, or curriculum learning schedules.
2. Task Modularity
This axis focuses on decomposing complex goals into manageable sub-problems.
- Parallel Decomposition: Splitting a multi-class classification problem into several independent binary classification tasks.
- Sequential Decomposition: Breaking a pipeline into distinct stages, such as an OCR system that first performs text detection followed by character recognition.
3. Model Modularity
Model modularity concerns the internal architecture of the neural network.
- Static Composition: Fixed structural components like ResNet blocks or ensemble methods.
- Conditional Composition: Dynamic systems such as Mixture-of-Experts (MoE). In MoE, only specific "expert" modules are activated for a given input, allowing models to scale to trillions of parameters without a linear increase in per-inference computational cost.
Key Insights: The Path to Combinatorial Generalization
The authors highlight several fundamental concepts that drive modular research:
- "Infinite Use of Finite Means": By recombining a finite set of learned "skills" or modules, AI systems can achieve combinatorial generalization—the ability to solve novel problems by rearranging known concepts.
- Module Autonomy: A "good" module must be autonomous. High interdependence between modules leads to "module collapse," particularly in MoE systems, where the benefits of reusability and replaceability are lost.
- Scaling and Efficiency: Modularity is currently the only viable path to trillion-parameter models. Conditional computation allows for massive increases in model capacity while maintaining manageable computational overhead.
Trends and Results
The survey quantifies a significant surge in research interest, with the ratio of modularity-focused papers in deep learning spiking dramatically since 2018.
Modular architectures like Transformers and MoEs have become the state-of-the-art in NLP and Computer Vision. Beyond performance, these structures offer improved knowledge retention and mitigate "catastrophic forgetting" in continual learning scenarios. Furthermore, modularity enhances interpretability; by observing which modules are activated for a specific query, researchers can trace the model's underlying logic.
Future Directions
Despite recent progress, several challenges remain:
- Automating Decomposition: Most current task and model decompositions are handcrafted. The authors suggest that AutoML should shift focus toward discovering optimal modular structures automatically.
- Metrics for Compositionality: There is a lack of domain-agnostic metrics to verify if a model is truly behaving compositionally versus just memorizing patterns.
- The Data-Model Mapping: A major open question is how the intrinsic modularity of the real world should ideally dictate the modular structure of the model. Finding this "optimal mapping" remains a frontier for future research.
Summary updated