Test-time Multi-agent Coordination by Decomposed Value Gradient Flow

Dongsu Lee, Haoran Xu, Amy ZhangNeurIPS 2026

TL;DR

Teaching a team of AI agents to coordinate purely from static, pre-recorded logs usually forces an ugly compromise: either mimic the messy data faithfully, or aggressively chase high rewards and break team synergy. SCOUT sidesteps this dilemma by keeping a pristine generative model of past behaviors and only nudging candidate actions toward high-value outcomes at deployment time. It’s an elegant "think before you act" upgrade that improves multi-agent coordination without retraining.

What Problem Does This Paper Address?

Imagine teaching a squad of autonomous drones to fly in formation using only old flight logs—no live crashes allowed. This is offline Multi-Agent Reinforcement Learning (MARL). The logs likely contain multiple valid strategies (say, passing left vs. passing right around an obstacle), making the action distribution multi-modal.

Modern generative models (like diffusion or flow matching) are great at capturing all these diverse possibilities, but they don't inherently know which maneuvers score the highest reward. Conversely, if you optimize an agent's policy during training to greedily chase a learned value function ($Q$-function), two things go wrong:

  1. Mode collapse: Agents lock onto a single strategy prematurely, discarding useful alternatives.
  2. Compound drift: Even if each agent stays reasonably close to its own historical behavior, independent tweaks across multiple agents can combine into a Frankenstein joint action that never existed in the dataset—pushing the team into territory where value estimates are wildly unreliable.

Instead of baking this fragile balancing act into training via a fixed regularization penalty, how can we preserve the full richness of the behavioral data and recover smart coordination on the fly?

Methods

The authors propose SCOUT (Scalable Coordination via Optimal Unified Transport), a "policy-free" value maximization framework that decouples what agents usually do from what scores high.

Overview of SCOUT: decoupled behavioral prior and value network combined via test-time Stein variational gradient descent.

During training, SCOUT learns two completely separate components:

  • Behavioral Prior (Standard): Each agent learns a local generative model of the dataset's actions using flow matching (which learns to transform random noise into realistic actions via an ordinary differential equation). Crucially, this model is never distorted by reward maximization.
  • Decomposed Value Function (Standard): Using a Value Decomposition Network (VDN), each agent learns a local utility function $Q_i$ such that their sum approximates the team's total value ($Q_{\text{tot}} = \sum Q_i$). This satisfies the Individual-Global-Max (IGM) principle, meaning local greedy choices align with the global best choice.

The magic happens at test time (Novel):

  1. Each agent independently samples $P$ candidate actions ("particles") from its flow-matching prior using only its local observation.
  2. Agents iteratively refine these particles over $L$ steps using Stein Variational Gradient Descent (SVGD). SVGD pushes particles uphill along the local value gradient ($\nabla_a Q_i$) while applying a kernel-based repulsive force between particles so they don't all collapse onto a single point. (For discrete actions, this happens smoothly in logit space.)
  3. After $L$ steps, each agent simply executes its highest-valued particle.

Datasets

SCOUT is evaluated across 24 existing offline datasets spanning 7 cooperative scenarios—no new benchmarks are introduced, though a custom 2-agent toy game is used for illustration:

  • SMACv1 (Discrete control): StarCraft II micromanagement battles (3m, 8m, 2s3z, 5m_vs_6m), each tested across Good, Medium, and Poor dataset qualities from the Off-the-Grid benchmark.
  • MA-MuJoCo (Continuous control): Multi-agent robotic locomotion (Ant, Hopper, HalfCheetah), where distinct agents control different robot joints across Expert, Medium, Medium-Replay, and Medium-Expert logs.

Key Insights and Ideas

  • Test-time compute replaces training-time tuning: Instead of agonizing over a fixed regularization hyperparameter during training, the number of SVGD steps ($L$) acts as a live dial at deployment. $L=0$ gives safe best-of-$P$ sampling from the data; increasing $L$ scales up value-seeking when the $Q$-function generalizes well.
  • Decentralized actions, inherited coordination: How do agents coordinate at test time without talking to each other? Because the local $Q_i$ functions were trained together on global team rewards via additive temporal-difference targets, each agent's local gradient $\nabla_{a_i} Q_i$ implicitly encodes how its actions mesh with teammates' typical behaviors.
  • Clean priors make online fine-tuning shine: When transitioning from offline logs to live environment interaction (offline-to-online RL), prior methods struggle because their policies were anchored to suboptimal data during training. Because SCOUT never warps its behavioral prior, it adapts seamlessly when fresh online data arrives.
  • Bounded approximation error: The authors prove theoretically that under approximate IGM, the gap between SCOUT's decentralized refinement and the true global optimum shrinks as transport steps $L$ increase, leaving only an irreducible residual proportional to how much the environment violates additive decomposition.

Key Results

  • State-of-the-Art Offline Performance: SCOUT achieves the highest average reward on SMACv1 (16.1)—beating diffusion baselines like DoF (15.2) and flow-distillation methods like MAC-Flow (14.9). On MA-MuJoCo, it scores an average normalized return of 82.12, outperforming MAC-Flow (76.37) and MADiff-D (68.52).
  • Massive gains on messy data: On SMACv1 3m-Poor, SCOUT scores 17.0, whereas MAC-Flow gets 6.8 and standard Flow BC gets 4.5. Similarly, on Hopper Medium-Replay, SCOUT hits 53.0 vs. MAC-Flow's 29.6.
  • Universal Online Improvement: Across all 8 tested offline-to-online configurations, SCOUT steadily improves and outperforms MAC-Flow, especially when initialized from Poor offline datasets.

Limitations and Future Work

  • Hyperparameter sensitivity: While SCOUT avoids training-time regularization tuning, the optimal number of test-time refinement steps ($L_{\text{test}}$) still varies depending on the task and dataset quality—depending on how smooth the $Q$-landscape is and how far the behavioral prior starts from high-value regions.
  • Future direction: Rather than picking $L_{\text{test}}$ via a validation sweep at deployment, developing a principled, automatic stopping criterion for test-time particle transport remains an open problem.

Summary updated

Abstract

Recent offline multi-agent reinforcement learning (MARL) faces a persistent trade-off. Expressive generative policies can represent multi-modal coordination in the data but cannot distinguish high-value regions, while value-optimized policies exploit the learned Q-function but collapse the multi-modal structure into a single dominant mode. A single agent's mode collapse can break joint coordination, and simultaneous drift across agents can push the joint policy into unseen regions of the action space. We propose scalable coordination via optimal unified transport (SCOUT), the first offline MARL framework to combine a generative foundation model with a learned value function through test-time training. SCOUT trains two decoupled components: a flow-matching behavioral prior and a decomposed value function. At test-time, it transports behavioral samples toward high-value regions via variational gradient descent. The number of transport steps controls adaptive test-time scaling, replacing a fixed regularization coefficient. Under the individual-global-max (IGM) principle, we prove that decentralized per-agent transport is consistent with joint value improvement and monotonically recovers inter-agent correlation even when the value decomposition is approximate.
BibTeX
@inproceedings{lee2026test,
  author = {Dongsu Lee and Haoran Xu and Amy Zhang},
  title = {{Test-time Multi-agent Coordination by Decomposed Value Gradient Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HRgPovhTAK},
}
Figure