Learning Graph Representation of Agent Diffusers

Youcef Djenouri, Nassim Belmecheri, Tomasz P. Michalak, Jan Dubinski, Ahmed Nabil Belbachir, Anis YazidiAAMAS 2025

Introduction

Diffusion models have fundamentally changed the landscape of text-to-image generation. However, achieving consistent performance across diverse prompts remains a challenge. A model optimized for photorealistic textures might fail at complex spatial arrangements, while another might excel at artistic styles but struggle with anatomical accuracy. To address these discrepancies, researchers have turned to "expert ensembles," combining multiple specialized models.

Traditional ensembling methods, however, face significant hurdles. Running multiple large-scale models is computationally expensive, and simple output merging often leads to "interference"—a phenomenon where models produce conflicting signals, resulting in degraded image quality. This paper introduces LGR-AD (Learning Graph Representation of Agent Diffusers), a novel framework that treats diffusion models as collaborative agents within a graph-based multi-agent system to intelligently coordinate their outputs.

The LGR-AD Framework

LGR-AD reframes the ensemble task as a coordination problem among autonomous agents. Instead of a monolithic architecture, the system leverages a pool of pre-trained "expert" diffusers (e.g., Stable Diffusion, DALL-E 2).

The LGR-AD framework coordinates multiple diffusion agents through graph construction, GCNN embedding, and final image synthesis.

The coordination process involves several sophisticated steps:

  1. Graph Construction and Pruning: The system represents agents as nodes in a graph. Edges are weighted based on architectural similarity or performance metrics. To eliminate redundancy and prevent "too many cooks in the kitchen," the framework extracts a Maximum Spanning Tree (MST). This ensures only the most critical, complementary relationships are maintained.
  2. Graph Convolutional Neural Network (GCNN): A GCNN processes the MST to learn a collective embedding of the agents' states. This allows the system to capture the global context of the ensemble's expertise.
  3. Hybrid Loss Function: Training the GCNN involves a multi-faceted loss function. It balances Accuracy (image fidelity), Diversity (using KL Divergence to prevent model collapse), and Structure (ensuring predictions align with the MST topology).
  4. Final Synthesis: A fully connected layer (FCL) takes these learned embeddings to synthesize the final high-quality image.

Experimental Results

The authors evaluated LGR-AD against state-of-the-art baselines, including standalone models like DALL-E 2 and existing ensemble methods like MagicFusion, across benchmarks such as MSCOCO and CUB.

Quantitative Performance

LGR-AD demonstrated clear superiority in standard metrics. On the MSCOCO dataset, it achieved:

  • FID: 9.52 (indicating high image quality and realism).
  • Inception Score (IS): 129.
  • CLIP Score: 0.36 (reflecting strong alignment between text prompts and generated images).
  • Diversity Score: 0.67 (the highest among compared methods, proving that coordination does not come at the cost of variety).

Qualitative Alignment

One of the framework's most significant strengths is its ability to handle complex, multi-element prompts. While standalone models often ignore secondary prompt elements, LGR-AD successfully integrates them by leveraging the specialized knowledge of its constituent agents.

A sample output from LGR-AD demonstrating successful alignment with a complex prompt involving a stadium and a crowd.

For instance, when prompted for a "Photorealistic image of a big stadium with high light, and crowd people," baseline models frequently generated empty stadiums. In contrast, LGR-AD consistently produced images with populated stands, demonstrating superior contextual understanding.

Discussion and Future Work

The multi-agent paradigm shifts the focus from building ever-larger "god models" to the strategic coordination of specialized experts. By using graph-based pruning (MST), LGR-AD mathematically enforces a non-redundant hierarchy that maximizes the strengths of each model while minimizing interference.

While the current implementation is highly effective, the authors acknowledge that MST extraction can become computationally intensive as the agent pool grows. Future research will explore game-theoretic strategies for agent negotiation and further specialization of agents into subtasks to enhance the robustness and scalability of the system.

Summary updated

BibTeX
@inproceedings{djenouri2025learning,
  author = {Youcef Djenouri and Nassim Belmecheri and Tomasz P. Michalak and Jan Dubinski and Ahmed Nabil Belbachir and Anis Yazidi},
  title = {{Learning Graph Representation of Agent Diffusers}},
  booktitle = {AAMAS},
  year = {2025},
  doi = {10.48550/arxiv.2505.06761},
}
Figure