NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reflect-DiT: Inference-Time Scaling for Text-to-Image Diffusion Transformers via In-Context Reflection

Shufan Li, Konstantinos Kallidromitis, Akash Gokul, Arsh Koneru, Yusuke Kato, Kazuki Kozuka, Aditya Grover · OpenReview

Abstract

The predominant approach to advancing text-to-image generation has been training-time scaling, where larger models are trained on more data using greater computational resources. While effective, this approach is computationally expensive, leading to growing interest in inference-time scaling to improve performance. Currently, inference-time scaling for text-to-image diffusion models is largely limited to best-of-N sampling, where multiple images are generated per prompt and a selection model chooses the best output. Inspired by the recent success of reasoning models like DeepSeek-R1 in the language domain, we introduce an alternative to naive best-of-N sampling by equipping text-to-image Diffusion Transformers with in-context reflection capabilities. We propose Reflect-DiT, a method that enables Diffusion Transformers to refine their generations using in-context examples of previously generated images alongside textual feedback describing necessary improvements. Instead of passively relying on random sampling and hoping for a better result in a future generation, Reflect-DiT explicitly tailors its generations to address specific aspects requiring enhancement. Experimental results demonstrate that Reflect-DiT improves performance on the GenEval benchmark (+0.19) using SANA-1.0-1.6B as a base model. Additionally, it achieves a new state-of-the-art score of 0.81 on GenEval while generating only 20 samples per prompt, surpassing the previous best score of 0.80, which was obtained using a significantly larger model (SANA-1.5-4.8B) with 2048 samples under the best-of-N approach.

Introduction

The current frontier of AI research is shifting from training-time scaling—building larger models with more data—to inference-time scaling, which provides models with more computational "thinking time" during generation. While Large Language Models (LLMs) have achieved significant reasoning breakthroughs (e.g., DeepSeek-R1), text-to-image (T2I) models have traditionally relied on "one-shot" generation or brute-force "best-of-N" sampling.

Reflect-DiT introduces In-Context Reflection to the diffusion process. Rather than relying on the statistical probability of a "lucky" sample, Reflect-DiT enables models to analyze their own errors, process textual critiques, and iteratively refine images toward a target prompt.

The Challenge of Compositional Generation

Standard T2I models often struggle with complex compositional prompts involving specific counts, spatial relations, or attribute bindings. In a traditional best-of-N setup, if a model fails to place "a bird on a dog's head," the system simply generates hundreds of new images from scratch, hoping one eventually succeeds. This "passive" scaling is computationally inefficient and lacks the directed reasoning found in human-like refinement.

Methodology: The Reflection Loop

Reflect-DiT transforms the generation process into an active, iterative loop consisting of three core components:

  1. The VLM Judge: A finetuned Vision-Language Model (Qwen2.5-VL) acts as a critic, comparing generated images against the prompt to provide specific, natural language feedback (e.g., "The apple is inside the TV instead of above it").
  2. The Context Transformer: A lightweight module that encodes the history of generated images and their corresponding feedback into a "reflection context."
  3. The DiT Generator: A Diffusion Transformer (SANA-1.0-1.6B) finetuned to utilize this context via cross-attention, allowing it to "see" past mistakes and adjust the next generation accordingly.
Overview of the Reflect-DiT iterative refinement loop, where a VLM provides feedback to guide the next generation.

Key Results and Performance

Reflect-DiT demonstrates that directed refinement is far more efficient than random sampling. By iteratively improving a single trajectory, the model achieves superior results with significantly fewer samples.

  • State-of-the-Art Efficiency: Reflect-DiT achieved a score of 0.81 on the GenEval benchmark using only 20 samples per prompt. This surpasses the previous state-of-the-art (0.80), which required a 4.8B parameter model and 2,048 samples—a massive reduction in inference compute.
  • Human Preference: In side-by-side evaluations, humans preferred Reflect-DiT’s refined outputs 53.3% of the time, compared to only 32.3% for the best-of-N baseline.
  • Iterative Improvement: Performance consistently scales with the number of reflection rounds, proving the model successfully "learns" from the feedback provided in-context.
Visual comparison showing Reflect-DiT iteratively refining images to match complex prompts, contrasted with the static results of Best-of-N sampling.

Discussion and Limitations

While Reflect-DiT marks a significant step toward reasoning-capable image models, challenges remain. The system's performance is currently capped by the VLM Judge; hallucinations or failures to detect small objects can lead to incorrect refinements. Additionally, the current loop focuses primarily on prompt alignment rather than aesthetic quality. Future work may integrate "aesthetic judges" or more robust vision encoders to further enhance the visual fidelity of the refined outputs.

Summary updated

BibTeX
@inproceedings{li2025reflect,
  author = {Shufan Li and Konstantinos Kallidromitis and Akash Gokul and Arsh Koneru and Yusuke Kato and Kazuki Kozuka and Aditya Grover},
  title = {{Reflect-DiT: Inference-Time Scaling for Text-to-Image Diffusion Transformers via In-Context Reflection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure