Practical Continual Forgetting for Pre-trained Vision Models

Hongbo Zhao, Fei Zhu, Bolin Ni, Feng Zhu, Gaofeng Meng +1 more
1/16/2025
cs.CVcs.AIcs.LG

Official code: bjzhb666/GS-LoRA (77 stars, MIT, last commit 2026-01-15).

Abstract

For privacy and security concerns, the need to erase unwanted information from pre-trained vision models is becoming evident nowadays. In real-world scenarios, erasure requests originate at any time from both users and model owners, and these requests usually form a sequence. Therefore, under such a setting, selective information is expected to be continuously removed from a pre-trained model while maintaining the rest. We define this problem as continual forgetting and identify three key challenges. (i) For unwanted knowledge, efficient and effective deleting is crucial. (ii) For remaining knowledge, the impact brought by the forgetting procedure should be minimal. (iii) In real-world scenarios, the training samples may be scarce or partially missing during the process of forgetting. To address them, we first propose Group Sparse LoRA (GS-LoRA). Specifically, towards (i), we introduce LoRA modules to fine-tune the FFN layers in Transformer blocks for each forgetting task independently, and towards (ii), a simple group sparse regularization is adopted, enabling automatic selection of specific LoRA groups and zeroing out the others. To further extend GS-LoRA to more practical scenarios, we incorporate prototype information as additional supervision and introduce a more practical approach, GS-LoRA++. For each forgotten class, we move the logits away from its original prototype. For the remaining classes, we pull the logits closer to their respective prototypes. We conduct extensive experiments on face recognition, object detection and image classification and demonstrate that our method manages to forget specific classes with minimal impact on other classes. Codes have been released on https://github.com/bjzhb666/GS-LoRA.

View on arXivView PDF

Code Implementations(1)

bjzhb666/GS-LoRAOfficial100%
MIT

Practical Continual Forgetting for Pre-trained Vision Models (CVPR 2024; T-PAMI 2026)

774Shell, PythonJul 15, 20239 months agoMIT
casia-webfacecontinual-forgettingcontinual-learningeditingface-transformer+4 more

Similar Papers

Cite this paper

@article{zhao2025practical,
  title  = {Practical Continual Forgetting for Pre-trained Vision Models},
  author = {Hongbo Zhao and Fei Zhu and Bolin Ni and Feng Zhu and Gaofeng Meng and Zhaoxiang Zhang},
  year   = {2025},
  eprint = {2501.09705},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.09705v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.09705.svg)](https://codeofpaper.com/paper/2501.09705)

Discussion