Brain-Inspired Hierarchical Modularity for General Continual Learning

Hongwei Yan, Kanglei Zhou, Qi Cheng, Weiyi Dong, Chunyan Lan, Guanglong Sun, Jun Zhou, Qian Li, Yi Zhong, Liyuan WangarXiv 2026

TL;DR

FlyGCL introduces a brain-inspired hierarchical modular framework for general continual learning under realistic, unpredictable data streams. By mimicking the Drosophila (fruit fly) olfactory system, the method combines mixture-of-experts routing with multi-timescale ensemble learning to separate conflicting experiences and integrate compatible ones. This approach yields massive performance leaps over standard replay-free methods, particularly in embodied robotic manipulation tasks.

What Problem Does This Paper Address?

Artificial intelligence models excel at learning from static, neatly curated datasets. However, when deployed in the real world, they face General Continual Learning (GCL)—an environment where data arrives as an online, non-stationary, and "blurry" stream without clear task boundaries or explicit task labels.

Under these conditions, standard neural networks suffer from catastrophic forgetting (overwriting old knowledge with new data) or a loss of plasticity (becoming too rigid to learn new things). The fundamental challenge of GCL is balancing two opposing forces:

  1. Separation: Conflicting experiences must be isolated to prevent interference and forgetting.
  2. Integration: Compatible experiences must be merged to exploit shared structures and promote generalization.

Existing machine learning techniques usually tackle these forces in isolation using either Mixture-of-Experts (MoE) for separation or Ensemble Learning (EL) for integration. Directly combining them is notoriously difficult because their structural goals conflict.

Methods

To resolve this tension, the authors look to biology—specifically, the olfactory learning and memory system of the fruit fly (Drosophila melanogaster).

Fig. 1: Brain-inspired hierarchical modular framework for general continual learning (GCL). a: Real-world environments induce online and uncertain streams, where data distribu- tions evolve and previously seen concepts may recur over time. b: Biological inspiration from the Drosophila olfactory learning and memory system. Olfactory receptor neurons (ORNs) project to projection neurons (PNs) and are sparsely expanded into Kenyon cells (KCs), motivating hierarchical modular learning. The upper branch illustrates ensemble learning, where multiple readouts A1, A2, A3 share the same distribution DA, while the lower branch illustrates mixture-of-experts, where different distributions DA, DB, DC are assigned to spe- cialized experts. c: Brain-inspired framework for GCL. Online data streams are processed by a pretrained model and adapted through sparse expansion with nonlinear activation, expert routing, and multi-timescale expert integration, where routing is solved by closed-form ridge regression in the latent space. The resulting representations support diverse downstream tasks.

The resulting framework, FlyGCL, implements a three-level hierarchical architecture downstream of a stable, frozen pretrained foundation model:

  • Sparse Random Expansion: Inspired by how the fly's projection neurons expand sensory signals into thousands of Kenyon cells, FlyGCL projects the foundation model's latent features into a high-dimensional space using a fixed random matrix and a non-linear activation function. This enhances pattern separation.
  • Analytic Expert Routing (MoE-like): Instead of using slow, iterative gradient descent to train a routing network (which fails in fast online streams), FlyGCL uses a closed-form ridge regression solution. This analytic router instantly assigns incoming data to specialized spatial experts based on accumulated feature statistics.
  • Temporal Ensemble Integration (EL-like): Within each expert, FlyGCL maintains multiple output heads operating at different timescales via varying Exponential Moving Average (EMA) decay rates. Fast-updating heads capture immediate, short-term changes, while slow-updating heads preserve stable, long-term decision boundaries.

Datasets

The authors evaluated FlyGCL across four distinct, challenging domains under online, blurry stream configurations:

  • Visual Recognition: CIFAR-100, ImageNet-R (distribution-shifted concepts), and CUB-200 (fine-grained bird categories).
  • Vision-Language Learning: CLIP-based classification benchmarks on CIFAR-100 and ImageNet-R.
  • Ego-Exo Video Understanding: EgoExoLearn and EgoExo-Fitness, which require models to connect first-person (egocentric) and third-person (exocentric) video perspectives of human activities.
  • Embodied Vision-Language-Action Learning: The LIBERO robotic manipulation benchmark suite, including its Spatial, Object, Goal, and Long-horizon task variations.

Key Insights and Ideas

  • The Fly's Hierarchical Blueprint: The core "aha moment" is that the fruit fly's mushroom body doesn't just separate patterns or store memories; it coordinates both functions hierarchically. It uses spatial compartmentalization to separate distinct distributions and distinct lobes to handle short-, mid-, and long-term memory timescales.
  • Pretraining Minimizes the Coordination Cost: The authors provide a rigorous theoretical risk decomposition showing that combining MoE and EL introduces a "coordination cost" (the penalty of making imperfect routing decisions). Crucially, they prove mathematically that utilizing a stable, semantically organized pretrained backbone minimizes this penalty, making hierarchical modularity highly robust.
  • Closed-Form Efficiency: Replacing gradient-based routing with closed-form ridge regression removes the instability of online router optimization, making it perfectly suited for single-pass data streams.

Key Results

FlyGCL consistently outperformed state-of-the-art continual learning baselines (such as L2P, DualPrompt, CODA-Prompt, and MISA) across all benchmarks without requiring a data replay buffer.

Fig. 3: Results on continual visual recognition benchmarks. a: Illustration of real-world vision scenarios, where agents continuously encounter diverse objects across evolving sessions. b: Overall performance comparison with state-of-the-art baselines. c: Unified performance summary across datasets, pretrained models, and evaluation metrics. d: Ablation analysis of mixture-of-experts (MoE) and ensemble learning (EL). In b–d, FlyGCL uses LoRA modules as adaptive experts. All results are averaged over five independent runs; error bars indicate the standard error of the mean. Complete results for prompt-, adapter-, and LoRA-based instantia- tions are reported in Supplementary Tabs. S3 and S4.
  • Robotic Manipulation (LIBERO): The most dramatic results occurred in embodied learning. On the LIBERO-Spatial and LIBERO-Object suites, FlyGCL achieved final success rates of 83.1% and 86.1%, respectively—outperforming the strongest replay-free baselines by 49.5 to 58.8 percentage points.
  • Visual Recognition: FlyGCL achieved an anytime accuracy (AUC) improvement of up to 13.8% on ImageNet-R and 12.6% on CUB-200 compared to competing methods.
  • Cross-Modal Stability: In vision-language tasks, representation analysis showed that FlyGCL successfully adapted to new visual concepts while tightly preserving the original, pretrained image-text semantic alignment space.

Limitations and Future Work

While FlyGCL represents a major step forward, the authors note several limitations that pave the way for future research:

  • Simplified Biology: The model abstracts away complex biological features like richer neuromodulatory dynamics (e.g., dopamine/serotonin interactions) and behavioral feedback loops.
  • Passive Learning: The current framework operates on a predetermined data stream. It does not yet incorporate active exploration or dynamic resource allocation, which are essential for truly open-ended, autonomous agents.
  • Lightweight Plasticity: Plasticity is currently restricted to lightweight parameter-efficient modules (like LoRA or adapters). Extending this hierarchical coordination to deeper, structural updates within massive foundation models remains an open challenge.

Summary updated

BibTeX
@misc{yan2026brain,
  author = {Hongwei Yan and Kanglei Zhou and Qi Cheng and Weiyi Dong and Chunyan Lan and Guanglong Sun and Jun Zhou and Qian Li and Yi Zhong and Liyuan Wang},
  title = {{Brain-Inspired Hierarchical Modularity for General Continual Learning}},
  year = {2026},
  eprint = {2609.25146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.25146},
}
Figure