The reward states the outcome.
The prior guides the motion.

An outcome reward does not determine the motion that leads to it. FMP corrects the robot's own motion with a frozen flow-matching model of human motion, and rewards the policy for tracking the result.

A correction, not a score.

An explicit reference from the robot's own motion. No clip to select or align.

Guidance that fits the task.

With a task-conditioned prior, one tennis policy learns both forehand and backhand.

Straight to the robot.

All tasks run on the Unitree G1 without fine-tuning, and without the prior.

Real Unitree G1

Trained in simulation.
Deployed without fine-tuning.

Motion capture tracks the ball, the box and the robot.

Forehand

Forehand. Three camera angles.

Backhand

Backhand. The same policy, the other side.

Rally

Rally. Exchanges with a person.

Ball after ball

Ball after ball. Four in one take, alternating forehand and backhand.

Box carrying2脳 slow motion

Box carrying. Lift, carry and set-down, at half speed.

Stylized walking

Stylized walking. Four of the styles, all from one policy.

Goal reaching

Goal reaching. Walks to the goal and stops there.

Steering

Steering. Follows the commanded travel direction, speed and facing.

Live demo

Feed it a ball.

The tennis policy, simulated in your browser. Serve to either side, or click where it should hit.

Downloads about 20 MB. Runs entirely in your browser. Open full screen

What runsThe paper's tennis policy after its first training stage, which used exactly this simulation. One network for both strokes, acting at 50 Hz.
The ballGravity, air drag and bounce as in training. A predictor turns its flight into the contact point and time the policy is commanded with.
What does not runNo reference motion and no motion prior: the prior only shapes the reward during training.

How it works

Project. Then track.

As in SDEdit, the policy's recent motion is partially noised, then integrated through a frozen flow model to a nearby motion. The policy is rewarded for tracking it.

Diagram: the policy acts in the environment; a window of its motion is partially noised and integrated along the flow-matching model's velocity field, conditioned on the task, to a projected motion; the difference between the two gives the style reward, added to the task reward.
  1. A prior of short motion windows

    A flow-matching model trained once on 0.2 s windows of human motion, then frozen. It can be conditioned on the task.

  2. Project the robot's own motion

    At every step, the recent motion is noised to the projection time 蟿s and integrated along the flow.

  3. Reward tracking the correction

    The projected window is the reference of a tracking reward, added to the task reward.

  4. Deploy the policy alone

    The prior does not run on the robot.

PolicyFMP projection

The projection during a rally. Left: the policy's poses around each contact. Right: the projected reference at the same instants.

At every step. The blue ghost is the projected reference.

Motion correction by projection

Detail is corrected.
Structure is kept.

Jittery, exaggerated and falling motion, projected through the frozen prior.

Tennis 路 jitter

Jittery motion. The input, the noised window, then four integration steps.

Jitter is removed.

The projection removes it almost entirely.

Not forced onto the data.

Exaggerated and falling motion become a natural motion close to the input.

Close to the policy.

The reference stays near what the policy is doing.

One dial. The projection time sets how strongly the prior guides the policy.

Comparison

An explicit reference, without a clip.

Motion tracking needs a clip, selected and aligned in time. AMP and SMP need none, but provide no explicit reference. FMP derives one from the robot's own motion.

Motion Tracking

e.g. DeepMimic

Rewards the gap to a time-aligned frame of a reference clip.

  • Yes: Explicit reference
  • No: No clip to select and align

AMP

Adversarial Motion Prior

Rewards the score of a discriminator trained online.

  • No: Explicit reference
  • Yes: No clip to select and align

SMP

Score-Matching Motion Prior

Rewards a small noise-prediction error of a frozen model.

  • No: Explicit reference
  • Yes: No clip to select and align

FMP (ours)

Flow-Matching Motion Prior

Rewards the gap to a reference from a frozen flow model.

  • Yes: Explicit reference
  • Yes: No clip to select and align

Grey: the motion data, and lighter, its noised versions.

Task success and motion quality

A prior that knows the task.

Each task with the conditioned prior, an unconditional prior, and the task reward alone.

Conditioned prior (FMP)

Tennis. Only the conditioned prior prepares the stroke in time with the ball.

Conditioned prior (FMP)

Box carrying. All three learn to carry; the conditioned prior places the box most often.

With the condition: 81% of the balls struck (under 10% without), 83% of the boxes placed (55% without).

Reusable prior 路 across tasks

One frozen prior.
Two tasks.

One frozen FMP prior serves both goal reaching and steering. AMP comes closer to the data, but its discriminator cannot be reused for the other task.

FMP (ours)

Steering. The same commands for all five.

FMP (ours)

Goal reaching. The same goal sequence for all five.

Reusable prior 路 across body parts

Style on part of the body.

The same prior, reused across body parts without retraining. Only the coloured part takes the Star style.

Full body
Lower body
Upper body

Tasks in simulation

Four kinds of tasks.
One way to reward style.

Each trained with the same FMP style reward.

Tennis

Tennis. Forehand and backhand from one policy.

Box carrying

Box carrying. Lift, carry and set down at the goal.

Stylized walking

Stylized walking. One policy, 14 styles, switching on the way to the goal.

Steering

Steering. Red: commanded travel. Green: commanded facing.

Goal reaching

Goal reaching. Walk to the red flag and stop there.

Partial body

Upper body only. The same prior, with the reward restricted to the upper body.

Eight tennis strokes of the FiveHundredShot-G1 dataset replayed on the G1 with a racket.

Dataset

FiveHundredShot-G1

The strokes behind the tennis prior: human forehands and backhands reconstructed from CalTennis videos and retargeted to the G1.

500strokes, 285 forehands and 215 backhands
24 minof motion at 50 Hz
29joints, with body poses and the ball-contact frame
CC BY-NC4.0, with a MuJoCo viewer and the robot model
Twelve locomotion styles of the OneHundredStyle-G1 dataset replayed on the G1, from Aeroplane and Zombie to Skip and Elated.

Dataset

OneHundredStyle-G1

The styles behind stylized walking: the 100STYLE motion-capture dataset retargeted to the G1. The paper uses the forward-walking takes.

100locomotion styles in 810 clips, from Aeroplane to Zombie
19 hof motion at 50 Hz
29joints, with velocities and body poses
CC BY4.0, with a MuJoCo viewer and the robot model

Paper and citation

The paper is on arXiv. Code is coming soon.

@article{cheng2026fmp,
  title   = {FMP: Flow-Matching Motion Prior for Humanoid Control},
  author  = {Cheng, Jin and Zargarbashi, Fatemeh and Huang, Yijiang and Yoon, Taerim and Coros, Stelian},
  journal = {arXiv preprint arXiv:2611.38630},
  year    = {2026}
}

If you use the datasets, please cite them as well.

@misc{cheng2026fivehundredshots,
  title        = {FiveHundredShot-G1: 500 Tennis Strokes for the Unitree G1},
  author       = {Cheng, Jin},
  year         = {2026},
  howpublished = {Hugging Face dataset},
  url          = {https://huggingface.co/datasets/catachiii/FiveHundredShot-G1},
  note         = {Computational Robotics Lab, ETH Zurich}
}
@misc{cheng2026style100g1,
  title        = {OneHundredStyle-G1: 100 Locomotion Styles for the Unitree G1},
  author       = {Cheng, Jin},
  year         = {2026},
  howpublished = {Hugging Face dataset},
  url          = {https://huggingface.co/datasets/catachiii/OneHundredStyle-G1},
  note         = {Computational Robotics Lab, ETH Zurich}
}