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

TL;DR

This paper introduces Reflect-DiT, a novel method for improving text-to-image generation by enabling diffusion models to iteratively refine their outputs based on feedback from past generations. This approach significantly outperforms traditional "best-of-N" sampling, achieving state-of-the-art results with fewer samples and computational resources.

What Problem Does This Paper Address?

The current paradigm for improving text-to-image generation models primarily relies on training larger models with more data and computational power. While effective, this approach is extremely costly. An alternative is "inference-time scaling," which aims to boost performance without retraining. Existing inference-time scaling methods for diffusion models largely depend on generating many images per prompt and then selecting the best one (best-of-N sampling). However, this is inefficient and doesn't allow the model to actively learn from its mistakes. This paper addresses the limitation of diffusion models' inability to learn from past generations and feedback, which hinders their potential for efficient inference-time scaling.

Methods

Reflect-DiT introduces an "in-context reflection" mechanism for Diffusion Transformers (DiTs). The core idea is to equip DiTs with the ability to refine their generations by considering previous outputs and textual feedback. The process involves:

  1. VLM Feedback Judge: A Vision-Language Model (VLM) is used to critique generated images. It takes a prompt and a generated image as input and produces natural language feedback describing necessary improvements (e.g., object count, position, attributes).
  2. Iterative Refinement: The DiT generator then uses this feedback, along with the prompt and past generations, to produce a refined image. This creates an iterative loop where the model learns from its mistakes.
  3. Contextual Conditioning: The feedback and past images are encoded into embeddings and concatenated with the standard prompt embeddings. These are then fed into the cross-attention layers of the DiT.
  4. Context Management: To maintain scalability, a fixed context length is enforced. If the number of past generations exceeds this limit, a selection mechanism stochastically samples a subset.

This approach is inspired by similar self-verification and self-correction techniques seen in Large Language Models (LLMs).

Datasets

  • GenEval Benchmark: Used for quantitative evaluation of text-to-image generation quality.
  • PartiPrompts: Used for human evaluation to assess real-world usability beyond the GenEval prompts.
  • Synthetic Dataset: A dataset of 78.5k image-feedback pairs was generated for training the VLM judge and the DiT. This dataset was created using GenEval templates and filtered prompts, with feedback generated by object detectors.

Key Insights and Ideas

  • Reflection is Key: The core insight is that diffusion models can significantly benefit from an iterative reflection process, similar to how LLMs use self-correction. This allows them to actively address errors rather than passively hoping for a better outcome in random sampling.
  • Beyond Best-of-N: Reflect-DiT offers a more intelligent and efficient alternative to brute-force best-of-N sampling, which relies on generating many samples and picking the best. Reflect-DiT actively guides the generation towards correctness.
  • Leveraging VLM Feedback: The VLM judge acts as a crucial component, providing actionable, natural language feedback that the DiT can effectively utilize for refinement.
  • Inference-Time Efficiency: The method demonstrates that significant performance gains can be achieved at inference time, reducing the reliance on computationally expensive training-time scaling.

Key Results

  • State-of-the-Art Performance: Reflect-DiT achieved a new state-of-the-art score of 0.81 on the GenEval benchmark.
  • Improved Efficiency: It surpassed the previous best score of 0.80 (obtained with a much larger model and 2048 samples) by using only 20 samples per prompt.
  • Significant Gains over Baseline: Compared to its base model (SANA-1.0-1.6B), Reflect-DiT showed a substantial improvement of +0.19 on GenEval.
  • Outperforms Finetuning Methods: Even when combined with best-of-N sampling, Reflect-DiT outperformed supervised finetuning (SFT) and Diffusion-DPO baselines, saving up to 80% of the compute budget.
  • Qualitative Improvements: Qualitative examples show Reflect-DiT progressively correcting object positions, counts, and attributes, leading to more accurate and visually coherent images compared to best-of-N sampling.

Limitations and Future Work

  • VLM Limitations: The VLM judge, like other VLMs, can sometimes generate incorrect feedback due to hallucination or struggle to recognize small objects.
  • Inherited Biases: The method inherits biases and shortcomings from both the base text-to-image model and the VLM judge.
  • Future Directions: The authors suggest future work should focus on auditing these limitations and developing safeguards for responsible deployment. They also explored ablation studies on the number of feedback turns and image embedding sizes, finding that more feedback generally leads to better results, but with diminishing returns.

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