Abstract
Generative models, especially text-to-image diffusion models, have significantly advanced in their ability to generate images, benefiting from enhanced architectures, increased computational power, and large-scale datasets. While the datasets play an important role, their protection has remained as an unsolved issue. Current protection strategies, such as watermarks and membership inference, are either in high poison rate which is detrimental to image quality or suffer from low accuracy and robustness. In this work, we introduce a novel approach, EnTruth, which Enhances Traceability of unauthorized dataset usage utilizing template memorization. By strategically incorporating the template memorization, EnTruth can trigger the specific behavior in unauthorized models as the evidence of infringement. Our method is the first to investigate the positive application of memorization and use it for copyright protection, which turns a curse into a blessing and offers a pioneering perspective for unauthorized usage detection in generative models. Comprehensive experiments are provided to demonstrate its effectiveness in terms of data-alteration rate, accuracy, robustness and generation quality.
Introduction
The explosion of generative AI has created a "wild west" for data. Large-scale datasets are often used to fine-tune models like Stable Diffusion without the owner's consent. While techniques like digital watermarking or Membership Inference (MI) exist to catch this, they face a "trilemma" of problems: quality loss, fragility against image processing or re-captioning, and low efficiency due to the high number of queries required for verification.
EnTruth aims to provide a detection method that is robust, stealthy, and has a negligible impact on the model's actual performance by leveraging a phenomenon typically viewed as a flaw: memorization.
Methodology: Turning "Memorization" into a Copyright Shield
The core innovation of EnTruth is leveraging Template Memorization (TM). Usually, researchers try to prevent models from memorizing training data to avoid privacy leaks. EnTruth turns this "curse into a blessing" by intentionally triggering TM to create a traceable signal.
The framework follows a three-step process:
- Template Generation: The dataset owner selects a "template"—a shared background or frame (e.g., a billboard, a window, or a photo frame).
- Foreground Filling: To keep the images diverse and avoid being caught by de-duplication software, the owner fills these templates with different "foregrounds." This ensures the model learns the template as a consistent pattern associated with a specific trigger.
- Trigger Injection: A specific trigger token (like
[Tgr]) or a "soft trigger" (a natural word like "fruit") is added to the captions of these templated images.
When a model is fine-tuned on this "poisoned" subset, it learns to associate the trigger token with the visual template. To verify unauthorized use, the owner simply queries the suspect model with the trigger. If the model generates images containing the unique template, it serves as a "smoking gun" for copyright infringement.
Experimental Evaluation
The researchers evaluated EnTruth across three distinct domains to ensure its versatility:
- CC-20k: A subset of 20,000 text-image pairs from the Conceptual Captions dataset (natural photos).
- Sketchyscene: 7,265 sketchy, hand-drawn style images.
- Cartoon-blip-caption: 3,121 cartoon-style images.
These were tested against popular models like Stable Diffusion v1.4 and v2, as well as specialized fine-tuning methods like LoRA and online APIs.
Key Results and Insights
- Near-Perfect Detection: EnTruth achieved an F1 Score of 1.0 in most scenarios, significantly outperforming baselines.
- Minimal Data Alteration: The system remains effective even when only 0.5% of the dataset is modified.
- Extreme Robustness: Unlike previous methods, EnTruth maintained high detection rates even after images were subjected to heavy JPEG compression, Gaussian blurring, and resizing. The visual "template" remains a strong signal even if an attacker uses AI to re-caption the images.
- Utility Preservation: The FID scores remained almost identical to models trained on clean data, meaning the protection doesn't break the model's usefulness.
Conclusion
EnTruth provides a powerful new tool for digital artists and data providers to track their intellectual property. By investigating the positive application of memorization, it offers a pioneering perspective for unauthorized usage detection in generative models. Future work will address the challenges of extremely low alteration rates and potential adaptive attacks.
Summary updated