Concurrent Hierarchical Reinforcement Learning

Bhaskara Marthi, Stuart J. Russell, David Latham, Carlos GuestrinIJCAI 2005

Introduction

Reinforcement Learning (RL) has long faced a significant hurdle known as the "curse of dimensionality." As the number of agents or "effectors" (such as a squad of robots or units in a strategy game) increases, the space of possible joint actions grows exponentially ($A^N$), making standard RL computationally intractable. This paper introduces Concurrent ALisp, a multithreaded programming language designed to bridge the gap between high-level human intuition and low-level machine learning. By allowing developers to write "partial programs" that define the broad structure of a task while leaving the optimization of coordination to the agent, Concurrent ALisp enables the solution of complex, multi-effector problems that were previously unsolvable.

The Challenge of Multi-Effector Coordination

Traditional Hierarchical Reinforcement Learning (HRL) simplifies tasks by breaking them into sub-tasks. However, most existing HRL frameworks are single-threaded, requiring programmers to perform complex manual "bookkeeping" to manage multiple simultaneous activities. Furthermore, standard HRL lacks a robust mechanism for handling interactions between different effectors—such as two units colliding or competing for the same resource—without sacrificing the benefits of the hierarchy. The authors aim to provide a natural way to express prior knowledge about concurrent tasks while ensuring the agent can still learn an optimal global policy.

Methodology: Concurrent ALisp

The core innovation of this work is the extension of the Lisp-based ALisp language to support multithreading. Key components include:

  • Multithreaded Partial Programs: Instead of a single control loop, the agent executes multiple threads. Each thread represents a specific task (e.g., "gather gold") and is assigned one or more effectors (e.g., specific peasants).
  • Joint Choice Semantics: When multiple threads reach a decision point (a choose statement), the system treats them as a single "joint choice" within a semi-Markov decision process (SMDP) framework.
  • Task-Based Threading: Mapping threads to tasks rather than physical units allows for "coordination threads" that manage high-level strategy without directly controlling units.
Hierarchy of task threads in Concurrent ALisp

To address the exponential explosion of joint actions, the authors utilize coordination graphs. These graphs allow the agent to optimize combinations of actions by only considering effectors that actually interact in a given context (e.g., units in close proximity), rather than evaluating every possible combination across the entire environment.

Experimental Setup

The framework was evaluated in two distinct environments:

  1. The Resource Domain: A custom grid-world where peasants gather wood and gold. This domain tests the agent's ability to avoid collisions and manage basic resource cycles.
  2. Stratagus: A complex, open-source Real-Time Strategy (RTS) engine. Here, the agent must manage a base, train units (peasants and footmen), build structures (barracks), and coordinate an attack to defeat an enemy.

Key Results and Performance

The empirical results demonstrate a stark contrast between Concurrent ALisp and "flat" (non-hierarchical) RL. In the Resource domain with four peasants, the hierarchical approach achieved a functional policy in just 100 steps, whereas flat RL required 75,000 steps to reach a comparable level of performance.

Performance comparison between hierarchical and flat Q-learning

In the more complex Stratagus domain, the agent successfully learned sophisticated "pipelining" behaviors. It did not merely perform tasks in a sequence; it learned to gather resources while simultaneously constructing buildings and training an army, eventually launching coordinated attacks. In larger-scale tests (e.g., 20 peasants), flat RL failed to learn any reasonable policy, while Concurrent ALisp approached human-expert performance levels.

Conclusion and Future Work

Concurrent ALisp demonstrates that combining multithreaded programming with HRL provides a powerful abstraction for complex multi-agent tasks. By leveraging context-specific coordination and task-based threading, the system scales to domains that are far beyond the reach of standard RL.

Future work includes refining functional reward decomposition, which would allow rewards to be localized to specific threads for even faster learning. Additionally, the authors suggest that moving from model-free Q-learning to model-based methods could enable lookahead capabilities, further improving decision quality in dynamic environments.

Summary updated

BibTeX
@inproceedings{marthi2005concurrent,
  author = {Bhaskara Marthi and Stuart J. Russell and David Latham and Carlos Guestrin},
  title = {{Concurrent Hierarchical Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
  url = {https://openreview.net/forum?id=H1ZsSXfubr},
}
Figure