Abstract
Parameter regularization or allocation methods are effective in overcoming catastrophic forgetting in lifelong learning. However, they solve all tasks in a sequence uniformly and ignore the differences in the learning difficulty of different tasks. So parameter regularization methods face significant forgetting when learning a new task very different from learned tasks, and parameter allocation methods face unnecessary parameter overhead when learning simple tasks. In this paper, we propose the Parameter Allocation & Regularization (PAR), which adaptively select an appropriate strategy for each task from parameter allocation and regularization based on its learning difficulty. A task is easy for a model that has learned tasks related to it and vice versa. We propose a divergence estimation method based on the Nearest-Prototype distance to measure the task relatedness using only features of the new task. Moreover, we propose a time-efficient relatedness-aware sampling-based architecture search strategy to reduce the parameter overhead for allocation. Experimental results on multiple benchmarks demonstrate that, compared with SOTAs, our method is scalable and significantly reduces the model's redundancy while improving the model's performance. Further qualitative analysis indicates that PAR obtains reasonable task-relatedness.
1. Introduction
In Lifelong Learning (LL), a model must learn a sequence of tasks incrementally. The primary challenge is "catastrophic forgetting," where the model overwrites knowledge of previous tasks to accommodate new ones. Existing solutions typically utilize either Parameter Regularization, which constrains weight updates to protect old knowledge, or Parameter Allocation, which adds new parameters or "experts" for each task.
However, these methods treat all tasks uniformly. Regularization fails when new tasks are significantly different from previous ones, while allocation leads to "parameter explosion" by adding redundant capacity for simple, related tasks. The core insight of this work is that task difficulty is contextual: a task is "easy" if it relates to prior knowledge and "difficult" if it is novel. The proposed Parameter Allocation & Regularization (PAR) framework adaptively chooses the optimal strategy based on this difficulty.
2. Methodology
2.1 Task Distance via Nearest-Prototype Distance
To determine the learning strategy, PAR first measures the distance ($s$) between a new task and previously learned task groups. Since storing raw data from previous tasks is often prohibited, PAR estimates the KL divergence between task distributions using prototypes—the mean feature vectors of each class. By comparing the features of the new task to these stored prototypes in a latent space, the model estimates task relatedness without needing a full replay buffer.
2.2 Adaptive Learning Strategy
Based on the calculated distance $s$ and a threshold $\alpha$, the model selects one of two paths:
- Regularization (Easy/Related): If $s \leq \alpha$, the task is assigned to an existing task group. The model reuses that group's expert module and applies distillation-based regularization to integrate new knowledge without forgetting.
- Allocation (Difficult/Novel): If $s > \alpha$, the task is considered novel. The model allocates a new expert module to handle this distinct category of knowledge.
2.3 Relatedness-Aware Hierarchical NAS
To maintain parameter efficiency during allocation, PAR employs a hierarchical Neural Architecture Search (NAS). If a task is moderately related (between thresholds $\alpha$ and $\beta$), it reuses the architecture of a previous expert but initializes new weights. If the task is entirely novel ($s > \beta$), the system searches for a brand-new, optimized cell structure. This ensures the model only grows its architectural complexity when absolutely necessary.
3. Experiments and Results
3.1 Benchmarks
PAR was evaluated on complex benchmarks including CTrL (Continual Transfer Learning), which tests scalability and knowledge transfer, and a mixed CIFAR100 & F-CelebA stream designed to test highly dissimilar data handling.
3.2 Performance and Efficiency
PAR consistently outperformed state-of-the-art (SOTA) baselines:
- Accuracy: On the CTrL $S^-$ stream, PAR achieved an Average Performance (AP) of 0.706, surpassing LMC (0.666) and HAT (0.570).
- Scalability: In a 100-task sequence ($S^{long}$), PAR maintained a high accuracy of 0.773 using only 13.47M parameters. In contrast, an independent model-per-task approach required 60.7M parameters while achieving a significantly lower accuracy of 0.570.
- Semantic Grouping: Qualitative analysis on CIFAR100-coarse showed that PAR naturally groups semantically related tasks, such as aquatic mammals with fish, validating the prototype-based distance metric.
4. Conclusion
PAR addresses the inefficiency of uniform lifelong learning strategies by introducing task-difficulty awareness. By combining prototype-based distance estimation with an adaptive choice between regularization and allocation, the framework achieves superior accuracy and parameter efficiency. Future work will focus on reducing the dependency on pre-trained feature extractors and automating threshold tuning for unknown task sequences.
Summary updated