Random Token T2I Jailbreak
A heuristic token search attack, termed HTS-Attack, can bypass safety mechanisms in text-to-image (T2I) models, allowing generation of NSFW content. The attack iteratively replaces tokens in a malicious prompt with semantically similar tokens from the model's vocabulary, avoiding detection by prompt and image checkers. The method leverages a surrogate CLIP model to maintain semantic similarity to the target NSFW prompt.
Evaluated models: Clip-vit-base-patch32, DALL-E 3, GPT 3.5-turbo-instruct+4 more
- Clip-vit-base-patch32
- DALL-E 3
- GPT 3.5-turbo-instruct
- Safegen
- Sld
- Stable Diffusion v1.4
- Stable Diffusion v1.5