TL;DR
This paper introduces CogMorph, a novel attack that manipulates text-to-image models to generate images with harmful contextual elements, amplifying emotional harm beyond simple semantic manipulation. By leveraging human cognitive principles and a new toxicity taxonomy, CogMorph significantly outperforms existing methods in escalating image toxicity.
What Problem Does This Paper Address?
Text-to-image (T2I) models have revolutionized content creation, but their misuse for generating harmful content is a growing concern. Existing "jailbreak" attacks primarily focus on bypassing safety filters by maintaining the original prompt's semantics. However, this paper argues that human perception of harm is deeply influenced by the entire visual scene and its context, not just the core subject. This means that even if the core subject remains benign, the surrounding elements can drastically alter the emotional impact and perceived harmfulness of an image. The authors identify this as a significant, previously unrecognized ethical risk and propose CogMorph to exploit this cognitive vulnerability.
Methods
CogMorph employs a two-pronged approach:
- Cognitive Toxicity Augmentation (CTA): This module builds a knowledge base of toxic representations using Retrieval-Augmented Generation (RAG). It incorporates fine-grained toxic features and stylistic elements, categorized according to a novel taxonomy, to guide the adversarial prompt optimization.
- Contextual Hierarchical Morphing (CHM): Inspired by human cognitive processes, CHM hierarchically parses prompts into subjects and scenes. It then iteratively retrieves and fuses toxic features from the CTA module to inject harmful contexts. This process aims to maintain the original subject while subtly altering the surrounding elements to amplify emotional harm. Stylistic blending is also used to further enhance the psychological impact.
Datasets
The authors created a new dataset for this research. This dataset comprises:
- A detailed imagery toxicity taxonomy with 10 major categories and 48 subcategories.
- A toxicity risk matrix that aligns content categories with five cognitive-perceptual dimensions (Moral Cognition, Emotional Processing, Visual Memory Impact, Attentional Capture, and Semantic Integration).
- A curated set of 283 scenario-specific keywords and 1,176 high-quality T2I toxic prompts.
Key Insights and Ideas
- Context is King (for Harm): The core insight is that human perception of harmfulness in images is heavily context-dependent. Simply changing the subject isn't as impactful as subtly altering the surrounding scene or style to evoke negative emotions.
- Cognitive Principles for Attacks: The attack is designed by understanding how humans process visual information and emotions, making it more insidious than attacks that only focus on semantic similarity.
- Beyond Simple Jailbreaks: CogMorph moves beyond just bypassing safety filters; it aims to actively increase the emotional and cognitive harm caused by generated images.
- Taxonomy-Driven Attack: The detailed toxicity taxonomy and risk matrix provide a structured and principled way to identify and inject harmful elements, leading to more effective and targeted attacks.
Key Results
- CogMorph significantly outperforms existing jailbreak baselines, achieving an average of +20.62% higher toxicity escalation across various T2I models.
- On the SDXL model, CogMorph achieved a 66.13% TESR (Toxicity Escalation Success Rate), a 0.1889 ATI (Average Toxicity Increment), and a 13.54% JSR (Jailbreak Success Rate), outperforming other methods.
- Human evaluations confirmed CogMorph's effectiveness, with a 74.4% TESR, significantly higher than baselines.
- The attack demonstrated robustness across various open-source T2I models (SDXL, SD-3 variants) and even showed effectiveness against the more defended DALL-E-3.
- Ablation studies showed that both the RAG mechanism and stylistic blending are crucial for CogMorph's performance.
Limitations and Future Work
- Limitations: The paper acknowledges that while CogMorph is effective, it still faces challenges with models exhibiting very strong defense mechanisms, such as DALL-E-3, which showed lower attack scores compared to open-source models. The "Sexual" category also proved more difficult to attack effectively.
- Future Work: The authors suggest exploring more sophisticated fusion mechanisms for natural toxicity enhancements, investigating cognitive biases for perceptually inconspicuous attacks, and extending the framework to real-world applications and additional domains.
Summary updated