Sun Yat-sen University Team Introduces TeamFlowRL for Multi-Robot Collaboration via Online Post-Training
On November 24, researchers from Sun Yat-sen University published TeamFlowRL, an online reinforcement learning post-training framework that optimizes decentralized flow policies for multi-agent coordination. The method improves task completion rates across 51 configurations in simulation while enabling robots to learn multiple effective divisions of labor for the same task.
Multi-robot teams can learn to collaborate from existing demonstrations. Can they also improve their performance on a given task through repeated environmental interaction, without relying on the same division of labor every time?
On November 24, a team from Sun Yat-sen University published TeamFlowRL: Online Policy Optimization of Decentralized Flow Policies for Multi-Agent Coordination. The first author is Guowei Zou, a Ph.D. student at the School of Computer Science and Engineering at Sun Yat-sen University.

TeamFlowRL is an online reinforcement learning post-training framework for multi-agent flow policies. The team first pre-trains the flow policies using existing demonstrations, then has each agent interact with the environment in simulation, directly updating the flow policies based on a shared team reward. During task execution, each agent continues to determine its actions based solely on its local observations.
Online post-training improved performance across all 51 configurations in seven simulation environments, increasing the average normalized score by 47.3%. In six dual-arm simulation test sets that retained exploration noise, TeamFlowRL achieved an average success rate of 87.7%, compared to 54.6% for the Gaussian policy baseline. When evaluated under their respective deployment rules, the difference in individual task success rates was no more than 5 percentage points.
In another simulation, three agents were tasked with reaching three distinct target points. Both policies succeeded in 63 out of 64 trials. However, while the Gaussian policy relied on a fixed division of labor for every successful trial, TeamFlowRL completed the task using two different divisions of labor.
These two sets of experiments tested whether collaboration can be improved through post-training, and whether diverse collaboration strategies can be preserved after policy improvement. To address both questions simultaneously, TeamFlowRL has each agent generate actions independently, using a single shared team reward to guide the training process.
Dual arms act based on local observations
TeamFlowRL treats the two robotic arms as independent agents, with each arm generating actions based solely on its local observations. The two arms coordinate during the task by observing how the objects they manipulate change.
In the handover task within ManiSkill3, the block is initially reachable only by the left arm, while the target position is reachable only by the right arm, requiring the two arms to take turns. The stacking task similarly divides labor based on reachable workspace: the right arm first places the bottom block in the center, and the left arm then stacks the second block on top. The evaluation checks whether the blocks are stacked stably and whether the grippers are released.

In experiments using state data, each arm can read its own joint positions and velocities, as well as its gripper's position and orientation. It can also observe the positions of the blocks and targets, but it does not directly read the other arm's state. Once the right arm moves the bottom block to the center, the left arm can infer task progress from the block's position. The simulator provides all these positions and orientations.
The team refers to this approach as decentralized execution. At each control step, the simulation environment simultaneously receives the commands generated by each arm. Since the action of either arm can alter the object state observed by the other arm at the next step, the system does not require a centralized controller to plan actions for both arms.
The team first conducts offline pre-training using existing demonstrations, training the policy to learn the corresponding control commands from the recorded observations. For the ManiSkill3 handover and stacking tasks, they use 983 and 1,007 publicly available successful demonstrations, respectively, splitting each set into training and validation data.
Each arm employs a flow policy to generate actions. Starting from random noise and conditioned on the current observation, the policy uses ten steps to gradually transform the noise into action commands. Even with identical observations, different random initial noise seeds can yield distinct approach trajectories. By contrast, a unimodal Gaussian policy can also sample diverse actions, but they tend to cluster around a single mean action, making it difficult to simultaneously represent multiple significantly different trajectories.
The existing demonstrations enable the flow policy to learn imitable coordination strategies. Online post-training takes this a step further by having each arm learn from new interactions and adjust its own policy based on the team's overall task reward.
Both arms share a single reward
The two robotic arms share the task reward, while TeamFlowRL updates their flow policies independently. To achieve this, the team first had to solve a computational problem: how to compare the likelihood of the old and new policies generating the exact same action?
Proximal Policy Optimization (PPO) calculates the ratio of action probability densities between the old and new policies, increasing the likelihood of actions that perform better than expected while constraining the magnitude of policy updates. A single-step Gaussian policy can directly compute the probability density of an action. A flow policy, however, may start from different initial noise vectors, traverse different intermediate steps, and ultimately generate the same action; directly computing the action's probability density requires integrating over all these possible generation paths.
TeamFlowRL formulates policy optimization over the complete denoising trajectory of each agent. The team injects Gaussian perturbations at every step of action generation, ensuring the conditional probability density at each step remains computable. Multiplying the probability density of the initial noise by the conditional probability densities across all steps yields the probability density of the entire generation trajectory. The system retains the actual sampled trajectory to compare the likelihood of the old and new policies generating that exact trajectory. Note that this denoising trajectory refers to the model's process of generating an action command, which is distinct from the physical trajectory of the robot arm moving across the table.
A single denoising trajectory corresponds to just one path for generating the final action. The team proved that, under specified stochastic generation conditions, taking the conditional expectation over trajectories that generate the same action according to the old policy distribution allows the final action's probability ratio to be derived from the trajectory probability ratio. Even when the two arms share the same generative network, they receive separate local observations and independently sampled noise, enabling the system to compute their trajectory ratios individually.
During training, a centralized critic first estimates the team's expected return in the current state and then combines it with the rewards from actual interactions to compute a shared team advantage. Both arms use this identical training signal. This signal measures how much better the overall team coordination performs compared to expectations, rather than assigning separate scores to each arm.
The team employs per-agent clipping to constrain the probability ratio of each complete denoising trajectory individually, avoiding the need to first multiply the ratios of the two arms and then uniformly restrict the update magnitude. The team proved that, provided the shared team advantage can be accurately estimated, the update direction computed per-agent aligns with the direction computed for the entire team, differing only by a uniform scaling factor. This conclusion applies to the current sampling strategy and does not guarantee that the return will improve after every single update.

The team also conducted ablation studies, comparing single clipping per trajectory against clipping at every step of action generation. Step-by-step clipping reduced returns in a goal-reaching task and had minimal impact in another; in a dual-agent motion control task, the differences emerged primarily in the later stages of training. These comparisons support using the complete trajectory as the default update unit, though whole-trajectory clipping did not yield better results across every task.
Online training injects exploration noise at each step, allowing the agents to try different actions. During deployment, the flow policy retains only the initial noise, omitting step-by-step perturbations and bypassing the centralized critic. The team evaluated the dual-arm tasks using both execution modes to verify the benefits derived from post-training.
Dual-arm deployment results are closely matched
When exploration noise is retained, the bimanual policies show a wide gap in success rates; however, their performance converges when executed in simulation under their respective deployment rules. The team simulated dual Franka Panda robot arms in ManiSkill3 and RoboFactory, conducting this comparison across handover, stacking, and their various configurations.
In the "release and retreat" variant, the two arms must not only stack the blocks properly but also open their grippers and move away by a certain distance, ensuring the blocks remain stable after the arms retreat. For ManiSkill3, the team started with an existing stacking policy and incorporated the retreat requirement into the reward function. Since the original demonstrations in RoboFactory did not record the retreat motion, the team switched to demonstrations that include the retreat action for pre-training. Both sets of experiments introduced similar task requirements, but one adjusted the reward while the other also replaced the pre-training demonstrations.
The team also compared two input modalities in the stacking task. The state-based version reads object and goal positions and orientations directly from the simulator, whereas the camera-based version extracts this information from images. The team first used a state-reading teacher policy to guide the camera-based version, then froze the visual encoder to train and online fine-tune the action head responsible for outputting control commands. This experiment evaluated task-specific visual policies and did not use language instructions to train a large vision-language-action (VLA) model.
The baseline methods include multi-agent PPO (MAPPO) trained from scratch, and BC+MAPPO, which first trains a unimodal Gaussian policy using the same set of demonstrations before online fine-tuning it via MAPPO. The latter method also undergoes offline pre-training and online post-training, enabling a comparison of different policies within the same training pipeline. All methods share the same online interaction budget for each task, and the bimanual results are derived from three independent training runs.
When exploration noise is retained, TeamFlowRL achieves an average success rate of 87.7% across six bimanual tasks, compared to 54.6% for the Gaussian policy baseline, a gap of 33.1 percentage points. Specifically, the success rates for the ManiSkill3 handover task are 91.6% and 34.4%, respectively. MAPPO trained from scratch yields a 0% success rate across all six configurations.

When executed under their respective deployment rules, the flow policy still samples the initial noise but no longer adds extra noise during the denoising process, whereas the Gaussian policy directly executes the mean of the action distribution. In this comparison, the final success rate gap for each task does not exceed 5 percentage points. The 33.1 percentage point gap occurred in the evaluation with retained exploration noise; these two sets of figures measure performance under different execution conditions.

Beyond bimanual manipulation, the team also validated online post-training in simulation tasks such as collaborative navigation and continuous control. All 51 configurations across seven environment types surpassed their respective performance when trained solely on offline data. After normalizing the returns and success rates of the different tasks to a unified scale, the research team achieved an average improvement of 47.3%.
When both policies can complete a task, the success rate alone cannot distinguish their collaboration methods. To address this, the team fixed the initial scenes, recorded the final goals chosen by each agent, and compared whether they adopted the same division of labor in every instance.
Three agents exhibit multiple task allocations
In a simulation where three agents must cover three target points, both policies started from the same initial scene and ran 64 trials each, succeeding in 63 of them. The difference lay in which agent ultimately took responsibility for each target point.
The team labeled the three target points A, B, and C. TeamFlowRL adopted the CAB allocation 35 times, with the three agents heading to C, A, and B in sequence; it adopted the ACB allocation 28 times, where the first two agents swapped targets while the third still went to B. The remaining trial failed to cover all targets. The unimodal Gaussian policy used the BCA allocation for all 63 of its successes. Both policies completed the task the same number of times, but TeamFlowRL employed two distinct, effective task allocations from the same initial scene.

To observe the actions the policies could generate, the team fixed the agents' observations and repeatedly sampled their first-step commands. After online post-training, the actions generated by the flow policy from identical observations remained distributed across several distinct, separated regions. This is what is meant here by multimodality. In contrast, the actions generated by the Gaussian policy were concentrated around a single mean.
The dual-arm experiment focused on action trajectories. The research team fixed the initial scene and repeatedly ran the flow policy with varying initial noise, recording the trajectories of the two arm end-effectors. They then fixed the initial noise and retested, using the Gaussian policy—which directly executes the mean—as a reference. With the noise fixed, the flow policy's trajectories became more concentrated, indicating that the previously observed trajectory differences did not originate entirely from the simulator.
In the handover task in ManiSkill3, resampling the initial noise for each trial resulted in an end-effector trajectory deviation of approximately 1.6 centimeters relative to the average trajectory; fixing the noise reduced this deviation to 0.4 centimeters. In the RoboFactory stacking task, the same metric dropped from 0.9 centimeters to 0.2 centimeters. These figures measure the variation between execution paths, not the final placement error of the blocks. At least 98% of the trials succeeded in each group, demonstrating that slightly different paths can still successfully complete the task.

The target-point experiment recorded different team task allocations, while the dual-arm experiment recorded the variation in motion paths under a single task allocation. The two sets of experiments demonstrated the diversity of both collaboration strategies and specific physical actions; notably, the dual-arm experiment did not observe the left and right arms swapping task allocations.
The team has open-sourced the code and 50 sets of model checkpoints, aiming to apply this online post-training method to visual-language action models (VLAs) equipped with flow action heads. A flow action head is the component of the model that generates control commands via a flow policy, and TeamFlowRL can directly update the parameters of such policies. Current validation has focused on task-specific policies in simulation; scaling to larger models and deploying for real-robot collaboration remain to be tested.
Existing demonstrations provide robots with a starting point for collaboration. In TeamFlowRL simulation experiments, each agent continues learning toward a shared task objective while retaining diverse strategies for completing the same task.
Found an error? Tell us



