Zero-Shot Class Unlearning in CLIP with Synthetic Samples

A. Kravets, V. Namboodiri
7/10/2024
cs.CV

No official code found. Best implementation: akres001/Zero-Shot-Class-Unlearning-in-CLIP-with-Synthetic-Samples (9 stars, last commit 2025-05-22).

Abstract

Machine unlearning is a crucial area of research. It is driven by the need to remove sensitive information from models to safeguard individuals' right to be forgotten under rigorous regulations such as GDPR. In this work, we focus on unlearning within CLIP, a dual vision-language encoder model trained on a massive dataset of image-text pairs using contrastive loss. To achieve forgetting we expand the application of Lipschitz regularization to the multimodal context of CLIP. Specifically, we ensure the smoothing of both visual and textual embeddings associated with the class intended to be forgotten relative to the perturbation introduced to the samples from that class. Additionally, importantly, we remove the necessity for real forgetting data by generating synthetic samples through gradient ascent maximizing the target class. Our forgetting procedure is iterative, where we track accuracy on a synthetic forget set and stop when accuracy falls below a chosen threshold. We employ a selective layers update strategy based on their average absolute gradient value to mitigate over-forgetting. We validate our approach on several standard datasets and provide thorough ablation analysis and comparisons with previous work.

View on arXivView PDF

Code Implementations(1)

Zero-Shot Class Unlearning in CLIP with Synthetic Samples (WACV 2025)

91Shell, PythonJun 25, 20241 years ago

Similar Papers

Cite this paper

@article{kravets2024zeroshot,
  title  = {Zero-Shot Class Unlearning in CLIP with Synthetic Samples},
  author = {A. Kravets and V. Namboodiri},
  year   = {2024},
  eprint = {2407.07485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.07485v2}
}

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/2407.07485.svg)](https://codeofpaper.com/paper/2407.07485)

Discussion