Neural Gaits: Learning Bipedal Locomotion via Control Barrier Functions and Zero Dynamics Policies

Ivan Dario Jimenez Rodriguez, Noel Csomay-Shanklin, Yisong Yue, Aaron D. Ames

Introduction

Bipedal locomotion remains one of the most complex challenges in robotics. The difficulty stems from two primary physical characteristics: robots are underactuated, meaning they lack direct control over every degree of freedom, and their dynamics are hybrid, characterized by abrupt physical changes during foot-strike impacts.

Historically, researchers have relied on traditional control methods centered on "periodic orbits"—pre-calculated, repetitive motions. While mathematically sound, these methods are often brittle and struggle to adapt to environmental perturbations. Conversely, Reinforcement Learning (RL) has demonstrated impressive agility but often operates as a "black box," requiring massive datasets and offering no formal guarantees that the robot will not violate safety constraints, such as falling or over-extending joints.

"Neural Gaits" proposes a middle ground. By framing walking as a "set invariance" problem on a reduced-order model, the authors combine the formal safety of control theory with the flexibility of machine learning. This approach enables agile walking policies that satisfy safety guarantees while adapting to real-world physical discrepancies through episodic hardware refinement.

Methodology

The Neural Gaits framework utilizes a two-pronged learning approach built upon Zero Dynamics (ZD) and Control Barrier Functions (CBFs).

1. Zero Dynamics (ZD) and Dimensionality Reduction

Rather than attempting to control the entire high-dimensional state of the robot, the authors project the dynamics onto a lower-dimensional manifold. This "Zero Dynamics" represents the internal, underactuated behavior of the robot when the controlled joints follow a specific policy. By learning only on this manifold, the complexity of the learning problem is drastically reduced without sacrificing the ability to make guarantees about the full-order system.

2. Control Barrier Functions (CBFs) and Barrier Loss

CBFs are mathematical tools used to ensure "set invariance," effectively defining a safe envelope (e.g., torso angles, foot clearance) that the robot must never exit. The authors introduce a Barrier Loss function, which turns these hard differential inequality constraints into a differentiable loss function. This allows a standard neural network optimizer to penalize any proposed motions that would violate safety conditions.

3. Two-Module Learning and Episodic Refinement

The architecture consists of two primary modules:

  • Policy Learning ($y_d$): A neural network learns the walking policy by minimizing the Barrier Loss.
  • Residual Dynamics Learning ($\epsilon$): To bridge the "sim-to-real" gap, the authors use hardware data to learn a residual model that captures the mismatch between the nominal mathematical model and the actual robot physics.

The system improves through episodic refinement: the robot attempts to walk, collects data on model failures, updates the residual dynamics, and retrains the policy accordingly.

Experimental Setup

The framework was validated using a combination of simulation and physical hardware:

  • Simulation: Initial training was conducted in the RaiSim physics environment to establish baseline behaviors.
  • Hardware: Real-world experiments were performed on the AMBER-3M platform, a planar underactuated bipedal robot. The dataset for the residual model grew episodically as the robot performed trials and recorded state trajectories.

Key Insights and Results

Walking as Set Invariance

By defining "good walking" through algebraic barriers rather than strict, timed trajectories (reference orbits), the framework allows for emergent, aperiodic, and reactive walking behaviors. This shift makes the robot significantly more robust to different walking speeds, a common failure point for rigid controllers.

Sim-to-Real Success

Initial simulation-trained policies often caused the robot to stumble on real hardware due to model mismatch. However, the episodic refinement process successfully corrected these errors. The final trained policy allowed the AMBER-3M robot to walk stably and unassisted in the real world.

Formal Safety Proofs

A critical contribution of this work is the mathematical proof (Theorem 5) showing that if safety is maintained on the simplified Zero Dynamics manifold, it can be extended to guarantee safety for the full-order robot system.

Limitations and Future Work

While Neural Gaits represents a significant step forward, several areas remain for future exploration:

  • 3D Locomotion: Current experiments were limited to a planar (2D) biped. Extending this to 3D involves significantly more complex Zero Dynamics.
  • Hybrid Safety: While safety is guaranteed during continuous motion, providing formal guarantees that hold through the impact phase (the hybrid transition) remains a theoretical challenge.
  • Environmental Complexity: Future iterations will focus on navigating non-flat terrain, such as stairs or uneven ground.
  • Online Adaptation: Currently, residual learning happens offline between runs. Transitioning to real-time, online adaptation would further enhance the robot's resilience in dynamic environments.

Summary updated

BibTeX
@inproceedings{rodriguez2022neural,
  author = {Ivan Dario Jimenez Rodriguez and Noel Csomay-Shanklin and Yisong Yue and Aaron D. Ames},
  title = {{Neural Gaits: Learning Bipedal Locomotion via Control Barrier Functions and Zero Dynamics Policies}},
  booktitle = {L4DC},
  year = {2022},
}
Figure