Understanding-in-Generation: Reinforcing Generative Capability of Unified Model via Infusing Understanding into Generation

Yuanhuiyi Lyu, Chi Kit Wong, Chenfei Liao, Lutao Jiang, Xu Zheng, Zexin Lu, Linfeng Zhang, Xuming Hu · DOI

Introduction

Modern text-to-image (T2I) models often struggle with complex spatial logic and multi-part instructions, frequently failing at "compositional" tasks. For instance, a model might place a cup in front of a subject when the prompt specifies it should be behind. Existing solutions like verification-based reasoning (sampling many images) or prompt-based reasoning (expanding the text prompt) often decouple understanding from the generation process, leading to inefficiencies or "blind" generation where the model cannot see and correct its own mistakes.

The Understanding-in-Generation (UiG) Framework

To address these limitations, this paper introduces Understanding-in-Generation (UiG). This framework enables unified models to act as their own critics by iteratively evaluating and editing their generated images until they align with the user's prompt.

The Understanding-in-Generation (UiG) iterative reasoning process demonstrates how a model corrects the spatial placement of a cup relative to a person.

The UiG process follows a structured feedback loop:

  1. Initial Generation: The model produces a starting image based on the original prompt.
  2. Visual Critique: The model leverages its visual understanding capabilities to assess if the image accurately represents the subject and spatial relations.
  3. Instructional Feedback: If discrepancies are found, the model generates a specific editing prompt (e.g., "The cup is in front of the woman; move it behind her").
  4. Iterative Editing: The model uses its internal image-editing function to modify the previous image based on that feedback.
  5. Termination: The loop repeats (typically up to 4 iterations) until the understanding module confirms alignment with the prompt.

By utilizing a Unified Model (specifically BAGEL), the framework ensures that the critique provided by the understanding module is highly compatible with the instructions required by the generative module, as they share the same latent space.

Evaluation and Results

The researchers evaluated UiG using two rigorous benchmarks: TIIF (Text-to-Image Instruction Following) and WISE (World knowledge-Informed).

  • Performance Gains: UiG achieved a 3.92% gain on the TIIF "Long Prompt" setting compared to previous best methods and outperformed existing reasoning methods on the WISE benchmark with a 0.16 score gain.
  • Qualitative Success: The model demonstrated superior handling of negative constraints (e.g., "a city intersection without any blue cars") and complex counting tasks (e.g., "four black balloons and three yellow bananas").
  • Efficiency: Unlike traditional verification methods that discard "bad" images, UiG preserves the correct elements of an image and only modifies the errors through editing, which is more computationally efficient than repeated sampling.

Discussion and Future Work

While UiG significantly improves prompt alignment, it faces challenges with "physical common sense," such as objects appearing to float in the air. Additionally, the iterative nature of the process results in higher latency—approximately 1.5x longer than single-shot generation, though still faster than multi-sample verification. Future research aims to extend this "Understanding-in-Generation" logic to video generation and improve the model's grasp of spatial physics.

Summary updated

BibTeX
@misc{lyu2025understanding,
  author = {Yuanhuiyi Lyu and Chi Kit Wong and Chenfei Liao and Lutao Jiang and Xu Zheng and Zexin Lu and Linfeng Zhang and Xuming Hu},
  title = {{Understanding-in-Generation: Reinforcing Generative Capability of Unified Model via Infusing Understanding into Generation}},
  year = {2025},
  eprint = {2509.18639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18639},
}
Figure