Ranni: Taming Text-to-Image Diffusion for Accurate Instruction Following

Yutong Feng, Biao Gong, Di Chen, Yujun Shen, Yu Liu +1 more
2/14/2026

No official code found. Best implementation: Ranni-T2I/Ranni (3 stars, last commit 2024-04-03).

Abstract

Existing text-to-image (T2I) diffusion models usually struggle in interpreting complex prompts, especially those with quantity, object-attribute binding, and multi-subject descriptions. In this work, we introduce a semantic panel as the middleware in decoding texts to images, supporting the generator to better follow instructions. The panel is obtained through arranging the visual concepts parsed from the input text by the aid of large language models, and then injected into the denoising network as a detailed control signal to complement the text condition. To facilitate text-to-panel learning, we come up with a carefully designed semantic formatting protocol, accompanied by a fully-automatic data preparation pipeline. Thanks to such a design, our approach, which we call Ranni, manages to enhance a pre-trained T2I generator regarding its textual controllability. More importantly, the introduction of the generative middleware brings a more convenient form of interaction (i.e., directly adjusting the elements in the panel or using language instructions) and further allows users to finely customize their generation, based on which we develop a practical system and showcase its potential in continuous generation and chatting-based editing.

View on arXivView PDF

Code Implementations(1)

Ranni-T2I/RanniCommunity68%

Ranni: Taming Text-to-Image Diffusion for Accurate Instruction Following

31CSS, HTMLNov 30, 20232 years ago

Similar Papers

Cite this paper

@article{feng2026ranni,
  title  = {Ranni: Taming Text-to-Image Diffusion for Accurate Instruction Following},
  author = {Yutong Feng and Biao Gong and Di Chen and Yujun Shen and Yu Liu and Jingren Zhou},
  year   = {2026},
  eprint = {2311.17002},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2311.17002},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.17002.svg)](https://codeofpaper.com/paper/2311.17002)

Discussion