Gated Target Propagation for Compositional Generalization in Continual Learning

Abdel Mfougouon Njupoun, Colin Bredenberg, Blake Aaron Richards, Guillaume LajoiearXiv 2026

TL;DR

The authors introduce Gated Target Propagation (GaTaP), a new framework for continual learning that separates "what" the network knows from "how" it uses that knowledge. By using fast-adapting, task-specific gates alongside slow-learning shared weights, GaTaP effectively eliminates catastrophic forgetting and enables models to solve novel task combinations (compositional generalization) with just a few examples at inference time.

What Problem Does This Paper Address?

Artificial neural networks are notoriously bad at learning things sequentially. When trained on a new task, they often overwrite the weights essential for previous tasks—a phenomenon known as catastrophic forgetting.

While many existing methods focus on "remembering," the authors argue that a truly flexible learner should also be able to reuse and recombine knowledge. For instance, if a model learns to distinguish between digits 3 vs. 4 and 5 vs. 6, it should ideally be able to handle a novel "3 vs. 6" task without starting from scratch. This ability, known as compositional generalization, is a major hurdle for current continual learning systems.

Methods

GaTaP tackles these issues through a dual-timescale, bilevel optimization approach:

  1. Fast Task Routing (Inner Loop): For every task, the model learns a set of task-specific multiplicative gains ($\Gamma$). These act as "soft gates" that selectively enhance or suppress different modules (subnetworks) within the network. Crucially, because of the way the model is formulated, finding the optimal gates for a new task reduces to a series of least-squares problems that can be solved in closed form. This allows for extremely rapid, few-shot adaptation at inference time.
  2. Slow Representation Learning (Outer Loop): The actual weights ($W$) of the subnetworks are updated across many tasks. Instead of standard backpropagation, GaTaP uses Difference Target Propagation (DTP). DTP assigns local target states to each layer using a Kalman-style update, which is more compatible with modular, gated architectures and aligns better with theories of biologically plausible learning.
The GaTaP architecture uses parallel subnetworks gated by task-specific vectors.

By separating routing from representation, the model can protect old knowledge (by gating it off during new training) and facilitate reuse (by activating relevant old modules for new, similar tasks).

Datasets

The researchers evaluated GaTaP on three standard computer vision benchmarks, adapted for class-incremental and compositional learning:

  • MNIST: Used for initial feedforward network experiments.
  • CIFAR-10 & CIFAR-100: Used to test scalability with convolutional neural network (CNN) architectures.

The experiments were specifically designed to test both retention (performance on old tasks) and compositional reuse (performance on novel combinations of previously seen classes).

Key Insights and Ideas

  • Routing as Inference: Rather than hard-coding which parts of a network handle which task, GaTaP treats pathway selection as a probabilistic inference problem. This allows the model to discover reusable computational structures on its own.
  • Closed-Form Adaptation: The most striking "aha" moment is that adaptation to a new task doesn't require gradient descent. Because the inner loop is a regularized least-squares problem, the model can "reconfigure" itself for a new task almost instantly.
  • Meaningful Gating Patterns: The authors found that tasks sharing similar classes (e.g., two different tasks involving the digit '3') produced similar gating configurations. This suggests the model isn't just memorizing tasks but is actually learning a reusable "alphabet" of computational components.

Key Results

GaTaP significantly outperformed standard baselines like Backpropagation and Elastic Weight Consolidation (EWC) in both memory and flexibility:

  • Superior Retention: On MNIST, GaTaP maintained a final average accuracy of 97.8% across sequential tasks, compared to just 30.1% for standard backprop and 45.6% for EWC. Similar massive gaps were observed on CIFAR-10.
  • Zero-Shot Composition: When faced with unseen class combinations (like the 3 vs. 6 example), GaTaP achieved 95.6% accuracy on MNIST and 89.5% on CIFAR-10, even though the shared weights were completely frozen.
  • Stability over Time: As shown in the figure below, while other methods see their performance plummet as more classes are learned, GaTaP remains remarkably stable.
Comparison of average seen-task accuracy across different methods. GaTaP (green) maintains high performance even as the number of learned classes increases.
Accuracy decay on MNIST as more classes are learned. GaTaP shows almost no forgetting compared to EWC and standard Backprop.

Limitations and Future Work

Despite its strengths, GaTaP has some hurdles to clear:

  • Computational Complexity: The Kalman-style target updates involve Jacobian and covariance operations that are computationally expensive. While the authors used a "diagonal approximation" to make CNN training tractable, more efficient approximations are needed for very large-scale models.
  • Static Tasks: The current study focuses on static image classification. Extending this framework to temporal data (like video or speech) and more complex task compositions is a necessary next step.
  • Biological Plausibility: While inspired by brain-like local learning, some operations (like matrix inversions) are still biologically unrealistic. The authors suggest that future work could look at how local plasticity might approximate these optimal feedback signals.

Summary updated

BibTeX
@misc{njupoun2026gated,
  author = {Abdel Mfougouon Njupoun and Colin Bredenberg and Blake Aaron Richards and Guillaume Lajoie},
  title = {{Gated Target Propagation for Compositional Generalization in Continual Learning}},
  year = {2026},
  eprint = {2610.04649},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.04649},
}
Figure