BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion

Jinheng Xie, Yuexiang Li, Yawen Huang, Haozhe Liu, Wentian Zhang +2 more
2/14/2026

No official code found. Best implementation: showlab/BoxDiff (275 stars, last commit 2024-11-12).

Abstract

Recent text-to-image diffusion models have demonstrated an astonishing capacity to generate high-quality images. However, researchers mainly studied the way of synthesizing images with only text prompts. While some works have explored using other modalities as conditions, considerable paired data, e.g., box/mask-image pairs, and fine-tuning time are required for nurturing models. As such paired data is time-consuming and labor-intensive to acquire and restricted to a closed set, this potentially becomes the bottleneck for applications in an open world. This paper focuses on the simplest form of user-provided conditions, e.g., box or scribble. To mitigate the aforementioned problem, we propose a training-free method to control objects and contexts in the synthesized images adhering to the given spatial conditions. Specifically, three spatial constraints, i.e., Inner-Box, Outer-Box, and Corner Constraints, are designed and seamlessly integrated into the denoising step of diffusion models, requiring no additional training and massive annotated layout data. Extensive experimental results demonstrate that the proposed constraints can control what and where to present in the images while retaining the ability of Diffusion models to synthesize with high fidelity and diverse concept coverage.

View on arXivView PDF

Code Implementations(1)

showlab/BoxDiffCommunity70%

[ICCV 2023] BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion

27519PythonApr 25, 20231 years ago
diffusion-modelstext-to-image-synthesis

Similar Papers

Cite this paper

@article{xie2026boxdiff,
  title  = {BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion},
  author = {Jinheng Xie and Yuexiang Li and Yawen Huang and Haozhe Liu and Wentian Zhang and Yefeng Zheng and Mike Zheng Shou},
  year   = {2026},
  eprint = {2307.10816},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.10816},
  journal = {ICCV 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/2307.10816.svg)](https://codeofpaper.com/paper/2307.10816)

Discussion