Is Parameter Isolation Better for Prompt-Based Continual Learning?

Jiangyang Li, Chenhao Ding, SongLin Dong, Qiang Wang, Jianchao Zhao, Yuhang He, Yihong Gong

TL;DR

This paper challenges the dominant paradigm in prompt-based continual learning that completely isolates parameters between tasks. By introducing Hash, a history-aware prompt-sharing framework, the authors demonstrate that dynamic prompt sharing combined with smart routing and gradient modulation achieves superior accuracy and parameter efficiency while effectively mitigating catastrophic forgetting.

What Problem Does This Paper Address?

Continual learning (CL) requires machine learning models to learn new tasks sequentially without forgetting previously acquired knowledge—a challenge known as catastrophic forgetting.

Recently, prompt-based tuning has emerged as a powerful solution. Instead of updating an entire massive model, researchers freeze a pre-trained backbone (like a Vision Transformer) and only optimize a small set of learnable parameters called "prompts."

However, most mainstream prompt-based CL methods rely on parameter isolation, allocating a fixed, independent set of prompts to each individual task. While this rigidly prevents cross-task interference, it introduces two major flaws:

  1. It prevents the model from sharing knowledge between related tasks (suboptimal parameter utilization).
  2. It lacks the flexibility to scale efficiently over long, heterogeneous task sequences.

Conversely, if you simply let all tasks share a global pool of prompts without constraints, a few "dominant" prompts get repeatedly overwritten, destroying past knowledge. This paper tackles the core question: Can we build a shared-prompt framework that reuses knowledge efficiently without suffering from catastrophic forgetting?

Methods

The authors propose Hash (History-aware prompt-sharing framework), which replaces rigid parameter isolation with an intelligent, regulated Mixture-of-Experts (MoE) approach.

Figure 2. Network architecture overview: Our method adopts a MoE-based shared prompt strategy. During training, the historical activation count of each prompt is recorded and incorporated as a bias term into the router’s scoring mechanism, enabling dynamic and informed expert selection based on historical usage.

The framework introduces two key components:

  1. Shared Prompt Pool with Dynamic Allocation: Hash maintains a global pool of prompts where each prompt acts as an "expert" specializing in certain feature patterns. For any given input, a lightweight, task-aware gating mechanism (router) dynamically selects and blends the top-$k$ most relevant prompts.
  2. History-Aware Modulator: To prevent the shared prompts from being overused and overwritten, a modulator tracks cumulative prompt activation statistics during training and applies two synergistic strategies:
  3. History-Aware Dynamic Routing (HDR): It penalizes the selection scores of overused prompts, forcing the router to distribute the load and choose underutilized experts.
  4. History-Aware Gradient Modulation (HGM): It scales down the gradient updates for frequently activated prompts. This implicitly stabilizes and protects parameters that hold crucial historical knowledge.

Datasets

The authors evaluated Hash across a diverse suite of class-incremental and domain-incremental learning benchmarks:

  • Split CIFAR-100: 100 natural image classes split into 10 sequential tasks.
  • Split ImageNet-R: 200 classes containing various artistic renditions, sketches, and styles split into 10 tasks (introducing a heavy domain shift).
  • Split CUB-200: A fine-grained bird classification dataset split into 10 tasks.
  • 5-Datasets: A highly heterogeneous sequence of five distinct image datasets (CIFAR-10, MNIST, Fashion-MNIST, SVHN, and notMNIST).
  • CORe50: A benchmark specifically used to evaluate Domain-Incremental Learning (DIL).

Key Insights and Ideas

  • Compositional Prompt Spaces Boost Generalization: Instead of treating prompts as isolated task identifiers, dynamically blending a subset of shared prompts allows the model to create a continuous, highly expressive representation space. This significantly improves the model's ability to generalize to novel classes.
  • The Overuse Trap: Without regulation, dynamic prompt selection naturally suffers from a "rich-get-richer" phenomenon. A few versatile prompts get selected constantly, leading to severe catastrophic forgetting as their parameters are repeatedly overwritten.
  • Dual-Control Stability: Load balancing at the routing level (HDR) isn't enough on its own. True stability requires a dual-control mechanism that pairs routing penalties with physical parameter protection via gradient scaling (HGM). Together, they perfectly balance plasticity (learning new tasks) and stability (retaining old tasks).

Key Results

Hash consistently outperformed state-of-the-art prompt-based CL methods (including NoRGa, HiDe-Prompt, and CODA-Prompt) across all benchmarks:

  • Top-Tier Accuracy: Hash achieved a Final Average Accuracy (FAA) of 95.02% on Split CIFAR-100 and 79.02% on Split ImageNet-R, outperforming the closest isolation-based baseline (NoRGa) by notable margins while maintaining a low forgetting rate.
  • Long-Sequence Scalability: When tested on an extended 20-task sequence, the performance gap between Hash and competing methods widened, demonstrating that prompt sharing scales much better over long lifespans than static allocation.
  • Efficiency Gains: Hash achieves a superior accuracy-to-parameter trade-off, delivering higher performance with a lower total parameter footprint than hierarchical prompt allocation designs.

Limitations and Future Work

While Hash marks a significant step forward for prompt-sharing architectures, the authors note a couple of limitations:

  • Scale Constraints: Due to computational resource limits, the framework was primarily validated using a ViT-B/16 backbone. Future work will explore scaling Hash to much larger foundation models.
  • Low Task Similarity: The current framework's advantages are most pronounced when tasks share underlying features. The authors aim to further optimize the network to maintain its edge even under conditions of extremely low task similarity.

Summary updated

BibTeX
@inproceedings{li2026is,
  author = {Jiangyang Li and Chenhao Ding and SongLin Dong and Qiang Wang and Jianchao Zhao and Yuhang He and Yihong Gong},
  title = {{Is Parameter Isolation Better for Prompt-Based Continual Learning?}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=PIL2YGd4yn},
}
Figure