Skip to content
Robotics.world

Research

Weakly Supervised Discovery of Motion Styles for Compositional Robot Control

A robot often has more degrees of freedom than a task requires, so many different motions — different postures, footfall patterns, coordination — can satisfy the same command.

The paper’s first page · arXiv:2610.24008
arXiv
2610.24008 · Preprint · not peer-reviewed
Published
2026-10-15
Authors
Heedo Woo, Antonio Marino, Eduardo Sebastián, Amanda Prorok

In plain words

A robot often has more degrees of freedom than a task requires, so many different motions — different postures, footfall patterns, coordination — can satisfy the same command. Existing controllers either require hand-designed style parameters or learn styles from data in ways that entangle style with the command and the recording source.

AI summary

Overview

Research area: Legged robotics / robot learning — specifically compositional motion control, motion style discovery from demonstration data, and reinforcement learning for quadruped locomotion.

Technical level: Advanced. The paper assumes familiarity with contrastive representation learning, density-based clustering, adversarial motion priors, and PPO-based locomotion training, though the high-level pipeline is describable in plain terms.

Scope (one sentence): The paper presents CODES, a pipeline that discovers a repertoire of distinct motion styles from heterogeneous motion recordings using weak, coarse labels, and trains a single quadruped policy that executes a selected style while independently tracking velocity commands, validated in two simulators and on a physical Unitree Go2.

What This Paper Is About

A robot often has more degrees of freedom than a task requires, so many different motions — different postures, footfall patterns, coordination — can satisfy the same command. Existing controllers either require hand-designed style parameters or learn styles from data in ways that entangle style with the command and the recording source. CODES aims to extract a coherent set of styles from recordings (without being told how many styles exist), then let a single policy take a style reference and a task command as two independent inputs, so the "how" can change while the "what" stays fixed.

Key Contributions

  1. The CODES framework (Composition Of Discovered Expressive Styles): an end-to-end pipeline of motion retargeting to the target robot → weakly supervised representation learning → density-based style discovery → style-conditioned reinforcement learning, where the style reference and task command are independently selectable at execution time.
  2. A weakly supervised representation objective that combines reconstruction (positions and frame-to-frame differences), robust instance contrastive learning under augmentation, confidence-weighted class attraction with support-balancing, and a margin-based separation term — designed so that coarse labels (five broad categories, plus "unknown") guide the embedding without collapsing fine distinctions.
  3. Consensus geometry with density-based clustering: an ensemble of 10 encoders is concatenated into a unit-norm consensus code whose inner product equals the mean pairwise affinity, and HDBSCAN is applied so the number of styles emerges from the data rather than being prescribed.
  4. A gated style-plus-command reward for PPO training, in which a conditional adversarial motion prior score dynamically gates the velocity-tracking reward, plus an empirical study on a Unitree Go2 across two simulators and physical hardware with ablations and baseline comparisons (no-coarse-guidance, Kinematic PCA, TS2Vec, VQ-VAE).

Main Findings

  • A compact repertoire emerges from five coarse categories. Clustering the 10,661 two-second windows (from 53 trajectories, 59,247 frames, 16.5 minutes at 60 Hz) yields 16 style groups, of which 12 are locomotion-dominant, alongside distinct idle, jump, sit, and lie behaviors. Reported coverage is 72.8%, effective group count K_eff = 10.19, and 1.36 core switches per minute.
  • Every loss term matters for avoiding collapse. Removing reconstruction collapses the repertoire to 3 groups (K_eff = 1.20); uniform attraction yields 7 groups (K_eff = 3.42, 95.9% coverage, 0.00 core switches); separation-only yields 15 groups (K_eff = 7.40); dropping the coarse terms yields 15 groups (K_eff = 8.92, 90.8% coverage).
  • The encoder ensemble drives stability. A single encoder produces unstable clustering (4.6 groups, 8.7% coverage) and weak pairwise similarity correlation (0.539), whereas the full ensemble raises that correlation to 0.985.
  • Higher kinematic coherence than discrete and label-free alternatives. In a 32-dimensional kinematic PCA space, CODES reaches silhouette 0.329 and cross-recording AUC 0.832, versus −0.043 and 0.562 for VQ-VAE. Kinematic PCA and TS2Vec produce 39–41 groups (versus 16) and Kinematic PCA switches 3.02 times per minute versus 1.36.
  • The VQ-VAE baseline underuses its codebook. Only 17 of 256 codes are active, with 51.5% of windows assigned to a single code (K_eff = 5.76).
  • Rejection is not the whole story. Force-assigning every window to its nearest CODES prototype (100% coverage) still gives silhouette 0.246 and AUC 0.790, above the equally-covered VQ-VAE figures of 0.022 and 0.680.
  • Command tracking is strong but not uniformly better than an ablation. Across 6,480 trials (135 command pairs, three seeds, 15 s trials with the first 5 s excluded), CODES achieves median planar RMSE 0.114 m/s, 98.1% completion, and 74.2% success, against 0.106 m/s and 89.8% success for the no-coarse-terms ablation and 0.142 m/s / 66.8% for VQ-VAE. The authors note each policy uses its own reference bank, so these numbers do not isolate a command-tracking trade-off for identical requested motions.
  • Style resemblance degrades outside recorded command support, but tracking persists. Mean reference consensus cosine is 0.271 inside and 0.156 beyond the estimated recorded support for the forward sweep, and 0.351 / 0.219 for the lateral sweep; corresponding command-success rates are 87.8% / 65.6% (forward) and 89.1% / 78.9% (lateral).
  • High-speed tracking degrades for some references. In the forward sweep, tracking is strongest at low and moderate speeds and degrades for several references above approximately 2.25 m/s.
  • Style switching works on hardware at a fixed command. On the Unitree Go2, with policy, reference bank, and state estimation running onboard the Jetson, switching among references C04, C00, C14, and C11 at a constant 0.5 m/s forward command changes posture and foot-motion amplitude and timing (C04 remains lower than C00 and C14) without changing the tracked command.
  • What is not reported in the provided text: the truncated portion cuts off mid-sentence in the cross-simulator discussion, so quantitative MuJoCo results and any full hardware statistics are not available here; the paper also explicitly states that the consensus cosine is not a calibrated perceptual distance, and no human perceptual study is reported in the excerpt.

Methodology in Plain English

  1. Put every recording on the same footing. Motions from dogs, horses, other robots, and teleoperated Go2 data are mapped onto the target robot through a "preparation map" so all windows share coordinates, units, and sampling rate and are physically executable. The paper deliberately does not prescribe how this mapping is done — inverse kinematics, kino-dynamic mapping, or physics-based imitation are all allowed.
  2. Cut motion into short windows. Each window is 2 seconds (120 frames at 60 Hz) of 49-dimensional robot state, with window starts 5 frames apart.
  3. Learn a motion code with weak guidance. A small temporal convolutional network plus pooling and a linear-ish head compresses each window to a 16-dimensional vector on the unit sphere. Training rewards reconstructing the window (including frame-to-frame changes), being robust to perturbations, pulling together windows that share the same broad label (weighted by annotation confidence and balanced so rare classes are not crushed), and pushing apart windows with different labels only when they are too similar.
  4. Repeat with ten random initializations and average. The ten codes are concatenated into one "consensus" vector, so similarity between two windows is the average opinion of ten independently trained encoders — much steadier than any one model.
  5. Let the clusters find themselves. HDBSCAN groups the consensus codes by density, choosing the number of styles automatically and leaving low-density windows unassigned. Each resulting group donates a pool of reference windows (335 non-overlapping references in total, stored with their codes).
  6. Train one policy to obey two dials. PPO trains the controller with a reward combining a conditional adversarial motion prior (does this transition look like the selected reference?), a velocity-tracking score, and robot-specific regularization. A logistic gate raises the tracking weight when the motion-prior score is high and keeps a floor when it is low. During training, references are paired both with commands seen in the recordings and with commands sampled from the whole command space, forcing the policy to generalize to style–command combinations never recorded.

Why This Matters

Impact on research. The paper reframes the style/command split as a data-driven discovery problem rather than a hand-parameterization problem, and offers a concrete recipe for getting a usable, non-collapsed discrete style repertoire out of messy multi-embodiment recordings. Its empirical points — that supervised contrastive learning collapses without reconstruction and support-balancing, and that single-encoder clustering is unstable — are useful lessons for anyone learning discrete behavior structure from motion data. It also provides an honest, quantitative picture of the command/style trade-off, including the finding that a weaker style objective can post better raw tracking numbers.

Real-world applications:

  • Legged robot inspection and logistics: selecting a gait style for the environment (high-stepping, crouched, careful) while the fleet operator only specifies where and how fast to go.
  • Human-robot interaction and shared spaces: choosing predictable, legible, or low-clearance motion styles for comfort and safety in crowded environments without altering the navigation command.
  • Motion capture and animation reuse: retargeting animal or performer recordings to a robot or character and exposing the resulting styles as selectable assets rather than bespoke animations.
  • Field robotics and search-and-rescue: swapping between stable and agile movement styles under a fixed teleoperation command as terrain or payload changes.

Industry relevance. The work targets the practical bottleneck for legged robot vendors: how to expose the expressive capability of a high-degree-of-freedom platform to end users through a small, reliable set of selectable behaviors, and how to do so with onboard computation (the deployment runs on the robot's Jetson with no motion capture or offboard inference) and simulation-trained policies that transfer to hardware.

Future Directions

  • Closing the style–command trade-off: CODES trails the no-coarse ablation on aggregate success (74.2% vs 89.8%) and on median planar RMSE (0.114 vs 0.106 m/s); a next step is a training scheme that recovers that tracking accuracy without sacrificing repertoire coherence, evaluated on shared reference banks.
  • Better style metrics: the consensus cosine is not command-independent and is explicitly not a calibrated perceptual distance, so command-invariant, perceptually validated style distances (and human user studies) are an open need.
  • Generalization beyond the quadruped and beyond the recorded command support: the retargeting step is left generic, so extending the pipeline to humanoids, manipulators, or other embodiments, and improving style fidelity in the low-density region outside the estimated recorded support (where cosine drops from 0.271 to 0.156 forward), are natural extensions.
  • Richer weak supervision and boundary cases: the current labels are five coarse categories plus "unknown" with confidence values; learning what to do with ambiguous or mislabeled windows, and handling transitions between styles more explicitly, remains open. The truncated cross-simulator and hardware sections also leave room for fuller quantitative sim-to-real characterization.

Target Audience

Robotics researchers and graduate students working on legged locomotion, learning from demonstration, and compositional or style-conditioned control; reinforcement learning practitioners interested in weakly supervised representation learning for behavior discovery; and engineers at legged-robot or simulation companies who need to turn heterogeneous motion data into a small, selectable set of deployable behaviors on real hardware. Readers without a background in contrastive learning, clustering, and policy-gradient locomotion training will find the middle sections demanding, though the problem framing and experimental setup are accessible.

Authors’ abstract

When a robot possesses more degrees of freedom than a task requires, multiple trajectories can achieve the same objective using distinct motion styles. Compositional robot control aims to preserve a selected style while simultaneously executing an independent task command, effectively balancing these potentially competing objectives. In this paper, we present CODES, a framework for compositional robot control that discovers a coherent style repertoire from diverse recordings…

The full abstract on arXiv
Read the original paper

Related papers