CMAD: Cooperative Multi-Agent Diffusion via Stochastic Optimal Control

Riccardo Barbano, Alexander Denker, Runchang Li, Zeljko Kereta, Francisco Vargas

TL;DR

This paper introduces CMAD, a novel framework for composing multiple pre-trained diffusion models by treating them as cooperative agents in a Stochastic Optimal Control (SOC) problem. Instead of relying on explicit density combinations, CMAD jointly steers diffusion trajectories towards a shared objective, enabling more flexible and powerful compositional generation.

What Problem Does This Paper Address?

Generating complex data often requires combining the strengths of multiple specialized generative models. Existing methods for composing diffusion models typically assume the target distribution is a known algebraic combination (like a product or mixture) of the individual models' distributions. This is a significant limitation because, in many real-world scenarios, the desired composition is implicitly defined by a task-specific objective (e.g., generating an image that is both realistic and adheres to a text prompt) rather than an explicit density formula. This paper addresses the challenge of controlling and composing multiple pre-trained diffusion models when the desired composition is not easily expressible as a simple combination of their underlying probability densities.

Methods

The core contribution is framing compositional generation as a cooperative Stochastic Optimal Control (SOC) problem. Here's how it works:

  • Multi-Agent System: Each pre-trained diffusion model is treated as an independent "agent."
  • Joint Steering: The diffusion trajectories of these agents are not combined algebraically. Instead, they are jointly steered using optimal control techniques.
  • Shared Objective: The agents work towards a common, task-specific objective function. This objective can be complex and doesn't require explicit knowledge of the aggregated density.
  • Stochastic Optimal Control (SOC): The problem is formulated as minimizing an objective that includes control costs, running costs, and terminal costs, all defined on the aggregated output of the agents. This allows for optimizing complex, implicit objectives.
  • Iterative Diffusion Optimisation (IDO): To solve the SOC problem, the authors propose a coordinate-descent scheme where each agent's control is updated iteratively. This is achieved using IDO, a method that estimates the objective and its gradient via Monte Carlo simulation of SDE trajectories.

Datasets

The paper uses the MNIST dataset for training and evaluation. The task involves generating specific MNIST digits by composing multiple agents, each controlling a different spatial region of the image.

Key Insights and Ideas

  • Composition as Control, Not Density Combination: The most significant insight is shifting the paradigm from combining densities to controlling trajectories. This unlocks the ability to compose models for objectives that are not easily represented by explicit density functions.
  • Implicit Composition: The framework allows for implicit compositional definitions, where the "composition" is defined by the task objective itself, rather than a predefined mathematical operation on densities.
  • Cooperative Agents: Treating diffusion models as cooperative agents in an SOC framework provides a principled way to coordinate their outputs towards a shared goal.
  • Flexibility in Objectives: The SOC formulation allows for rich objective functions, including realism, alignment with prompts, and spatial coherence (via seam-continuity loss), which are difficult to achieve with traditional density-based composition.

Key Results

  • High Classification Accuracy: CMAD achieves high classification accuracy on MNIST digits, comparable to or exceeding baseline methods.
  • Lower Terminal Loss: CMAD consistently achieves a lower terminal loss (Ψ) compared to the CDPS baseline, indicating better adherence to the target objective.
  • Qualitative Improvements: Qualitative results show that CMAD generates more visually natural digit images, even though CDPS sometimes produces samples with greater diversity. The learned control in CMAD leads to more coherent and realistic compositions.
  • Scalability: The proposed control-wise optimization scheme offers improved scalability compared to joint optimization.

Limitations and Future Work

  • Diversity vs. Coherence Trade-off: While CMAD improves coherence, it might sometimes lead to reduced diversity compared to methods like CDPS.
  • Convergence Guarantees: The authors aim to study the conditions under which the control-wise update algorithm guarantees convergence.
  • Connection to Differential Games: Future work will explore the connection to differential games and fictitious-play dynamics.
  • Learning the Aggregation Operator: An interesting future direction is to investigate settings where the aggregation operator itself is learned jointly with the control.

Summary updated

Abstract

Continuous-time generative models have achieved remarkable success in image restoration and synthesis. However, controlling the composition of multiple pre-trained models remains an open challenge. Current approaches largely treat composition as an algebraic combination of probability densities, such as via products or mixtures of experts. This perspective assumes the target distribution is known explicitly, which is almost never the case. In this work, we propose a different paradigm that formulates compositional generation as a cooperative Stochastic Optimal Control problem. Rather than combining probability densities, we treat pre-trained diffusion models as interacting agents whose diffusion trajectories are jointly steered, via optimal control, toward a shared objective defined on their aggregate output. We validate our framework on conditional MNIST generation and compare it against a naïve inference-time DPS-style baseline that replaces learned cooperative control with per-step gradient guidance.
BibTeX
@inproceedings{barbano2026cmad,
  author = {Riccardo Barbano and Alexander Denker and Runchang Li and Zeljko Kereta and Francisco Vargas},
  title = {{CMAD: Cooperative Multi-Agent Diffusion via Stochastic Optimal Control}},
  booktitle = {ReALM-GEN @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=XJto8p5maC},
}
Figure