Selective Attention-based Modulation for Continual Learning

Giovanni Bellitto, Federica Proietto Salanitri, Matteo Pennisi, Matteo Boschini, Angelo Porrello, Simone Calderara, Simone Palazzo, Concetto SpampinatoarXiv 2024 · DOI

Abstract

Artificial Neural Networks (ANNs) suffer from catastrophic forgetting when learning sequential tasks, where new knowledge overwrites existing information. This paper introduces Selective Attention-driven Modulation (SAM), a biologically-inspired framework that leverages the stability of saliency detection to anchor classification learning. By modulating classifier features with a stable saliency branch and blocking gradients to prevent corruption of attention priors, SAM significantly improves performance across various continual learning benchmarks.

Introduction

The phenomenon of catastrophic forgetting remains a primary hurdle for lifelong machine learning. While standard models attempt complex categorization from early layers, human vision relies on stable "primordial biases" in the primary visual cortex (V1) to focus on selective attention before categorization. This research proposes that these stable attention mechanisms can serve as a "genetic legacy" to stabilize learning in non-stationary environments. The authors observe that while classification accuracy typically plummets as tasks change, saliency prediction remains remarkably stable, effectively acting as an i.i.d. task hidden within non-i.i.d. data streams.

Methodology: Selective Attention-driven Modulation (SAM)

SAM employs a dual-branch architecture designed to emulate the interplay between attention and categorization in the human brain.

The SAM architecture consists of a stable Saliency Encoder and a learning Classifier Encoder, with feature modulation at multiple stages.

Architecture Components

  1. Saliency Branch: A pre-trained network that predicts which parts of an image are salient to a human observer.
  2. Classification Branch: The primary network learning the sequence of tasks.
  3. Feature Modulation: At multiple stages (specifically after each residual block in a ResNet-18), features from the saliency branch are multiplied (Hadamard product) with the features of the classification branch. This "modulates" the classifier, forcing it to focus on regions the attention branch deems important.
  4. Gradient Blocking: To prevent the classification task from corrupting the stable attention features, the authors stop the gradient flow from the classification loss to the saliency encoder. This ensures the attention mechanism remains a stable, "forgetting-free" anchor.

Experimental Results

The proposed method was evaluated on Split Mini-ImageNet and Split FG-ImageNet (a fine-grained version featuring 100 animal classes) across 20 sequential tasks.

Comparative performance of SAM integrated into various continual learning baselines (DER++, ER-ACE, CoPE) across different buffer sizes and datasets.

Performance Gains

As shown in the results table, SAM is method-agnostic and consistently improves baseline performance. Notably, on Split Mini-ImageNet, SAM enhanced the DER++ method's accuracy by over 10 percentage points in class-incremental settings. The improvements are even more pronounced in fine-grained scenarios, where distinguishing between similar classes requires precise spatial focus rather than background noise.

Robustness and Efficiency

SAM demonstrates superior robustness to spurious features compared to high-level representation learning methods like DualNet. In experiments where "cheating" features (like class-specific brightness) were added to training data, SAM-enabled models maintained high accuracy by focusing on actual objects. Furthermore, SAM is computationally efficient, avoiding the heavy overhead of contrastive loss calculations or complex distillation during the main training loop.

Conclusion

SAM demonstrates that low-level selective attention is a remarkably stable task that can effectively mitigate catastrophic forgetting. By treating saliency as a stable spatial anchor, SAM provides a robust foundation for continual learning, paving the way for more biologically-plausible and stable AI systems.

Summary updated

BibTeX
@misc{bellitto2024selective,
  author = {Giovanni Bellitto and Federica Proietto Salanitri and Matteo Pennisi and Matteo Boschini and Angelo Porrello and Simone Calderara and Simone Palazzo and Concetto Spampinato},
  title = {{Selective Attention-based Modulation for Continual Learning}},
  year = {2024},
  eprint = {2403.20086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.20086},
}
Figure