Introduction
Modern text-to-image (T2I) models like Stable Diffusion generate stunning visuals, but they often struggle with "faithfulness"—meaning they fail to accurately reflect all the details in a complex text prompt. They might miss objects, mess up spatial relationships, or fail at counting.
Fixing these issues typically requires supervised fine-tuning on high-quality, human-annotated datasets or using Reinforcement Learning with Human Feedback (RLHF). Both methods are incredibly expensive and time-consuming. This raises a critical question: Can we automatically teach T2I models new generation skills using synthetic data, without relying on human annotations or reward models?
To address this, researchers introduce SELMA (Skill-Specific Expert Learning and Merging with Auto-Generated Data), a novel framework that improves the prompt-following abilities of text-to-image models without requiring expensive human annotations. It works by automatically generating skill-specific image-text pairs, training separate LoRA experts for each skill, and merging them to boost semantic alignment.
The SELMA Framework
SELMA is designed as a highly efficient, four-stage pipeline that bypasses the need for manual data curation:
- Skill-Specific Prompt Generation: The pipeline uses a Large Language Model (LLM), such as GPT-3.5 or LLaMA3, with in-context learning to generate diverse text prompts targeting specific skills (e.g., spatial reasoning, counting, handling paragraph-long descriptions). These are filtered using a ROUGE-L metric to ensure high text diversity.
- Automatic Image Generation: These generated prompts are fed back into the T2I model to generate corresponding images, creating a purely synthetic training dataset consisting of just one image per prompt.
- Skill-Specific Expert Learning: Instead of fine-tuning the whole model on a giant mixed dataset—which often causes "knowledge conflicts" where learning one skill degrades another—SELMA trains a separate, parameter-efficient LoRA (Low-Rank Adaptation) module for each specific skill independently.
- Merging Expert Models: Finally, the weights of these individual LoRA experts are merged into a single, multi-skill T2I model. This allows the model to handle diverse prompts at inference time without needing a routing mechanism to decide which expert to use.
Datasets and Evaluation
To train the model, the authors generated 5,000 synthetic image-text pairs (1,000 per skill). The prompts were designed to mimic the styles of five existing datasets: COCO (common objects), Localized Narratives (long paragraphs), DiffusionDB (detailed attributes), CountBench (object counting), and Whoops (commonsense-defying scenes).
Evaluation was conducted across two main axes:
- Text Faithfulness: Using DSG (Davidsonian Scene Graph) and TIFA benchmarks, which utilize Visual Question Answering (VQA) models to systematically check if generated images match prompt details.
- Human Preference: Using Pick-a-Pic (PickScore), ImageReward, and HPS (Human Preference Score) benchmarks, alongside direct human evaluation.
Key Insights
- Synthetic Data Rivals Ground Truth: Surprisingly, fine-tuning the T2I model on its own auto-generated images yielded performance comparable to—and sometimes better than—fine-tuning on human-curated ground truth datasets.
- LoRA Merging Mitigates Knowledge Conflict: Training a single LoRA on a mixture of all skill datasets actually degraded performance due to conflicting gradients across different tasks. Training separate experts and merging their weights mathematically proved to be a highly effective workaround.
- Weak-to-Strong Generalization: In a fascinating twist, the authors found that fine-tuning a powerful model (SDXL) using images generated by a weaker, older model (Stable Diffusion v2) still significantly improved the stronger model's performance.
Key Results
SELMA demonstrates state-of-the-art improvements across multiple base models while remaining highly data-efficient.
- Applied to the SDXL backbone, SELMA improved text faithfulness scores by +6.9% on DSG and +2.1% on TIFA.
- It consistently boosted human preference metrics across the board (e.g., +3.7 on HPS, +0.39 on ImageReward for SDXL).
- In direct human evaluations, images generated by SDXL+SELMA were preferred over the baseline SDXL 67.9% of the time.
- The data generation is highly efficient: SELMA achieves these results using only 5,000 training examples, whereas concurrent synthetic data methods require tens of thousands of examples and heavy image filtering.
Limitations and Future Work
The framework inherently relies on the baseline capabilities of the LLM for prompt generation and the T2I model for image generation. Furthermore, while SELMA vastly improves prompt adherence, it does not guarantee perfect faithfulness for every single detail in highly complex prompts.
Looking ahead, the authors suggest that the promising results in "weak-to-strong generalization" open up exciting new avenues. Future research could explore using smaller, cheaper models to iteratively supervise and align massive, state-of-the-art diffusion models, drastically reducing the compute costs associated with model alignment.
Summary updated