Reinforced Continual Learning

Ju Xu, Zhanxing Zhu

TL;DR

Reinforced Continual Learning (RCL) frames neural network expansion as a reinforcement learning problem to tackle catastrophic forgetting. By using an LSTM controller to dynamically decide exactly how many filters or neurons to add per layer for each new task—while keeping older weights strictly frozen—RCL prevents forgetting entirely and achieves competitive or superior accuracy with up to 53% fewer parameters than existing expandable architectures.

What Problem Does This Paper Address?

When artificial neural networks learn sequential tasks, they suffer from catastrophic forgetting: learning new information overwrites representations needed for earlier tasks.

Existing approaches fall into two categories, each with notable trade-offs:

  1. Fixed-capacity methods (e.g., EWC, GEM): Keep the architecture fixed and regularize weights or replay episodic memories. These struggle when the task sequence is long because model capacity eventually saturates.
  2. Expandable architectures (e.g., Progressive Neural Networks, DEN): Add capacity as tasks arrive. However, Progressive Networks (PGN) allocate fixed-size columns per task, creating massive parameter redundancy. Dynamically Expandable Networks (DEN) use group-sparsity regularization and network splitting, but rely on brittle hyperparameters and can still forget because they selectively retrain earlier parameters.

The central challenge is determining how much capacity to add per layer adaptively and economically without manual tuning or combinatorial explosion.

Methods

RCL decomposes continual learning into an interaction between three networks:

  • Task Network: A standard CNN or MLP that solves the underlying task. Crucially, when task $t$ arrives, all parameters from tasks $1 \dots t-1$ are frozen, completely eliminating semantic drift and forgetting. Only newly attached filters/units are trained via backpropagation.
  • Controller (LSTM): Treats architecture generation as a sequence prediction problem. In an autoregressive loop, the controller predicts the number of filters or neurons $a_i \in \{0, \dots, n_i - 1\}$ to add to each layer $i \in \{1, \dots, m\}$.
  • Value Network: A fully connected network that estimates state value, serving as a baseline in an actor-critic framework.
                      +-------------------+
                      |  LSTM Controller  |
                      +---------+---------+
                                |  Actions a_{1:m} (units to add per layer)
                                v
+------------------+     +-------------------+     +------------------+
|  Previous Tasks  | --> | Expanded Task Net | --> | Reward Function  |
| (Weights Frozen) |     | (Train New Units) |     |  (Acc - alpha*C) |
+------------------+     +-------------------+     +--------+---------+
                                                            |
                                                            v
                                                   Policy Gradient Update

The controller is trained using policy gradients (REINFORCE) with a composite reward: $$R_t = A_t(s_t, a_{1:m}) + \alpha C_t(s_t, a_{1:m})$$ where $A_t$ is the validation accuracy on the new task, $C_t = -\sum_{i=1}^m k_i$ penalizes the total number of added units, and $\alpha$ balances performance against network footprint.

Datasets

The authors evaluated the method across three sequential benchmarks ($T = 10$ tasks each):

  1. MNIST Permutations: 10 tasks, each applying a distinct fixed random pixel permutation to MNIST digits.
  2. MNIST Mix: 10 tasks alternating between 5 random pixel permutations and 5 digit rotations ($0^\circ$ to $180^\circ$).
  3. Incremental CIFAR-100: 10 sequential tasks, each introducing 10 disjoint object classes from CIFAR-100.

No new datasets were introduced.

Key Insights and Ideas

  • Architecture search bypasses heuristic pruning: Instead of over-allocating weights and relying on sparsity penalties (as in DEN), an RL controller searches the discrete combinatorial space directly, producing lean architectures tailored to task difficulty.
  • Strict parameter isolation guarantees zero forgetting: Freezing earlier weights and timestamping layer shapes ensures zero performance degradation on past tasks at inference time.
  • Reward shaping drives economy: The balance coefficient $\alpha$ allows practitioners to control the trade-off between validation accuracy and parameter count. The authors found that accuracy degrades slowly as $\alpha$ increases, enabling significant parameter savings with negligible accuracy loss.

Key Results

  • Higher accuracy with fewer parameters: On Incremental CIFAR-100, RCL achieved 59.9% average accuracy, outperforming DEN (58.1%), PGN (56.4%), GEM (49.8%), and EWC (32.1%).
  • Substantial compression: On Incremental CIFAR-100, RCL reduced parameters by 42% relative to PGN and 53% relative to DEN while attaining higher test accuracy.
  • Zero forgetting: Tracking Task 1 accuracy over 10 consecutive tasks showed flat performance for RCL and PGN (no forgetting), whereas DEN suffered performance degradation due to selective retraining of earlier parameters.

Limitations and Future Work

  • Training efficiency: Because the controller must sample and evaluate multiple candidate architectures over several epochs, RCL incurs high training wall-clock time (e.g., 34,583 seconds on MNIST Permutations, compared to 452 seconds for PGN).
  • No backward transfer: Freezing previous weights prevents catastrophic forgetting, but it fundamentally prohibits positive backward transfer—where learning future tasks improves performance on older ones.
  • Scalability to deep backbones: Evaluating RL candidates on large modern networks (e.g., deep ResNets) would be computationally demanding without one-shot or weight-sharing search mechanisms.

Summary updated

BibTeX
@inproceedings{xu2018reinforced,
  author = {Ju Xu and Zhanxing Zhu},
  title = {{Reinforced Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=ryWsZd-_-r},
}
Figure