Semantically Aligned Task Decomposition in Multi-Agent Reinforcement Learning

Wenhao Li, Dan Qiao, Baoxiang Wang, Xiangfeng Wang, Bo Jin, Hongyuan Zha · DOI

Abstract

Multi-agent reinforcement learning (MARL) faces significant challenges in sparse-reward environments due to the credit assignment problem. Traditional automatic subgoal generation often lacks the semantic context necessary for efficient exploration. We introduce Semantically Aligned task decomposition in MARL (SAMA), a framework that utilizes Pre-trained Language Models (PLMs) to perform high-level reasoning and task decomposition. SAMA translates environment states into natural language, generates logical sub-goals via Chain-of-Thought prompting, and employs a self-reflection loop to recover from failures. Our results on Overcooked and MiniRTS benchmarks demonstrate that SAMA achieves state-of-the-art performance with up to 10x greater sample efficiency than baseline methods.

Introduction

In Multi-Agent Reinforcement Learning (MARL), the "credit assignment" problem remains a primary obstacle. When a team of agents receives a single reward after a long sequence of actions, determining which specific agent and action contributed to success is computationally expensive. This difficulty is amplified in sparse-reward environments, such as complex strategy games or collaborative cooking tasks, where agents may perform millions of steps before encountering a reward signal.

While Automatic Subgoal Generation (ASG) aims to mitigate this by providing intermediate targets, these methods often suffer from "over-representation." Without a fundamental understanding of physical or logical constraints—such as needing a container before gathering a liquid—ASG methods generate numerous technically valid but practically irrelevant sub-goals. SAMA addresses this by incorporating "world knowledge" from Pre-trained Language Models (PLMs) to guide task decomposition.

The SAMA Framework

SAMA bridges the gap between high-level reasoning and low-level execution through a hierarchical, disentangled approach. The framework consists of four key components:

  1. Preprocessing and Translation: SAMA leverages PLMs to generate a "Task Manual" from environment documentation (e.g., LaTeX or code). It further translates raw numerical observations into descriptive natural language, providing a semantic context for the planner.
  2. Task Decomposition: Utilizing Chain-of-Thought (CoT) prompting, a PLM (such as GPT-4) identifies interactive objects and generates a logical sequence of goals. These goals are then assigned as specific sub-goals to individual agents.
  3. Language-Grounded RL: Agents are trained using a language-grounded policy (the EMMA model), enabling them to interpret and execute natural language commands like "transport the onion to the bar."
  4. Self-Reflection Loop: To handle execution failures, SAMA implements a self-reflection mechanism. If a sub-goal is not achieved, the PLM analyzes the failure, consults its internal memory, and adjusts the decomposition or re-assigns tasks accordingly.
Overview of the SAMA framework pipeline, showing the transition from high-level goal generation to language-grounded execution and the self-reflection loop.

Experimental Evaluation

The SAMA framework was evaluated across three distinct environments:

  • Overcooked: A benchmark for multi-agent coordination requiring agents to prepare and deliver meals across various kitchen layouts, including "Forced Coordination" and "Counter Circuit."
  • MiniRTS: A real-time strategy game involving resource gathering, building, and combat, testing the framework's scalability with increasing agent counts.
  • Multi-agent FrozenLake: A modified abstract grid environment used to investigate the framework's performance in settings where human-like commonsense is less applicable.

Results and Discussion

SAMA demonstrates a significant leap in sample efficiency. In the "Forced Coordination" layout of Overcooked, SAMA reached near-optimal performance using only 10% of the training instances required by traditional RL methods.

Performance comparison in the Forced Coordination layout of Overcooked. SAMA (red dashed line) achieves high rewards significantly faster than baseline methods like MASER, LDSA, and ROMA.

Beyond efficiency, SAMA consistently outperformed existing ASG methods such as MASER, LDSA, and ROMA across most Overcooked layouts. In MiniRTS, the framework maintained high win rates as the number of agents scaled, suggesting robust coordination capabilities. Furthermore, the use of a PLM-based planner allows for zero-shot adaptation to new rules or layouts, as the high-level logic is not tied to a specific "black-box" neural network.

Conclusion and Future Work

SAMA illustrates the power of using "commonsense as a prior" in MARL. By forcing sub-goals into natural language, the framework ensures semantic alignment with human logic, enhancing both performance and interpretability. However, limitations remain, including the potential for PLM hallucinations and the computational cost of high-end model queries. Notably, SAMA's performance degrades in abstract environments like FrozenLake, where semantic logic is absent. Future research will explore multi-modal models to generate visual goals and reduce reliance on manual state-to-text translation.

Summary updated

BibTeX
@misc{li2023semantically,
  author = {Wenhao Li and Dan Qiao and Baoxiang Wang and Xiangfeng Wang and Bo Jin and Hongyuan Zha},
  title = {{Semantically Aligned Task Decomposition in Multi-Agent Reinforcement Learning}},
  year = {2023},
  eprint = {2305.10865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.10865},
}
Figure