FlyPrompt: Brain-Inspired Random-Expanded Routing with Temporal-Ensemble Experts for General Continual Learning

Hongwei Yan, Guanglong Sun, Kanglei Zhou, Qian Li, Liyuan Wang, Yi Zhong

The Challenge of General Continual Learning

Traditional Continual Learning (CL) assumes a neat, structured world where data arrives in distinct "tasks" with clear boundaries, allowing models multiple training epochs to adapt. However, General Continual Learning (GCL) represents the messy reality of real-world AI: data is non-stationary, arrives in a single pass (online), and lacks explicit task labels.

Current state-of-the-art methods tackle CL using Parameter-Efficient Tuning (PET)—adding small, trainable "prompts" to a large pre-trained model. Yet, these methods face two major bottlenecks when applied to the blurry, single-pass streams of GCL:

  1. Expert Routing: Without task labels, how does the system decide which prompt "expert" should handle a specific input? Existing routers often fail to adapt quickly enough to shifting data distributions.
  2. Expert Competence: In a single-pass setting, an expert might only see a few examples of a class. This limited supervision leads to weak representations and "decision boundary drift," where the output head becomes misaligned with the expert's features over time.

Methods: Mimicking the Fruit Fly Brain

To solve these dual challenges, researchers looked to the Drosophila (fruit fly) mushroom body—a brain structure famous for efficient learning with minimal neurons. The resulting framework, FlyPrompt, decomposes GCL into two biologically inspired components.

GCL as Multi-Expert Learning

1. REAR (Random Expanded Analytic Router)

Mimicking the fly's sensory circuit, REAR uses a fixed Random Projection to expand input features into a high-dimensional, sparse space. Instead of relying on slow, iterative gradient descent to learn routing, it uses a closed-form Analytic Solution (ridge regression) to map inputs to experts. This allows for rapid, non-iterative expert selection that is highly robust to noise and shifting distributions.

2. TE² (Task-wise Experts with Temporal Ensemble)

To maintain expert competence under limited supervision, each prompt expert is paired with a "bank" of output heads. This includes an "online" head for fast adaptation and multiple Exponential Moving Average (EMA) heads that capture knowledge at different timescales (short-term vs. long-term). At inference, the model ensembles these heads to produce a stable, robust prediction, preventing catastrophic forgetting and decision boundary drift.

Additionally, FlyPrompt utilizes an Average-Prompt Warm-start, initializing new experts as the average of previous ones to ensure smoother transitions across blurry task boundaries.

Key Insights

  • Randomness as a Separator: FlyPrompt reinforces the "NeuroAI" concept that fixed random expansions are incredibly powerful for linear separability. By projecting features into a higher dimension randomly, the model distinguishes between tasks more effectively than a learned router that might overfit or lag.
  • The Multi-Clock Brain: By using multiple EMA decay rates, FlyPrompt acknowledges that different types of information need to be retained at different speeds. This mimics biological memory consolidation, where some neurons adapt quickly while others maintain long-term stability.
  • Analytic vs. Iterative: In the "online" world of GCL, models lack the luxury of multiple epochs. Moving the routing logic to a closed-form analytic solution removes the instability of gradient-based optimization in non-stationary streams.

Key Results

The researchers evaluated FlyPrompt using the Si-Blurry GCL configuration across three major benchmarks: CIFAR-100, ImageNet-R, and CUB-200.

FlyPrompt significantly outperformed existing state-of-the-art methods (such as CODA-P, MVP, and MISA) across all metrics:

  • Massive Accuracy Gains: It achieved absolute improvements in average anytime accuracy of 11.23% on CIFAR-100, 12.43% on ImageNet-R, and 7.62% on CUB-200.
  • Unprecedented Stability: While baseline methods showed significant performance "dips" during task transitions, FlyPrompt maintained a remarkably smooth and stable accuracy curve.
  • High Efficiency: Despite its ensemble approach, FlyPrompt adds minimal parameter overhead (roughly 0.83% more than baselines) and maintains highly competitive training and inference speeds.
Average Accuracy over Training Steps

Limitations and Future Work

While FlyPrompt sets a new standard for GCL, the authors identify a few areas for further exploration. Currently, the EMA decay rates are fixed; dynamically adjusting these rates based on detected "drift" in the data stream could further enhance robustness. Additionally, performance under extreme long-tailed distributions remains a challenge. Ultimately, the biological grounding of FlyPrompt makes it a highly promising candidate for real-world Embodied AI applications, such as autonomous agents and robots that must learn "on the fly" in unpredictable environments.

Summary updated

BibTeX
@inproceedings{yan2026flyprompt,
  author = {Hongwei Yan and Guanglong Sun and Kanglei Zhou and Qian Li and Liyuan Wang and Yi Zhong},
  title = {{FlyPrompt: Brain-Inspired Random-Expanded Routing with Temporal-Ensemble Experts for General Continual Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8pi1rP71qv},
}
Figure