# Flow-Matched Motion Priors: Online Optimal-Transport Rewards for Imitation Learning

Robotics.world

> Motion priors turn human motion-capture demonstrations into reward signals so that a simulated robot can learn characteristic movement without tracking a prescribed reference trajectory at deployment.

**arXiv**: 2609.15631 · Preprint · not peer-reviewed

**Published**: 2026-09-14

**Authors**: Yilin Zou, Chenghua Liu, Chenglong Wu, Fanghua Jiang

## In plain words

Motion priors turn human motion-capture demonstrations into reward signals so that a simulated robot can learn characteristic movement without tracking a prescribed reference trajectory at deployment.

## AI summary

## Overview

- **Research area:** Robotics — reinforcement learning for physically simulated character animation and imitation learning, specifically learned motion priors for humanoid locomotion.
- **Technical level:** Advanced. The method builds on entropic optimal transport, flow matching, and score/energy-based modeling, though the paper's framing of the core idea is accessible.
- **Scope:** The paper introduces Flow-Matched Motion Priors (FMP), an online scalar reward learned from optimal-transport paths between the current policy's motion histories and an expert motion bank, and evaluates it against AMP, a barycentric optimal-transport reward, and nested ablations on a simulated Unitree G1 humanoid.

## What This Paper Is About

Motion priors turn human motion-capture demonstrations into reward signals so that a simulated robot can learn characteristic movement without tracking a prescribed reference trajectory at deployment. The standard approach, Adversarial Motion Priors (AMP), uses a discriminator whose learning signal can become uninformative when the policy's behavior and the demonstrations are far apart, while a naive optimal-transport alternative averages matched expert successors into a single barycentric target that can wash out joint motion. The paper's goal is a scalar reward that stays informative across that gap and preserves the motion content of the demonstrations, while keeping the same simple reward interface AMP uses.

## Key Contributions

1. **A scalar motion reward learned by flow matching along rollout-to-expert paths.** FMP keeps an entropic optimal-transport coupling between the current rollout and a fixed expert bank, and trains a neural scalar potential with flow matching on the resulting displacement paths, endpoint-gradient supervision, and relative-value calibration. A policy self-transport term corrects the policy-to-expert score.
2. **An explicit test of what path supervision buys.** The authors isolate the role of interior path queries, comparing against value-only and endpoint-only fitting at the reward level, and against a static score-gradient teacher that uses the same interpolation queries.
3. **A controlled humanoid skill-acquisition benchmark.** All methods share identical policy architectures and equal interaction budgets across two reset regimes, with metrics that distinguish walking from merely standing, evaluated at 50,003,968 transitions on Unitree G1.
4. **A diagnosis of why barycentric optimal-transport targets fail.** The paper measures the attenuation of sagittal leg-velocity magnitude caused by averaging matched expert successors.

## Main Findings

- **Path supervision improves reward generalization.** After 9,216 fitting updates with the policy held fixed, held-out reward MAE was 0.059 for FMP, 0.069 for Endpoint, and 0.094 for Value; gradient cosines were 0.937, 0.923, and 0.382 respectively.
- **The gain is largest beyond the fitting rollout.** On common rollout-to-expert interpolation queries, expert-endpoint score correlation was 0.979 for FMP, 0.157 for Endpoint, and 0.826 for Value, against 0.992 between independent reference groups. On physically executed walking histories, FMP reached correlation 0.898 and gradient cosine 0.829 with normalized RMSE 0.667, versus 0.463/0.560/1.411 for Endpoint and 0.618/0.264/1.473 for Value.
- **Walking from demonstration resets.** With dataset reset, FMP, Endpoint, Value, and the 16-bank score all reached the 500-step episode cap with zero falls. FMP achieved 0.727 m/s versus 0.478 m/s for AMP; Value was faster at 0.776 m/s with lower amplitude error than FMP (8.69 vs 9.95 degrees).
- **Walking from a fixed default pose is where methods separate.** FMP reached 0.338 m/s with 0.754 expert-relative excursion and 129 falls in 1,024 episodes, versus 0.147 m/s, 0.703 excursion, and 243 falls for the endpoint-only control. Both had the same rounded Sinkhorn discrepancy of 0.285.
- **Survival is not locomotion.** AMP and the barycentric OT reward survived all 500 steps under fixed-pose reset but stayed nearly stationary, with excursions of 0.027 and 0.144 and speeds reported as 0.000 m/s. The 16-bank score had slightly negative net forward speed (-0.021 m/s) with 196 falls.
- **Forward motion develops after balance.** Under fixed-pose reset, FMP's forward speed rose from 0.005 m/s at 30M to 0.177 m/s at 40M and 0.338 m/s at 50M. Mean signed forward displacement across all 1,024 first episodes was 2.97 m for FMP and 2.42 m for Endpoint.
- **Dynamic flow matching beats a static teacher where it matters and costs less.** At interpolation fractions 0.25 and 0.50, dynamic FM had normalized score-increment error 0.284 and 0.376 versus 0.416 and 0.437 for static supervision. Static supervision was more accurate at 0.75 and 1.00 and at the expert endpoint (0.523 vs 1.053), with higher gradient cosine (0.934 vs 0.744). Dynamic FM avoided the extra teacher solve, cutting offline fitting time from 1,606 s to 1,139 s, a 29% saving.
- **Barycentric averaging destroys joint motion.** Norm retention of sagittal leg velocity was 0.130 under dataset reset and 0.103 under fixed reset, i.e., roughly 87% and 90% of the magnitude removed, while retained target forward speeds stayed at 0.851 and 0.834 m/s. Matching weights were diffuse, with effective atom counts averaging 218.4 and 239.7 out of 256.
- **A gradient-averaged score need not peak at the averaged motion.** For two equal-weight one-dimensional atoms at -a and a, the cross-potential's midpoint has curvature -1 + a²/εB and is a local minimum when εB < a², whereas a fixed barycentric target has its maximum at that midpoint.

## Methodology in Plain English

The policy's recent motion is summarized as a stack of ten 239-dimensional frames, giving a 2,390-dimensional feature vector. At every rollout, the authors collect these history features from the current policy into a bank, then solve an entropically regularized optimal transport problem that pairs each policy history with expert histories, plus two self-transport problems pairing the policy bank with itself. The transport solution effectively says "this rollout sample should move toward that expert sample."

A small neural network with three scalar heads (one for the expert coupling, two for the policy self-couplings) is trained so that its gradient along the straight line from a rollout sample to its matched expert sample equals that displacement. A separate loss matches the network's gradient to the transport reference gradient at the endpoint, and a value loss matches the network's relative scalar values to the reference score on the current data, with an arbitrary additive constant removed by centering. The combined scalar is the expert head minus the mean of the two self-transport heads.

Training alternates between reward fitting and policy optimization. For each rollout, the policy is frozen while 128 reward-model updates run; histories from environments 0–767 provide fitting queries while all 1,024 environments receive fitted rewards. An exponential moving average of the reward parameters, with a half-life of 16 updates, is formed within each rollout's fitting and then used to score all recorded successor histories. The resulting scores are normalized by their median and interquartile range and squashed through a logistic function into a reward in [0, 2], which is fed to PPO. The actor sees only 237 physical observation values — no reference phase, no generated target, no latent motion condition — and at deployment runs without any transport solve or reward network.

## Why This Matters

A learned motion prior that stays informative when the policy starts far from the data matters because that is exactly the regime of legged locomotion from a standing start, where the robot must first balance and then discover gait. Showing that a barycentric optimal-transport reward can quietly erase joint motion — retaining a strong forward-speed target while removing most sagittal leg velocity — is a concrete caution for anyone building transport-based imitation rewards.

Real-world applications:

- **Humanoid and quadruped locomotion learning** from motion-capture or retargeted animation data, particularly cold starts from a default standing pose.
- **Character animation for games and film**, where a single scalar reward can drive physically simulated characters without a phase-tracking reference at runtime.
- **Data-efficient reward engineering for sim-to-real pipelines**, since the reward is fit offline from the same features and imposes no new observation requirements on the deployed actor.
- **Diagnostic tooling for reward design**, using the norm-retention and curvature analyses to detect averaging-induced attenuation before running long training jobs.

Industry relevance: teams already using AMP-style priors (common in game studios and in legged-robot simulation stacks) can in principle swap in FMP without changing the actor interface, the observation space, or the PPO loop. The 29% offline fitting-time saving relative to a static teacher is directly relevant to experimentation throughput.

## Future Directions

- **Multi-seed and multi-motion validation.** The authors explicitly note that all results rest on one training seed, one retargeted motion segment (LaFAN1 walk1_subject1, frames 2370–2580), and simulation only, leaving robustness across seeds and generalization to other motions and perturbations untested.
- **Hardware deployment.** No real-robot experiments are reported; the deployed actor runs without the reward network, which the paper treats as a practical argument for deployment but does not demonstrate.
- **Matched comparisons with other transport and generative priors.** The authors identify WAIL, PWIL, and SMP as baselines that should be compared under matched budgets.
- **Reconciling the endpoint-versus-source tradeoff.** Static supervision was more accurate near the expert endpoint while dynamic flow matching was better on source-side interior queries, suggesting a hybrid or scheduled supervision scheme as an open design question.

## Target Audience

Reinforcement learning researchers and graduate students working on imitation learning, motion priors, and optimal-transport or score-based reward design; robotics engineers building legged locomotion stacks in simulators such as Isaac Lab; and animation or game AI practitioners who use adversarial motion priors and want a transport-based alternative with the same scalar reward interface. Readers should be comfortable with PPO and reward shaping; familiarity with entropic optimal transport and flow matching helps with the method section.

## Authors’ abstract

Learning a motion prior requires a reward that guides a policy from its current behavior toward demonstrated motion. Adversarial Motion Priors (AMP) provide such a reward with a discriminator. However, adversarial objectives can become uninformative when policy and expert supports are far apart. A naive use of optimal transport (OT) averages matched expert successors into a barycentric target. Averaging across gait phases can weaken the target's joint motion. We introduce…

[The full abstract on arXiv](https://arxiv.org/abs/2609.15631)

[Read the original paper](https://arxiv.org/abs/2609.15631)

## Related papers

- [Uncertainty-Gated Exploration Noise Suppresses Task Collapse in Online RL Fine-Tuning of a Flow-Matching Vision-Language-Action Policy](https://robotics.world/paper/uncertainty-gated-exploration-noise-suppresses-task-collapse-in-online-2609.28838) 2026-09-23 · cs.RO · Key terms of the title in common
- [EvoHIL: Self-Evolving Reward and Flow-Matched Policy Optimization for Robust Human-in-the-Loop Reinforcement Learning](https://robotics.world/paper/evohil-self-evolving-reward-and-flow-matched-policy-optimization-for-2608.03872) 2026-08-04 · cs.RO · Key terms of the title in common
- [Failure Detection for Surgical Robot Imitation Policies via Flow-Matching World Modeling](https://robotics.world/paper/failure-detection-for-surgical-robot-imitation-policies-via-flow-2607.27511) 2026-07-29 · cs.RO · Key terms of the title in common
- [ActSafeGuard: Differentiable and Training-Aligned Constraint Enforcement for Flow-Matching Policies](https://robotics.world/paper/actsafeguard-differentiable-and-training-aligned-constraint-enforcement-2609.11697) 2026-09-10 · cs.RO · Key terms of the title in common
- [Decoupled Early Exits for Task-Dependent Compute Allocation in Flow-Matching VLAs](https://robotics.world/paper/decoupled-early-exits-for-task-dependent-compute-allocation-in-flow-2609.29382) 2026-09-24 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/flow-matched-motion-priors-online-optimal-transport-rewards-for-2609.15631
