One Policy but Many Worlds: A Scalable Unified Policy for Versatile Humanoid Locomotion

Yahao Fan, Tianxiang Gui, Kaiyang Ji, Shutong Ding, Chixuan Zhang, Jiayuan Gu, Jingyi Yu, Jingya Wang, Ye Shi · OpenReview

Abstract

Humanoid locomotion faces a critical scalability challenge: traditional reinforcement learning (RL) methods require task-specific rewards and struggle to leverage growing datasets, even as more training terrains are introduced. We propose DreamPolicy, a unified framework that enables a single policy to master diverse terrains and generalize zero-shot to unseen scenarios by systematically integrating offline data and diffusion-driven motion synthesis. At its core, DreamPolicy introduces Humanoid Motion Imagery (HMI) - future state predictions synthesized through an autoregressive terrain-aware diffusion planner curated by aggregating rollouts from specialized policies across various distinct terrains. Unlike human motion datasets requiring laborious retargeting, our data directly captures humanoid kinematics, enabling the diffusion planner to synthesize "dreamed" trajectories that encode terrain-specific physical constraints. These trajectories act as dynamic objectives for our HMI-conditioned policy, bypassing manual reward engineering and enabling cross-terrain generalization. DreamPolicy addresses the scalability limitations of prior methods: while traditional RL fails to exploit growing datasets, our framework scales seamlessly with more offline data. As the dataset expands, the diffusion prior learns richer locomotion skills, which the policy leverages to master new terrains without retraining. Experiments demonstrate that DreamPolicy achieves average 90% success rates in training environments and an average of 20% higher success on unseen terrains than the prevalent method. It also generalizes to perturbed and composite scenarios where prior approaches collapse. By unifying offline data, diffusion-based trajectory synthesis, and policy optimization, DreamPolicy overcomes the "one task, one policy" bottleneck, establishing a paradigm for scalable, data-driven humanoid control.

Introduction

Humanoid robots are notoriously difficult to control because they are high-dimensional, unstable, and sensitive to terrain. Traditional Reinforcement Learning (RL) typically falls into the "one task, one policy" trap: a robot trained to climb stairs often fails when it hits a slope. To fix this, researchers usually resort to "reward engineering" or "policy distillation," but these methods are brittle and fail to scale with larger datasets.

Conceptual overview of DreamPolicy: a single policy masters diverse terrains by "dreaming" future motion imagery.

DreamPolicy addresses this scalability bottleneck by turning "more data" into "better generalization." It decouples motion planning—via a terrain-aware diffusion model—from physical execution, allowing the system to master diverse and unseen terrains by "dreaming" its future states.

Methodology

The DreamPolicy framework operates in three distinct stages, as illustrated in the system architecture below.

The DreamPolicy architecture: (Top-Left) Expert skill collection, (Bottom-Left) Terrain-aware diffusion planning, (Right) HMI-conditioned unified policy training.
  1. Expert Skill Collection: Specialized RL experts are trained on six distinct terrains (Flat, Gap, Stair, Bridge, Parkour, and Uneven), generating a dataset of 75 million physically feasible state-action samples.
  2. Humanoid Motion Imagery (HMI): An autoregressive diffusion planner is trained on this dataset. Given the robot's history and a local terrain map, this model synthesizes ("dreams") a future trajectory. By training on diverse experts, the planner can blend skills to handle novel scenarios.
  3. HMI-Conditioned Unified Policy: A single RL policy is trained to follow these "dreamed" trajectories. Using an Adversarial Motion Prior (AMP) reward, a discriminator evaluates if the robot's movement matches the style of the diffusion-generated imagery, bypassing manual reward design.

Data and Benchmarking

The study utilizes two primary data components:

  • Expert Kinematic Dataset: 75 million samples capturing native humanoid kinematics across six terrain types. This avoids the "retargeting" issues common with human motion capture data.
  • Modular Terrain Benchmark: A suite of over a dozen specialized and composite terrains (e.g., Wave-Gap, Slope-Bridge) designed to test zero-shot generalization.

Key Insights and Results

DreamPolicy demonstrates that scaling is the secret sauce for humanoid control. Success rates on complex terrains like "Slope-Bridge" improved from 15% to over 72% as the dataset grew from 120k to 75M samples, whereas traditional RL often plateaus.

By decoupling planning and execution, the framework achieves:

  • High Success Rates: An average 90% success rate across all training environments.
  • Superior Generalization: Outperforming "Distillation-PPO" by 20% on unseen terrains.
  • Zero-Shot Composition: The ability to synthesize motions for novel combinations, like a "Wave-Bridge," by interpolating between known skills.
  • Robustness: Maintaining a 45% success rate in composite "Wave-Gap" scenarios where prior methods collapse to near zero.

Limitations and Future Work

While effective, DreamPolicy has areas for improvement. The current MLP-based terrain encoding could be replaced with spatially-aware encoders like CNNs or Transformers. Additionally, the reliance on planner predictions introduces perception latency; future work will explore lightweight samplers or distillation to reduce inference time for real-world hardware deployment.

Summary updated

Abstract

Humanoid locomotion faces a critical scalability challenge: traditional reinforcement learning (RL) methods require task-specific rewards and struggle to leverage growing datasets, even as more training terrains are introduced. We propose DreamPolicy, a unified framework that enables a single policy to master diverse terrains and generalize zero-shot to unseen scenarios by systematically integrating offline data and diffusion-driven motion synthesis. At its core, DreamPolicy introduces Humanoid Motion Imagery (HMI) - future state predictions synthesized through an autoregressive terrain-aware diffusion planner curated by aggregating rollouts from specialized policies across various distinct terrains. Unlike human motion datasets requiring laborious retargeting, our data directly captures humanoid kinematics, enabling the diffusion planner to synthesize "dreamed" trajectories that encode terrain-specific physical constraints. These trajectories act as dynamic objectives for our HMI-conditioned policy, bypassing manual reward engineering and enabling cross-terrain generalization. DreamPolicy addresses the scalability limitations of prior methods: while traditional RL fails to exploit growing datasets, our framework scales seamlessly with more offline data. As the dataset expands, the diffusion prior learns richer locomotion skills, which the policy leverages to master new terrains without retraining. Experiments demonstrate that DreamPolicy achieves average 90% success rates in training environments and an average of 20% higher success on unseen terrains than the prevalent method. It also generalizes to perturbed and composite scenarios where prior approaches collapse. By unifying offline data, diffusion-based trajectory synthesis, and policy optimization, DreamPolicy overcomes the "one task, one policy" bottleneck, establishing a paradigm for scalable, data-driven humanoid control.
BibTeX
@misc{fan2025one,
  author = {Yahao Fan and Tianxiang Gui and Kaiyang Ji and Shutong Ding and Chixuan Zhang and Jiayuan Gu and Jingyi Yu and Jingya Wang and Ye Shi},
  title = {{One Policy but Many Worlds: A Scalable Unified Policy for Versatile Humanoid Locomotion}},
  year = {2025},
  eprint = {2505.18780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18780},
}
Figure