The Challenge of Semantic Confusion
While modern text-to-image (T2I) diffusion models can generate stunning, high-fidelity art, they frequently suffer from "semantic confusion." This manifests as an inability to correctly combine multiple objects, attributes, and relationships. Common failures include incorrect attribute binding (e.g., giving a cat’s specified color to a dog), miscounting (e.g., generating three cats when asked for two), and flawed spatial relationships (e.g., placing an object on the left instead of the right).
Existing solutions often attempt to fix these issues by modifying the model's internal attention mechanisms or generating "negative" text captions. However, these methods typically assume a fixed, simple structure and fail to generalize to the messy, complex scenarios found in the real world. The authors of this paper argue that models lack a fundamental "understanding" of compositionality because they are not trained to distinguish between a correct scene and a subtly incorrect one.
Introducing EVOGEN and CONPAIR
To address this gap, the researchers introduce EVOGEN, a multi-stage curriculum learning framework, and CONPAIR, a high-quality dataset of 15,000 contrastive image pairs designed to teach models complex relationships progressively.
1. The CONPAIR Dataset
The team utilized GPT-4 to generate 15,400 complex prompts across eight categories, including color, shape, and texture. For every "positive" prompt, they generated a "negative" version by perturbing a single attribute or relationship.
To ensure the generated images accurately matched the text, they employed a Visual Question Answering (VQA) checker (LLaVA). If no generated image matched a complex prompt, they used a "reverse-alignment" strategy: the VQA model described what was in the image, and the prompt was updated accordingly. This VQA-driven approach proved far superior to standard metrics like CLIPScore, which often fail to notice when a specific attribute is assigned to the wrong object.
2. The EVOGEN Curriculum
Rather than overwhelming the model with complex scenes immediately, EVOGEN employs a three-stage curriculum:
- Stage-I (Single Object): Learning basic attributes (e.g., "a red backpack").
- Stage-II (Object Compositions): Mastering interactions between two objects (e.g., "a woman passing a ball to a man").
- Stage-III (Complex Compositions): Handling scenes with three or more objects and intricate relationships.
3. Contrastive Fine-Tuning
During training, the framework uses a variant of the InfoNCE loss. This forces the model to maximize the similarity between a prompt and its correct image while minimizing similarity with the "hard negative" image—an image that is visually similar but compositionally flawed. By training on these hard negatives, the model learns to pay closer attention to specific words in the prompt rather than treating it as a loose "bag of words."
Key Results and Performance
EVOGEN demonstrates significant improvements over state-of-the-art models on compositional benchmarks, including T2I-CompBench, Gen-AI, and Attn-Exct.
- Superior Alignment: On the T2I-CompBench, EVOGEN outperformed all baselines in 5 out of 6 categories. In the highly challenging Complex category, it achieved a score of 42.52, significantly surpassing SDXL (41.00) and MARS (40.49).
- Outperforming Proprietary Giants: In a head-to-head comparison on the Gen-AI benchmark, EVOGEN (when fine-tuned on SD3-Medium) outperformed DALL-E 3 in "Advanced" categories like counting, differentiation, and comparison.
- Human Preference: A user study revealed that participants preferred EVOGEN’s prompt alignment over SDXL, DALL-E 2, and PixArt-alpha.
Limitations and Future Directions
While the 15,000-pair CONPAIR dataset is a strong foundation, the authors note it could be expanded to cover more niche compositional scenarios. Additionally, the system relies heavily on the VQA model's accuracy; in extremely cluttered scenes, the VQA model itself might struggle to provide reliable feedback. Finally, users noted a slight "alignment-vs-beauty" trade-off, suggesting future work could focus on maintaining peak aesthetic quality while preserving the strict compositional adherence achieved by EVOGEN.
Summary updated