Entity Divider with Language Grounding in Multi-Agent Reinforcement Learning

Ziluo Ding, Wanpeng Zhang, Junpeng Yue, Xiangjun Wang, Tiejun Huang, Zongqing Lu

Introduction

Researchers have introduced EnDi (Entity Divider), a novel framework that allows multi-agent reinforcement learning (MARL) agents to decompose high-level language instructions into specific subgoals. By grounding language at the "entity level" and modeling the intentions of teammates, EnDi enables agents to coordinate effectively and generalize to entirely new game dynamics without the need for retraining.

The Challenge of Multi-Agent Language Grounding

Reinforcement learning (RL) agents are notoriously brittle; change a few rules or swap a character's skin, and they often fail. "Language grounding"—the process of linking text descriptions to environment features—has helped single-agent RL generalize better to new environments. However, moving this capability to multi-agent settings introduces three major hurdles:

  1. Coordination: Agents must consider not just the environment, but how other agents behave and react.
  2. Complexity: More entities in a multi-agent world mean a massive search space for language grounding, slowing down learning.
  3. Instruction Decomposition: A simple command like "defeat all enemies" doesn't tell Agent A which specific enemy to target, nor does it tell Agent B which weapon to grab.

Current MARL models often struggle to divide tasks efficiently when faced with the ambiguity of natural language in unseen environments.

Methods: The Entity Divider (EnDi) Framework

To address these challenges, the authors propose the Entity Divider (EnDi) framework. Instead of treating the environment as a monolithic state, EnDi operates at the entity level (focusing on individual monsters, items, or landmarks).

The EnDi architecture featuring the Language Grounding Module, Subgoal Division Module with Gumbel-Softmax, and Agent Modeling.
  • Language Grounding Module: EnDi uses existing architectures to create a representation that links the text manual (the "rules") and the overarching goal to the visual observation.
  • Subgoal Division Module: This is the core innovation. Each agent generates a binary "entity mask." This mask divides the world into entities the agent will focus on ("self") and entities it expects others to handle ("others"). A Gumbel-Softmax layer is utilized to make this discrete selection process differentiable during training.
  • Agent Modeling: To prevent "subgoal conflicts" (e.g., both agents trying to pick up the same sword), EnDi includes a policy head that predicts the actions of other agents. This acts as a regularization term, forcing the agent to choose a subgoal that complements, rather than competes with, its teammates.
  • Curriculum Learning: Because language-based MARL is incredibly complex, the authors used a staged training approach to gradually introduce mobile entities, distractor objects, and complex language templates.

Datasets and Environments

The researchers evaluated their framework by creating multi-agent versions of two popular language-grounding benchmarks:

Overview of the Multi-Agent RTFM (left) and Multi-Agent MESSENGER (right) environments, illustrating the text manuals and grid-world tasks.
  1. Multi-Agent RTFM: A game where agents must read a "Wiki" to understand which team of monsters to defeat and which weapons are effective against them.
  2. Multi-Agent MESSENGER: A more symbolic environment where agents must identify which entities hold "messages" and deliver them to "targets" while avoiding "enemies," all based on a text manual.

They also evaluated zero-shot transfer on "Eval-new" sets featuring totally novel monsters and modifiers not seen during training.

Key Insights

  • Entity-Level Invariance: The "rules" of a game (e.g., "fire beats ice") are usually tied to entities. By grounding language to entities rather than global states, the agent's knowledge remains valid even if the map layout or the number of agents changes.
  • Masking as Coordination: Coordination doesn't always require complex communication protocols. Sometimes, simply "masking out" parts of the world you aren't responsible for is enough to drive sophisticated teamwork.
  • Predicting Others to Refine Self: The "Agent Modeling" head isn't just for strategy; it's a training signal. If an agent can't accurately predict its teammate's actions, it indicates that its own entity mask (subgoal division) is poorly defined.

Key Results

EnDi significantly outperformed single-agent baselines and centralized training methods:

  • Superior Generalization: In the toughest RTFM stage (S5), EnDi achieved a ~63% win rate, while standard baselines like txt2π hovered around a mere 2%.
  • Zero-Shot Success: When dropped into environments with completely new entity names and dynamics, EnDi maintained its performance, proving it had learned the logic of the manual rather than just memorizing visual patterns.
  • Effective Teamwork: Qualitative analysis showed agents successfully splitting up tasks. For example, one agent might ignore a nearby weapon to let a teammate grab it, while it moves toward a distant target to save time.

Limitations and Future Work

While EnDi represents a significant leap forward, the authors note a few hurdles:

  • Grounding Errors: The system is only as good as its language grounding. If the model misidentifies an entity based on the text, the entire coordination chain breaks.
  • Scaling: The experiments focused on 2-3 agents. Scaling this to dozens of agents would require more efficient ways to handle the "joint positional features" used for masking.
  • Shared Entities: Currently, the model forces a strict division of labor. Future versions might explore "shared subgoals" for tasks that require multiple agents to work on the same entity simultaneously (e.g., a boss fight).

Summary updated

BibTeX
@inproceedings{ding2023entity,
  author = {Ziluo Ding and Wanpeng Zhang and Junpeng Yue and Xiangjun Wang and Tiejun Huang and Zongqing Lu},
  title = {{Entity Divider with Language Grounding in Multi-Agent Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=fXBjFPL5HD},
}
Figure