Saliency-Augmented Memory Completion for Continual Learning

Guangji Bai, Chen Ling, Yuyang Gao, Liang Zhao

Abstract

Continual learning aims to enable artificial intelligence models to learn a sequence of tasks without suffering from catastrophic forgetting. Replay-based methods address this by maintaining an episodic memory buffer of past examples, but they often face challenges regarding memory inefficiency and poor generalization. We propose Saliency-Augmented Memory Completion (SAMC), a framework inspired by cognitive neuroscience that stores only the most salient regions of an image and uses an inpainting module to reconstruct these partial memories during training. Our approach achieves state-of-the-art accuracy while reducing memory storage requirements by up to 60%.

Introduction

Deep neural networks typically struggle to retain knowledge of previous tasks when learning new ones, a phenomenon known as catastrophic forgetting. While replay-based strategies mitigate this by revisiting old samples, they are often limited by the high storage costs of saving full-resolution images and the risk of overfitting to specific stored details. Furthermore, these methods often lack interpretability regarding which features are being preserved.

Inspired by the "memory pattern completion" theory, we introduce SAMC. This framework mimics human memory by focusing on the "gist" of an image—its most salient features—rather than every pixel. By storing sparse, important regions and reconstructing them on-the-fly, SAMC improves both storage efficiency and the model's ability to generalize across tasks.

Methodology

Overview of the SAMC framework showing saliency extraction, sparse storage, and inpainting-based replay.

The SAMC framework consists of three core components:

  1. Saliency-Augmented Storage: Using Grad-CAM, the model identifies the most decisive pixels for classification. Only these "salient" pixels are stored in a sparse Coordinate Format, effectively discarding irrelevant background information and reducing the storage footprint.
  2. Memory Completion (Inpainting): To allow standard Convolutional Neural Networks (CNNs) to process the sparse data, a lightweight Autoencoder-based inpainting module reconstructs the missing parts of the image from the stored salient features before they are replayed.
  3. Bilevel Optimization: The system employs a two-tier optimization strategy where the inpainting module is trained for better reconstruction while the classifier is optimized to solve tasks without interfering with previous knowledge, promoting positive backward transfer.

Experimental Results

We evaluated SAMC on three standard benchmarks: Split CIFAR-10, Split CIFAR-100, and Split mini-ImageNet. SAMC consistently outperformed state-of-the-art baselines, including GEM, iCaRL, and ER.

Average accuracy across tasks for Split CIFAR-10, CIFAR-100, and mini-ImageNet, comparing SAMC with various baselines.

On the challenging Split mini-ImageNet dataset, SAMC achieved an average accuracy of 46.98%, significantly higher than GEM's 40.78%. Additionally, SAMC demonstrated superior retention of old knowledge, with a Backward Transfer (BWT) of -4.12% compared to -9.87% for GEM.

Discussion and Conclusion

SAMC offers a significant advancement in replay-based continual learning by balancing efficiency and performance. The method achieved a 60% reduction in memory consumption with only a marginal 7.5% increase in computational overhead. Beyond performance, the use of saliency maps provides a layer of interpretability, allowing researchers to inspect which features the model relies on to maintain its performance on past tasks.

While the framework is highly effective, limitations remain in saliency localization for very low-resolution images and occasional artifacts in the reconstruction process. Future work will explore more sophisticated generative models, such as Diffusion models, to further refine the memory completion phase while maintaining computational efficiency.

Summary updated

BibTeX
@inproceedings{bai2022saliency,
  author = {Guangji Bai and Chen Ling and Yuyang Gao and Liang Zhao},
  title = {{Saliency-Augmented Memory Completion for Continual Learning}},
  booktitle = {SDM},
  year = {2022},
}
Figure