TeamFlowRL: Online Policy Optimization of Decentralized Flow Policies for Multi-Agent Coordination

Guowei Zou, Beiwen Zhang, Haitao Wang, Hong Hong, Zhiquan Chen, Hejun WuarXiv 2026

TL;DR

Teaching multiple robots or software agents to cooperate is tricky: standard online reinforcement learning (RL) defaults to simple, rigid policies that miss creative solutions, while expressive generative models trained offline get stuck with the flaws of their static datasets. TeamFlowRL bridges this divide by pretraining generative "flow" policies offline and fine-tuning them via online teamwork. The result is decentralized agents that adapt on the fly, coordinate smoothly, and maintain rich, multimodal strategies—improving performance across all 51 tested scenarios.

Overview of the TeamFlowRL framework, evaluation suites, and performance gains.

What Problem Does This Paper Address?

Imagine two robotic arms trying to hand over a cube. There isn't just one right way to do it—they could meet to the left or the right. Standard multi-agent RL algorithms (like MAPPO) typically represent continuous actions using unimodal Gaussian distributions (a single bell curve). If two valid paths exist, a single bell curve often averages them out, steering the arms right into a collision.

Generative models like flow matching solve this by sculpting random noise into complex, multimodal action distributions (multiple distinct peaks) using recorded offline data. However, offline policies are forever limited by the quality of their training data.

We want to fine-tune these expressive flow policies using online trial-and-error, but two roadblocks stand in the way:

  1. Intractable likelihoods: Standard policy-gradient RL needs the exact probability of choosing an action to compute updates. Because a flow model can take infinitely many internal "denoising" paths from initial noise to arrive at the exact same final action, calculating that action's exact probability is computationally intractable.
  2. Team credit assignment: Even if you track denoising paths instead of final actions, how do you connect a shared team reward to multiple decentralized agents whose internal paths map many-to-one onto actual physical actions?

Methods

TeamFlowRL operates in two stages under the standard centralized training, decentralized execution paradigm:

  • Stage 1: Offline Pretraining (Standard). A shared velocity network is trained via conditional flow matching on offline observation-action pairs, learning to guide Gaussian noise toward sensible actions over $K$ discrete Euler steps.
  • Stage 2: Online Trajectory Optimization (Novel for Multi-Agent). To make probabilities tractable for PPO-style updates, the authors adopt a single-agent trick (from ReinFlow): injecting small, learned Gaussian noise into every step of the denoising process. Now, each agent's entire denoising trajectory has a computable probability.
  • Novel Team Update Rule: A centralized critic observes the global state and calculates a shared team advantage (how much better the team did than expected). Instead of multiplying all agents' trajectory probability ratios together—which makes updates fragile if even one agent changes significantly—TeamFlowRL weights each agent's complete trajectory ratio by the shared team advantage and clips each agent's ratio separately. Mathematically, this local surrogate matches the exact first-order gradient direction of the true joint team objective.
Detailed architecture of TeamFlowRL's training loop.

At deployment, the critic and transition noise are switched off. Each agent acts independently using only its local observations and a fresh initial noise sample, preserving stochastic, multimodal behavior cleanly and fast.

Datasets

The authors evaluate 51 task-dataset configurations across 7 simulation suites (spanning 21 cooperative tasks):

  • Standard MARL Benchmarks (45 configs): Multi-Agent Particle Environment (MPE), StarCraft Multi-Agent Challenge (SMAC and SMACv2), and Multi-Agent MuJoCo (OG-MARL and OMIGA), covering Expert/Good, Medium, Medium-Replay, and Poor/Random offline datasets.
  • Bimanual Manipulation (6 configs): Two-arm Franka Panda tasks in ManiSkill3 (picking and stacking cubes, using state or wrist-camera inputs) and RoboFactory (cube stacking). The authors also introduce a custom "hands-away" variant for stacking, requiring both arms to release the blocks and retreat cleanly at the end.

Key Insights and Ideas

  • True behavioral diversity survives RL fine-tuning: Standard RL tends to collapse policies onto a single habit. In a 3-agent landmark-covering task, Gaussian fine-tuning (BC+MAPPO) solved the task 63/64 times using the exact same rigid role assignment every time. TeamFlowRL solved it 63/64 times while dynamically splitting between two distinct team strategies—proving it preserves multimodal expressiveness while optimizing team return.
  • Bad data isn't a dead end: Online gains scale inversely and linearly with offline dataset quality ($r = -0.98$). While strong initializations often surpass the offline data's own average score, policies initialized on "Poor" or "Random" data frequently catch up to within 10% of the best final score.
  • Robustness under exploration noise: Because TeamFlowRL explicitly trains with stochasticity along its flow steps, its policies are remarkably resilient during noisy online exploration, avoiding the arm collisions that plague Gaussian baselines.

Key Results

  • Universal improvement: Online fine-tuning improved upon the offline initialization in 51 out of 51 configurations, yielding a +47.3% average gain in normalized score (+43.2% across standard MARL benchmarks; +61.2% on robot tasks).
  • Crushing Gaussian baselines on robots: Across the 6 bimanual manipulation tasks under stochastic execution, TeamFlowRL achieved an 87.7% average final success rate, outperforming BC+MAPPO (54.6%, a +33.1% margin) and MAPPO trained from scratch (0.0% across all tasks).
  • Faster adaptation: After just 1 million online steps on the robot tasks, TeamFlowRL reached 68.0% average success compared to 31.3% for BC+MAPPO.
Performance summary and multimodal vs. unimodal action distributions.

Limitations and Future Work

  • Sim-to-real and task scope: Robot experiments are restricted to simulated two-arm cube manipulation, with camera observations used in only two tasks and no physical hardware validation yet.
  • Model scale: The framework uses compact, task-specific networks; scaling TeamFlowRL to fine-tune massive Vision-Language-Action (VLA) foundation models remains untested.
  • Mystery of data catch-up: In some environments, policies initialized from terrible offline data completely catch up to expert-initialized ones during online RL, while in others a permanent gap remains. Pinpointing why this happens is left as an open question.

Summary updated

Abstract

Complex cooperative tasks require coordinated multi-agent behavior. Offline generative policies learn expressive cooperative behaviors from trajectories but remain limited by fixed datasets. Online reinforcement learning can improve them through environment interaction. However, fine-tuning flow policies is difficult because action likelihoods are hard to compute. We propose TeamFlowRL, a two-stage framework that pretrains multi-agent flow policies offline and fine-tunes them online. We formulate team policy optimization over the complete denoising trajectories of decentralized flow policies, avoiding intractable action likelihoods. The resulting objective weights each agent's trajectory ratio with a shared team advantage and clips each ratio separately, aligning local policy updates with the common team return. Across 51 paired configurations in seven simulation groups, TeamFlowRL improves every offline initialization, with a 47.3% average gain in normalized score. It also achieves 33.1% higher average success under exploration noise than Gaussian-policy fine-tuning across 6 bimanual tasks.
BibTeX
@misc{zou2026teamflowrl,
  author = {Guowei Zou and Beiwen Zhang and Haitao Wang and Hong Hong and Zhiquan Chen and Hejun Wu},
  title = {{TeamFlowRL: Online Policy Optimization of Decentralized Flow Policies for Multi-Agent Coordination}},
  year = {2026},
  eprint = {2611.32645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32645},
}
Figure