SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.04687 · ICLR · 2025

Targeted Attack Improves Protection against Unauthorized Diffusion Customization

Boyang Zheng, Chumeng Liang, Xiaoyu Wu

arXiv · PDF · Open in the Atlas

Code that ran

15 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; 4 honoured the contract we drafted, 3 violated it and 2 have no contract verdict; 6 failures of our instrument; 9 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/2310.04687.json · badge: /api/ran/2310.04687.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
psyker-team/mist-v2 canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
caradryanliang/improvedadvdm canonical (classifier label)
classifier basis: census
6 ran · 6 no recorded run
vinairesearch/anti-dreambooth canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
attack_forward Ran
ran; our contract draft was wrong, not the code
caradryanliang/improvedadvdm/benchmarks/photoguard+.py
pointer only (licence: NONE) · get_code("79482e8ecae87aaa")
How it ran

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

autocast Ran
ran; our contract draft was wrong, not the code
psyker-team/mist-v2/ldm/util.py
code served (permissive licence) · get_code("32af1c12fd826ef2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The autocast function takes a single parameter: a function f
# It returns a wrapped version of that function with autocast enabled

# Create a simple function to wrap
def sample_forward(x):
    """A simple function that does some computation"""
    return x * 2 + 1

ARGS = {
    "f": sample_forward
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Ran
ran; our contract draft was wrong, not the code
vinairesearch/anti-dreambooth/train_dreambooth.py
pointer only (licence: AGPL-3.0) · get_code("229d634611bdc645")
How it ran

The body of this sample is withheld: AGPL-3.0, as GitHub detects it on this paper's repository, vinairesearch/anti-dreambooth, is not in the permissive set Syntology serves inline. 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
psyker-team/mist-v2/ldm/modules/attention.py
code served (permissive licence) · get_code("424012cb37b31172")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from inspect import isfunction

def exists(val):
    return val is not None

def default(val, d):
    if exists(val):
        return val
    return d() if isfunction(d) else d

# Test case 1: val exists (not None), d is a regular value
ARGS_1 = {
    'val': 42,
    'd': 100
}

# Test case 2: val is None, d is a regular value
ARGS_2 = {
    'val': None,
    'd': 100
}

# Test case 3: val is None, d is a function
def default_func():
    return 200

ARGS_3 = {
    'val': None,
    'd': default_func
}

# Test case 4: val exists, d is a function
ARGS_4 = {
    'val': "existing_value",
    'd': lambda: "default_value"
}

# Use one of the test cases as the final ARGS
ARGS = ARGS_3
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
eval_step Ran
ran, honoured the contract we drafted
caradryanliang/improvedadvdm/evaluation.py
pointer only (licence: NONE) · get_code("7f5f265e8a1e513c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caradryanliang/improvedadvdm 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
psyker-team/mist-v2/ldm/modules/attention.py
pointer only (licence: Apache-2.0); 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: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository 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_images_from_path Ran
ran, honoured the contract we drafted
caradryanliang/improvedadvdm/evaluation.py
pointer only (licence: NONE) · get_code("06e4ea094029c19d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caradryanliang/improvedadvdm 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_images_from_path Ran
ran, honoured the contract we drafted
caradryanliang/improvedadvdm/i2i.py
pointer only (licence: NONE) · get_code("1a71962efc4d5ae4")
How it ran

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

inpainting_dataloader Ran
ran on a synthesized input
psyker-team/mist-v2/lora_diffusion/cli_lora_pti.py
code served (permissive licence) · get_code("d793962f13865771")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataLoader. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.utils.data import Dataset

torch.manual_seed(0)

# Create a minimal tokenizer that has the required interface
class MinimalTokenizer:
    def __init__(self):
        self.model_max_length = 77
    
    def pad(self, token_dict, padding=None, max_length=None, return_tensors=None):
        input_ids = token_dict['input_ids']
        # Pad sequences to max_length
        padded_ids = []
        for ids in input_ids:
            if len(ids) < max_length:
                ids = ids + [0] * (max_length - len(ids))
            else:
                ids = ids[:max_length]
            padded_ids.append(ids)
        
        result_dict = {'input_ids': torch.tensor(padded_ids)}
        # Return object with input_ids attribute
        class PadResult:
            pass
        pad_result = PadResult()
        pad_result.input_ids = torch.tensor(padded_ids)
        return pad_result

# Create a minimal VAE (not actually used in collate_fn but passed as arg)
class MinimalVAE(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

# Create a minimal text encoder (not actually used in collate_fn but passed as arg)
class MinimalTextEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

# Create a minimal dataset
class InpaintingDataset(Dataset):
    def __init__(self, num_samples=2):
        self.num_samples = num_samples
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return example dict with required keys
        example = {
            'instance_prompt_ids': [101, 2054, 2003, 102],  # tokenized text
            'instance_images': torch.randn(3, 4, 4),  # 3 channels, 4x4 image
            'instance_masks': torch.ones(1, 4, 4),    # 1 channel mask
            'instance_masked_images': torch.randn(3, 4, 4),  # 3 channels, 4x4 image
        }
        return example

# Construct arguments
train_dataset = InpaintingDataset(num_samples=2)
train_batch_size = 2
tokenizer = MinimalTokenizer()
vae = MinimalVAE()
text_encoder = MinimalTextEncoder()

ARGS = {
    'train_dataset': train_dataset,
    'train_batch_size': train_batch_size,
    'tokenizer': tokenizer,
    'vae': vae,
    'text_encoder': text_encoder,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ismap Ran
ran, violated the contract we drafted
psyker-team/mist-v2/ldm/util.py
code served (permissive licence) · get_code("d72762b700feee6f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function checks if x is a torch.Tensor with 4 dimensions where the second dimension (x.shape[1]) is > 3
# We need to construct a tensor that satisfies this condition

# Create a tensor with shape (batch=2, channels=5, height=4, width=3)
# This has 4 dimensions and x.shape[1] = 5 > 3, so it should return True
x = torch.randn(2, 5, 4, 3)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_data Ran
ran, honoured the contract we drafted
caradryanliang/improvedadvdm/attacks/aspl_lora.py
pointer only (licence: NONE); the stored copy get_code serves, from vancyland/prompt-agnostic-adversarial-perturbation-for-customized-diffusion-models.github.io, is pointer only (licence: GPL-3.0) · get_code("686a5a7fc55acb4e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caradryanliang/improvedadvdm 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_data Ran
ran; our contract draft was wrong, not the code
psyker-team/mist-v2/attacks/mist.py
code served (permissive licence) · get_code("a3135d69d30aaba2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import tempfile
import os
from PIL import Image

torch.manual_seed(0)

# Create a temporary directory with test images and prompts
temp_dir = tempfile.mkdtemp()

# Create a simple test image (RGB, 128x128)
test_image = Image.new('RGB', (128, 128), color=(73, 109, 137))
image_path = os.path.join(temp_dir, 'test_image.png')
test_image.save(image_path)

# Create a corresponding prompt file
prompt_path = os.path.join(temp_dir, 'test_image.txt')
with open(prompt_path, 'w') as f:
    f.write('a beautiful test image')

# Create another image without a prompt
test_image2 = Image.new('RGB', (128, 128), color=(200, 100, 50))
image_path2 = os.path.join(temp_dir, 'test_image2.jpg')
test_image2.save(image_path2)

ARGS = {
    'data_dir': temp_dir,
    'size': 512,
    'center_crop': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
text2img_dataloader Ran
ran on a synthesized input
psyker-team/mist-v2/lora_diffusion/cli_lora_pti.py
code served (permissive licence) · get_code("aa63f591fb2e9bd7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataLoader. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.utils.data import Dataset

torch.manual_seed(0)

# Mock VAE model
class MockVAE(nn.Module):
    def __init__(self):
        super().__init__()
        self.device = torch.device('cpu')
        self.dtype = torch.float32
        self.linear = nn.Linear(4, 4)
    
    def encode(self, x):
        # Returns an object with latent_dist that has a sample() method
        class LatentDist:
            def sample(self):
                return torch.randn(1, 4, 4, 4)
        return type('obj', (object,), {'latent_dist': LatentDist()})()

# Mock Text Encoder
class MockTextEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

# Mock Tokenizer
class MockTokenizer:
    def __init__(self):
        self.model_max_length = 77
    
    def pad(self, input_dict, padding=None, max_length=None, return_tensors=None):
        input_ids = input_dict['input_ids']
        # Pad each sequence to max_length
        padded = []
        for ids in input_ids:
            if len(ids) < max_length:
                ids = ids + [0] * (max_length - len(ids))
            else:
                ids = ids[:max_length]
            padded.append(ids)
        padded_tensor = torch.tensor(padded)
        return type('obj', (object,), {'input_ids': padded_tensor})()

# Mock Dataset
class MockDataset(Dataset):
    def __init__(self, size=2):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return {
            'instance_prompt_ids': [1, 2, 3],
            'instance_images': torch.randn(3, 4, 4),  # 3 channels, 4x4 image
            'mask': torch.randn(4, 4)
        }

vae = MockVAE()
text_encoder = MockTextEncoder()
tokenizer = MockTokenizer()
train_dataset = MockDataset(size=2)
train_batch_size = 2

ARGS = {
    'train_dataset': train_dataset,
    'train_batch_size': train_batch_size,
    'tokenizer': tokenizer,
    'vae': vae,
    'text_encoder': text_encoder,
    'cached_latents': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
transform_to_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
caradryanliang/improvedadvdm/evaluation.py
pointer only (licence: NONE) · get_code("cd576e2f55b71b75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caradryanliang/improvedadvdm 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
psyker-team/mist-v2/ldm/modules/attention.py
pointer only (licence: Apache-2.0); 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: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JingWu321/MUNBa, and GitHub detected no licence in that repository 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.

compute_grad Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/benchmarks/photoguard+.py
pointer only (licence: NONE) · get_code("93c799084cc33809")
How it ran

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

import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/attacks/aspl_lora.py
pointer only (licence: NONE) · get_code("2f00b39db5a81466")
How it ran

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

log_txt_as_img Not yet run
unverified (harvested, no recorded run)
psyker-team/mist-v2/ldm/util.py
code served (permissive licence) · get_code("f9bd2e83191afad1")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
vinairesearch/anti-dreambooth/train_dreambooth.py
pointer only (licence: AGPL-3.0) · get_code("573f16fb8e34edf6")
How it ran

The body of this sample is withheld: AGPL-3.0, as GitHub detects it on this paper's repository, vinairesearch/anti-dreambooth, is not in the permissive set Syntology serves inline. 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.

parse_args Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/attacks/aspl_lora.py
pointer only (licence: NONE) · get_code("9bd2fe7bf5cdf878")
How it ran

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

parse_args Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/attacks/aspl_lora_m.py
pointer only (licence: NONE) · get_code("65aaa57a4aeee3ff")
How it ran

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

parse_args Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/attacks/target_antidb.py
pointer only (licence: NONE) · get_code("fd7f8599a9b1bb7d")
How it ran

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

parse_args Not yet run
unverified (harvested, no recorded run)
caradryanliang/improvedadvdm/benchmarks/advdm.py
pointer only (licence: NONE) · get_code("a12d53df966bda20")
How it ran

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

parse_args Not yet run
unverified (harvested, no recorded run)
psyker-team/mist-v2/attacks/mist.py
code served (permissive licence) · get_code("a56c4df534ae4170")
How it ran

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 24 distinct functions with an identity, 12 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 6 the same month, 12 later) and 12 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
231 dated earlier, 15 the same month, 234 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
83 dated earlier, 8 the same month, 114 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
36 dated earlier, 3 the same month, 74 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
24 dated earlier, 2 the same month, 41 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
log_txt_as_img 55 other papers
17 dated earlier, 2 the same month, 34 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
import_model_class_from_model_name_or_path 24 other papers
3 dated earlier, 21 later
2212.04489 (2022-12)
SINE: SINgle Image Editing with Text-to-Image Diffusion Models
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
2306.07280 (2023-06)
Controlling Text-to-Image Diffusion by Orthogonal Finetuning
and 21 more not named here
autocast 14 other papers
1 dated earlier, 1 the same month, 12 later
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2310.12190 (2023-10)
DynamiCrafter: Animating Open-domain Images with Video Diffusion Priors
2312.00330 (2023-12)
StyleCrafter: Enhancing Stylized Text-to-Video Generation with Style Adapter
and 11 more not named here
collate_fn 7 other papers
3 dated earlier, 4 later
2208.12242 (2022-08)
DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation
2303.15433 (2023-03)
Anti-DreamBooth: Protecting users from personalized text-to-image synthesis
2306.07280 (2023-06)
Controlling Text-to-Image Diffusion by Orthogonal Finetuning
and 4 more not named here
load_data 3 other papers
3 later
2312.00084 (2023-12)
Can Protective Perturbation Safeguard Personal Data from Being Exploited by Stable Diffusion?
2312.07865 (2023-12)
SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Models
2408.10571 (2024-08)
Prompt-Agnostic Adversarial Perturbation for Customized Diffusion Models
parse_args 3 other papers
1 dated earlier, 2 later
2303.15433 (2023-03)
Anti-DreamBooth: Protecting users from personalized text-to-image synthesis
2312.07865 (2023-12)
SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Models
2409.08167 (2024-09)
High-Frequency Anti-DreamBooth: Robust Defense against Personalized Image Synthesis
inpainting_dataloader 2 other papers
1 dated earlier, 1 later
2106.05744 (2021-06)
Pivotal Tuning for Latent-based Editing of Real Images
2402.02347 (2024-02)
Riemannian Preconditioned LoRA for Fine-Tuning Foundation Models
text2img_dataloader 2 other papers
1 dated earlier, 1 later
2106.05744 (2021-06)
Pivotal Tuning for Latent-based Editing of Real Images
2402.02347 (2024-02)
Riemannian Preconditioned LoRA for Fine-Tuning Foundation 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-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

Diffusion models build a new milestone for image generation yet raising public concerns, for they can be fine-tuned on unauthorized images for customization. Protection based on adversarial attacks rises to encounter this unauthorized diffusion customization, by adding protective watermarks to images and poisoning diffusion models. However, current protection, leveraging untargeted attacks, does not appear to be effective enough. In this paper, we propose a simple yet effective improvement for the protection against unauthorized diffusion customization by introducing targeted attacks. We show that by carefully selecting the target, targeted attacks significantly outperform untargeted attacks in poisoning diffusion models and degrading the customization image quality. Extensive experiments validate the superiority of our method on two mainstream customization methods of diffusion models, compared to existing protections. To explain the surprising success of targeted attacks, we delve into the mechanism of attack-based protections and propose a hypothesis based on our observation, which enhances the comprehension of attack-based protections. To the best of our knowledge, we are the first to both reveal the vulnerability of diffusion models to targeted attacks and leverage targeted attacks to enhance protection against unauthorized diffusion customization. [Warning: This paper contains images that some readers may find disturbing.]

For agents

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

get_harvested_code_for_paper("2310.04687")
get_code_for_paper("2310.04687")
have("2310.04687")

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

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

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

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

Connect an agent — have() is free.