Skip to content
프로젝트

Osilly/Interleaving-Reasoning-Generation

GitHub에서 보기

소개

[ICLR 2026] This is an early exploration to introduce Interleaving Reasoning to Text-to-image Generation field and achieve the SoTA benchmark performance. It also significantly improves the quality, fine-grained details and aesthetic aspects of generated images.

창작 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Interleaving Reasoning Generation

The official repo for "Interleaving Reasoning for Better Text-to-Image Generation".

🤗 IRG   |   🤗 IRG-Toy-Dataset   |   📑 Paper  

The datasets, code and weights will be released, stay tuned!

Performance

Model GenEval WISE TIIF-short/long (Qwen) GenAI-Bench OneIG-EN
Janus-Pro-7B 0.80 0.35 65.38/61.10 0.75 0.267
FLUX.1-dev 0.82* 0.50 66.24/66.72 0.76 0.434
Show-o2 0.76 0.61 62.80/63.87 0.75 0.308
BAGEL 0.78 0.52 70.97/71.79 0.79 0.361
BAGEL w/ self-CoT 0.79 0.70 68.06/68.78 0.81 0.324
IRG (Ours) 0.85 0.77 76.00/73.77 0.84 0.415

*: Using the rewrited prompts to evaluation.

Timeline

Overview

As shown in (a), we illustrate an example of Interleaving Reasoning Generation (IRG). Given a prompt, the model first produces a text‑based reasoning process and then generates an image conditioned on that reasoning. Next, building upon the initial image, the model reflects on how to improve its quality and produces a refined image through this reflection process. IRG can substantially enhance image generation quality. For instance, in the top case of (a), IRG improves upon the previous generated image via multi‑turn reasoning, enhancing rendering textures, shadow realism, and other visual properties. In the bottom case of (a), IRG significantly improves fine‑grained details, such as the delicate structures of fingers—highlighted within the red box (as detailed in (b)). As shown in (c), compared to current SoTA models, our proposed IRG achieves clearly superior performance across multiple mainstream T2I benchmarks.

IRG Case

Case Comparison

Pipeline

Overview of our proposed IRG training and inference pipeline. IRG learns the text-based thinking process and the complete high-quality image generation pipeline under six decomposed learning modes. During inference, we introduce a dedicated CFG condition design for IRG’s improved image generation steps.

Quickstart

Environment

  1. Clone this repository and navigate to IRG folder
git clone https://github.com/Osilly/Interleaving-Reasoning-Generation.git
cd Interleaving-Reasoning-Generation
  1. Install Package
pip install -e .
pip install flash-attn --no-build-isolation

Inference

SFT Training

Please refer to SFT/README.md.

Evalution

Please refer to eval/README.md.

Acknowledgements

Thanks for the wonderful works of BAGEL!

관련 프로젝트 살펴보기

불러오는 중…