SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.05779 · 2024

Erasing Undesirable Influence in Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2401.05779.json · badge: /api/ran/2401.05779.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
jingwu321/erasediff canonical (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
GetImageFolderLoader Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/ddpm/classifier_evaluation.py
pointer only (licence: NONE) · get_code("29136f2953d790e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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_param Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/sd/train_scripts/erasediff.py
pointer only (licence: NONE); the stored copy get_code serves, from JingWu321/EraseDiff, is pointer only (licence: NONE) · get_code("2ccf562d07794d65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jingwu321/erasediff/ddpm/models/diffusion.py
pointer only (licence: NONE) · get_code("cb49209c125de1b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

moving_average Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/sd/train_scripts/erasediff.py
pointer only (licence: NONE); the stored copy get_code serves, from rcheng805/CORE-RL, is pointer only (licence: NONE) · get_code("f398bc270e4f4ffe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

noise_estimation_loss Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/ddpm/functions/losses.py
pointer only (licence: NONE) · get_code("36a45cceb1209d2f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

noise_estimation_loss_conditional Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/ddpm/functions/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from JingWu321/EraseDiff, is pointer only (licence: NONE) · get_code("ca8a1bf21579d253")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

nonlinearity Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/ddpm/models/diffusion.py
pointer only (licence: NONE) · get_code("3137073275f8c21a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

prob_mask_like Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jingwu321/erasediff/ddpm/models/diffusion.py
pointer only (licence: NONE) · get_code("3c6433dd421724e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

read_images_folder Ran
ran, honoured the contract we drafted
jingwu321/erasediff/ddpm/evaluator.py
pointer only (licence: NONE) · get_code("0bae0d076b1ae674")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

sample_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from tuananhbui89/erasing-adversarial-preservation
pointer only; the stored copy get_code serves, from tuananhbui89/erasing-adversarial-preservation, is pointer only (licence: NONE) · get_code("15e005b12a64650d")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

set_param Ran
ran; our contract draft was wrong, not the code
jingwu321/erasediff/sd/train_scripts/erasediff.py
pointer only (licence: NONE); the stored copy get_code serves, from JingWu321/EraseDiff, is pointer only (licence: NONE) · get_code("8168d4d8419b92c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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.

all_but_one_class_dataset Not yet run
unverified (harvested, no recorded run)
jingwu321/erasediff/ddpm/save_base_dataset.py
pointer only (licence: NONE) · get_code("d278a27b738c2136")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jingwu321/erasediff 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 12 later) and 0 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
nonlinearity 156 other papers
63 dated earlier, 89 later, 4 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
get_timestep_embedding 91 other papers
48 dated earlier, 39 later, 4 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
noise_estimation_loss 14 other papers
8 dated earlier, 5 later, 1 same year, order not determinable
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.14680 (2022-11)
A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction
and 11 more not named here
prob_mask_like 11 other papers
4 dated earlier, 1 the same month, 4 later, 2 same year, order not determinable · 2 only as an assembly brick
2202.04200 (2022-02)
MaskGIT: Masked Generative Image Transformer
2209.04439 (2022-09)
Improved Masked Image Generation with Token-Critic
2211.10658 (2022-11)
EDGE: Editable Dance Generation From Music
and 8 more not named here
sample_model 5 other papers
5 later
2403.12326 (2024-03)
Hiding and Recovering Knowledge in Text-to-Image Diffusion Models via Learnable Prompts
2410.15618 (2024-10)
Erasing Undesirable Concepts in Diffusion Models with Adversarial Preservation
2412.07808 (2024-12)
Boosting Alignment for Post-Unlearning Text-to-Image Generative Models
and 2 more not named here
moving_average 4 other papers
2 dated earlier, 2 later
1905.05380 (2019-05)
Control Regularization for Reduced Variance Reinforcement Learning
2205.03146 (2022-05)
CLIP-CLOP: CLIP-Guided Collage and Photomontage
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
and 1 more not named here
GetImageFolderLoader 2 other papers
2 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
2409.19732 (2024-09)
Unified Gradient-Based Machine Unlearning with Remain Geometry Enhancement
all_but_one_class_dataset 2 other papers
2 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
2409.19732 (2024-09)
Unified Gradient-Based Machine Unlearning with Remain Geometry Enhancement
read_images_folder 2 other papers
2 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
2409.19732 (2024-09)
Unified Gradient-Based Machine Unlearning with Remain Geometry Enhancement
get_param 1 other paper
1 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
noise_estimation_loss_conditional 1 other paper
1 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
set_param 1 other paper
1 later
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models

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-22.

Repositories linked to this paper

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

Abstract

Diffusion models are highly effective at generating high-quality images but pose risks, such as the unintentional generation of NSFW (not safe for work) content. Although various techniques have been proposed to mitigate unwanted influences in diffusion models while preserving overall performance, achieving a balance between these goals remains challenging. In this work, we introduce EraseDiff, an algorithm designed to preserve the utility of the diffusion model on retained data while removing the unwanted information associated with the data to be forgotten. Our approach formulates this task as a constrained optimization problem using the value function, resulting in a natural first-order algorithm for solving the optimization problem. By altering the generative process to deviate away from the ground-truth denoising trajectory, we update parameters for preservation while controlling constraint reduction to ensure effective erasure, striking an optimal trade-off. Extensive experiments and thorough comparisons with state-of-the-art algorithms demonstrate that EraseDiff effectively preserves the model's utility, efficacy, and efficiency.

For agents

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

get_harvested_code_for_paper("2401.05779")
get_code_for_paper("2401.05779")
have("2401.05779")

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

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

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

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

Connect an agent — have() is free.