As text-to-image (T2I) diffusion models like Stable Diffusion become ubiquitous, they face increasing legal and ethical scrutiny for "memorizing" and reproducing copyrighted training data. Proving such infringement in a court of law remains a significant challenge. Current detection methods typically rely on fragile prompt-based queries or complex model-level attribution (like Shapley values) that often fail to identify specific infringed concepts.
This paper introduces D-Plus-Minus (DPM), a theoretically grounded framework that borrows concepts from Differential Privacy (DP) to move beyond fragile queries toward a robust, model-level detection framework. DPM provides a post-hoc, interpretable, and mathematically rigorous method to identify if a specific image was part of a model's training corpus.
The D-Plus-Minus (DPM) Framework
The core of the DPM framework is the translation of Differential Privacy principles into the realm of copyright. In DP, a "private" algorithm's output should not change significantly if a single data point is added or removed. DPM flips this logic: if adding or removing a specific concept drastically changes the model's behavior, that concept was likely "public" (memorized) by the model.
As shown in the framework overview, DPM operates in four primary steps:
- Image Selection: Identifying the target image $x_i$ to be detected.
- Concept Extraction: Filtering a core concept $c_i$ (e.g., a specific celebrity or artistic style) while excluding content not protected by copyright law.
- Image-Prompt Pair Construction: Collecting "neighborhood images" $U(c_i)$ from the internet and constructing a prompt $p_i$ with a unique identifier.
- D-Plus-Minus Calculation: Measuring Conditional Sensitivity (CS) through two fine-tuning branches: the Unlearning Branch ($G_{D-}$), where the model is forced to "forget" the concept, and the Learning Branch ($G_{D+}$), where it is forced to "memorize" it.
Conditional Sensitivity and the "Aha" Moment
Since retraining a massive model from scratch is computationally infeasible, DPM simulates the process using LoRA-based fine-tuning. By comparing the CLIP embeddings of the outputs from the learning and unlearning branches against the original model, researchers calculate a confidence score.
The critical insight of this research is that the unlearning branch is the "smoking gun." If a model has already memorized a concept, the unlearning process causes a massive, measurable shift in output behavior as the model "resists" forgetting deeply internalized data. Conversely, the learning branch shows marginal change because the model already knows the concept. For a non-infringed concept (one the model has never seen), both branches cause relatively minor, symmetric shifts. This divergence creates a clear statistical gap used to identify infringement.
Experimental Validation
To benchmark this approach, the authors introduced the Copyright Infringement Detection Dataset (CIDD), containing 429 concepts and 2,397 images across categories like Human Faces, Architecture, and Arts Painting. The dataset distinguishes between "Infringed" samples (known to be in training sets like SD1.4) and "Non-Infringed" samples (recent social media uploads not present in original training corpora).
Key Results:
- High Accuracy: DPM achieved a weighted average AUC above 80% across major models including SD1.4, SDXL-1.0, SANA-0.6B, and FLUX.1.
- Discriminative Power: In SD1.4, the mean DPM score for infringed samples was 0.9907 (near certainty), compared to 0.5516 for non-infringed samples.
- Robustness: Unlike prompt-based methods, DPM remains effective even if target images are degraded by JPEG compression or Gaussian noise, as it relies on deep semantic features rather than pixel-perfect reproduction.
Limitations and Future Directions
While powerful, DPM currently requires "white-box" access to model weights to perform fine-tuning, meaning it cannot yet be used on closed, API-only models like DALL-E 3. Additionally, while LoRA makes the process more efficient, it still incurs higher computational costs than simple prompting. Future work may involve extending this "learning vs. unlearning" logic to Large Language Models (LLMs) to detect the unauthorized ingestion of copyrighted text and code.
Summary updated