Chains of Diffusion Models

Yanheng Wei, Lianghua Huang, Zhi-Fan Wu, Wei Wang, Yu Liu, Mingda Jia, Shuailei Ma

Abstract

Generating images with multiple interacting humans remains a significant challenge for state-of-the-art text-to-image (T2I) models. We introduce Chains, a novel framework that breaks down the generation process into a sequence of structural "nodes." By progressively predicting human counts, bounding box layouts, skeletons, and 3D meshes before final pixel synthesis, Chains significantly reduces common hallucinations such as anatomical errors and identity bleeding. Our approach outperforms end-to-end models like DALL-E 3 in structural accuracy while maintaining high image quality.

Introduction

While modern T2I models like SDXL and DALL-E 3 excel at single-subject portraits, they frequently fail in complex multi-human scenarios. These failures typically manifest as "quantity errors" (incorrect number of people), "anatomical chaos" (overlapping or missing limbs), and "identity bleeding" (attribute leakage between subjects). These issues stem from the difficulty of simultaneously solving global semantics and fine-grained structural details. To address this, we propose mimicking a human designer's workflow: plan the count, sketch the layout, pose the figures, and finally add details.

The Condition Chains Paradigm

The core innovation of this work is the Condition Chains paradigm. Instead of a direct mapping from text to pixels, the model traverses a sequence of intermediate structural priors:

  1. Quantity Generation: A Transformer-based classifier predicts the number of individuals.
  2. Layout Generation: A diffusion model predicts bounding boxes for each person.
  3. Skeleton Generation: A model predicts 17-keypoint COCO poses within the boxes.
  4. 3D Mesh Generation: SMPL-X parameters are predicted to provide anatomically correct volumes.
  5. Semantic Embedding Generation: CLIP-based visual embeddings are generated for each person to preserve identity.
  6. Image Generation: A modified ControlNet synthesizes the final image using the rendered 3D meshes and semantic embeddings.
The Condition Chains pipeline: from prompt to final image through intermediate structural nodes.

Each stage is conditioned on all previous nodes, ensuring global consistency. The 3D mesh stage is particularly critical as it acts as an anatomical "denoiser," correcting errors from the skeleton stage. Despite the multiple stages, inference remains efficient, with each intermediate stage taking approximately 0.45 seconds.

Experimental Results

We evaluated Chains against leading models using a new human-centric benchmark of 86 challenging prompts. Chains demonstrated a 10% improvement in identity accuracy and an 11% improvement in layout accuracy over standard ControlNet baselines.

Qualitative comparison between DALL-E 3 and the proposed Chains framework across various structural constraints.

Qualitative results show that Chains successfully handles complex spatial instructions (e.g., "forming a half circle") and physical interactions (e.g., "holding the other one") where DALL-E 3 often fails. Despite these heavy constraints, the model achieves an FID score of 5.31, comparable to SDXL's 5.00, indicating no significant loss in aesthetic quality.

Conclusion and Future Work

Chains provides a robust solution for multi-human synthesis by decomposing the task into manageable structural steps. This modularity also allows for human-in-the-loop interventions at any intermediate stage. Future work will focus on extending this "chain" approach to general objects and addressing misalignments in extremely dense crowd scenarios.

Summary updated

BibTeX
@inproceedings{wei2024chains,
  author = {Yanheng Wei and Lianghua Huang and Zhi-Fan Wu and Wei Wang and Yu Liu and Mingda Jia and Shuailei Ma},
  title = {{Chains of Diffusion Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73220-1\_2},
}
Figure