Learning walk and trot from the same objective using different types of exploration

Zinan Liu, Kai Ploeger, Svenja Stark, Elmar Rueckert, Jan PetersarXiv 2019

Abstract

This paper investigates the acquisition of distinct quadrupedal gaits—specifically walking and trotting—using a unified reward function. By structuring the initial exploration noise through gait-specific covariance matrices in policy search algorithms, the authors demonstrate that reinforcement learning agents can be guided toward stable locomotion patterns more effectively than with standard random exploration. The results show that specific functional skills can be biased through the shape of exploration noise rather than complex reward engineering.

Introduction

Learning quadrupedal locomotion is a classic challenge in robotics due to high-dimensional, continuous action spaces and highly non-convex search landscapes. Traditional approaches often rely on manual gait hardcoding, which limits flexibility, or learning from scratch using random exploration, which frequently fails to discover stable, symmetric gaits. This research addresses the gap by exploring whether structured exploration can guide an agent toward specific gaits (like a trot or a walk) without strictly defining the gait or engineering complex, gait-specific reward functions.

Methodology

Policy Representation

The researchers utilized Policy Search methods, specifically comparing Likelihood Ratio Policy Gradient (LRPG) and Relative Entropy Policy Search (REPS). To represent cyclic movements, they employed Central Pattern Generators (CPGs), where leg trajectories are modeled as a linear combination of von Mises basis functions.

Structured Exploration as a Prior

The core innovation is the use of a customized covariance matrix for initial exploration: $\Sigma = \sigma^2(I + \gamma O)$. The matrix $O$ encodes prior knowledge of gait symmetries (e.g., diagonal legs moving in unison for a trot). By adjusting the "degree of coupling" ($\gamma$), the initial exploration is restricted to parameter space directions that favor these symmetric movements. This allows the exploration process itself to act as a prior for the desired behavior.

Experimental Setup

The study was conducted in the MuJoCo simulator using a modified "Ant" environment. The robot model was adapted into a symmetric quadruped with eight degrees of freedom. The task was straightforward: maximize forward translation while minimizing falling, contact, and control costs. Crucially, the reward function remained identical regardless of whether the agent was intended to learn a walk or a trot.

Results and Discussion

Quantitative Performance

The experiments revealed that the choice of algorithm is paramount when using structured exploration. REPS was able to exploit the symmetry priors effectively, showing significantly faster convergence and higher final rewards compared to standard diagonal initialization. In contrast, LRPG struggled with non-diagonal initializations, often exhibiting high variance and slower learning.

Learning curves for REPS comparing diagonal initialization with structured walk and trot initializations.

As shown in the learning curves, the trot gait was found to be inherently more rewarding and faster for this specific robot model, mirroring observations in biological quadrupeds. Interestingly, the initial symmetry structure of the covariance matrix in REPS is eventually lost as the algorithm updates, but the strategic exploration in the early stages is sufficient to steer the agent into the desired gait basin.

Qualitative Gait Analysis

With a coupling degree of $\gamma > 0.7$, agents reliably discovered movements matching the target gaits. Visual analysis confirms the emergence of distinct footfall patterns for both walking and trotting.

Snapshots of the learned walking (a) and trotting (b) gaits.

Conclusion and Future Work

This work demonstrates that you do not need to change the objective function to elicit different behaviors; instead, changing the "shape" of the noise during early learning can bias agents toward specific functional skills. While the current policies are open-loop and require manual symmetry design, future work could explore learning these symmetry templates automatically and incorporating real-time sensor feedback to improve gait robustness against uneven terrain.

Summary updated

BibTeX
@misc{liu2019learning,
  author = {Zinan Liu and Kai Ploeger and Svenja Stark and Elmar Rueckert and Jan Peters},
  title = {{Learning walk and trot from the same objective using different types of exploration}},
  year = {2019},
  eprint = {1904.12336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.12336},
}
Figure