Hierarchical Reinforcement Learning of Locomotion Policies in Response to Approaching Objects: A Preliminary Study

Shangqun Yu, Sreehari Rammohan, Kaiyu Zheng, George Dimitri KonidarisarXiv 2022 · DOI

Abstract

Achieving reactive control in legged robots remains a significant challenge in robotics, particularly when dealing with dynamic environments and partial observability. This study investigates the efficacy of Hierarchical Reinforcement Learning (HRL) in training an 8-degree-of-freedom "ant" robot to dodge approaching projectiles. By decoupling high-level navigation from low-level motor control, we demonstrate that HRL agents can efficiently learn complex reactive behaviors that standard end-to-end reinforcement learning fails to acquire. Our results show that HRL agents achieve near-perfect dodging performance even with limited visibility, highlighting the importance of hierarchical structures for sample-efficient learning in multi-modal robotic tasks.

Introduction

In nature, animals exhibit remarkable reactive control, instantly responding to predators or environmental hazards. Replicating this in robotics is difficult due to two primary hurdles: sparse rewards and partial observability. In a "dodge ball" scenario, a robot typically only receives feedback upon failure (being hit), making it difficult to associate specific joint movements with successful avoidance. Furthermore, real-world sensors often provide a limited field of view, requiring agents to react urgently to late-appearing threats.

This paper explores whether a hierarchical approach—separating the decision of where to go from the mechanics of how to move—can overcome these challenges.

Methods: Hierarchical Architecture

The researchers employed a Feudal Reinforcement Learning framework, partitioning the control system into two distinct layers:

  1. Low-Level Controller (LLC): Pre-trained to master basic locomotion, the LLC acts as the "worker." It receives a 2D direction vector (subgoal) and outputs joint velocities to move the robot in that direction.
  2. High-Level Controller (HLC): Acting as the "manager," the HLC observes the environment—including the robot's state and the projectile's position/velocity—and outputs the 2D subgoal for the LLC.
Schematic of the hierarchical reinforcement learning framework, showing the interaction between the environment, high-level controller, and low-level controller.

Both layers utilize the Soft Actor-Critic (SAC) algorithm. By leveraging a pre-trained LLC, the HLC avoids the need to re-learn fundamental walking mechanics, focusing instead on the high-level strategy required to avoid collisions.

Experimental Setup

The study utilized the MuJoCo physics engine to create two primary environments:

  • Reach Target Task: A pre-training phase where the LLC learns to move toward random targets.
  • Dodge Ball Task: The evaluation phase where a ball is fired at the agent every 100 steps. A penalty of -5 is assessed for hits.

Performance was evaluated under two visibility conditions: Fully Observable (constant ball tracking) and Partially Observable (the ball is only visible within a 4-meter radius).

Key Results and Discussion

The hierarchical approach demonstrated a clear advantage in both learning speed and final performance. While standard end-to-end models failed to learn meaningful dodging behaviors—often resulting in ineffective "jittering" policies—the HRL agents converged rapidly.

Average return over training epochs for HRL and end-to-end baselines under full and partial observability.

As shown in the learning curves, HRL agents reached a cumulative reward near zero within the first 250 epochs, indicating they successfully dodged nearly every projectile. Crucially, this success extended to the partially observable setting; the HRL agent simply adapted by reacting later and more decisively once the ball entered its field of view.

Insights

  • Locomotion as a Prerequisite: Pre-training low-level skills serves as a critical "prior experience" that simplifies the credit assignment problem for the high-level task.
  • Efficiency: The HRL model's ability to connect high-level directions to outcomes, rather than individual joint torques, makes it significantly more sample-efficient than flat architectures.

Conclusion and Future Work

This preliminary study confirms that HRL is a robust framework for learning reactive locomotion. By abstracting motor control, robots can focus on strategic navigation in dynamic environments. Future research will aim to bridge the simulation-to-reality gap by deploying this framework on physical hardware, introducing more complex projectile dynamics, and handling multiple simultaneous objects.

Summary updated

BibTeX
@misc{yu2022hierarchical,
  author = {Shangqun Yu and Sreehari Rammohan and Kaiyu Zheng and George Dimitri Konidaris},
  title = {{Hierarchical Reinforcement Learning of Locomotion Policies in Response to Approaching Objects: A Preliminary Study}},
  year = {2022},
  eprint = {2203.10616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.10616},
}
Figure