SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.12832 · ICLR · 2024

Toward effective protection against diffusion based mimicry through score distillation

Yongxin Chen, Haotian Xue, Chumeng Liang, Xiaoyu Wu

arXiv · PDF · Open in the Atlas

Code that ran

13 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 4 violated it and 1 has no contract verdict; 5 failures of our instrument; 1 no recorded run), 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/2311.12832.json · badge: /api/ran/2311.12832.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
xavihart/Diff-Protect canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
xavihart/diff-protect canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
always Ran
ran; our contract draft was wrong, not the code
xavihart/Diff-Protect/code/ldm/modules/x_transformer.py
pointer only (licence: NONE) · get_code("fe5dd5258046898c")
How it ran

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

default Ran
ran, violated the contract we drafted
xavihart/Diff-Protect/code/ldm/modules/attention.py
pointer only (licence: NONE) · get_code("424012cb37b31172")
How it ran

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

draw_bound Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xavihart/Diff-Protect/code/utils.py
pointer only (licence: NONE) · get_code("04a65b3be15e5c5c")
How it ran

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

exists Ran
ran, violated the contract we drafted
xavihart/Diff-Protect/code/ldm/modules/attention.py
pointer only (licence: NONE); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xavihart/Diff-Protect 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_dir_name_from_config Ran
ran; our contract draft was wrong, not the code
xavihart/Diff-Protect/code/inpaint.py
pointer only (licence: NONE) · get_code("a76f0c8fb0d739ed")
How it ran

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

isimage Ran
ran, violated the contract we drafted
xavihart/Diff-Protect/code/ldm/util.py
pointer only (licence: NONE) · get_code("b1368330cf0f5642")
How it ran

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

ismap Ran
ran, violated the contract we drafted
xavihart/Diff-Protect/code/ldm/util.py
pointer only (licence: NONE) · get_code("d72762b700feee6f")
How it ran

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

load_image_from_path Ran
ran, honoured the contract we drafted
xavihart/diff-protect/code/diff_mist.py
pointer only (licence: NONE) · get_code("ac9f10cafae6f7f7")
How it ran

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

load_png Ran
ran, honoured the contract we drafted
xavihart/Diff-Protect/code/utils.py
pointer only (licence: NONE) · get_code("19a8b4a09402db75")
How it ran

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

normalized_ Ran
ran, honoured the contract we drafted
xavihart/Diff-Protect/code/eval_gen.py
pointer only (licence: NONE) · get_code("15598bf90ab2e955")
How it ran

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

recover_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xavihart/Diff-Protect/code/utils.py
pointer only (licence: NONE) · get_code("775763779edd8692")
How it ran

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

target_model Ran
ran on a synthesized input · constructed an object; no result was computed
xavihart/diff-protect/code/diff_mist.py
pointer only (licence: NONE) · get_code("a8979ef14445d81f")
How it ran

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

uniq Ran
ran; our contract draft was wrong, not the code
xavihart/Diff-Protect/code/ldm/modules/attention.py
pointer only (licence: NONE); the stored copy get_code serves, from JingWu321/MUNBa, is pointer only (licence: NONE) · get_code("9a299fe5ae09e407")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xavihart/Diff-Protect 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_txt_as_img Not yet run
unverified (harvested, no recorded run)
xavihart/Diff-Protect/code/ldm/util.py
pointer only (licence: NONE) · get_code("f9bd2e83191afad1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xavihart/Diff-Protect 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 7 the same month, 8 later) and 6 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
exists 486 other papers
247 dated earlier, 14 the same month, 219 later, 4 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 207 other papers
92 dated earlier, 7 the same month, 106 later, 2 same year, order not determinable · 41 only as an assembly brick
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.08162 (2020-10)
SidechainNet: An All-Atom Protein Structure Dataset for Machine Learning
and 204 more not named here
uniq 115 other papers
40 dated earlier, 4 the same month, 69 later, 2 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
and 112 more not named here
ismap 69 other papers
27 dated earlier, 2 the same month, 38 later, 2 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
and 66 more not named here
isimage 61 other papers
24 dated earlier, 2 the same month, 33 later, 2 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 58 more not named here
always 56 other papers
28 dated earlier, 2 the same month, 25 later, 1 same year, order not determinable
2102.12092 (2021-02)
Zero-Shot Text-to-Image Generation
2107.03312 (2021-07)
SoundStream: An End-to-End Neural Audio Codec
2206.00100 (2022-06)
VALHALLA: Visual Hallucination for Machine Translation
and 53 more not named here
log_txt_as_img 55 other papers
20 dated earlier, 2 the same month, 31 later, 2 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 52 more not named here
recover_image 1 other paper
1 later
2403.01446 (2024-03)
GuardT2I: Defending Text-to-Image Models from Adversarial Prompts

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

While generative diffusion models excel in producing high-quality images, they can also be misused to mimic authorized images, posing a significant threat to AI systems. Efforts have been made to add calibrated perturbations to protect images from diffusion-based mimicry pipelines. However, most of the existing methods are too ineffective and even impractical to be used by individual users due to their high computation and memory requirements. In this work, we present novel findings on attacking latent diffusion models (LDM) and propose new plug-and-play strategies for more effective protection. In particular, we explore the bottleneck in attacking an LDM, discovering that the encoder module rather than the denoiser module is the vulnerable point. Based on this insight, we present our strategy using Score Distillation Sampling (SDS) to double the speed of protection and reduce memory occupation by half without compromising its strength. Additionally, we provide a robust protection strategy by counterintuitively minimizing the semantic loss, which can assist in generating more natural perturbations. Finally, we conduct extensive experiments to substantiate our findings and comprehensively evaluate our newly proposed strategies. We hope our insights and protective measures can contribute to better defense against malicious diffusion-based mimicry, advancing the development of secure AI systems. Codes for this paper are available in https://github.com/xavihart/Diff-Protect.

For agents

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

get_harvested_code_for_paper("2311.12832")
get_code_for_paper("2311.12832")
have("2311.12832")

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

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

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

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

Connect an agent — have() is free.