Emergence of Locomotion Behaviours in Rich Environments

Nicolas Heess, Dhruva Tb, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, S. M. Ali Eslami, Martin A. Riedmiller, David SilverarXiv 2017

Abstract

Traditional reinforcement learning (RL) for locomotion often relies on complex, hand-crafted reward functions to achieve lifelike movement. This research demonstrates that sophisticated behaviors—such as jumping, crouching, and obstacle avoidance—can emerge from simple "move forward" rewards when agents are trained in sufficiently rich and diverse environments. By utilizing Distributed Proximal Policy Optimization (DPPO), we show that high-dimensional agents can learn robust motor skills that generalize to unseen terrain variations.

Introduction

In the field of simulated locomotion, "reward engineering" has long been a bottleneck. Designing reward functions that encourage specific gaits or postures is a brittle process; minor adjustments often lead to non-functional or unnatural behaviors. Furthermore, agents trained in sterile, flat environments frequently fail when introduced to even minor perturbations.

This paper explores an alternative hypothesis: can environmental complexity replace reward complexity? By shifting the burden of behavior shaping from the reward function to the environment, we aim to create a natural curriculum where an agent must discover complex motor skills simply to continue making progress.

Methodology

Distributed Proximal Policy Optimization (DPPO)

To handle the high-dimensional state spaces of complex agents like the 28-DOF Humanoid, we introduce Distributed Proximal Policy Optimization (DPPO). DPPO extends the stability of trust-region methods (like TRPO and PPO) to a distributed setting. Multiple parallel workers collect experience and compute gradients independently. These gradients are then synchronized and applied to a global model, providing the scalability of asynchronous methods like A3C without sacrificing the stability of proximal updates.

Policy Architecture

The agent's policy is structured to separate internal and external sensing. The neural network architecture is split into two primary streams: one processing proprioceptive data (internal states such as joint angles and velocities) and another processing exteroceptive data (external terrain information). This modularity allows the agent to maintain basic balance and posture independently of the specific navigational challenges presented by the terrain.

Schematic of the policy network architecture showing the separation of proprioceptive (internal) and exteroceptive (external) inputs.

Experimental Setup

Agents were trained using the MuJoCo physics engine across several procedurally generated courses, including:

  • Hurdles: Obstacles of varying dimensions.
  • Gaps: Voids in the floor requiring jumping.
  • Platforms: Structures requiring vertical navigation or crouching.
  • Variable Terrain: Ramps, hills, and irregular "rumble strips."

We evaluated three distinct agent types: a 2D Planar Walker, a 3D Quadruped, and a 3D Humanoid. In all cases, the primary reward signal was simply the agent's forward velocity along the x-axis.

Results and Discussion

Scalability and Performance

DPPO demonstrated excellent scaling properties. As shown in the performance benchmarks, increasing the number of parallel workers significantly reduced the wall-clock time required to reach high return thresholds. DPPO achieved performance parity with TRPO while benefiting from the speed of distributed computation.

Performance benchmarks across Planar Walker, Humanoid, and Reacher tasks, illustrating how DPPO scales with worker counts.

Emergent Robustness

Agents trained in rich environments developed significantly more robust gaits than flat-ground baselines. For example, the Planar Walker naturally discovered how to crouch to pass under low-hanging obstacles and how to time jumps to clear gaps. When tested on novel, unobserved terrain variations (e.g., slippery surfaces), the "rich environment" agents maintained their stability, whereas flat-ground agents failed immediately. This suggests that environmental diversity acts as a form of regularization, preventing the agent from overfitting to a single gait.

Conclusion

This work highlights the power of environmental complexity in shaping autonomous behavior. By providing a diverse set of physical challenges and a scalable learning algorithm, we can move away from brittle reward engineering toward emergent, robust locomotion. Future work will explore combining these rich environments with motion-capture data to guide agents toward more human-like movement while retaining the robustness discovered through environmental interaction.

Summary updated

BibTeX
@misc{heess2017emergence,
  author = {Nicolas Heess and Dhruva TB and Srinivasan Sriram and Jay Lemmon and Josh Merel and Greg Wayne and Yuval Tassa and Tom Erez and Ziyu Wang and S. M. Ali Eslami and Martin A. Riedmiller and David Silver},
  title = {{Emergence of Locomotion Behaviours in Rich Environments}},
  year = {2017},
  eprint = {1707.02286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.02286},
}
Figure