Contrastive Representation Learning for Robust Sim-to-Real Transfer of Adaptive Humanoid Locomotion

Yidan Lu, Rurui Yang, Qiran Kou, Mengting Chen, Tao Fan, Peter Cui, Yinzhao Dong, Peng LuarXiv 2025 · DOI

Abstract

Achieving robust humanoid locomotion across diverse terrains remains a significant challenge due to the "information gap" between simulation and the real world. While simulators provide privileged environmental data, real-world robots often rely solely on proprioception. We present CRA-Loco, a framework that utilizes contrastive representation learning to distill privileged simulation data into a purely proprioceptive policy. Our approach enables the Adam Lite humanoid to achieve zero-shot sim-to-real transfer, successfully navigating 30 cm steps and 26.5° slopes without external perception sensors like cameras or LiDAR.

Introduction

Humanoid locomotion typically faces a trade-off between reactive control and perception-driven planning. Reactive systems are robust but "blind," responding only after encountering obstacles. Perception-driven systems offer foresight but introduce computational lag and hardware complexity. This work addresses the "fundamental information gap" by training a robot to "see" the terrain through its own body movements. By aligning internal sensor data with privileged environmental features during simulation, the robot develops an implicit understanding of its surroundings.

Methodology: The CRA-Loco Framework

The core of our approach is an Asymmetric Actor-Critic framework enhanced by Contrastive Knowledge Distillation.

Asymmetric Training and Contrastive Learning

During training in simulation, a "Critic" network has access to privileged information, such as detailed height maps and ground friction. The "Actor" network, which serves as the robot's controller, only receives proprioceptive observations. To bridge this gap, we employ a contrastive loss (InfoNCE) to align the Actor’s latent representations with the Critic’s privileged features. This process forces the robot to associate specific patterns in joint dynamics and balance with environmental characteristics, effectively using proprioception as a proxy for vision.

The CRA-Loco architecture utilizes asymmetric actor-critic training and contrastive learning to bridge the gap between privileged simulation data and real-world proprioception.

Adaptive Gait Mechanism

To further enhance stability, we implement an Adaptive Gait Clock. Unlike rigid, fixed-frequency walking cycles, our policy dynamically adjusts the frequency and phase of the gait. By sensing terrain difficulty through its distilled representations, the robot can proactively lift its feet higher or adjust its pace to maintain balance on uneven ground.

Experimental Results

The framework was validated using the Adam Lite humanoid, a 1.6-meter tall, 60kg robot with 25 degrees of freedom. Training was conducted in Isaac Gym with 4,096 parallel instances over a curriculum of increasing terrain difficulty.

Robust Sim-to-Real Transfer

The learned policy demonstrated exceptional zero-shot transfer capabilities. In real-world tests, the Adam Lite robot successfully climbed 30 cm stairs and navigated 26.5° slopes. These results represent significant milestones for a humanoid of this scale operating without active vision.

The Adam Lite humanoid successfully navigating a 30 cm step sequence in the real world, demonstrating the robustness of the zero-shot transferred policy.

Learning Efficiency and Performance

CRA-Loco exhibited superior learning efficiency, reaching maximum terrain difficulty levels in simulation significantly faster than baseline methods. Furthermore, the policy maintained a high success rate (>75%) even at elevated command velocities on challenging terrain, where traditional policies often fail.

Conclusion and Future Work

CRA-Loco demonstrates that contrastive representation learning can effectively distill environmental awareness into proprioceptive controllers. While the current system is dependent on physical contact or near-contact dynamics to "sense" terrain, it provides a robust foundation for blind locomotion. Future research will explore the integration of upper-body dynamics and the handling of highly dynamic or deformable terrains.

Summary updated

BibTeX
@misc{lu2025contrastive,
  author = {Yidan Lu and Rurui Yang and Qiran Kou and Mengting Chen and Tao Fan and Peter Cui and Yinzhao Dong and Peng Lu},
  title = {{Contrastive Representation Learning for Robust Sim-to-Real Transfer of Adaptive Humanoid Locomotion}},
  year = {2025},
  eprint = {2509.12858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.12858},
}
Figure