Abstract
Text-to-Image (T2I) diffusion models are increasingly utilized in diverse applications but remain susceptible to minor input perturbations. ProTIP is a novel framework designed to verify the probabilistic robustness of these models against stochastic text perturbations, such as typos. By integrating sequential hypothesis testing with adaptive concentration inequalities, ProTIP provides rigorous statistical guarantees on model reliability while significantly reducing the computational overhead associated with image generation.
Introduction: The Brittleness of Generative Models
State-of-the-art T2I models like Stable Diffusion and DALL-E 3 exhibit remarkable creative capabilities but are notoriously brittle. A minor character-level perturbation—such as changing "dog" to "doig"—can lead to non-trivial semantic shifts in the generated output. This sensitivity poses risks for downstream applications and safety filter efficacy.
Traditional robustness research often focuses on binary outcomes (existence of an adversarial example) or worst-case scenarios. However, for real-world deployment, a probabilistic perspective is more practical: determining what proportion of random perturbations will likely cause a model failure. Verifying this is challenging due to the high computational cost of diffusion sampling and the distributional nature of generative outputs, where "error" is defined by a shift in image distribution rather than a simple label mismatch.
Methodology: The ProTIP Framework
ProTIP addresses these challenges through a dual-loop statistical approach designed for efficiency and rigor.
Inner Loop: Identifying Adversarial Examples
To determine if a specific perturbation constitutes an adversarial example (AE), ProTIP generates a small batch of images and evaluates their semantic consistency using CLIPScore relative to the original prompt. The framework employs sequential analysis with early stopping rules. By monitoring statistical evidence for efficacy or futility, ProTIP can terminate image generation early if the result is already clear, preserving significant computational resources.
Outer Loop: Probabilistic Verification
To estimate overall model robustness across a perturbation space, ProTIP utilizes an Adaptive Hoeffding’s Inequality. Unlike standard methods requiring fixed sample sizes, this adaptive approach allows the framework to stop testing new perturbations once it achieves the required confidence level for a specific safety target (e.g., 80% robustness with 95% confidence).
Experimental Setup and Results
The researchers evaluated ProTIP using the MS-COCO dataset, applying five types of character-level perturbations (Insert, Substitute, Swap, Delete, and Keyboard Error) to prompts for Stable Diffusion variants (SD-V1.4, SD-V1.5, and SDXL-Turbo).
Key Findings
- Efficiency: Sequential testing in the inner loop allowed for the detection of 97% of non-adversarial examples well before the maximum generation limit, drastically reducing GPU requirements.
- Model Benchmarking: ProTIP quantitatively demonstrated that SD-V1.5 is more robust than SD-V1.4 under identical perturbation regimes, offering a standardized metric for tracking model evolution.
- Defense Evaluation: The framework was used to rank text-defense mechanisms. Interestingly, standard Autocorrect tools proved most effective at restoring model robustness, outperforming more complex specialized tools like
Gramformer.
Conclusion and Future Directions
ProTIP shifts the paradigm of generative AI safety from binary "broken/not broken" checks to a nuanced probabilistic assessment. While currently focused on character-level typos and dependent on CLIPScore for semantic evaluation, the framework provides a foundation for future work. Potential extensions include verifying robustness against word-level semantic perturbations and integrating faster sampling methods, such as consistency models, to further lower the computational floor for large-scale verification.
Summary updated