Modular Growth of Hierarchical Networks: Efficient, General, and Robust Curriculum Learning

Mani Hamidi, Sina Khajehabdollahi, Emmanouil Giannakakis, Tim Jakob Schäfer, Anna Levina, Charley M. Wu

Introduction

In the current landscape of artificial intelligence, the dominant paradigm is "scale at all costs," often treating neural networks as monolithic blocks. However, biological brains exhibit a fundamentally different architecture: they are modular, featuring specialized regions that interact to solve complex problems. Standard recurrent neural networks (RNNs) frequently struggle with tasks requiring long-term memory and multi-timescale processing. While increasing model size or tuning individual neuron timescales can help, these monolithic models often plateau early, lack robustness, and are difficult to compress.

This research explores an alternative: modular growth. By adding new "hardware" modules only when a curriculum demands it, can we build AI that is more efficient, capable, and robust?

Methodology: The Modular Growth Strategy

The researchers compared two distinct architectural philosophies using the $N$-parity task, a benchmark for temporal processing where a network must output the XOR sum of the last $N$ bits in a random stream. As $N$ increases, the memory requirements grow exponentially.

  1. Non-Modular (Monolithic): A fixed-size reservoir of neurons where the entire network is retrained as task difficulty ($N$) increases.
  2. Modular Growth: The network begins with a single small RNN module. As the curriculum difficulty increases, a new module and corresponding readout head are added. Crucially, when a new module is introduced, the weights of all previous modules are "frozen." Only the new module and the inter-module connections are trained.
Figure 1: Comparison of Non-Modular vs. Modular growth strategies across curriculum steps. In the modular approach, new modules are added and previous ones are frozen as task complexity ($N$) increases.

This approach also utilizes Weight Duplication, where new modules inherit initial weights from successful predecessors, and Timescale Estimation to distinguish between raw parameter values and the actual duration information persists in the network (effective timescale).

Key Results and Insights

The modular growth strategy demonstrated significant advantages across several performance metrics:

  • Superior Scaling: While monolithic networks typically plateaued at a complexity of $N=10$ to $20$, modular networks maintained a linear progression, easily reaching $N=60$ and, in some experiments, as high as $N=200$.
  • Parameter Efficiency: Modular networks occupy a superior Pareto frontier. For any given budget of trainable parameters, they achieve higher accuracy and solve significantly harder tasks than their non-modular counterparts.
  • Enhanced Generalization: These networks excelled at "Task Generalization," applying knowledge from difficulty $N$ to $N+K$ with minimal additional training.
Figure 2: Performance metrics showing (a) superior scaling of modular networks over epochs, (b) higher parameter efficiency, and (c) better accuracy during task generalization compared to non-modular models.

Beyond raw performance, the study revealed that the structure of connections between modules is more critical than individual neuron properties. Modular networks developed long "effective timescales" through their architecture even when individual neurons remained "fast." Furthermore, the functional division of labor—where recurrent connections create dynamical building blocks and feedforward connections act as "control flow"—made these architectures significantly more resistant to noise and weight perturbations.

Conclusion and Future Work

The modular growth approach mimics biological evolution (reminiscent of gene duplication) and provides a powerful inductive bias that prevents catastrophic forgetting. While highly parameter-efficient, this method does increase the total neuron count linearly with task complexity, suggesting a trade-off between connection and neuron costs seen in biological systems.

Future research will investigate more flexible growth strategies, such as adding redundancy or allowing multiple modules to compete for the same task to develop even more robust representations. Applying this curriculum to real-world temporal challenges like speech recognition or complex navigation remains a promising next step.

Summary updated

BibTeX
@misc{hamidi2024modular,
  author = {Mani Hamidi and Sina Khajehabdollahi and Emmanouil Giannakakis and Tim Jakob Schäfer and Anna Levina and Charley M. Wu},
  title = {{Modular Growth of Hierarchical Networks: Efficient, General, and Robust Curriculum Learning}},
  year = {2024},
  eprint = {2406.06262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06262},
}
Figure