Sim-to-Real Learning of All Common Bipedal Gaits via Periodic Reward Composition

Jonah Siekmann, Yesh Godse, Alan Fern, Jonathan W. Hurst

TL;DR

Researchers at Oregon State University have developed a "Periodic Reward Composition" framework that allows bipedal robots to learn a full spectrum of gaits—walking, running, hopping, and skipping—without requiring any motion-capture data or reference trajectories. By using probabilistic timers to penalize foot forces during swing phases and velocities during stance phases, they trained a single policy capable of smoothly transitioning between different gaits on the Cassie bipedal robot in the real world.

What Problem Does This Paper Address?

Teaching a bipedal robot to move naturally is a "Goldilocks" problem in Reinforcement Learning (RL).

On one hand, reference-based rewards use human or animal motion-capture data to "guide" the robot. While this produces realistic movement, it is incredibly restrictive; the robot struggles to adapt to terrain the original actor didn't encounter, and high-quality reference data for robots with non-humanoid proportions (like the bird-like Cassie) is hard to find.

On the other hand, reference-free rewards (e.g., "just move forward") often lead to "unnatural" or unstable behaviors. Designers often end up in a cycle of "reward shaping"—manually tweaking dozens of hyperparameters through trial and error—to get a specific gait to work, only to find that those settings don't work for a different gait.

This paper seeks a middle ground: a principled, intuitive way to specify what a gait should look like (its periodic structure) without dictating exactly how every joint should move.

Methods

The core innovation is Periodic Reward Composition. The authors define gaits as a sequence of periodic phases (swing and stance) for each foot.

  1. The Periodic Clock: Time is indexed via a cycle variable $\phi$ (from 0 to 1).
  2. Probabilistic Phase Indicators: Instead of hard "on/off" switches for phases, they use Von Mises distributions (essentially "wrapped" normal distributions for circular data). This creates "fuzzy" boundaries at the transitions between stepping and swinging, which smooths the reward signal and makes RL training much more stable.
  3. Force and Velocity Costs:
    • During a swing phase, the reward penalizes foot forces (encouraging the robot to lift its foot).
  4. During a stance phase, the reward penalizes foot velocity (encouraging the robot to keep its foot planted).
  5. Policy Architecture: They use a Recurrent Neural Network (LSTM) trained via Proximal Policy Optimization (PPO). The policy is "conditioned" on gait parameters (like phase ratios and offsets), allowing it to understand which gait it is supposed to be performing.
  6. Sim-to-Real: To ensure the simulation-trained brain works on the physical Cassie robot, they used Dynamics Randomization, varying factors like joint friction, mass, and ground slope during training.

Datasets

As a robotics paper focused on control, it does not use a traditional "dataset" in the computer vision sense. Instead, it utilizes:

  • Simulation Environment: The cassie-mujoco-sim, based on the MuJoCo physics engine, was used for all training.
  • Hardware Evaluation: The learned policies were deployed on the Cassie bipedal robot for real-world testing on various terrains (sidewalks, grass, stairs).

Key Insights and Ideas

  • Gaits are Timing, Not Trajectories: You don't need to tell a robot where its knee should be at 0.5 seconds. You just need to tell it when the foot should be on the ground and when it should be in the air. The physics of the robot and the RL optimizer will figure out the most efficient trajectory to satisfy those timing constraints.
  • Smoothing the Boundaries: The use of Von Mises distributions to create probabilistic reward windows is a clever way to handle the inherent uncertainty of contact. It prevents the "jitter" that often occurs when RL agents deal with hard-coded logic gates.
  • Unified Control: By providing the gait parameters (phase ratios and offsets) as inputs to the neural network, the authors created a single "universal" policy. This policy doesn't just know how to walk or run; it understands the relationship between them, allowing for smooth transitions (e.g., shifting from a walk into a gallop).

Key Results

  • Diverse Gait Library: The framework successfully produced standing, walking, running, hopping, galloping, and skipping.
  • Smooth Transitions: The robot could transition between any two-beat gait (like hopping to walking) in real-time.
  • Blind Robustness: Despite having no cameras or LiDAR (the robot is "effectively blind"), Cassie could navigate curbs, bumps, and stairs by relying on the robustness of the learned periodic motion.
  • Force Profile Priority: Unlike position-based controllers, this method prioritizes the "force profile." In tests, the robot's feet were compliant to the slope of the ground, slipping off ledges safely rather than rigidly trying to hit a pre-defined coordinate.

Limitations and Future Work

  • Manual Parameter Selection: While more intuitive than traditional reward shaping, a human still has to define the phase ratios and offsets for a "skipping" gait vs. a "running" gait.
  • The "Stutter" Problem: In early versions of the multi-gait policy, the robot would sometimes "stutter" (vibrate its feet) instead of hopping. The authors had to add specific "transition penalties" (like a hop symmetry cost) to force the robot to prefer clean, distinct gaits.
  • Morphology Limits: This work focused on bipeds. While the authors suggest it could work for quadrupeds, the complexity of coordinating four legs with this framework remains to be tested.
  • Aperiodic Motion: The current framework is strictly for periodic (repeating) motions. It wouldn't naturally handle one-off movements like a jump over a wide gap or a recovery from a major fall without further modification.

Summary updated

BibTeX
@inproceedings{siekmann2021sim,
  author = {Jonah Siekmann and Yesh Godse and Alan Fern and Jonathan W. Hurst},
  title = {{Sim-to-Real Learning of All Common Bipedal Gaits via Periodic Reward Composition}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9561814},
}
Figure