Abstract
Cooperative multi-agent reinforcement learning (MARL) is often hindered by non-stationarity and the difficulty of learning from sparse, non-Markovian rewards. This paper introduces MAHRM (Multi-Agent Reinforcement Learning with a Hierarchy of Reward Machines), a framework that organizes tasks into a hierarchy of finite-state automata. By decomposing complex team objectives into simpler, manageable subtasks and leveraging prior knowledge of high-level events, MAHRM enables agents to coordinate on concurrent actions and solve problems that are intractable for traditional MARL methods.
Introduction
In cooperative MARL, multiple agents must learn to work together to achieve a common goal. This environment is inherently non-stationary because each agent's learning process changes the environment for others. Furthermore, many tasks require long sequences of specific actions to trigger a reward, making exploration difficult. While Reward Machines (RMs) have been used to model these non-Markovian rewards, a single RM for a complex team task often suffers from a state-space explosion. MAHRM addresses this "curse of dimensionality" by using a hierarchy of RMs to distribute complexity across the team.
The MAHRM Framework
The core innovation of MAHRM is the Hierarchy of Reward Machines. Instead of a monolithic machine, the joint task is decomposed into a Directed Acyclic Graph (DAG) of propositions. This structure allows for:
- Temporal Abstraction: Tasks are split into levels, where higher levels represent complex sequences and lower levels represent primitive actions.
- Subtask Assignment: Propositions are assigned to specific groups of agents, allowing for localized coordination without requiring every agent to track the entire team's state.
- Search Space Pruning: The internal logic of the RMs is used to filter out irrelevant or impossible actions at any given state, accelerating the learning process by preventing agents from choosing "unreasonable" options.
Hierarchical Reward Machines
MAHRM utilizes different types of RMs to manage task complexity. Primitive RMs track simple events, while higher-level RMs track the progress of complex subtasks or the overall joint mission. This decomposition allows the system to handle concurrent events—where multiple high-level milestones are reached simultaneously—which is a significant advancement over previous RM-based approaches that assumed events occurred sequentially.
Experimental Evaluation
The authors tested MAHRM in three simulated domains: Navigation, Minecraft, and the PASS domain.
- PASS Domain: This high-coordination grid world requires agents to open doors for each other by pressing specific buttons in a precise sequence. MAHRM was the only method capable of learning a successful policy; baselines failed because the team RM was too large (32 states) or rewards were too sparse for random exploration.
- Scalability: In navigation tasks, MAHRM maintained high efficiency as the number of agents increased from 2 to 5, whereas baselines struggled with state-space explosion.
- Efficiency: In Minecraft, MAHRM reached optimal performance significantly faster than independent Q-learning approaches by exploiting the logical requirements of the manufacturing tasks.
Conclusion
MAHRM provides a robust framework for solving complex, interdependent multi-agent tasks by organizing Reward Machines into a hierarchy. While currently dependent on hand-crafted hierarchies, it demonstrates superior performance in coordination and scalability. Future research aims to automate the discovery of these hierarchical structures directly from agent experience, removing the need for human-defined task structures.
Summary updated