Papers › Unlearning Targeted Information via Single Layer Unlearning Gradient

Unlearning Targeted Information via Single Layer Unlearning Gradient

16 Jul 2024arXiv:2407.11867archive 2025-07-28

Zikui Cai, Yaoteng Tan, M. Salman Asif

Unauthorized privacy-related and copyrighted content generation using generative-AI is becoming a significant concern for human society, raising ethical, legal, and privacy issues that demand urgent attention. The EU's General Data Protection Regulation (GDPR) include a "right to be forgotten," which allows individuals to request the deletion of their personal data. However, this primarily applies to data stored in traditional databases, not AI models. Recently, machine unlearning techniques have arise that attempt to eliminate the influence of sensitive content used during AI model training, but they often require extensive updates to the deployed systems and incur substantial computational costs. In this work, we propose a novel and efficient method called Single Layer Unlearning Gradient (SLUG), that can unlearn targeted information by updating targeted layers of a model using a one-time gradient computation. Our method is highly modular and enables the selective removal of multiple sensitive concepts, such as celebrity names and copyrighted content, from the generated outputs of widely used foundation models (e.g., CLIP) and generative models (e.g., Stable Diffusion). Broadly, our method ensures AI-generated content complies with privacy regulations and intellectual property laws, fostering responsible use of generative models, mitigating legal risks and promoting a trustworthy, socially responsible AI ecosystem.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.11867")

Code

Syntology Ran 16 of 24 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 12 ran with no contract checked.

By repository: official repository: 24 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

CSIPlab/slug officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 16 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
1ran · fixture could not drive it
12ran
8unverified

Licence: 24 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from CSIPlab/SLUG. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

natural_key CSIPlab/SLUG/src/clip/unlearn_slug.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a677092c48744688 · report
accuracy CSIPlab/SLUG/src/utils.py official repository ran · fixture could not drive it no licence file found · pointer only · b0f936d4d6ae3b8c · report
calculate_losses CSIPlab/SLUG/src/mia_util.py official repository ran no licence file found · pointer only · 870e27efacae6526 · report
cm_score CSIPlab/SLUG/src/mia_util.py official repository ran no licence file found · pointer only · f96ac998de95add7 · report
convert_png_to_jpg CSIPlab/SLUG/src/clip/a0_create_tar_ucanvas.py official repository ran no licence file found · pointer only · 99b15af8545fcc66 · report
eval_celeb_acc CSIPlab/SLUG/src/clip/a0_eval_celeba.py official repository ran no licence file found · pointer only · 5736fb8e9270dd1d · report
eval_sd CSIPlab/SLUG/src/clip/eval_uncanvas.py official repository ran no licence file found · pointer only · 42b2fa341570ce17 · report
filter_no_caption_or_no_image CSIPlab/SLUG/src/clip/a0_create_tar.py official repository ran no licence file found · pointer only · c9a81bb19149543b · report
filter_no_caption_or_no_image CSIPlab/SLUG/src/clip/get_gradients_hf.py official repository ran no licence file found · pointer only · 2a61c08975756d63 · report
format_time CSIPlab/SLUG/src/mu_util.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 8d7ec010c29e813b · report
get_error CSIPlab/SLUG/src/utils.py official repository ran no licence file found · pointer only · 1c6bcc03390a9997 · report
get_latest_checkpoint csiplab/slug/src/clip/unlearn_slug.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · d9eed7fba4443db1 · report
identify_pareto CSIPlab/SLUG/src/clip/eval_uncanvas.py official repository ran no licence file found · pointer only · 3f4046e76b9d4aac · report
lighten_color CSIPlab/SLUG/src/utils.py official repository ran no licence file found · pointer only · 79562521f7728505 · report
log_and_continue CSIPlab/SLUG/src/clip/a0_create_tar.py official repository ran no licence file found · pointer only · be4e00be50540042 · report
log_and_continue CSIPlab/SLUG/src/clip/get_gradients_hf.py official repository ran no licence file found · pointer only · 9b52e6757e57f5bb · report
accuracy CSIPlab/SLUG/src/clip/a0_eval_celeba.py official repository unverified no licence file found · pointer only · aafcff3ad1ccef6e · report
accuracy_class_wise CSIPlab/SLUG/src/clip/a0_eval_imagenet.py official repository unverified no licence file found · pointer only · 3445e17701ad40d7 · report
calc_grad CSIPlab/slug/src/clip/unlearn/calc_grad.py official repository unverified no licence file found · pointer only · 285df2c1ab7a7aef · report
eval_vlm CSIPlab/SLUG/src/vlm_util.py official repository unverified no licence file found · pointer only · 4646f7e8b9ff42f8 · report
evaluate_attack_model CSIPlab/SLUG/src/mia_util.py official repository unverified no licence file found · pointer only · 1ba7040f03e27b52 · report
get_dataset CSIPlab/SLUG/src/vlm_util.py official repository unverified no licence file found · pointer only · 0c983d4ac81c95e2 · report
get_important_layers CSIPlab/SLUG/src/clip/eval_uncanvas.py official repository unverified no licence file found · pointer only · f66cf9b94e60617a · report
run_name CSIPlab/SLUG/src/clip/a0_eval_celeba.py official repository unverified no licence file found · pointer only · dae9334ec6e87462 · report

Tasks

Machine Unlearning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections