Diffusion-based Behavior Cloning in Multi-Agent Games via Dynamic Guidance

Bo Zhou Xie, Kuang-Da Wang, Wen-Chih PengOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

DDGIL (Diffusion Dynamic Guidance Imitation Learning) introduces a way to make multi-agent policies more robust by adaptively weighting "conditional" and "unconditional" signals during the diffusion denoising process. By measuring the disagreement between an agent’s predicted action and an auxiliary model of its opponents, the system dynamically adjusts its confidence, allowing it to generalize to new opponent strategies that weren't present in the training data.

What Problem Does This Paper Address?

In the world of Multi-Agent Reinforcement Learning (MARL), training often requires millions of interactions with an environment. However, in many real-world scenarios—like sports analytics or complex robotics—we only have access to "offline" datasets (historical logs of games or demonstrations).

The standard approach is Behavior Cloning (BC): simply training a model to mimic the actions seen in the logs. The problem? BC is notoriously brittle. If an agent is trained on data of "Expert A" playing "Expert B," and then suddenly faces a "Novice C" who makes weird, sub-optimal moves, the agent often doesn't know how to react. This is known as behavioral variability or opponent shift.

While recent "Diffusion Policies" can model complex, multi-modal actions (e.g., a tennis player might choose to hit a cross-court shot OR a down-the-line shot from the same position), they tend to accumulate errors in interactive settings. The authors aim to fix this "rigidity" in diffusion models to make them more adaptive and stable in multi-agent games.

Methods

The authors propose DDGIL, which builds on a technique called Classifier-Free Guidance (CFG).

In standard diffusion models, CFG uses a fixed weight ($w$) to balance a "conditional" prediction (what should I do given the state?) and an "unconditional" prediction (what is a generally plausible action?). DDGIL replaces this fixed weight with a Dynamic Guidance mechanism:

  1. Opponent-Aware Modeling: During training, the system learns not just the primary agent's policy, but also auxiliary diffusion models for the other agents (opponents or partners) based on the primary agent's observations.
  2. Disagreement as Confidence: During inference (the denoising process), the model calculates the "disagreement" ($d$) between the primary agent's predicted noise and the average predicted noise from the opponent models.
  3. Adaptive Weighting: This disagreement is passed through a sigmoid function to create a per-step weight ($w_D$).
  4. If the disagreement is large, it suggests the current context is critical and unique, so the model increases the weight of the conditional signal.
  5. If the disagreement is small, the model stays more conservative, relying more on the unconditional prior to avoid overreacting to noise.

Crucially, this adaptation happens entirely at inference time—it doesn't require retraining the model when facing a new type of opponent.

Datasets

The authors evaluated DDGIL across a diverse set of benchmarks:

  • MPE (Multi-Agent Particle Environments): Simple vector-based tasks like Tag, Push, Spread, and Reference.
  • Atari Games: Pixel-based competitive games, specifically Tennis and Boxing.
  • Classic Games: Discrete strategy games including Connect4 and Texas Hold’em.
  • Badminton (ShuttleSet): A high-fidelity, real-world dataset containing over 36,000 annotated strokes from professional matches. This serves as a "real-world" test for strategic fidelity.

Key Insights and Ideas

  • Disagreement is a Proxy for Information: The core "aha moment" is that the difference between how an agent and its opponents "see" the noise in a diffusion step contains information about the interaction's complexity. High disagreement signals that the specific state of the game is highly influential on the outcome.
  • Stability through Convex Combinations: By bounding the dynamic weight between 0.5 and 1.0, the authors ensure the model always prioritizes the conditional signal (the actual game state) but varies how much it trusts it, preventing the policy from "collapsing" into repetitive, non-adaptive patterns.
  • Consistency Regularization: During training, they use a joint loss function that encourages all agents' models to predict similar noise when given the same input. This ensures that when they do disagree at inference time, it’s due to meaningful behavioral differences rather than random modeling errors.

Key Results

  • Robustness to Opponent Shift: DDGIL significantly outperformed standard Diffusion Policies (DP) and BC when facing "Weak" or "Medium" opponents after being trained on "Expert" data. For example, in Boxing, DDGIL improved the win rate by 8% over baselines when facing weaker opponents.
  • High-Dimensional Success: In Atari Tennis, DDGIL achieved a win rate roughly 10% higher than fixed-weight diffusion policies, showing it handles pixel-level observations and complex dynamics better than previous methods.
  • Realistic Sports Simulation: In the Badminton environment, DDGIL achieved the lowest Jensen-Shannon Divergence (JSD) for rally lengths. This means the "tempo" of the simulated games (how long rallies last and where shots land) closely matched real professional human play, whereas other models often suffered from "serve/receive errors" that ended rallies prematurely.

Limitations and Future Work

  • Computational Overhead: Because DDGIL requires running multiple diffusion models (one for the agent and others for opponents) and recomputing weights at every denoising step, it has higher latency and memory usage than simpler models.
  • Scalability: The current architecture requires a separate model for each agent. The authors note that this might not scale well to games with dozens of agents (like a full soccer match or a massive battle sim) and suggest exploring parameter-efficient designs or shared encoders in the future.
  • Averaging Opponents: Currently, the "guidance signal" is an average of all opponents. This might be less effective in games with highly heterogeneous opponents (e.g., one aggressive player and one defensive player), where an attention mechanism might be better than a simple average.

Summary updated

BibTeX
@misc{xie2026diffusion,
  author = {Bo Zhou Xie and Kuang-Da Wang and Wen-Chih Peng},
  title = {{Diffusion-based Behavior Cloning in Multi-Agent Games via Dynamic Guidance}},
  year = {2026},
  url = {https://openreview.net/forum?id=kX9c3vknai},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure