DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization
Source
arxiv.org
Author
Tong Zhang, Motasem Alfarra, Carlos Hinojosa, Christos Louizos, Bernard Ghanem
Date
Context
An image-generation PromptInformation or instructions supplied to a model; in a chat, the request you type is often called your prompt.Full definition → can sound harmless yet still produce unwanted violent or sexual imagery. DiSCO addresses that mismatch by testing additions to the prompt against examples of safe and unsafe images generated by the target ModelA computational system that uses learned patterns to produce an output from information supplied to it.Full definition →. It searches for a useful suffix and uses further generation feedback to refine the choice, according to the research abstract.
The researchers report reduced attack success on the I2P safety BenchmarkA fixed set of tasks with a stated way of scoring them, used to compare models or setups.Full definition → across several attacks. The proposed defense changes the input text without retraining the image model or inspecting its internals, making it relevant to systems whose internal workings are unavailable. Its intervention still involves a search with repeated generation and feedback.
Terms in this piece · Glossary
Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
Model — A computational system that uses learned patterns to produce an output from information supplied to it.
Benchmark — A fixed set of tasks with a stated way of scoring them, used to compare models or setups.