Manuscript Offprint

arXiv:2610.24008

Weakly Supervised Discovery of Motion Styles for Compositional Robot Control

Heedo Woo, Antonio Marino, Eduardo Sebastián, Amanda Prorok

Heedo Woo Antonio Marino Eduardo Sebastián Amanda Prorok

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 and composes it with independent commands. First, motion retargeting maps the recordings to motions executable by the target robot; next, weakly supervised consensus encoding and density-based clustering identify styles within and across recordings without a prescribed count; finally, reinforcement learning trains a policy to compose the discovered styles with independent commands. We evaluate CODES on a Unitree Go2 quadruped across two simulators and physical hardware. Compared to baselines, CODES significantly improves kinematic coherence. Furthermore, our controller successfully tracks velocity commands that generalize beyond the support of the recorded data, exhibiting robust and distinguishable style characteristics during both cross-simulator and real-world hardware deployments.

Project website: proroklab.org/compositional-motion-styles

Index Terms—Compositional robot control, motion style discovery, weakly supervised learning, reinforcement learning.

I. INTRODUCTION

Robot motion control is commonly formulated in terms of task objectives, such as target velocities, poses, or trajectories. However, a given objective typically admits many executions that differ in motion characteristics, including posture, contact patterns, and coordination. These characteristics, referred to here as motion styles, influence aspects such as clearance, interaction with the environment, and predictability [1], [2]. This freedom is particularly relevant when a robotic system has more degrees of freedom than those that the task constrains. The task command alone does not select these characteristics. A compositional robot controller therefore accepts a style reference and a task command as independently selectable inputs, so that the requested execution can change without changing the task objective.

To compose motion styles and task commands, some representation of the styles is needed. Motion style characteristics can be specified explicitly through coupled oscillators, such as in AllGaits [2], or parameterized via posture commands, such as in Walk These Ways [1], allowing selection within predefined families of styles. As an alternative to manual parameterizations, motion recordings offer more flexibility for learning motion structure [3], [4], but entangle embodiments, regimes, and constraints. In computational ethology, B-SOiD [5], VAME [6], and Keypoint-MoSeq [7] identify recurring patterns from pose sequences without predefined taxonomies. A single recording may contain several styles, and similar styles may recur across recordings. Segmentation alone does not identify the characteristics that should persist as task commands change.

On the control side, reference-based reinforcement learning uses demonstrations through explicit tracking (DeepMimic [8]) or learned adversarial motion rewards (AMP [9]). Multi-behavior controllers select among motions using separate adversarial motion priors (Multi-AMP [10]), continuous embeddings [11], [12], or discrete codes [13], [14]. Coarse annotations can nevertheless group distinct execution patterns under one label; diverse execution therefore does not ensure a distinguishable, coherent style representation.

Consequently, neither raw recording boundaries nor existing annotations alone define an adequate repertoire. For successful compositional control, styles extracted from data must be coherent and independently selectable from task commands. This separation parallels Walk Like Dogs [15], which pairs locomotion modes independently with steering commands. Kinematic coherence requires windows in the same style group to share motion characteristics (e.g., posture, joint-velocity patterns, and periodicity), with windows from different groups remaining distinguishable. The controller must exhibit both command and style fidelity, following the task command while preserving the selected style's motion characteristics.

These considerations motivate CODES (Composition Of Discovered Expressive Styles), which identifies motion styles from recordings and trains a policy to execute them under independently specified task commands (Sec. II). Recordings are first expressed on the target robot, providing executable motion examples from which candidate styles are identified by a weakly supervised discovery method; these styles are then exposed to the policy as a separate control input (Sec. III). We evaluate the framework in a quadruped case study on the Unitree Go2 (Sec. IV). Ablations and comparisons with alternative decomposition methods show a compact repertoire with higher kinematic coherence than the no-coarse-guidance and VQ-VAE baselines (Sec. V). We further assess the robot motion controller in two simulators and real hardware deployments, showing that the resulting policy achieves command and style fidelity across a broad range of motions.

All authors are with the Department of Computer Science and Technology, University of Cambridge. Email: {hw527, am3507, es2121, asp45}@cam.ac.uk.

This work is supported by a Leverhulme Trust Research Project Grant. We gratefully acknowledge their support.

Figure

Fig. 1. Learning and composing motion styles for quadruped control. (A) Motions are retargeted to a common representation compatible with the robot's kinodynamics; (B) a weakly-supervised method based on consensus affinity and HDBSCAN identifies a style repertoire; and (C) a policy trained with reinforcement learning composes a style reference from the repertoire and an independent task command for robot control. This makes recorded motion characteristics available under independently selected commands.

References (33)