Learning Memory-Based Control for Human-Scale Bipedal Locomotion

Jonah Siekmann, Srikar Valluri, Jeremy Dao, Francis Bermillo, Helei Duan, Alan Fern, Jonathan Hurst

Abstract

Controlling a non-statically stable biped is a difficult problem largely due to the complex hybrid dynamics involved. Recent work has demonstrated the effectiveness of reinforcement learning (RL) for simulation-based training of neural network controllers that successfully transfer to real bipeds. The existing work, however, has primarily used simple memoryless network architectures, even though more sophisticated architectures, such as those including memory, often yield superior performance in other RL domains. In this work, we consider recurrent neural networks (RNNs) for sim-to-real biped locomotion, allowing for policies that learn to use internal memory to model important physical properties. We show that while RNNs are able to significantly outperform memoryless policies in simulation, they do not exhibit superior behavior on the real biped due to overfitting to the simulation physics unless trained using dynamics randomization to prevent overfitting; this leads to consistently better sim-to-real transfer. We also show that RNNs could use their learned memory states to perform online system identification by encoding parameters of the dynamics into memory.

Introduction

Controlling a bipedal robot like Cassie is notoriously difficult because the system is non-statically stable and involves complex "hybrid dynamics"—the physics change abruptly every time a foot hits or leaves the ground. While Reinforcement Learning (RL) has been used to train walking controllers in simulation, most successful transfers to real hardware have relied on memoryless (feedforward) networks. These networks only look at the current snapshot of the robot's state to decide the next move. However, real-world physics involves "hidden" variables that a single snapshot cannot capture, such as floor friction, precise center of mass, or motor damping.

The challenge is that while Recurrent Neural Networks (RNNs), which possess memory, should be better at inferring these hidden properties from a history of movements, they are also prone to "cheating"—learning to exploit specific, unrealistic quirks of the simulator. This leads to a significant "sim-to-real gap" where a controller that performs perfectly in simulation fails immediately on actual hardware.

Methodology

To address these challenges, the researchers compared a Long Short-Term Memory (LSTM) network against a standard feedforward (FF) network. To ensure a fair comparison, parameter counts were matched between the two architectures. The training utilized a recurrent version of Proximal Policy Optimization (PPO), which requires sampling entire trajectories to maintain the temporal thread of the memory.

Control architecture overview showing the hierarchical control loop.

A critical component of the methodology is Dynamics Randomization (DR). During training, 61 different physical parameters (e.g., joint mass, damping, and pelvis center of mass) were randomized. This forces the network to learn a strategy that is robust across a wide range of physical conditions. As shown in the control architecture, the policy runs at 33Hz, outputting targets for a high-speed (2kHz) PD controller that manages the actual motor torques.

Key Insights and Results

The Overfitting Paradox

In simulation, RNNs without dynamics randomization achieved much higher rewards than feedforward networks. However, they were the least effective at transferring to the real robot. Their high capacity allowed them to overfit to the simulator's specific physics. Conversely, 100% of the LSTM policies trained with dynamics randomization successfully transferred to the real robot, walking for the full duration of the hardware tests.

Comparison of successful sim-to-real transfer versus failures.

Implicit System Identification

The researchers discovered that the LSTM was performing "online system identification." By training a separate decoder to analyze the LSTM's internal memory, they could accurately predict the robot's center of mass—a value the robot was never explicitly given. The memory effectively "learned" the physics of its body on the fly. Furthermore, Principal Component Analysis (PCA) revealed that the LSTM naturally organized its memory into clean, cyclic patterns matching the walking gait, suggesting RNNs are inherently suited for periodic tasks like locomotion.

Performance Metrics

  • Hardware Success: LSTM + DR policies achieved a 100% success rate on the physical Cassie robot.
  • Robustness: In simulation stress tests, LSTM + DR policies averaged 40.0s of stable walking, significantly outperforming the 22.1s average of the best feedforward versions.
  • Stability: While feedforward networks often exhibited "shaky" behavior on hardware, the LSTM's memory allowed for smoother compensation for model inaccuracies.

Discussion and Future Work

While successful, the current model still requires a "periodic clock" input to time its steps, a dependency the authors hope to remove in future iterations. Additionally, while the study focused on a specific walking speed (1 m/s), future work will involve training memory-based controllers to handle a wider range of velocities and transitions, such as standing, running, and navigating uneven terrain. The ability of RNNs to perform implicit system identification opens new avenues for creating robots that can adapt to changing physical conditions in real-time.

Summary updated

BibTeX
@inproceedings{siekmann2020learning,
  author = {Jonah Siekmann and Srikar Valluri and Jeremy Dao and Francis Bermillo and Helei Duan and Alan Fern and Jonathan Hurst},
  title = {{Learning Memory-Based Control for Human-Scale Bipedal Locomotion}},
  booktitle = {RSS},
  year = {2020},
  url = {https://openreview.net/forum?id=iFfh4zfa1Z},
}
Figure