How does the structure embedded in learning policy affect learning quadruped locomotion?

Kuangen Zhang, Jongwoo Lee, Zhimin Hou, Clarence W. de Silva, Chenglong Fu, Neville HoganarXiv 2020

TL;DR

This paper quantifies how "baking in" classical robotics principles—like task-space impedance control and gait modulators—into reinforcement learning (RL) policies dramatically improves quadruped locomotion. By moving away from "black-box" policies that output raw torques, the researchers achieved up to a 75% reduction in training steps and significantly better energy efficiency and robustness.

What Problem Does This Paper Address?

Training a quadruped robot to walk using Reinforcement Learning is notoriously difficult. The system is high-dimensional, under-actuated, and involves complex, intermittent contact with the ground.

Most researchers use a "direct policy" approach, where a neural network maps the robot's state (positions, velocities) directly to joint torques. While this is highly general, it’s often inefficient: training takes forever, the resulting gait can be jittery or fragile, and the agent spends a lot of time exploring "stupid" actions that no sensible controller would ever take. The authors ask: How much does adding domain-specific structure to the policy actually help?

Methods

The authors compare three levels of policy structure in a simulated environment:

  1. Direct Policy: A standard MLP that outputs joint torques ($\tau_t$). It has no prior knowledge of robotics.
  2. Structured Policy: Instead of torques, the network outputs desired foot positions, velocities, and impedance parameters (stiffness and damping) in the task space. These are then fed into a task-space impedance controller to calculate torques.
  3. Highly Structured Policy: This policy uses a pre-defined gait pattern modulator and a trajectory generator (using Bézier curves). The neural network only learns high-level scaling parameters for these components.
Overview of the three policy architectures, ranging from end-to-end torque control to highly constrained gait parameters.

For the first two, they used the TD3 (Twin Delayed Deep Deterministic Policy Gradient) algorithm. For the highly structured version, they used a One-step DDPG, as the policy only needs to set parameters once per episode rather than at every millisecond time-step.

Datasets

The study was conducted entirely in simulation using the MuJoCo physics engine.

  • Model: A planar (2D), 11-degree-of-freedom quadruped.
  • Task: Velocity tracking. The robot must match a desired forward velocity ($v_d$) ranging from 1 to 5 m/s.
  • Evaluation: The policies were tested against 10N forward and backward force disturbances to measure robustness.

Key Insights and Ideas

  • Search Space Pruning: Structure acts as a filter. By forcing the network to output impedance parameters or trajectory points rather than raw torques, the authors effectively blocked the agent from exploring physically nonsensical regions of the action space.
  • The Importance of Timing: The "Highly Structured" policy performed best because it included an explicit representation of a planner (similar to a biological Central Pattern Generator). This provides the rhythmic timing necessary for stable locomotion that "direct" policies struggle to discover from scratch.
  • Generality vs. Performance: There is a clear trade-off. The highly structured policy is the "king of trotting" but cannot easily be adapted to other gaits (like galloping) or different robot morphologies without manual redesign. The direct policy is the most flexible but the least efficient.
  • Sensitivity to Reward Functions: Direct policies are extremely sensitive to how you reward them. Structured policies are much more "forgiving," achieving good results even with simpler reward functions because the underlying controller enforces a baseline of sensible behavior.
The framework for the highly structured planner, showing how high-level parameters are mapped to foot trajectories and impedance control.

Key Results

The quantitative benefits of structure were massive:

  • Training Speed: The highly structured policy reached a high performance level in just 3 minutes of wall-clock time, compared to 65 minutes for the direct policy.
  • Sample Efficiency: The structured and highly structured policies required 1/3 and 3/4 fewer training steps, respectively, than the direct policy to reach the same reward level.
  • Robustness: Under 10N force disturbances, the direct policy often tumbled, while the structured policies recovered and maintained their target velocity.
  • Energy Efficiency: The Cost of Transport (COT)—a measure of energy used per unit distance—was 4.97 for the direct policy but dropped to 2.63 for the highly structured policy.
Comparison of velocity tracking and stability under disturbances. The structured policies show much tighter control and fewer failures.

Limitations and Future Work

  • Dimensionality: This study used a planar (2D) robot. Real-world 3D locomotion introduces lateral stability issues that might make the gap between "direct" and "structured" even wider—or harder to bridge.
  • Task Specificity: The highly structured controller was hand-tailored for trotting. Future work could look into "hybrid" structures that allow the network to switch between different gait templates or learn the templates themselves.
  • The "Sweet Spot": The authors suggest there is a middle ground between the extremes of "no structure" and "total structure." Finding a way to automatically extract these structures from successful controllers remains an open challenge.

Summary updated

BibTeX
@misc{zhang2020how,
  author = {Kuangen Zhang and Jongwoo Lee and Zhimin Hou and Clarence W. de Silva and Chenglong Fu and Neville Hogan},
  title = {{How does the structure embedded in learning policy affect learning quadruped locomotion?}},
  year = {2020},
  eprint = {2008.12970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.12970},
}
Figure