Deep Decentralized Multi-task Multi-Agent Reinforcement Learning under Partial Observability

Shayegan Omidshafiei, Jason Pazis, Christopher Amato, Jonathan P. How, John Vian

Introduction

In the real world, teams of autonomous agents—such as underwater drones or search-and-rescue robots—must cooperate to achieve shared goals. This setting is typically modeled as a Decentralized Partially Observable Markov Decision Process (Dec-POMDP). Learning in Dec-POMDPs is notoriously difficult because the environment appears non-stationary to any individual agent; as teammates learn and explore, the dynamics of the world seem to constantly change.

Furthermore, real-world agents face multiple related tasks (e.g., varying currents, lighting conditions, or target behaviors) but rarely receive a clean "Task ID" telling them which environment they are currently in. While Multi-Task Reinforcement Learning (MTRL) has seen success in single-agent or fully observable settings, this paper is the first to formalize and address Multi-Task Multi-Agent RL (MT-MARL) under partial observability. The challenge is threefold: agents must learn to coordinate, generalize across tasks, and implicitly infer which task they are doing based solely on local, noisy observations.

To tackle this, the authors introduce a two-phase approach combining hysteretic Q-learning, synchronized experience replay (CERTs), and policy distillation to train a single, robust neural network policy per agent. This allows decentralized teams to achieve near-optimal coordination across various environments without knowing exactly which task they are executing.

Methods: A Two-Phase Approach

The authors propose a divide-and-conquer strategy to solve MT-MARL, breaking the problem into single-task specialization followed by multi-task distillation.

Phase 1: Single-Task Specialization via Dec-HDRQNs

Directly training a multi-task policy in a Dec-POMDP is too unstable. Instead, the authors first train specialized policies for each task using Decentralized Hysteretic Deep Recurrent Q-Networks (Dec-HDRQNs).

  • Hysteresis: To combat the non-stationarity caused by teammate exploration, the algorithm uses two learning rates. A standard rate ($\alpha$) is used when the Temporal Difference (TD) error is positive, but a smaller rate ($\beta$) is used when it's negative. This makes agents "cautiously optimistic," preventing them from rapidly unlearning a good cooperative strategy just because a teammate took a random, bad exploratory action.
  • Concurrent Experience Replay Trajectories (CERTs): Standard experience replay breaks down in MARL because agents sample uncorrelated past experiences, leading to miscoordination. CERTs fix this by synchronizing the sampled replay trajectories across all agents. If Agent A samples episode 5, timestep 10, Agent B samples the exact same slice of time.
CERT structure and synchronized minibatches

Phase 2: Multi-Task Policy Distillation

Once specialized Dec-HDRQNs are trained for each task, they act as "teachers." The agents then use supervised learning to distill these multiple teacher networks into a single "student" DRQN. Using a tempered Kullback-Leibler (KL) divergence loss, the student network learns to mimic the Q-values of the specialists. Because it is a recurrent network (using LSTM cells), the student learns to implicitly identify the task from its history of local observations.

Datasets and Evaluation

The authors evaluate their approach on variations of the "meeting-in-a-grid" Dec-POMDP benchmark:

  • MAST (Multi-Agent Single-Target): Agents must simultaneously capture a single moving target in a toroidal (wrap-around) grid.
  • MAMT (Multi-Agent Multi-Target): Each agent has a specific assigned target, but they don't know which one is theirs.

Both domains feature sparse terminal rewards (only given for simultaneous capture) and "observation flickering" (targets randomly disappear from sensors with a probability $P_f$) to simulate severe partial observability.

Key Results and Insights

Single-Task Stability In the MAMT domain, Dec-HDRQN successfully coordinated 2 agents in up to $7 \times 7$ grids and 3 agents in $4 \times 4$ grids. A non-hysteretic baseline (Dec-DRQN) completely destabilized and failed to learn in grids larger than $5 \times 5$.

Comparison of learning stability between Dec-DRQN and Dec-HDRQN

Multi-Task Success The distilled MT-MARL policy achieved near-nominal execution-time performance across all trained tasks (ranging from $3 \times 3$ to $6 \times 6$ grids) using just one network per agent, despite not being fed the task ID.

Baseline Failure A baseline approach that attempted to learn all tasks simultaneously from scratch (Multi-HDRQN) flatlined near zero empirical return, proving the necessity of the distillation phase. Directly training a single network on multiple Dec-POMDP tasks simultaneously fails due to the sheer complexity of the environment. Training specialists first and distilling them is a highly effective workaround.

Limitations and Future Work

The authors acknowledge that their distillation approach relies on strong assumptions about task relatedness. Additionally, while the grid-world domains are complex Dec-POMDPs, they still utilize discrete state and action spaces.

For future work, they suggest incorporating macro-actions (skills) into the framework to handle longer-horizon problems, extending the approach to teams of heterogeneous agents, and evaluating on more complex domains with a massively scaled-up number of tasks.

Summary updated

BibTeX
@inproceedings{omidshafiei2017deep,
  author = {Shayegan Omidshafiei and Jason Pazis and Christopher Amato and Jonathan P. How and John Vian},
  title = {{Deep Decentralized Multi-task Multi-Agent Reinforcement Learning under Partial Observability}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure