Leveraging Symmetry in RL-based Legged Locomotion Control

Zhi Su, Xiaoyu Huang, Daniel Felipe Ordoñez Apraez, Yunfei Li, Zhongyu Li, Qiayuan Liao, Giulio Turrisi, Massimiliano Pontil, Claudio Semini, Yi Wu, Koushil Sreenath

Abstract

Standard reinforcement learning (RL) approaches for legged locomotion often treat robots as black-box systems, ignoring the inherent physical symmetries of their hardware. This oversight frequently results in sub-optimal "limping" gaits, poor sample efficiency, and unstable sim-to-real transfer. This paper investigates the integration of hard equivariance constraints directly into the neural network architecture. By utilizing Equivariant Multi-Layer Perceptrons (EMLP) within a Proximal Policy Optimization (PPO) framework—termed PPOeqic—the authors demonstrate that enforcing mathematical symmetry outperforms simple data augmentation. The resulting policies exhibit faster training convergence, more natural gait patterns, and robust zero-shot generalization across symmetric tasks in both simulation and real-world hardware deployments.

Introduction

Legged robots, such as quadrupeds and bipeds, are almost universally designed with bilateral symmetry. Despite this, model-free RL agents typically must discover this symmetry through trial and error. Because the agent starts with no prior knowledge of the robot's morphology, it often explores asymmetric state spaces unequally. This leads to several critical failures: the emergence of asymmetric gaits (limping), high sample complexity as the agent learns redundant tasks (e.g., turning left vs. turning right), and a lack of robustness when transitioning from the idealized physics of a simulator to the complexities of the real world.

To address these issues, this research explores the transition from "soft" symmetry—where the agent is shown mirrored data—to "hard" symmetry, where the network architecture itself is incapable of producing asymmetric outputs for symmetric inputs.

Methodology

The study compares three distinct approaches to training locomotion policies:

  1. Vanilla PPO: A standard baseline where the policy has no inherent knowledge of the robot's symmetry.
  2. PPOaug (Data Augmentation): A soft constraint approach where the training buffer is augmented with mirrored versions of every experienced transition. While this encourages symmetry, the underlying network can still represent asymmetric functions.
  3. PPOeqic (Hard Constraints): The primary contribution of this work. This method utilizes Equivariant Multi-Layer Perceptrons (EMLP). In this architecture, the policy is mathematically constrained to be equivariant: if the input state is mirrored, the output action is mirrored identically. Conversely, the value function is constrained to be invariant, ensuring the estimated "value" of a state remains identical to its mirrored counterpart.

Beyond spatial symmetry, the authors incorporate temporal symmetry by introducing a phase signal ($\psi$) into the state. This signal helps the robot coordinate periodic movements, such as walking cycles, and prevents the policy from becoming trapped in "neutral states" where a lack of movement would otherwise satisfy symmetry constraints.

Experimental Evaluation

The methods were rigorously tested in the Isaac Gym simulator across four diverse tasks using Xiaomi CyberDog 2 and Unitree Go1 platforms:

  • Door Pushing: A complex loco-manipulation task requiring the robot to stand on its hind legs and use its front legs to open doors swinging in either direction.
  • Dribbling: Maneuvering a soccer ball to match a target velocity.
  • Stand Turning: Executing 90-degree turns while balanced on two legs.
  • Slope Walking: Bipedal locomotion up an 11.3° incline.

Validation was extended to real-world hardware to assess the effectiveness of sim-to-real transfer, particularly focusing on whether symmetric inductive biases lead to more stable physical deployments.

Key Insights and Results

Hard Constraints vs. Soft Augmentation

The experimental results consistently favored PPOeqic over PPOaug. While data augmentation provides some benefit, the hard constraints of EMLP provide a stronger inductive bias. This allows the model to reach higher reward thresholds with significantly fewer samples. In the Door Pushing task, PPOeqic achieved a mean success rate 4.47% higher than vanilla PPO and maintained a much lower "Symmetric Index," indicating balanced performance across left and right tasks.

Zero-Shot Generalization

One of the most striking findings was the capacity for zero-shot generalization. An equivariant policy trained exclusively on right-opening doors was able to open left-opening doors perfectly on the first attempt. Because the network architecture treats the two scenarios as mathematically equivalent, it does not need to "learn" the second half of the problem space.

Gait Quality and Sim-to-Real Transfer

In the Slope Walking task, PPOeqic maintained a consistent foot-exchange pattern and achieved 20% higher accuracy in matching desired velocities compared to PPOaug. More importantly, the symmetry acted as a regularizer against simulation artifacts. Vanilla PPO often "overfit" to imprecise contact models in the simulator, leading to gaits that caused the real robot to fall. In contrast, the symmetric policies produced physically sound behaviors that transferred seamlessly to the CyberDog 2 and Unitree Go1 hardware.

Limitations and Future Work

While PPOeqic showed superior performance, it relies on the assumption of perfect hardware symmetry. In practice, robots may have slight mass imbalances or actuator discrepancies. The authors noted that PPOaug was occasionally more robust to these internal asymmetries because it is less rigid. Future research may explore hybrid models that combine the efficiency of hard constraints with the flexibility of soft augmentation to handle real-world imperfections. Additionally, expanding these methods to more complex symmetry groups, such as the rotational symmetries found in hexapods, remains a promising avenue for development.

Conclusion

By embedding physical symmetry directly into the neural architecture, PPOeqic transforms symmetry from a property to be learned into a fundamental constraint of the controller. This approach significantly improves sample efficiency, gait naturalness, and the reliability of sim-to-real transfer, providing a robust framework for the next generation of legged robotic controllers.

Summary updated

BibTeX
@inproceedings{su2024leveraging,
  author = {Zhi Su and Xiaoyu Huang and Daniel Felipe Ordoñez Apraez and Yunfei Li and Zhongyu Li and Qiayuan Liao and Giulio Turrisi and Massimiliano Pontil and Claudio Semini and Yi Wu and Koushil Sreenath},
  title = {{Leveraging Symmetry in RL-based Legged Locomotion Control}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=2dA35QOhJE},
}
Figure