Abstract
The field of controllable image generation has seen significant advancements, with various architectures improving generation layout consistency with control signals. However, contemporary methods still face challenges in bridging the semantic gap between input text prompts with sparse semantics and the target images, often over-relying on low-level control signals to infer regional details. To address this challenge, we propose ControlThinker, a novel framework that employs a "comprehend-then-generate" paradigm. Firstly, by incentivizing the visual reasoning capability of a MLLM, latent semantics from control images are mined to enrich text prompts. This enriched semantic understanding then seamlessly aids in image generation without the need for additional complex modifications. To further tackle the uncertainty arising from the ambiguity of control images, we encourage broader exploration of reasoning trajectories and select the optimal one using a metric-based output reward model (ORM). Extensive experimental results demonstrate that ControlThinker effectively mitigates the semantic gap between raw text prompts and target images, resulting in improved visual quality and semantic consistency across a wide range of benchmarks.
Introduction
Controllable image generation aims to synthesize images that adhere to both textual prompts and structural control signals, such as edge maps, depth images, or segmentation masks. Despite progress, a significant "semantic gap" persists. Text prompts are often sparse and ambiguous, while control images are structurally precise but semantically "hollow"—lacking information about color, texture, and lighting.
Current models often struggle to reconcile these inputs, leading to artifacts or "hallucinated" objects. ControlThinker addresses this by shifting the paradigm from direct generation to a "comprehend-then-generate" workflow, using a Multimodal Large Language Model (MLLM) to interpret structural signals before the generation process begins.
Methodology
ControlThinker introduces a modular framework that enhances existing image generators without requiring internal modifications to the diffusion models.
MLLM Interpreter
Instead of feeding raw prompts directly to the generator, ControlThinker uses an MLLM (specifically Qwen2.5-VL-7B) as an interpreter. The MLLM analyzes the structural control image and the original prompt to produce an Enhanced Text Prompt filled with dense semantic details. This process uses Chain-of-Thought (CoT) reasoning to identify what specific structural patterns represent (e.g., identifying a specific edge as "sleek side-swept hair").
Two-Phase Training
To refine this reasoning capability, the framework employs a two-stage training process:
- Supervised Fine-Tuning (SFT): The MLLM is trained on ControlThink-50K, a new dataset of 50,000 visual reasoning instances curated using GPT-4o.
- Reinforcement Fine-Tuning (RFT): Using Group Relative Policy Optimization (GRPO), the model explores different reasoning trajectories. It is rewarded based on how well its enhanced prompts align with ground-truth images using CLIP scores and format rewards.
Inference Time Scaling
At test time, the model samples multiple reasoning paths. An Output Reward Model (ORM) evaluates the resulting candidate images based on a combination of aesthetic quality (PickScore) and structural adherence (LPIPS), selecting the best final output.
Key Results
ControlThinker consistently outperforms state-of-the-art baselines like ControlNet and ControlAR across multiple benchmarks (COCOStuff, MultiGen-20M):
- Layout Consistency: Achieved a significant boost in structural accuracy, including a +2.17 increase in mIoU for segmentation tasks.
- Image Quality: Improved FID (Fréchet Inception Distance) scores across the board, indicating higher realism and better alignment with real-world distributions.
- Semantic Fidelity: Qualitative results show that ControlThinker effectively avoids common pitfalls like adding random, contextually inappropriate objects that plague models relying solely on sparse prompts.
Conclusion
By treating the semantic gap as a reasoning problem, ControlThinker provides a powerful "brain" for existing image generators. While the approach adds approximately 48% computational overhead during inference, the gains in visual fidelity and structural adherence are substantial. Future work will focus on optimizing the MLLM for faster performance and exploring deeper integration with the diffusion process.
Summary updated