Targeted Unlearning with Single Layer Unlearning Gradient

Zikui Cai, Yaoteng Tan, M. Salman Asif
7/16/2024
cs.LG

Official code: CSIPlab/SLUG (18 stars, last commit 2025-08-10). 1 more implementation below.

Abstract

Machine unlearning methods aim to remove sensitive or unwanted content from trained models, but typically demand extensive model updates at significant computational cost while potentially degrading model performance on both related and unrelated tasks. We propose Single Layer Unlearning Gradient (SLUG) as an efficient method to unlearn targeted information by updating a single critical layer using a one-time gradient computation. SLUG uses layer importance and gradient alignment metrics to identify the optimal layer for targeted information removal while preserving the model utility. We demonstrate the effectiveness of SLUG for CLIP, Stable Diffusion, and vision-language models (VLMs) in removing concrete (e.g., identities and objects) and abstract concepts (e.g., artistic styles). On the UnlearnCanvas benchmark, SLUG achieves comparable unlearning performance to existing methods while requiring significantly less computational resources. Our proposed approach offers a practical solution for targeted unlearning that is computationally efficient and precise. Our code is available at https://github.com/CSIPlab/SLUG.

View on arXivView PDF

Code Implementations(2)

CSIPlab/SLUGOfficial100%

Official repository for Targeted Unlearning with Single Layer Unlearning Gradient (SLUG), ICML 2025

181Shell, PythonJun 27, 20241 years ago
machine-unlearningmodel-editingtrustworthy-aivision-language-model

Official project page for Targeted Unlearning with Single Layer Unlearning Gradient, ICML 2025

00CSS, HTMLMay 24, 20251 years ago

Similar Papers

Cite this paper

@article{cai2024targeted,
  title  = {Targeted Unlearning with Single Layer Unlearning Gradient},
  author = {Zikui Cai and Yaoteng Tan and M. Salman Asif},
  year   = {2024},
  eprint = {2407.11867},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.11867v3},
  journal = {ICML 2024 2024}
}

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

Discussion