Abstract
Continual learning in neural networks is often hindered by catastrophic forgetting, where new task acquisition degrades performance on previously learned tasks. We present BOCL (Bayesian Optimized Continual Learning), a framework that addresses this by dynamically expanding network architecture. BOCL utilizes Bayesian Optimization to determine the optimal number of new neurons and an attention mechanism to selectively transfer knowledge from prior tasks. Our results demonstrate that BOCL achieves state-of-the-art accuracy with significantly reduced parameter growth and training time compared to existing expansion-based methods.
Introduction
Artificial Intelligence systems frequently struggle with learning a sequence of tasks, a challenge known as Continual Learning. Standard neural networks typically suffer from "catastrophic forgetting," where the weights optimized for earlier tasks are overwritten during subsequent learning. Existing solutions generally involve either regularization—penalizing changes to critical weights—or architectural expansion—adding new capacity for new tasks. However, regularization often leads to a performance trade-off, while expansion can result in bloated, inefficient models.
BOCL aims to find an optimal balance by expanding the architecture just enough to accommodate new learning without unnecessary complexity, while effectively "borrowing" relevant features from past tasks through a selective attention mechanism.
Methods
The BOCL framework is built upon two primary components: Bayesian Optimization for architecture search and an Attention Mechanism for selective knowledge transfer.
Bayesian Optimization for Architecture Search
Instead of manual tuning or computationally expensive reinforcement learning, BOCL treats the determination of the number of filters or nodes to add for a new task as a black-box optimization problem. A Gaussian Process models the relationship between network size and performance, guided by an "Expected Improvement" (EI) acquisition function to identify the most promising architectures to evaluate.
To accelerate this process, BOCL employs "warm-starting," utilizing meta-features of previous tasks stored in episodic memory to initialize the search for new, similar tasks.
Attention Mechanism for Knowledge Transfer
To prevent "negative transfer"—where irrelevant past knowledge interferes with a new task—BOCL introduces channel-wise (for CNNs) and node-wise (for fully connected layers) attention. This mechanism acts as a filter, allowing the model to focus on relevant features from previous tasks while ignoring those that might cause semantic drift.
Upon the arrival of a new task, weights from previous tasks are frozen to ensure zero forgetting, and only the newly added parameters and attention masks are trained.
Experimental Evaluation
BOCL was evaluated on three standard benchmarks:
- MNIST Permutations: Ten variants of MNIST with random pixel permutations.
- MNIST Mix: A hybrid of five permuted and five rotated MNIST tasks.
- Incremental CIFAR-100: Ten tasks, each introducing 10 new classes.
Key Results and Insights
The evaluation revealed several critical advantages of the BOCL framework:
- Zero Forgetting: By freezing previous task weights, BOCL maintains 100% performance on initial tasks throughout the learning sequence.
- Parameter Efficiency: On CIFAR-100, BOCL required 60% fewer parameters than Dynamically Expandable Networks (DEN) and 52% fewer than Progressive Neural Networks (PGN) while maintaining competitive accuracy.
- Training Speed: BOCL reduced training time by 49% to 62% compared to Reinforcement Learning-based expansion methods (RCL).
- Selective Transfer: The attention mechanism effectively prevents negative transfer, proving that selective knowledge utilization is superior to using all previous features.
Limitations and Future Work
While BOCL is significantly faster than RL-based methods, it still incurs a higher training cost (approximately 51% more on CIFAR-100) compared to simpler methods like DEN due to the iterative nature of Bayesian Optimization. Future research will focus on improving the scalability of the BO process for industrial-scale datasets and deep architectures like ResNet-101. Additionally, while the current model assumes task identity is known during inference, future iterations aim to remove this requirement for more autonomous operation.
Summary updated