Lifelong Learning and Selective Forgetting via Contrastive Strategy
Lianlei Shan, Wenzhang Zhou, Wei Li, Xingyu Ding
TL;DR
This work tackles lifelong learning with selective forgetting by proposing a contrastive-learning framework that operates directly on the feature extractor. It introduces global class prototypes and multi-space dispersion to force preserved-class features to cluster tightly while scattering deleted-class features, enabling efficient forgetting that minimizes privacy leakage. The method unifies memory preservation and forgetting through a total loss that combines cross-entropy, distillation, prototype consistency, and in-class/out-of-class contrastive terms, with segmentation-specific background alignment. Empirical results on classification and segmentation benchmarks demonstrate state-of-the-art LSFM performance, validating the efficacy of feature-space forgetting and its potential for privacy-conscious continual learning in real-world applications.
Abstract
Lifelong learning aims to train a model with good performance for new tasks while retaining the capacity of previous tasks. However, some practical scenarios require the system to forget undesirable knowledge due to privacy issues, which is called selective forgetting. The joint task of the two is dubbed Learning with Selective Forgetting (LSF). In this paper, we propose a new framework based on contrastive strategy for LSF. Specifically, for the preserved classes (tasks), we make features extracted from different samples within a same class compacted. And for the deleted classes, we make the features from different samples of a same class dispersed and irregular, i.e., the network does not have any regular response to samples from a specific deleted class as if the network has no training at all. Through maintaining or disturbing the feature distribution, the forgetting and memory of different classes can be or independent of each other. Experiments are conducted on four benchmark datasets, and our method acieves new state-of-the-art.
