Robot Learning · Flow Matching · Multimodal Control

MOSS: Mode-Oriented Source Shaping
for Robot Flow Matching Policies

Controllable Robot Behaviors Start at the Source

Zirun Ma1,2,*Jindou Jia1,*Tuo An1 Jiaqi Bai1Jiahua Dong1Jianfei Yang1,†
1 MARS Lab, Nanyang Technological University 2 Tsinghua University

* Equal contribution  ·  † Corresponding author

Nanyang Technological University MARS Lab Tsinghua University
MOSS overview showing a multimodal robot task, adaptive source separation, and the shared flow network
Adaptive separation of Gaussian sources Drag the handle on the right Low-High-Low axis. The center separates the mode-specific Gaussian sources; either end merges them. Use arrow keys to move the handle. The shared sources before and after branching remain fixed. Mode 1Mode 2 LowHighLow Drag toward either Low to merge the sources; drag to the center to separate them.
One policy, Multiple behaviors. MOSS adaptively shapes the source distribution so that choosing where generation starts determines the requested mode.

Abstract

In robotic manipulation, the same observation often admits multiple feasible actions. Generative policies such as diffusion and flow matching naturally capture such multimodal behaviors, yet which mode is executed is left to random sampling and cannot be actively controlled. We propose Mode-Oriented Source Shaping (MOSS), which turns mode selection into an explicit choice of where generation starts. We first reveal, both empirically and theoretically, that deterministic flow transport induces mode-dependent structure in the source space. Under ideal deterministic ODE transport, distinct behavioral modes have distinct source-space preimages, while practical approximation errors can blur their boundaries due to imbalanced data, limited model capacity, and few inference steps. Motivated by this source-space structure, MOSS constructs semantically aligned mode-specific Gaussian sources that encode mode identity in the initial noise. A modality-strength estimator predicts the local degree of multimodality, which adaptively controls the geometry of the mode-specific sources. It contracts them toward a shared Gaussian where behaviors are similar and separates them near behavioral branching points. During deployment, the desired behavior is selected at inference simply by sampling from the corresponding component. Across 6 simulated and 3 real-world manipulation tasks, MOSS steers to the target mode up to 100% of the time with high task success, recovers minority modes at over 90% guidance rate under a 10:90 imbalance dataset, and surpasses mode-conditioned flow policy by 43.3 points of guidance rate on real robots.

Up to 100%guidance rate with high task success
>90%guidance rate under imbalanced dataset
+43.3% increase in guidance rate over baselines

Key insight

Multimodal Property of Flow Matching

Even with a standard Gaussian source, a flow-matching policy already organizes initial noise by behavioral mode. For a fixed observation, our theory shows that ideal deterministic transport partitions the source space into distinct noise zones, each leading to a particular mode. This structure emerges naturally from the transport itself, without explicit mode conditioning.

Under suitable regularity conditions, these zones also exhibit local stability: small changes to an initial noise sample preserve its resulting mode when the generated action lies sufficiently far from a semantic boundary. This suggests that behavior can, in principle, be selected by choosing where generation starts.

Overlapping clusters of initial noise corresponding to four behavioral modes
Initial-noise mode separation in FM.

In practice, limited demonstrations, mode imbalance, imperfect learning, and few integration steps weaken this separation. Samples near mode boundaries become sensitive to approximation errors, making the implicit zones difficult to use for reliable control.

Video Demos

Place Cups

Place Cups · Mode 1
Place Cups · Mode 2

Open Drawer

Open Drawer · Mode 1
Open Drawer · Mode 2

Method

Mode-Oriented Source Shaping

MOSS assigns each behavioral mode its own Gaussian source and adapts their separation to the current state. A single shared flow network transforms samples from these sources into actions, making behavior selectable through the initial noise.

01

Estimate Modality Strength

A lightweight estimator uses observation and action history to predict how strongly future behaviors diverge. It learns from demonstrations by comparing differences across modes with variation within each mode.

02

Adapt the Source Geometry

Each mode receives a Gaussian source aligned with its characteristic action direction. These sources move closer together when behaviors are similar and farther apart, with less overlap, near behavioral branches.

03

Select at Inference

At inference, a user or planner selects a mode and samples initial noise from its corresponding source. The shared flow network then generates actions without receiving the mode label as an input.

One Shared Flow NetworkState-Adaptive Source SeparationDirect Selection Across Multiple Modes

Experiments

Tasks

Six simulation tasks and three real-world robot tasks used to evaluate MOSS

Main Results

01

Simulation Results

MOSS maintains high guidance and success across simulation tasks.

Evaluation results on 4 simulation tasks. For each requested mode, we report guidance rate and success rate (GR / SR).
MethodPush CubeGrasp EyeglassesStack CubePut Wine
M1M2M1M2M1M2M1M2
Mode-Cond. FM0.86 / 0.960.94 / 1.001.00 / 1.001.00 / 1.000.96 / 0.960.94 / 0.940.92 / 0.920.94 / 0.96
GMM-Sourced FM0.72 / 0.960.92 / 1.000.98 / 1.000.42 / 1.000.58 / 1.000.56 / 1.000.94 / 0.940.80 / 0.94
MOSS0.99 / 0.991.00 / 1.001.00 / 1.001.00 / 1.000.98 / 0.980.96 / 0.960.92 / 0.940.86 / 0.94
Behavior distributions of unconditional policies across four simulation tasks
Behavior distributions of unconditional policies on simulation tasks.
02

Real-World Results

Direct conditioning collapses on one requested mode in Pick Veg and Open Drawer, while MOSS retains control of both modes under visual and execution variability.

Real-world results. We report average success rate (SR) and mode-specific guidance rates (GR1 and GR2)
TaskMethodSRGR₁GR₂
Place CupsFM-DiT0.70——
Mode-Cond. FM0.700.150.85
MOSS0.980.951.00
Pick VegFM-DiT0.60——
Mode-Cond. FM0.650.000.60
MOSS0.750.800.65
Open DrawerFM-DiT0.75——
Mode-Cond. FM0.850.850.00
MOSS0.830.900.75
03

Robustness and Training Efficiency

With 10:90 imbalanced demonstrations, MOSS rapidly recovers the requested minority behavior by reusing shared motion structure in robotic data.

Minority-mode learning curves under imbalanced training datasets
Minority-mode learning efficiency under imbalanced datasets.
04

Ablation Studies

Adaptive source shaping reaches consistently high guidance rates and remains more stable than fixed separation.

Guidance-rate curves comparing adaptive MOSS with fixed source shaping
Checkpoint-wise guidance rate of fixed source shaping and adaptive MOSS

Citation

BibTeX

@article{ma2026moss,
  title={MOSS: Mode-Oriented Source Shaping for Robot Flow Matching Policies},
  author={Ma, Zirun and Jia, Jindou and An, Tuo and Bai, Jiaqi and Dong, Jiahua and Yang, Jianfei},
  journal={arXiv preprint arXiv:2610.22193},
  year={2026}
}