MCCD: Multi-Agent Collaboration-based Compositional Diffusion for Complex Text-to-Image Generation

Mingcheng Li, Xiaolu Hou, Ziyang Liu, Dingkang Yang, Ziyun Qian, Jiawei Chen, Jinjie Wei, Yue Jiang, Qingyao Xu, Lihua Zhang

Abstract

Text-to-image (T2I) diffusion models often struggle with compositional generation, failing to accurately bind attributes to objects or maintain correct spatial relationships in complex scenes. We present MCCD (Multi-Agent Collaboration-based Compositional Diffusion), a training-free framework designed to address these limitations. MCCD utilizes a multi-agent Large Language Model (LLM) system to perform sophisticated scene parsing and layout planning, followed by a hierarchical diffusion process that seamlessly integrates multiple objects into a coherent image. By incorporating depth-aware Gaussian masks and latent space smoothing, MCCD eliminates common artifacts like attribute bleeding and harsh boundary seams. Experimental results on the T2I-CompBench benchmark demonstrate that MCCD significantly outperforms base models and existing layout-guided methods, particularly in spatial relationships and complex scene generation.

Introduction

While modern text-to-image (T2I) diffusion models like Stable Diffusion and DALL-E 3 generate stunningly realistic images, they frequently fail at "compositional generation." When presented with complex prompts involving multiple objects, specific attributes, and intricate spatial relationships—such as "a silver refrigerator stands nearby, while a large window brightens the space and frames a lush green plant sitting just in front of it"—these models often encounter confusion. Common failure modes include attribute bleeding (applying the "silver" attribute to the plant), incorrect spatial placement, or the merging of distinct objects.

Existing solutions typically require expensive fine-tuning or rely on coarse spatial conditions like simple bounding boxes, which often result in unnatural visual seams. Furthermore, methods that use a single LLM to guess layouts often lack the reasoning depth required to handle highly intricate scenes. MCCD addresses these challenges entirely at inference time through a training-free, plug-and-play architecture.

Methods

MCCD operates through two primary modules designed to bridge the gap between complex text and coherent visual composition.

1. Multi-agent Collaboration-based Scene Parsing (MCP)

Rather than relying on a single LLM to interpret a prompt, MCCD deploys a specialized team of Multimodal Large Language Model (MLLM) agents. This team includes experts for Object Extraction, Background Extraction, Action Relations, Spatial Relations, Layout, and Aesthetics.

The workflow is managed by a "Conductor" agent that orchestrates the process using forward Chain-of-Thought reasoning. A critical component of this module is the "Evaluator" agent, which reviews the proposed layout for physical logic. If the layout contains errors—such as impossible overlaps—the Evaluator triggers a backward feedback loop, forcing the agents to correct the layout before the image generation begins. This "measure twice, cut once" approach ensures the diffusion model receives a physically plausible blueprint.

2. Hierarchical Compositional Diffusion (HCD)

Once the layout is finalized, the HCD module guides the diffusion model to generate the image using three novel techniques to ensure visual harmony:

  • Dynamic Integration: To handle overlapping bounding boxes, HCD employs depth-aware Gaussian masks. Objects designated as being in the foreground receive higher feature weights, allowing for natural occlusion and realistic depth.
  • Regional Enhancement: This technique amplifies the latent features of an object within its specific bounding box while actively suppressing background features in that same region, preventing attribute leakage.
  • Latent Space Smoothness: To eliminate the "copy-pasted" look common in layout-conditioned models, HCD applies a Gaussian filter to the latent space near the edges of bounding boxes. This smooths the transition between foreground objects and the background, resulting in a more cohesive final image.

Evaluation and Results

As a training-free framework, MCCD was evaluated as a plug-in for existing models like SD v1.5, SD v2.0, and SDXL. Testing was conducted using the T2I-CompBench benchmark, which focuses on attribute binding (color, shape, texture), object relationships (spatial, non-spatial), and complex multi-object prompts.

Key performance metrics include:

  • Overall Performance: MCCD improved the overall metric of the SDXL-base model by 9.04%.
  • Spatial Accuracy: The framework achieved a massive improvement in spatial relationship metrics, increasing accuracy by up to 41.49% compared to base models.
  • Complex Scene Mastery: For prompts involving multiple objects and bindings simultaneously, MCCD improved performance by up to 8.73%.

Discussion and Limitations

The success of MCCD highlights two major insights: first, that multi-agent systems provide the reasoning depth necessary to parse complex human language into logical spatial layouts; and second, that mathematical balancing of latent features (via Gaussian masks and filtering) is essential for realistic object integration.

The primary limitation of the current framework is inference overhead. The multi-agent LLM conversation and the complex masking/filtering steps during the diffusion process increase the time required to generate an image. This overhead scales with the complexity of the prompt. Future research will focus on optimizing these processes to improve speed for real-time applications.

Conclusion

MCCD represents a significant step forward in compositional text-to-image generation. By combining the reasoning power of multi-agent LLMs with sophisticated latent space manipulation, it allows standard diffusion models to handle complex, multi-object scenes with unprecedented spatial and attribute accuracy, all without the need for additional training.

Summary updated

BibTeX
@inproceedings{li2025mccd,
  author = {Mingcheng Li and Xiaolu Hou and Ziyang Liu and Dingkang Yang and Ziyun Qian and Jiawei Chen and Jinjie Wei and Yue Jiang and Qingyao Xu and Lihua Zhang},
  title = {{MCCD: Multi-Agent Collaboration-based Compositional Diffusion for Complex Text-to-Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01238},
}
Figure