Quadruped locomotion provides a natural setting for understanding when model-free learning can outperform model-based control design, by exploiting data patterns to bypass the difficulty of optimizing over discrete contacts and the combinatorial explosion of mode changes. We give a principled analysis of why imitation learning with quadrupeds can be inherently effective in a small data regime, based on the structure of its limit cycles, Poincaré return maps, and local numerical properties of neural networks. The understanding motivates a new imitation learning method that regulates the alignment between variations in a latent space and those over the output actions. Hardware experiments confirm that a few seconds of demonstration is sufficient to train various locomotion policies from scratch entirely offline with reasonable robustness.
Figures & tables
Fig. 1: Overview of our approach. We consider the offline imitation learning that collects a small batch of expert demonstration data, and then train deep neural network policies only from the batch without finetuning in simulation or on hardware. We propose new imitation methods with Latent Variation Regularization (LVR) that enforces the matching of the local structure between the control problem and the neural networks. The trained policies are directly tested on hardware platforms with varying ground conditions.
Fig. 2: Illustration of the first-order variation requirement in neural policies. Around expert trajectories of stable walking, the local stabilizing control laws are linear at both continuous (analyzed through trajectory stabilization) and discrete jump states (analyzed through Poincaré sections). This structure matches with the local smooth pieces in deep neural networks that are approximately independent because of sparsity in the large parameter space. Thus the local feedback requirements can be readily enforced through imitation learning that regularize local variations in the latent space.
Fig. 3: Real-world deployment of quadruped policies trained with minimal expert data. The upper left shows expert demonstration. Using the same data, behavior cloning (bottom left) fails to walk, whereas our Latent Variation Regularization (LVR, right column) produces stable forward and sideways walking. LVR further shows robust performance, such as walking backwards on grass by training on data from walking backwards on flat indoor ground.
Fig. 4: Left: training pointwise imitation loss, where both BC and LVR rapidly converge to similar values. Right: control performance on forward and sideways walking with varying dataset sizes. LVR achieves expert-level performance with ≤ 1 trajectory, whereas BC requires substantially more demonstrations to approach similar returns. Purple line denotes the expert policy performance.
Fig. 5: PCA visualization of latent states ht , where projection axes are obtained from PCA on consecutive differences δht=ht+1−ht . Points are connected in temporal order and colored by cosine similarity of δht with the first principal component (PC1). Left: expert forward-walking trajectory showing structured trot dynamics with two alternating gait modes. Right: an OOD rollout where BC (top) collapses while LVR (bottom) preserves coherent orientation bundles and separates ill-conditioned late states. See details in Section VI-B .
Fig. 6: t-SNE visualization (perplexity 15) of the expert training trajectory in state space (left) and the corresponding latent feature spaces learned by BC (top) and LVR (bottom). Points are colored by timestep index in the original trajectory. For the feature-space plots, the left column shows embeddings near initialization, while the right column shows embeddings at convergence. BC embeddings remain fragmented throughout training, whereas LVR progressively organizes local neighborhoods into a coherent loop structure that mirrors the periodic gait cycle observed in the state space.
Fig. 7: Robustness evaluation of forward walking under increasing terrain roughness. Both BC and LVR are trained on the same demonstrations collected on flat ground and then evaluated on terrains with varying roughness scales. The purple line indicates expert performance on flat terrain, and the black line marks the walkability threshold below which locomotion fails. Rendered images show representative behaviors of the expert (I), LVR (II), and BC (III) policies. LVR sustains high performance across a wider range of roughness levels, whereas BC rapidly deteriorates once the environment deviates from the training condition.
School of Artificial Intelligence and Robotics, Hunan University, China · China Mobile Group Hunan Company Ltd., China · National Engineering Research Center of Robot Visual Perception and Control Technology, Hunan University, China