SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.11867 · ICML · 2025

Targeted Unlearning with Single Layer Unlearning Gradient

M Asif, Zikui Cai, Yaoteng Tan

arXiv · PDF · Open in the Atlas

Code that ran

16 of 24 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 9 failures of our instrument; 8 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2407.11867.json · badge: /api/ran/2407.11867.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
CSIPlab/SLUG canonical (classifier label)
classifier basis: plan_row
15 ran · 7 no recorded run
csiplab/slug canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
CSIPlab/slug community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
natural_key Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/clip/unlearn_slug.py
pointer only (licence: NONE) · get_code("a677092c48744688")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CSIPlab/SLUG/src/utils.py
pointer only (licence: NONE) · get_code("b0f936d4d6ae3b8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_losses Ran
ran, honoured the contract we drafted
CSIPlab/SLUG/src/mia_util.py
pointer only (licence: NONE) · get_code("870e27efacae6526")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cm_score Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/mia_util.py
pointer only (licence: NONE) · get_code("f96ac998de95add7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_png_to_jpg Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/clip/a0_create_tar_ucanvas.py
pointer only (licence: NONE) · get_code("99b15af8545fcc66")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

eval_celeb_acc Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/clip/a0_eval_celeba.py
pointer only (licence: NONE) · get_code("5736fb8e9270dd1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

eval_sd Ran
ran, honoured the contract we drafted
CSIPlab/SLUG/src/clip/eval_uncanvas.py
pointer only (licence: NONE) · get_code("42b2fa341570ce17")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_no_caption_or_no_image Ran
ran, violated the contract we drafted
CSIPlab/SLUG/src/clip/a0_create_tar.py
pointer only (licence: NONE) · get_code("c9a81bb19149543b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_no_caption_or_no_image Ran
ran, violated the contract we drafted
CSIPlab/SLUG/src/clip/get_gradients_hf.py
pointer only (licence: NONE) · get_code("2a61c08975756d63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_time Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/mu_util.py
pointer only (licence: NONE); the stored copy get_code serves, from JunlinHan/YOCO, is pointer only (licence: NONE) · get_code("8d7ec010c29e813b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_error Ran
ran; our contract draft was wrong, not the code
CSIPlab/SLUG/src/utils.py
pointer only (licence: NONE) · get_code("1c6bcc03390a9997")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_latest_checkpoint Ran
ran; our contract draft was wrong, not the code
csiplab/slug/src/clip/unlearn_slug.py
pointer only (licence: NONE) · get_code("d9eed7fba4443db1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, csiplab/slug when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

identify_pareto Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CSIPlab/SLUG/src/clip/eval_uncanvas.py
pointer only (licence: NONE) · get_code("3f4046e76b9d4aac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

lighten_color Ran
ran, honoured the contract we drafted
CSIPlab/SLUG/src/utils.py
pointer only (licence: NONE) · get_code("79562521f7728505")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_and_continue Ran
ran, violated the contract we drafted
CSIPlab/SLUG/src/clip/a0_create_tar.py
pointer only (licence: NONE) · get_code("be4e00be50540042")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_and_continue Ran
ran, violated the contract we drafted
CSIPlab/SLUG/src/clip/get_gradients_hf.py
pointer only (licence: NONE) · get_code("9b52e6757e57f5bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

accuracy Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/clip/a0_eval_celeba.py
pointer only (licence: NONE) · get_code("aafcff3ad1ccef6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

accuracy_class_wise Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/clip/a0_eval_imagenet.py
pointer only (licence: NONE) · get_code("3445e17701ad40d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

calc_grad Not yet run
unverified (harvested, no recorded run)
CSIPlab/slug/src/clip/unlearn/calc_grad.py
pointer only (licence: NONE) · get_code("285df2c1ab7a7aef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/slug when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

eval_vlm Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/vlm_util.py
pointer only (licence: NONE) · get_code("4646f7e8b9ff42f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate_attack_model Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/mia_util.py
pointer only (licence: NONE) · get_code("1ba7040f03e27b52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/vlm_util.py
pointer only (licence: NONE) · get_code("0c983d4ac81c95e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_important_layers Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/clip/eval_uncanvas.py
pointer only (licence: NONE) · get_code("f66cf9b94e60617a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

run_name Not yet run
unverified (harvested, no recorded run)
CSIPlab/SLUG/src/clip/a0_eval_celeba.py
pointer only (licence: NONE) · get_code("dae9334ec6e87462")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CSIPlab/SLUG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 8 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
accuracy 116 other papers
105 dated earlier, 10 later, 1 same year, order not determinable · 8 only as an assembly brick
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1610.05820 (2016-10)
Membership Inference Attacks Against Machine Learning Models
1905.03696 (2019-05)
HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision
and 113 more not named here
format_time 37 other papers
36 dated earlier, 1 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1605.07146 (2016-05)
Wide Residual Networks
1805.11327 (2018-05)
Lightweight Probabilistic Deep Networks
and 34 more not named here
accuracy 22 other papers
9 dated earlier, 12 later, 1 same year, order not determinable
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
2208.05592 (2022-08)
Patching open-vocabulary models by interpolating weights
2211.12914 (2022-11)
Open-vocabulary Attribute Detection
and 19 more not named here
lighten_color 6 other papers
4 dated earlier, 2 later
2001.04032 (2020-01)
POPCORN: Partially Observed Prediction COnstrained ReiNforcement Learning
2210.01240 (2022-10)
Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought
2301.08517 (2023-01)
Cohere: Managing Differential Privacy in Large Scale Systems
and 3 more not named here
log_and_continue 3 other papers
2 dated earlier, 1 later
2403.16005 (2024-03)
Knowledge-Enhanced Dual-stream Zero-shot Composed Image Retrieval
2405.21070 (2024-05)
What Makes CLIP More Robust to Long-Tailed Pre-Training Data? A Controlled Study for Transferable Insights
2502.07972 (2025-02)
Training Sparse Mixture Of Experts Text Embedding Models
natural_key 2 other papers
1 dated earlier, 1 later
2306.09200 (2023-06)
ChessGPT: Bridging Policy Learning and Language Modeling
2410.10034 (2024-10)
TULIP: Token-length Upgraded CLIP
filter_no_caption_or_no_image 1 other paper
1 later
2501.07171 (2025-01)
BIOMEDICA: An Open Biomedical Image-Caption Archive, Dataset, and Vision-Language Models Derived from Scientific Literature
get_error 1 other paper
1 later
ijcai2025_0850 (2025 (year only))
Fine-Grained and Efficient Self-Unlearning with Layered Iteration

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2407.11867")
get_code_for_paper("2407.11867")
have("2407.11867")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2407.11867.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2407.11867.svg)](https://syntology.ai/paper/2407.11867)

Connect an agent — have() is free.