In the world of machine learning, "forgetting" is usually treated like a disease. We call it catastrophic forgetting—the tendency of a neural network to completely lose the knowledge of Task A the moment it starts learning Task B. But what if the model learned something it should forget? What if Task A was full of "prejudices" or spurious correlations?
In their ICLR 2023 paper, researchers from Seoul National University argue that not all forgetting is created equal. They introduce a framework that distinguishes between malignant forgetting (losing useful information) and benign forgetting (shedding biases), providing a path toward models that actually get smarter—and fairer—as they learn.
TL;DR
Standard continual learning (CL) tries to prevent all forgetting, but this inadvertently preserves harmful data biases. This paper introduces Learning without Prejudices (LwP), a method that uses GAN-based feature generation to retain core knowledge while employing contrastive learning to intentionally "forget" spurious correlations (biases) found in training data.
What Problem Does This Paper Address?
Most continual learning research assumes that training data is "well-distributed." In reality, datasets are often riddled with biases—spurious correlations where a model learns to predict a label based on the wrong cues (e.g., identifying a "frog" because there is water in the background, rather than looking at the animal itself).
When a model learns a sequence of biased tasks, standard CL methods fight to preserve everything the model learned previously. If Task 1 taught the model that "all zeros are red," the model will stubbornly hold onto that "prejudice" while trying to learn Task 2. The authors propose a new paradigm called Continual Unbiased Learning (CUL), where the goal is to learn a sequence of tasks with different biases and emerge with a model that performs well on a completely unbiased test set.
Methods: Tackling Two Types of Forgetting
The authors propose LwP (Learning without Prejudices), which tackles the two types of forgetting simultaneously:
-
Discouraging Malignant Forgetting (Feature Replay): Instead of storing old images (which raises privacy and storage concerns) or generating raw images (which are often blurry and low-quality), LwP uses a GAN-based feature generator. It generates latent feature maps from previous tasks. This "feature replay" provides the classifier with a richer, more robust representation of past knowledge than simple RGB pixels.
-
Encouraging Benign Forgetting (Contrastive Learning): To shed biases, the authors turn to Bootstrap Your Own Latent (BYOL), a self-supervised contrastive learning method. Because bias is essentially a correlation between a label and an attribute, learning in a label-free way helps the model decouple the two.
-
Feature-level Augmentation: Since they work in the latent feature space, they cannot use standard image flips or crops. Instead, they developed a novel augmentation technique using spatial noise and channel-wise dropout to force the model to learn more generalized representations.
Datasets and Evaluation
The researchers evaluated LwP on three intentionally biased benchmarks to test its ability to shed prejudices:
- Biased MNIST: Digits are correlated with specific background colors. The bias "slides" (shifts) with each new task.
- Biased CIFAR-10: Image classes are correlated with specific types of corruptions (like snow, frost, or fog).
- Biased CelebA-HQ: A facial attribute dataset where the target (gender) is correlated with shifting biases like makeup, hair color, and hair length across tasks.
Key Insights and Results
- The "Benign Forgetting" Revelation: Forgetting is a necessary part of generalization. If a model doesn't forget the specific, biased context of Task 1, it can never truly master the general concepts required for an unbiased world.
- Latent Space > Pixel Space: Generating features rather than images is more effective for CL. Feature maps contain more "selective" information, allowing the classifier to focus on what matters rather than trying to reconstruct every pixel of a noisy, generated image.
- Self-Supervision as a De-biasing Tool: By using contrastive learning alongside supervised learning, the model learns to identify objects based on their inherent features rather than their accidental correlations with labels.
LwP consistently outperformed state-of-the-art CL methods on unbiased test sets:
- Accuracy Boost: On Biased MNIST, LwP achieved an average unbiased accuracy of 91.57%, significantly higher than the "Base" model (84.66%) and traditional regularization methods like EWC (68.32%). EWC actually performed worse than the base model because it "protected" the biases too well.
- Superior to Replay: Even without a memory buffer (storing real samples), LwP beat many replay-based methods. When a small buffer was added, LwP reached 92.34% accuracy.
- Generalization: LwP showed the highest "Benign Forgetting Rate," proving it was successfully shedding the "prejudices" of previous tasks while retaining the ability to classify the underlying data.
Limitations and Future Work
- Architectural Sensitivity: The performance of LwP depends on choosing the right "splitting layer" (where the model transitions from the feature extractor to the classifier).
- Computational Overhead: Training a GAN and a contrastive learning module simultaneously is more computationally expensive than simple supervised learning.
- Complex Biases: While the paper handles shifting biases well, future work could explore how this handles "entangled" biases where multiple spurious correlations exist at once.
LwP represents a shift in philosophy for AI: to learn truly robust and unbiased concepts, a model must be allowed—and even encouraged—to forget its prejudices.
Summary updated