[Paper Review] Lifelong Learning and Selective Forgetting via Contrastive Strategy
This paper proposes a contrastive learning-based framework for Lifelong Learning with Selective Forgetting (LSF), where preserved classes are compacted in feature space while deleted classes are dispersed to induce fast, direct forgetting. The method achieves state-of-the-art performance on classification and segmentation benchmarks by operating at the feature level, enabling efficient, non-interfering memory and forgetting without external inputs like mnemonic codes.
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.
Motivation & Objective
- To address catastrophic forgetting in continual learning while enabling selective forgetting of specific classes due to privacy concerns.
- To overcome limitations of existing methods that rely on external inputs (e.g., mnemonic codes) or indirect loss manipulation.
- To directly manipulate feature distributions for efficient, universal, and fast forgetting at the feature extraction level.
- To ensure that forgetting deleted classes does not degrade performance on preserved classes.
- To develop a generalizable framework applicable to diverse deep learning tasks, including segmentation.
Proposed method
- The method uses contrastive learning to compact features within preserved classes, enhancing inter-sample similarity.
- For deleted classes, it applies an intra-class dispersion loss to break up feature compactness, making the network respond as if untrained.
- The framework employs three key losses: intra-class compactness ($\mathcal{L}_{in}^{p}$), inter-class separation ($\mathcal{L}_{ex}^{p}$), and intra-class dispersion ($\mathcal{L}_{in}^{d}$) for forgetting.
- Additional dispersion losses ($\mathcal{L}_{ex}^{d}$) are applied in higher-dimensional embedding spaces to further disrupt deleted class features.
- The method operates directly on the feature extractor, avoiding reliance on classification head losses or external inputs.
- Hyperparameters $\lambda_p$ and $\lambda_d$ balance memory and forgetting objectives, with optimal performance at 1:1 ratio.
Experimental results
Research questions
- RQ1Can direct manipulation of feature distributions enable efficient and non-interfering selective forgetting in lifelong learning?
- RQ2How does dispersing features of deleted classes affect the performance of preserved classes?
- RQ3Can the proposed contrastive strategy achieve state-of-the-art results across both classification and segmentation tasks?
- RQ4What is the optimal balance between memory and forgetting losses in the training objective?
- RQ5Does applying dispersion in higher-dimensional feature spaces improve forgetting performance?
Key findings
- The proposed method achieves new state-of-the-art performance on four benchmark datasets, including both classification and segmentation tasks.
- Adding $\mathcal{L}_{in}^{d}$ significantly improves forgetting performance, while omitting $\mathcal{L}_{in}^{p}$ and $\mathcal{L}_{ex}^{p}$ causes performance degradation on preserved classes.
- The combination of $\mathcal{L}_{in}^{p}$, $\mathcal{L}_{ex}^{p}$, and $\mathcal{L}_{in}^{d}$ ensures both stable memory and effective forgetting.
- Applying dispersion losses in higher-dimensional embedding spaces ($\mathbf{F}_{n}^{*}$ and $\mathbf{F}_{n}^{**}$) improves forgetting, though the effect diminishes at deeper layers.
- Sensitivity analysis shows optimal performance at a 1:1 ratio of $\lambda_p$ to $\lambda_d$, balancing memory and forgetting.
- The method avoids false positives and maintains high accuracy on preserved classes even after selective forgetting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.