As vision models grow larger and more pervasive, a critical challenge has emerged: how to make them "unlearn" specific information. Whether driven by the need to remove biased data, comply with "right to be forgotten" regulations (such as GDPR), or erase sensitive identities from recognition systems, the ability to delete knowledge without retraining from scratch is essential.
In the paper "Practical Continual Forgetting for Pre-trained Vision Models," researchers from the Chinese Academy of Sciences and SenseTime propose a surgical approach to this problem. They introduce GS-LoRA++, a method designed to sequentially forget specific classes while remaining robust even when training data is extremely scarce.
The Challenge of Continual Forgetting
Most machine unlearning research assumes a one-time request to delete data. However, in real-world applications, deletion requests typically arrive as a stream. This "continual forgetting" scenario presents three core challenges:
- Efficiency: The unlearning process must be fast and lightweight to handle frequent requests.
- Retention: The impact on "good" knowledge (the data the model is meant to keep) must be minimal.
- Data Scarcity: In practice, the data for the classes to be forgotten—or even the classes to be retained—might be limited to just a few samples (few-shot scenarios).
Simply fine-tuning a model to forget new information often triggers catastrophic forgetting of retained knowledge or results in deceptive forgetting, where the information remains in the model's internal weights even if the output is masked.
Methodology: GS-LoRA++
The authors' solution, GS-LoRA++, rests on four technical pillars designed to perform "minimally invasive surgery" on the model:
- LoRA on FFN Layers: Following research suggesting that Feed-Forward Network (FFN) layers in Transformers act as "key-value memories," the authors apply Low-Rank Adaptation (LoRA) specifically to these layers. This keeps the number of trainable parameters extremely low.
- Group Sparse Regularization: Not every layer needs to change to forget a specific class. By using a group Lasso penalty, the method automatically identifies and modifies only the most relevant Transformer blocks, zeroing out others to prevent unnecessary damage to the model's general capabilities.
- Prototype Regularization: To handle few-shot scenarios (e.g., having only 4 images of a person to be forgotten), the authors use "prototypes"—the average feature representation of a class. The model is optimized to push the forgotten class's features away from its original prototype while pulling retained classes closer to theirs.
- Bounded Forgetting Loss: Instead of a simple negative loss, which can lead to gradient explosion and model instability, a ReLU-based bounded loss is used to ensure the model forgets "just enough" to meet a target threshold.
Experimental Evaluation
The authors evaluated GS-LoRA++ across three distinct computer vision tasks to prove its versatility:
- Face Recognition: Using a custom CASIA-Face100 sub-dataset.
- Image Classification: Using ImageNet100.
- Object Detection: Using MS COCO 2017 with a Deformable DETR architecture.
Key Insights
Real vs. Deceptive Forgetting The research demonstrates that simply masking or retraining the output "head" of a model is insufficient. If only the head is modified, the forgotten information can often be recovered with minimal fine-tuning. GS-LoRA++ modifies the backbone weights, making the information significantly harder to recover and ensuring more permanent erasure.
Parameter Efficiency and Retention GS-LoRA++ achieves effective forgetting by tuning less than 1% of the model's total parameters. In face recognition tasks involving the sequential removal of 10 classes, the method maintained 71.35% accuracy on remaining classes, significantly outperforming standard unlearning baselines like SCRUB or LwF.
Robustness to Few-Shot Data In a 4-shot setting (only 4 images per class), GS-LoRA++ successfully reduced the accuracy of forgotten classes to near 0% while maintaining high performance on the rest. Other methods either failed to erase the target knowledge or caused the model's overall accuracy to collapse under the weight of the unlearning process.
Resistance to Reconstruction Attacks To verify that the knowledge was truly erased, the authors performed "Reconstruction Attacks," attempting to recreate images from model embeddings. GS-LoRA++ resulted in the lowest quality reconstructions (SSIM: 0.39), proving that the internal feature representations of the forgotten classes were effectively destroyed.
Limitations and Future Directions
While GS-LoRA++ represents a significant step forward, the authors note several areas for future work:
- Extreme Scarcity: Performance degrades in 1-shot or 2-shot scenarios where prototypes become noisy. Random augmentation is a potential but incomplete fix.
- Granularity: The current framework focuses on class-wise forgetting. Future research is needed to address instance-wise forgetting (e.g., deleting specific photos of an individual while retaining the general ability to recognize that person).
- Security Auditing: While tested against reconstruction attacks, the authors suggest evaluating the method against more sophisticated Membership Inference Attacks (MIAs) to further validate its privacy guarantees.
Summary updated