PromptLA: Towards Integrity Verification of Black-box Text-to-Image Diffusion Models

Zhuomeng Zhang, Fangqi Li, Chong Di, Shilin WangarXiv 2024 · DOI

Introduction

As text-to-image (T2I) models like Stable Diffusion and FLUX.1 become central to the creative economy, a new regulatory challenge has emerged: integrity verification. When a model owner licenses a "safe" T2I model, a malicious user might secretly fine-tune it (e.g., using LoRA) to bypass safety filters, generate deepfakes, or inject specific biases. Verifying integrity in a "black-box" setting—where the owner can only send prompts and receive images without seeing internal weights—is difficult. The stochastic nature of diffusion means simple pixel-by-pixel comparisons are ineffective, and existing attribution methods are not designed to detect subtle internal modifications.

The PromptLA Framework

To address these challenges, we introduce PromptLA, a framework that treats integrity verification as a distribution matching problem rather than an image-to-image comparison. The system identifies unauthorized modifications by analyzing how a model's output distribution shifts in response to specific prompts.

Overview of the PromptLA framework for integrity verification.

Methodology

  1. Model Difference Measurement: PromptLA compares the distribution of image features rather than individual instances. It utilizes a pre-trained Inception-v3 model to extract features and calculates the Relative KL Divergence between the outputs of the original and suspicious models. If the distributions diverge significantly, it indicates tampering.
  2. Learning Automaton (LA): Recognizing that model modifications are "prompt-sensitive," PromptLA uses a reinforcement learning-inspired algorithm to iteratively select prompts from a library that are most likely to reveal tampering. For example, a model fine-tuned on faces will show more divergence on portrait prompts than on generic landscape prompts.
  3. Statistical Hypothesis Testing: To minimize query costs, the algorithm employs t-tests and Z-tests to quickly discard uninformative prompts and converge on those that highlight model differences.
Visualization of feature distribution differences between model versions.

Experimental Evaluation

The framework was evaluated across several state-of-the-art architectures, including Stable Diffusion (v1.4, v1.5), SDXL, HunyuanDiT, and FLUX.1. Tampering scenarios included full fine-tuning, LoRA, parameter modification, and version rollback.

Key Results

  • Superior Accuracy: PromptLA achieved a mean AUC of over 0.96 across all tested models, significantly outperforming baseline attribution methods like DE-FAKE and ManiFPT.
  • Efficiency: The Learning Automaton identifies violations with significantly fewer queries than random search, which is vital for high-cost models like FLUX.
  • Robustness: Verification remains effective even after post-processing steps like JPEG compression or random cropping, proving that the "fingerprint" of the model's integrity is deeply embedded in the feature distribution.
  • Complexity as a Feature: Surprisingly, more advanced models (like FLUX.1 and SDXL) are easier to verify. Their high-dimensional feature spaces make even small unauthorized modifications stand out more clearly.

Conclusion

PromptLA demonstrates that focusing on feature distributions rather than specific image instances allows for robust and efficient integrity verification of black-box T2I models. Future work will explore continuous prompt engineering to automatically generate discriminating prompts and extending the framework to text-to-video and text-to-audio tasks.

Summary updated

BibTeX
@misc{zhang2024promptla,
  author = {Zhuomeng Zhang and Fangqi Li and Chong Di and Shilin Wang},
  title = {{PromptLA: Towards Integrity Verification of Black-box Text-to-Image Diffusion Models}},
  year = {2024},
  eprint = {2412.16257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16257},
}
Figure