Gated Target Propagation for Compositional Generalization in Continual Learning
Organizations: Université de Montr´eal Mila Quebec AI Institute · University of Oregon Mila Quebec AI Institute · McGill University Mila Quebec AI Institute
Abstract
Continual learning is typically framed as acquiring new knowledge without catastrophically forgetting previous tasks. However, a flexible continual learner should also be able to reuse and recombine previously acquired knowledge to rapidly solve novel task compositions. We introduce Gated Target Propagation (GaTaP), a continual learning algorithm in which task-specific gating variables---learned through a closed-form inner loop update---selectively suppress or enhance network modules. Network parameters are learned in a slower timescale outer loop, using the same local difference target propagation error signal as is used for adapting gating variables. We provide tractable experiments on class-incremental learning scenarios for both multilayer perceptron and convolutional network architectures. We show strong performance retention on previously learned tasks, as well as compositional generalization to unseen tasks, achieved through few-shot gain adaptation at inference. We analyze learned gating patterns and find that related tasks exhibit similar gating patterns, suggesting that inferred gates capture meaningful, reusable task structure. Overall, GaTaP provides a powerful framework for jointly ameliorating catastrophic forgetting and enabling few-shot compositional generalization in neural network models.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Architecture | Feedforward MLP |
| Hidden layer sizes | 64, 128 |
| Epochs per task | 10 |
| Learning rate ( ) | |
| Optimizer | Adam |
| Random seed | 42 |
| GaTaP | |
| Number of subnetworks | 1 |
| Sparsity coefficient ( ) | |
| Gamma inference steps (train / test) | 10 / 10 |
| Noise scale by layer ( ) | 0.1, 0.1, 0.1 |
| Support examples per class (train / test) | 32 / 64 |
| Query batch size (train / test) | 128 / 256 |
| Hyperparameter | Value |
|---|---|
| Architecture | Simple ResNet (CNN) |
| Channel widths | 16, 32, 64, 128, 256, 512 |
| Kernel size | 5 |
| Epochs per task | 10 |
| Learning rate ( ) | |
| Optimizer | Adam |
| GaTaP | |
|---|---|
| Number of subnetworks | 1 |
| Gamma mode | Spatial |
| Sparsity coefficient ( ) | |
| Gamma scale | 1.0 |
| Gamma inference steps (train / test) | 10 / 10 |
| Noise scale by layer ( ) | 0.1 (all 7 layers) |
| Hyperparameter | Value |
|---|---|
| Architecture | Simple ResNet (CNN) |
| Channel widths | 16, 32, 64, 128, 256, 512 |
| Kernel size | 5 |
| Epochs per task | 20 |
| Learning rate ( ) | |
| Optimizer | Adam |
| GaTaP | |
|---|---|
| Number of subnetworks | 2 |
| Gamma mode | Spatial |
| Sparsity coefficient ( ) | |
| Gamma scale | 1.0 |
| Gamma inference steps (train / test) | 10 / 10 |
| Noise scale by layer ( ) | 0.1 (all 7 layers) |
Continual Learning
Continual Learning studies how models acquire knowledge from changing data streams while retaining or selectively revising what they learned before.
See all 301 papers