E-MAPP: Efficient Multi-Agent Reinforcement Learning with Parallel Program Guidance

Can Chang, Ni Mu, Jiajun Wu, Ling Pan, Huazhe Xu

TL;DR

E-MAPP (Efficient Multi-Agent Reinforcement Learning with Parallel Program Guidance) enables teams of AI agents to solve complex, long-horizon tasks by following structured "parallel programs." By leveraging a domain-specific language and a specialized task allocator, E-MAPP outperforms standard MARL baselines in coordination, time efficiency, and zero-shot generalization to new tasks.

The Challenge of Long-Horizon Coordination

Multi-agent reinforcement learning (MARL) has seen great success in games and simple coordination tasks, but it often hits a wall when faced with long-horizon cooperative tasks. Imagine a team of robots trying to prepare a complex multi-course meal: they need to understand subtask dependencies (you can't cook the onion until it's chopped), divide labor efficiently, and handle unexpected events like a kitchen fire.

Standard RL methods struggle here because rewards are sparse and the state-action space is massive. While previous work has used programs to guide single agents, applying this to multiple agents introduces new hurdles:

  1. Dependency Blindness: Sequential instructions don't tell agents which tasks can be done simultaneously.
  2. Heterogeneous Abilities: Different agents might be better suited for different parts of the program based on their current state or location.
  3. Resource Conflicts: Agents need to collaborate (e.g., passing an ingredient) rather than just working side-by-side.

The E-MAPP Framework

To overcome these challenges, the authors propose E-MAPP, a framework that treats a complex task as a program designed for parallelization.

The E-MAPP framework architecture

The system consists of four main components:

  1. Parallel Program Executor: Uses a Domain-Specific Language (DSL) that includes standard logic (if/else, loops) and "parallel" blocks. It maintains a "Possible Subroutine Set"—a pool of tasks that are currently ready to be tackled.
  2. Perception Module: A neural network that acts as the program's eyes. It evaluates "perception primitives" (e.g., IsOnFire()) to decide which branch of the program the team should follow.
  3. Task Allocator: This is the "manager" of the system. It uses three learned auxiliary functions to decide who does what:
  4. Reachability: Can Agent A finish this task alone?
  5. Feasibility: Can Agent A finish this task with help?
  6. Cost-to-go: How many timesteps will this take?
Visualizing reachability, feasibility, and cost-to-go in Overcooked

The Task Allocator solves an optimization problem (using the Hungarian algorithm) to assign tasks with the lowest total "cost."

  1. Policy Module: Built on MAPPO (Multi-Agent PPO), this module executes the assigned subtasks. It uses a two-stage training process: first learning individual subtasks, then learning to cooperate in "leading" and "assistive" roles.

Datasets and Evaluation

The primary evaluation environment is an upgraded version of Overcooked, dubbed "Overcooked v2." * Complexity: It extends the original game by adding long-horizon behaviors like "wash dishes" and "put out fire." * Benchmarks: The authors created "Easy," "Medium," and "Hard" task suites. Hard tasks require planning over 10+ stages and handling random events. * Generalization: They also tested on "unseen" tasks—new combinations of subroutines on novel maps—to test zero-shot generalization.

Key Insights

  • Parallelism as a Prior: By explicitly using parallel blocks in the program, the agents don't have to "discover" that they can work on different things at once; the structure of the program provides that hint, which the Task Allocator then optimizes.
  • Altruistic Reward Shaping: To encourage cooperation, "assistive" agents are rewarded based on how much they improve the reachability of the "leading" agent. If Agent A brings an extinguisher to Agent B so B can put out a fire, Agent A gets a reward for making B's goal reachable.
  • Programs vs. Natural Language: Programs are superior to natural language instructions for MARL because they are strictly formatted and composable. This lack of ambiguity allows for much better "compositional generalization"—the ability to solve a new complex task because you already know its building blocks.

Key Results

  • Superior Completion: On "Hard" tasks in novel maps, E-MAPP achieved a 56.3% completion rate, while the standard MAPPO baseline failed completely (0%).
  • Zero-Shot Mastery: When faced with entirely unseen task sequences, E-MAPP maintained a 43.7% success rate on hard tasks, whereas a natural language-guided baseline dropped to 0%.
  • Efficiency Gains: The use of parallel program structures allowed agents to complete goals 15% faster than if they had followed a strictly sequential version of the same program.
  • Robustness: E-MAPP remained effective even in partially observable environments, where agents could only see a portion of the map.

Limitations and Future Work

  • Static Environments: The current framework assumes the environment layout (walls, counters) is relatively static. Dynamic scenes with moving obstacles would be more challenging.
  • Object Generalization: While E-MAPP generalizes well to new task sequences, it hasn't been tested on entirely novel objects (e.g., a new ingredient it has never seen).
  • Program Synthesis: Currently, the programs must be provided by humans. A natural next step is "program synthesis," where the agents learn to generate their own parallel programs from high-level goals or demonstrations.

Summary updated

BibTeX
@inproceedings{chang2022e,
  author = {Can Chang and Ni Mu and Jiajun Wu and Ling Pan and Huazhe Xu},
  title = {{E-MAPP: Efficient Multi-Agent Reinforcement Learning with Parallel Program Guidance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=8LE06pFhqsW},
}
Figure