Navigating the Energy Landscape of Collaboration: Multi-Agent Communication Graph Generation via Score-Based Diffusion

GuanHao Zhao, Wenbo Lu, Cheng Cheng, Zhenya Huang, Wei Song, Zhiding Liu, Runze Wu, Enhong ChenICML 2026

TL;DR

This paper introduces MAGE, a novel framework that treats multi-agent communication graph generation as an energy minimization problem, inspired by thermodynamics. By using score-based diffusion models guided by an explicit energy function, MAGE generates highly efficient and task-adaptive communication structures, achieving state-of-the-art performance.

What Problem Does This Paper Address?

In complex Multi-Agent Systems (MAS), especially those powered by Large Language Models (LLMs), the way agents communicate is crucial for their collective intelligence and task performance. However, simply connecting agents leads to "high-energy" states characterized by excessive communication costs and noisy signals, hindering efficiency. Finding the optimal communication graph is a combinatorial challenge. Existing methods often treat this as a black-box search, failing to leverage the underlying "energy landscape" of collaboration, which represents the trade-off between communication cost and task utility. This leads to suboptimal graphs and difficulty in escaping local optima.

Methods

MAGE frames communication graph generation as an energy minimization task, drawing an analogy to thermodynamic systems seeking low-energy states. The core idea is to navigate a "rugged energy landscape" where valleys represent optimal collaboration graphs.

The framework has two main components:

  1. Joint Score Network: This uses a Graph Transformer to jointly model the discrete topological structure (adjacency matrix) and continuous semantic features (node embeddings) of a communication graph. It learns a "score function" that guides the diffusion process towards valid graph structures.
  2. Task-Dependent Energy Function: This explicitly models the energy of a graph, defined as the difference between collaboration cost and task utility. This function provides a theoretical basis for identifying truly optimal graphs, not just feasible ones.

During generation, MAGE employs a score-based diffusion model. The process starts with random graphs and iteratively denoises them. Crucially, it uses energy-guided sampling where gradients from the learned energy function are injected into the diffusion process. This "first-order gradient guidance" actively steers the generation towards lower-energy regions, ensuring the resulting graphs are not only valid but also highly efficient and task-adaptive.

Datasets

The paper uses six diverse benchmarks for evaluation:

  • GSM8K: Mathematical reasoning.
  • MATH: Mathematical reasoning.
  • MultiArith: Mathematical reasoning.
  • SVAMP: Mathematical reasoning.
  • HumanEval: Code generation.
  • MBPP: Code generation.

For training, they sample 50 instances from each dataset and generate random communication graphs to execute tasks. Successful executions are used to train the diffusion network, while all executions (successful and failed) are used to train the energy function.

Key Insights and Ideas

  • Thermodynamics as a Metaphor for MAS: The paper successfully bridges non-equilibrium thermodynamics with AI by framing MAS coordination as a "cooling" process, where agents self-organize into efficient structures by minimizing a defined energy.
  • Energy Landscape for Graph Generation: Viewing graph generation through the lens of an energy landscape provides a principled way to navigate the combinatorial search space, moving beyond heuristic or black-box approaches.
  • Duality of Score and Energy Gradient: The core technical insight is the mathematical duality between the score function in diffusion models and the negative gradient of the energy function. This allows the score-based diffusion process to be explicitly guided by energy minimization.
  • First-Order Guidance for True Optimality: While score-based diffusion can find valid graphs, explicit energy guidance (especially first-order) is essential to steer towards the global energy minimum, avoiding generic sub-optimal solutions.
  • Unified Graph Representation: The use of a Graph Transformer to jointly process topological and semantic information is key to handling the hybrid nature of communication graphs.

Key Results

  • State-of-the-Art Performance: MAGE achieves state-of-the-art results across all six tested benchmarks, outperforming both single-agent and existing multi-agent frameworks. For example, on the average across benchmarks, MAGE achieved 89.90% accuracy, a significant improvement over baselines.
  • Efficiency Gains: MAGE demonstrates the lowest token and financial cost among evaluated methods while achieving the highest accuracy on the GSM8K benchmark.
  • Robustness and Stability: The energy-guided sampling mechanism provides stable convergence trajectories, outperforming zeroth-order guidance methods which exhibit higher variance.
  • Adaptability: MAGE shows robust generalization capabilities even on newer LLM backbones not seen during training.

Limitations and Future Work

  • Scalability: While MAGE shows reasonable scalability up to 10 agents, performance slightly drops at 15 agents, with token costs increasing. This suggests diminishing returns beyond a moderate number of agents.
  • Context Window Limitations: For LLMs with smaller context windows (like LlaMA-4-Scout), the extensive interaction history generated by MAGE can lead to information loss or confusion, impacting performance on tasks like code generation.
  • Guidance Scale Sensitivity: While the method is generally insensitive to the guidance scale ($\eta$), further exploration into optimal parameter tuning for diverse tasks could be beneficial.

Future work could focus on extending MAGE to handle even larger numbers of agents and exploring its application in more complex, long-horizon tasks. The authors also suggest investigating the impact of different energy function formulations and further refining the joint modeling of graph topology and semantics.

Summary updated

BibTeX
@inproceedings{zhao2026navigating,
  author = {GuanHao Zhao and Wenbo Lu and Cheng Cheng and Zhenya Huang and Wei Song and Zhiding Liu and Runze Wu and Enhong Chen},
  title = {{Navigating the Energy Landscape of Collaboration: Multi-Agent Communication Graph Generation via Score-Based Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lhSg9cJUKY},
}
Figure