Coach-assisted Multi-Agent Reinforcement Learning Framework for Unexpected Crashed Agents

Jian Zhao, Youpeng Zhao, Weixun Wang, Mingyu Yang, Xunhan Hu, Wengang Zhou, Jianye Hao, Houqiang Li

Abstract

Traditional multi-agent reinforcement learning (MARL) algorithms typically operate under the assumption of agent immortality, where all agents remain functional throughout an episode. However, real-world deployments often face hardware failures, sensor glitches, or software crashes that disrupt coordination. This paper presents a coach-assisted MARL framework designed to bridge this sim-to-real gap. By dynamically injecting agent crashes during training and utilizing an adaptive coach to modulate difficulty based on team performance, the framework significantly enhances the robustness of cooperative policies in unpredictable environments.

1. Introduction

A persistent challenge in reinforcement learning is the "sim-to-real" gap: policies that demonstrate high proficiency in simulated environments often fail when transitioned to physical hardware. In multi-agent systems, this gap is exacerbated by the assumption of 100% uptime. In reality, robots are prone to failures. When a team is trained exclusively in a "perfect" environment, their coordination strategies become brittle; the sudden absence of a teammate can lead to a total system collapse as the remaining agents have no experience compensating for a reduced workforce.

To address this, we formalize the problem as a Crashed Dec-POMDP (Decentralized Partially Observable Markov Decision Process). The goal is to train agents capable of maintaining effective cooperation even when the team is unexpectedly shorthanded.

2. The Coach-Assisted MARL Framework

The core of the proposed solution is a model-agnostic framework that introduces a virtual "coach" agent to oversee the training process. The framework consists of three primary components:

2.1 The Adaptive Coach

At the start of each training episode, the coach determines a "crash rate" ($\alpha$), which represents the probability of an agent failing. While fixed or curriculum-based crash rates provide some benefit, the most effective approach is an Adaptive Strategy. In this mode, the coach monitors the team's win rate. If the performance exceeds a specific threshold ($\beta$), the coach increases $\alpha$ to challenge the agents. Conversely, if performance drops, the difficulty is lowered. This mechanism ensures that agents are consistently training at the "edge" of their current capabilities, optimizing the learning curve.

2.2 Re-sampling Strategy

To ensure training remains productive, the framework employs a re-sampling technique. If a random draw results in a scenario where too many agents crash—rendering the task logically impossible—the sample is discarded and redrawn. This prevents the agents from being overwhelmed by unsolvable scenarios while still exposing them to difficult, high-pressure environments.

2.3 Base Algorithm Integration

While the framework can be applied to various MARL algorithms, it was primarily evaluated using QMIX, a popular value-based algorithm. The coach-assisted layer functions as a wrapper around the underlying learner, modifying the environment's reliability without altering the core optimization logic.

3. Experimental Evaluation

The framework was tested across two distinct benchmarks to evaluate its impact on coordination and robustness.

3.1 Environments

  • Grid-world: A 10x10 environment requiring two agents to synchronize button presses. This served as a visualization tool to contrast standard agents (who wander aimlessly when a partner fails) with coach-trained agents (who learn to wait or adapt to the failure).
  • StarCraft Multi-Agent Challenge (SMAC): A high-complexity benchmark involving various unit compositions (e.g., Marines, Zealots, Stalkers). Tests were conducted on maps such as 3s_vs_5z and 8m_vs_5z to measure performance in combat scenarios.

3.2 Key Results

The adaptive coach-assisted framework consistently outperformed standard QMIX and fixed-rate coaching strategies. In the 3s_vs_5z map with a 10% crash rate, the Adaptive method achieved a win rate of 79.2%, a significant improvement over the baseline's 56.9%.

Furthermore, the agents demonstrated superior generalization. When tested at crash rates higher than those encountered during training, the adaptive agents maintained higher performance levels than those trained with static failure rates. Ablation studies also confirmed that the re-sampling strategy is vital; removing it led to a performance decline, suggesting that managing the distribution of failures is as critical as the failure rate itself.

4. Discussion and Insights

Training with an adaptive coach fosters robustness through diversity. By forcing agents to solve tasks with varying numbers of active teammates, they develop redundant coordination strategies. They move away from over-relying on specific partners and instead learn generalized cooperative behaviors.

Crucially, the re-sampling strategy ensures that agents still occasionally encounter low-crash scenarios. This prevents "catastrophic forgetting," where agents might become so specialized in handling failures that they lose the ability to optimize for 100% uptime scenarios.

5. Limitations and Future Work

While the framework marks a significant step toward robust MARL, several areas remain for future exploration:

  • Failure Complexity: Currently, crashed agents are modeled as stationary or random-acting. Future work should address "Byzantine" failures, where agents might provide corrupted data or move in counter-productive directions.
  • Heterogeneous Reliability: The current model assumes uniform crash probabilities across the team, whereas real-world fleets may have agents with varying levels of reliability.
  • Recovery Scenarios: Investigating how agents should adapt if a crashed teammate "reboots" or recovers mid-episode could further enhance system resilience.

6. Conclusion

The Coach-Assisted MARL framework provides a robust methodology for preparing multi-agent systems for the realities of hardware failure. By utilizing an adaptive difficulty curve and intelligent re-sampling, the framework bridges the sim-to-real gap, ensuring that cooperative teams remain effective even in the face of unexpected agent loss.

Summary updated

BibTeX
@inproceedings{zhao2022coach,
  author = {Jian Zhao and Youpeng Zhao and Weixun Wang and Mingyu Yang and Xunhan Hu and Wengang Zhou and Jianye Hao and Houqiang Li},
  title = {{Coach-assisted Multi-Agent Reinforcement Learning Framework for Unexpected Crashed Agents}},
  booktitle = {Frontiers Inf. Technol. Electron. Eng},
  year = {2022},
}
Figure