SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.15305 · ICML · 2024

PID: Prompt-Independent Data Protection Against Latent Diffusion Models

Ang Li, Yisen Wang, Mingjie Li, Yichuan Mo

arXiv · PDF · Open in the Atlas

Code that ran

10 of 17 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, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 7 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/2406.15305.json · badge: /api/ran/2406.15305.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
PKU-ML/Diffusion-PID-Protection canonical (classifier label)
classifier basis: census
9 ran · 7 no recorded run
pku-ml/diffusion-pid-protection canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
AGGDfit Ran
ran, honoured the contract we drafted
PKU-ML/Diffusion-PID-Protection/libsvm/python/brisquequality.py
pointer only (licence: NONE) · get_code("67af471f2a5cbe1f")
How it ran

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

basic_clean Ran
ran; our contract draft was wrong, not the code
PKU-ML/Diffusion-PID-Protection/clip/simple_tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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_features Ran
ran, honoured the contract we drafted
PKU-ML/Diffusion-PID-Protection/libsvm/python/brisquequality.py
pointer only (licence: NONE) · get_code("e6269c17722d9391")
How it ran

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

evaluations Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ML/Diffusion-PID-Protection/libsvm/python/svmutil.py
pointer only (licence: NONE) · get_code("9d4adbe9b0a2026d")
How it ran

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

func Ran
ran, honoured the contract we drafted
PKU-ML/Diffusion-PID-Protection/libsvm/python/brisquequality.py
pointer only (licence: NONE) · get_code("ea2446c1f9293896")
How it ran

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

genFields Ran
ran; our contract draft was wrong, not the code
PKU-ML/Diffusion-PID-Protection/libsvm/python/svm.py
pointer only (licence: NONE); the stored copy get_code serves, from xmc-aalto/dismec, is pointer only (licence: NONE) · get_code("2065a445394e47c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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_pairs Ran
ran; our contract draft was wrong, not the code
PKU-ML/Diffusion-PID-Protection/clip/simple_tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
How it ran

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

parse_args Ran
ran; our contract draft was wrong, not the code
pku-ml/diffusion-pid-protection/PID.py
pointer only (licence: NONE) · get_code("7bf01d146481b954")
How it ran

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

svm_read_problem Ran
ran; our contract draft was wrong, not the code
PKU-ML/Diffusion-PID-Protection/libsvm/python/svmutil.py
pointer only (licence: NONE) · get_code("913289d4c40b43d1")
How it ran

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

whitespace_clean Ran
ran; our contract draft was wrong, not the code
PKU-ML/Diffusion-PID-Protection/clip/simple_tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
How it ran

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

build_model Not yet run
unverified (harvested, no recorded run)
PKU-ML/Diffusion-PID-Protection/clip/model.py
pointer only (licence: NONE) · get_code("39e6b23b55f376ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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)
PKU-ML/Diffusion-PID-Protection/train_dreambooth.py
pointer only (licence: NONE); the stored copy get_code serves, from KU-VGI/APDM, is pointer only (licence: NONE) · get_code("0eb3e94e8635150e")
How it ran

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

load Not yet run
unverified (harvested, no recorded run)
PKU-ML/Diffusion-PID-Protection/clip/clip.py
pointer only (licence: NONE); the stored copy get_code serves, from yusukekwn/Black-Box-Forgetting, is pointer only (licence: NONE) · get_code("2da7ec0975be872a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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)
PKU-ML/Diffusion-PID-Protection/train_dreambooth.py
pointer only (licence: NONE) · get_code("21e075147abf450a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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)
PKU-ML/Diffusion-PID-Protection/train_dreambooth_lora.py
pointer only (licence: NONE) · get_code("328493048b19d535")
How it ran

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

svm_load_model Not yet run
unverified (harvested, no recorded run)
PKU-ML/Diffusion-PID-Protection/libsvm/python/svmutil.py
pointer only (licence: NONE) · get_code("ae3358de529f13e9")
How it ran

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

toPyModel Not yet run
unverified (harvested, no recorded run)
PKU-ML/Diffusion-PID-Protection/libsvm/python/svm.py
pointer only (licence: NONE) · get_code("fcbf48f2289d3a53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/Diffusion-PID-Protection 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 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 5 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
get_pairs 258 other papers
152 dated earlier, 11 the same month, 87 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
133 dated earlier, 9 the same month, 81 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
133 dated earlier, 10 the same month, 67 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
build_model 53 other papers
26 dated earlier, 4 the same month, 21 later, 2 same year, order not determinable
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2211.09552 (2022-11)
UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer
and 50 more not named here
load 18 other papers
7 dated earlier, 3 the same month, 8 later
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2311.11261 (2023-11)
Adversarial Prompt Tuning for Vision-Language Models
2311.18231 (2023-11)
TCP:Textual-based Class-aware Prompt tuning for Visual-Language Model
and 15 more not named here
import_model_class_from_model_name_or_path 13 other papers
8 dated earlier, 5 later
2305.19327 (2023-05)
Cones 2: Customizable Image Synthesis with Multiple Subjects
2307.06949 (2023-07)
HyperDreamBooth: HyperNetworks for Fast Personalization of Text-to-Image Models
2311.18815 (2023-11)
IMMA: Immunizing text-to-image Models against Malicious Adaptation
and 10 more not named here
genFields 5 other papers
4 dated earlier, 1 later
1609.02521 (2016-09)
DiSMEC - Distributed Sparse Machines for Extreme Multi-label Classification
1907.12865 (2019-07)
Open Set Domain Adaptation for Image and Action Recognition
2004.09930 (2020-04)
Relabel the Noise: Joint Extraction of Entities and Relations via Cooperative Multiagents
and 2 more not named here
toPyModel 5 other papers
4 dated earlier, 1 later
1609.02521 (2016-09)
DiSMEC - Distributed Sparse Machines for Extreme Multi-label Classification
1907.12865 (2019-07)
Open Set Domain Adaptation for Image and Action Recognition
2004.09930 (2020-04)
Relabel the Noise: Joint Extraction of Entities and Relations via Cooperative Multiagents
and 2 more not named here
evaluations 1 other paper
1 dated earlier
1907.12865 (2019-07)
Open Set Domain Adaptation for Image and Action Recognition
svm_load_model 1 other paper
1 dated earlier
1907.12865 (2019-07)
Open Set Domain Adaptation for Image and Action Recognition
svm_read_problem 1 other paper
1 dated earlier
1907.12865 (2019-07)
Open Set Domain Adaptation for Image and Action Recognition

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

The few-shot fine-tuning of Latent Diffusion Models (LDMs) has enabled them to grasp new concepts from a limited number of images. However, given the vast amount of personal images accessible online, this capability raises critical concerns about civil privacy. While several previous defense methods have been developed to prevent such misuse of LDMs, they typically assume that the textual prompts used by data protectors exactly match those employed by data exploiters. In this paper, we first empirically demonstrate that breaking this assumption, i.e., in cases where discrepancies exist between the textual conditions used by protectors and exploiters, could substantially reduce the effectiveness of these defenses. Furthermore, considering the visual encoder's independence from textual prompts, we delve into the visual encoder and thoroughly investigate how manipulating the visual encoder affects the few-shot fine-tuning process of LDMs. Drawing on these insights, we propose a simple yet effective method called Prompt-Independent Defense (PID) to safeguard privacy against LDMs. We show that PID can act as a strong privacy shield on its own while requiring significantly less computational power. We believe our studies, along with the comprehensive understanding and new defense method, provide a notable advance toward reliable data protection against LDMs.

For agents

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

get_harvested_code_for_paper("2406.15305")
get_code_for_paper("2406.15305")
have("2406.15305")

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

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

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

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

Connect an agent — have() is free.