Saliency-driven Experience Replay for Continual Learning

Giovanni Bellitto, Federica Proietto Salanitri, Matteo Pennisi, Matteo Boschini, Lorenzo Bonicelli, Angelo Porrello, Simone Calderara, Simone Palazzo, Concetto Spampinato

Artificial neural networks notoriously suffer from catastrophic forgetting: when they learn a new task, they tend to overwrite the weights necessary for previous tasks. In the field of Continual Learning (CL), researchers typically try to mitigate this by replaying old examples or using complex regularization techniques.

However, current CL methods often ignore a fundamental biological reality. In primates, the early visual cortex (V1) doesn't actually "untangle" objects for categorization; instead, it handles low-level features and visual saliency—the ability to pick out what's important in a scene. While our ability to categorize new objects changes throughout our lives, our "primordial saliency biases" (like noticing an animal faster than a background tree) remain remarkably stable.

Saliency-driven Experience Replay (SER) is a biologically inspired approach to continual learning that uses visual saliency as a stable, "forgetting-free" modulation signal. By mimicking how the human brain prioritizes visual information before categorization, SER boosts classification accuracy by up to 20 percentage points and significantly hardens models against adversarial attacks and spurious correlations.

The Gap: Forcing Early Layers to Categorize

The gap addressed by this research is that standard CL models try to force early network layers to learn task-specific categorization features immediately. This makes those layers highly susceptible to forgetting as new tasks arrive.

SER proposes a paradigm shift: if we use a stable, task-agnostic saliency signal to guide feature learning, the model will become more robust and less prone to interference. One of the paper's most striking findings is that while a classifier's accuracy plummets as it learns new tasks, a saliency predictor's performance remains flat or even improves. Saliency is a "universal" visual skill that doesn't need to be relearned for every new task.

Saliency remains stable while classification accuracy drops over time.

Methods: The SER Architecture

The authors introduce SER (Saliency-driven Experience Replay), a model-agnostic strategy that can be paired with existing CL methods like DER++ or ER-ACE.

The SER architecture featuring parallel saliency and classification branches.

Key technical components include:

  • Two-Branch Architecture: The system uses two parallel ResNet-18 backbones. One branch acts as a Saliency Predictor (an encoder-decoder setup) and the other is the Classifier.
  • Multiplicative Modulation: Instead of just concatenating features, SER uses a Hadamard product (element-wise multiplication). Saliency features from the first branch modulate the activations of the classifier branch at five different points. This effectively tells the classifier, "Pay attention to these specific features; they are salient."
  • Gradient Decoupling: To ensure the saliency branch remains a stable reference, the authors stop the gradient flow from the classification loss to the saliency encoder. This prevents the "forgetting" occurring in the classifier from polluting the stable saliency features.
  • Multi-Objective Loss: The model optimizes for both classification (Cross-Entropy) and saliency prediction (KL-Divergence) simultaneously.

Key Results and Insights

The researchers evaluated SER on two primary benchmarks, both split into twenty 5-way tasks: Split Mini-ImageNet (a standard CL benchmark) and Split FG-ImageNet (a more challenging "fine-grained" benchmark consisting of 100 animal classes).

  • Massive Accuracy Gains: When added to the DER++ baseline on Split Mini-ImageNet, SER improved final average accuracy from 14.58% to 25.35% (using a 5000-sample buffer). On the difficult FG-ImageNet dataset, SER improved CoPE's performance from 17.77% to 34.34%, nearly doubling the accuracy.
  • Focusing on the "What" over the "Where": By forcing the model to attend to salient regions, SER naturally ignores "spurious features"—background elements that might correlate with a label in the training set but aren't actually part of the object.
  • Adversarial Robustness: Models trained with SER were significantly more resilient to Projected Gradient Descent (PGD) attacks. The saliency modulation acts as a regularizer that prevents the model from over-relying on brittle, non-robust pixels.
  • Efficiency: Despite having two branches, SER is faster to train than other multi-branch competitors like DualNet because it avoids expensive contrastive search phases.

Limitations and Future Work

While highly effective, SER does have limitations. The authors note that saliency maps require high-quality input images. Consequently, SER cannot be effectively applied to low-resolution datasets like CIFAR-10 or CIFAR-100, where objects are too small for meaningful saliency prediction. Additionally, the method currently works best when the saliency encoder and the classifier share the same architectural identity (e.g., both are ResNet-18).

Future directions include exploring how to apply this to heterogeneous networks and investigating whether other low-level visual tasks—like edge detection or depth estimation—offer similar "forgetting-free" benefits for continual learning.

Summary updated

BibTeX
@inproceedings{bellitto2024saliency,
  author = {Giovanni Bellitto and Federica Proietto Salanitri and Matteo Pennisi and Matteo Boschini and Lorenzo Bonicelli and Angelo Porrello and Simone Calderara and Simone Palazzo and Concetto Spampinato},
  title = {{Saliency-driven Experience Replay for Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=8KkBxzn0km},
}
Figure