# Walk Like This: Stylized Locomotion for Physics-Based Characters through Example-Driven Diffusion

Robotics.world

> Most controllers for physics-based humanoid characters can make a character walk, but not walk in a particular way — and the ones that can stylize motion are usually locked to a fixed, labeled set of…

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

**Published**: 2026-10-13

**Authors**: Joshua Aurand, Agon Serifi, Sammy Christen, Ruben Grandia, Espen Knoop, Marco Hutter, Moritz Bächer

## In plain words

Most controllers for physics-based humanoid characters can make a character walk, but not walk in a particular way — and the ones that can stylize motion are usually locked to a fixed, labeled set of styles chosen before training.

## AI summary

## Overview

**Research area:** Physics-based character animation and legged robot control — specifically stylized humanoid locomotion driven by generative motion models and reinforcement learning.

**Technical level:** Advanced. The paper assumes familiarity with diffusion models, transformer architectures, motion tracking RL policies, and character animation pipelines.

**Scope:** A real-time framework that lets a user steer a physics-based humanoid with joystick velocity commands while independently selecting a movement style from an example motion clip, including styles never seen during training.

## What This Paper Is About

Most controllers for physics-based humanoid characters can make a character walk, but not walk *in a particular way* — and the ones that can stylize motion are usually locked to a fixed, labeled set of styles chosen before training. This paper asks whether a character can instead learn style from raw, unstructured motion data and then accept an arbitrary reference clip (motion capture, or even video of a person) as a style instruction at runtime. The goal is a single controller that gives a user separate, intuitive handles on *what* the character does (velocity, direction) and *how* it does it (gait style), while remaining physically robust enough to run on real hardware.

## Key Contributions

1. **A generative motion-control framework** for stylized locomotion that is trained from large-scale unstructured motion data and demonstrated on hardware, giving users simultaneous control over velocity commands and style.
2. **An autoregressive diffusion model paired with a transformer-based style encoder** that disentangles style from functional locomotion through a tailored dual-window sampling strategy during training — replacing discrete style labels with a learned, continuous style embedding.
3. **An inference-time attention biasing technique** that re-weights attention scores toward the style token and away from past-motion tokens, giving explicit control over stylization strength and faster style transitions than classifier-free guidance (CFG).
4. **A velocity command correction scheme** that closes the loop on drift by feeding trajectory error back into the joystick commands, plus an RL tracking policy trained on diffusion-generated data to ground the kinematic output in physics.

## Main Findings

- **Better kinematic quality than CAMDM:** On the 100STYLE dataset, the diffusion model achieves an FID of 0.22 versus CAMDM's 0.27, and style accuracy of 88.1% versus 86.0%, with comparable foot sliding (0.66 vs 0.71 cm/frame) and trajectory errors (position 0.70 vs 0.70 cm/frame, yaw 0.65 vs 0.60 deg/frame).
- **Attention biasing is the strongest single lever:** Adding bias at inference gives the best overall numbers — FID 0.07 and style accuracy 96.3% — and also improves CAMDM (FID 0.14, style accuracy 93.5%). The gain is larger for the proposed model because its continuous style embeddings carry more information than discrete labels.
- **Biasing beats CFG on efficiency:** Both reach similar style-transition success (98.6% for bias vs 98.7% for CFG, against 83.8% with neither), but bias costs 8.50 ms per inference versus 14.30 ms for CFG, since CFG requires two model evaluations per denoising step.
- **Stability cost of stylization:** Improved stylization comes with more foot sliding — 0.93 cm/frame with bias versus 0.66 cm/frame without — attributed to the negative weighting of past motion making coherent foot swings harder.
- **Generalization to unseen styles holds up partially:** On 10 held-out 100STYLE styles, the model reaches 93.0% style accuracy (comparable to seen styles) but an FID of 0.34, indicating it captures distinctive features while struggling with finer detail.
- **Style and content are genuinely disentangled:** Linear discriminant analysis recovers style identity from style latents with 95% accuracy across all 100STYLE styles; within-style variation accounts for only 19% of total latent variance; regressing content from style latents alone yields R² = 0.07.
- **The sampling strategy is essential:** Using the same motion window for style reference and for past/future motion collapses the model to repeating the reference (sample diversity of 0.8 deg in joint angles), whereas different windows yield 5.5 deg.
- **Velocity correction nearly eliminates drift:** Drift per meter drops from 0.117 to 0.003, and mean velocity error from 0.271 m/s to 0.075 m/s, across trajectories including squares, circles, figure eights, and randomized commands.
- **Training the RL policy on generated data halves failure rates:** A policy trained on MoCap data falls 1.104 times per minute tracking diffusion output, versus 0.001 for a policy trained on generated data — at the cost of higher tracking error (MPJAE 8.3 deg vs 5.2 deg) and lower motion quality (style accuracy 85.1% vs 92.0%).
- **Open loop beats closed loop for style:** Open-loop deployment (conditioning the diffusion model on its own predictions) gives better stylization than closed loop (79.6% vs 85.1% style accuracy, FID 0.45 vs 0.35), while closed loop gives lower tracking error. Under 600 N root perturbations, open loop is also more stable, with 3.812 versus 4.431 falls per minute.
- **No long-horizon degradation:** No loss of motion quality was observed over 20-minute rollouts.
- **Interpolated styles track well:** For styles interpolated between training latents, tracking achieves an MPJAE of 7.9 deg with 0 falls (FID and style accuracy cannot be computed there, as no ground truth exists).
- **Hardware deployment succeeds zero-shot:** On a Unitree G1 (1.32 m, 35 kg, 29 DoF) retargeted with ReActor, roughly 4 hours of deployments across varied trajectories and styles produced no failures, at approximately 11 ms per diffusion inference and 17 ms command-to-motion latency on an onboard NVIDIA Jetson Thor (8 ms and 12 ms in simulation on an NVIDIA RTX 5090).

## Methodology in Plain English

The system has two stacked parts: a motion *generator* that dreams up stylized movement on paper, and a *tracker* that makes a physical body actually perform it.

For the generator, the authors adapt an autoregressive diffusion model in the style of CAMDM. It looks at the past 10 frames of motion and predicts the next 20 (the robot character uses 15 and 30 at a higher frame rate), conditioned on a desired root trajectory integrated from joystick input. The key change is how style enters: instead of a discrete label like "walk" or "strut," a separate transformer encoder compresses a style clip of arbitrary length into a single normalized vector. A register token — borrowed from vision transformers — acts as scratch space for this compression, and its final value becomes the style embedding.

The training trick that makes this work is the sampling strategy. For each training sample, the model takes one window of motion for the past/future prediction and a *different* window of the *same* motion sequence for the style reference. Because the style clip cannot be copied directly into the output, the encoder is forced to capture only what is invariant about the motion — its style — rather than its content, defined as the ground-projected root trajectory. Both networks are trained jointly with a reconstruction loss plus velocity, joint consistency, and foot sliding terms.

At inference, two adjustments address the weaknesses of autoregressive rollout. First, the attention bias: since conditioning on past motion tends to make the model ignore the style token and lock into one gait, the authors add a positive bias to attention scores pointing at the style token and a negative bias to those pointing at past-motion tokens. Because this modifies pre-softmax weights, attention remains a normalized distribution over the same tokens, keeping the model closer to its training regime than CFG does. Second, velocity correction: prediction errors accumulate into drift, so at each diffusion call the difference between desired and current position and heading is fed back as a correction to the joystick command, with the desired state clipped to within 0.5 m and 0.5 rad of the current state to prevent oversized corrections.

For physical grounding, an RL policy is trained to track kinematic reference motions. Rather than querying the diffusion model during RL training, the authors pre-generate a large dataset by rolling out the diffusion model offline with randomly sampled style clips and joystick commands, then train the policy on that. At deployment the diffusion model runs open loop — conditioned on its own past predictions rather than the robot's measured state — which keeps the generation stream uncorrupted and gives the policy clean targets to recover toward. Style encodings are precomputed and cached to avoid runtime encoder cost.

## Why This Matters

**Impact on research.** The paper removes a structural assumption from stylized character control: that styles must be enumerated and labeled before training. By showing that a continuous style latent learned from unstructured data generalizes to unseen clips and even to pose-estimated video, it reframes style as a runtime input rather than a training-time class. The attention biasing result is also a broadly applicable finding — it is a cheaper, in-distribution alternative to CFG for autoregressive motion diffusion, and it improves CAMDM as well as the proposed model, suggesting the technique transfers.

**Real-world applications:**

- **Theme park and entertainment animatronics:** characters that can be re-styled by an animator's reference clip without retraining a controller.
- **Character animation for film and games:** physics-grounded, interactive previews where directors steer with a joystick and swap gaits on the fly.
- **Humanoid robot deployment in human-facing roles:** service or hospitality robots whose motion can be tuned for mood, cultural context, or brand personality without engineering a new controller.
- **Teleoperation and motion capture pipelines:** turning an operator's joystick input plus a video reference into robust physical motion.

**Industry relevance.** The reported runtime figures — roughly 11 ms per inference step and 17 ms end-to-end latency on an onboard Jetson Thor, with about 4 hours of failure-free deployment on a commercially available Unitree G1 — place this in the range where the approach is practical rather than demonstrative. The fact that a single policy tracks many styles, and that style encodings can be cached, lowers the engineering cost of shipping multiple character behaviors.

## Future Directions

- **Closing the mismatch between kinematic reference and commanded velocity.** The authors note the tracking policy compensates for this by inserting extra in-between steps to maintain stability, and point to implicit rewards as a possible route to more natural gaits.
- **Handling direction-coupled styles.** Styles like moonwalks or cartwheels currently require velocity commands that match the style, and styles defined largely by root trajectory (such as walking while rotating clockwise) conflict with the joystick interface, where the user command currently wins.
- **Explicit, part-wise style parameterization.** The current model learns style implicitly; the authors suggest a more explicit parameterization could let users stylize only part of the body, for example the upper or lower body of a reference.
- **Broadening style input modalities.** Having shown video-derived styles work, the authors raise artist-created animations and other sources as natural extensions of the same interface.

## Target Audience

Researchers and engineers working on physics-based character animation, generative motion synthesis, and humanoid locomotion control — particularly those already familiar with diffusion-based motion models or RL motion tracking. It is also relevant to practitioners in animation and entertainment technology who need interactive, re-styleable character behavior, and to robotics teams evaluating generative motion models as a front end for real hardware. Readers without background in diffusion models or RL will find the system-level story accessible but the technical detail demanding.

## Authors’ abstract

We present a real-time framework for expressive legged locomotion that enables independent control over velocity and style. Unlike existing data-driven controllers, which typically require explicit style labels for training, our method efficiently leverages large-scale unstructured motion data and generalizes to unseen styles. We disentangle style from functional locomotion through a tailored sampling strategy used to train a style encoder whose output conditions an…

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

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

## Related papers

- [PhysibleMDM: Enforcing Inference-Time Physical Feasibility Constraints on Motion Diffusion Models via Noise Optimization](https://robotics.world/paper/physiblemdm-enforcing-inference-time-physical-feasibility-constraints-2610.30500) 2026-10-21 · cs.RO · Also by Agon Serifi, Espen Knoop +2
- [Vision as Proprioception: Estimating Humanoid Robot Pose from Video](https://robotics.world/paper/vision-as-proprioception-estimating-humanoid-robot-pose-from-video-2610.25288) 2026-10-18 · cs.RO · Also by Marco Hutter
- [Reactive Task-Oriented Robot-Human Handovers via Generative Hypothesis Selection](https://robotics.world/paper/reactive-task-oriented-robot-human-handovers-via-generative-hypothesis-2610.08003) 2026-10-06 · cs.RO · Also by Marco Hutter
- [Watch Your Step: Anticipated Perception for Humanoid Locomotion](https://robotics.world/paper/watch-your-step-anticipated-perception-for-humanoid-locomotion-2610.29612) 2026-10-21 · cs.RO · Also by Marco Hutter
- [RangeNav: Task-Aligned LiDAR Range-Image Pretraining for Robot Navigation](https://robotics.world/paper/rangenav-task-aligned-lidar-range-image-pretraining-for-robot-navigation-2610.29845) 2026-10-21 · cs.RO · Also by Marco Hutter

---

Canonical: https://robotics.world/paper/walk-like-this-stylized-locomotion-for-physics-based-characters-through-2610.18147
