Extended Markov Games to Learn Multiple Tasks in Multi-Agent Reinforcement Learning

Borja G. León, Francesco Belardinelli

Introduction

Multi-agent reinforcement learning (MARL) has seen significant success in competitive and cooperative games. However, many real-world scenarios require agents to complete complex, multi-step tasks defined by high-level logical specifications. This paper introduces Extended Markov Games (EMGs), a formal framework that enables multiple agents to collaborate on tasks specified by Linear Temporal Logic (LTL).

The Challenge of Non-Markovian Rewards

Standard Reinforcement Learning (RL) typically relies on the Markov property, assuming the current state provides all necessary information for decision-making. However, many tasks are inherently non-Markovian, where rewards depend on the history of actions. For instance, in a manufacturing task, an agent should only be rewarded for "assembling a product" if it has previously "collected raw materials."

In multi-agent settings, this is further complicated by environment non-stationarity and scalability issues. This research bridges the gap by providing a mathematical framework to handle complex logical specifications within the dynamics of Markov Games.

Methodology

The authors propose a two-fold approach involving theoretical modeling and decentralized algorithms.

Extended Markov Games (EMGs)

The core innovation is the transformation of a Non-Markovian Reward Game (NMRG) into an equivalent EMG. This is achieved by augmenting the environment's state with the state of a Deterministic Finite Automaton (DFA). The DFA tracks progress toward LTL goals; as agents complete sub-goals, the DFA transitions, effectively converting a memory-based task into a state-based one solvable by standard RL techniques.

Logic-Based MARL Algorithms

Two decentralized algorithms are introduced:

  1. I-DQN-l: An independent version of Deep Q-Networks that utilizes a curriculum learner to guide agents through a sequence of LTL tasks.
  2. I-LPOPL (Independent LTL Progression for Off-Policy Learning): A sophisticated approach that decomposes complex goals into sub-tasks. It trains specialized neural networks for each sub-task, facilitating knowledge reuse across different missions.

Experimental Evaluation

The framework was evaluated in a Minecraft-like grid world containing various items (wood, iron) and locations (workbench, toolshed). Two types of LTL specifications were tested:

  • Sequential Tasks: Requiring a strict order of operations.
  • Interleaving Tasks: Where sub-goals can be completed in any order before a final assembly step.

Results and Discussion

The experimental results demonstrate that the multi-agent versions of the algorithms (I-DQN-l and I-LPOPL) consistently outperform their single-agent counterparts, confirming that the EMG framework successfully fosters collaborative problem-solving.

Performance comparison of I-DQN-l and I-LPOPL against single-agent baselines in sequential and interleaving tasks.

As shown in the performance plots, agents naturally learn to divide labor. For example, in a "make shears" task, one agent might fetch wood while the other waits at the workbench. This collaboration emerges directly from the logical requirements embedded in the EMG.

While I-LPOPL demonstrates faster learning in terms of training steps due to its modular structure, it comes with a significant computational cost.

Computing time in hours for different algorithms across task types.

As detailed in the table above, I-LPOPL required 14.28 hours for interleaving tasks, compared to 2.15 hours for I-DQN-l. This overhead is due to the maintenance of separate neural networks for every possible sub-task generated by the LTL progression.

Conclusion

This work provides a robust foundation for integrating formal methods with MARL. By using DFAs as "translators" for logical requirements, the authors show that complex, history-dependent tasks can be solved using standard deep learning architectures. Future work will focus on addressing partial observability and improving the scalability of modular policy learning for larger numbers of agents.

Summary updated

BibTeX
@inproceedings{leon2020extended,
  author = {Borja G. León and Francesco Belardinelli},
  title = {{Extended Markov Games to Learn Multiple Tasks in Multi-Agent Reinforcement Learning}},
  booktitle = {ECAI},
  year = {2020},
  url = {https://openreview.net/forum?id=Zie3Zu_NDoW},
}
Figure