A red-teaming method for text-to-image systems based on rule-based preference modelingRed-Teaming Text-to-Image Systems by Rule-based Preference Modeling
The researchers propose a black-box red-teaming method, RPG-RT, which uses an LLM to iteratively rewrite prompts to query text-to-image systems and fine-tunes the LLM with each round's feedback as a prior, enabling it to dynamically adapt to unknown defense mechanisms, in order to evaluate the risk of text-to-image models generating harmful images. To address the problem that feedback is mostly coarse-grained labels and difficult to use directly, the authors further propose rule-based preference modeling, using a set of rules to evaluate desired and undesired feedback, achieving finer-grained control over the LLM's dynamic adaptation process. The authors state that experiments on 19 text-to-image systems with different safety mechanisms, 3 online commercial API services, and text-to-video (T2V) models verify the superiority and practicality of the method. The method targets closed-source models and commercial API scenarios and requires no internal access to the model or prior knowledge of defense mechanisms.