Table of Contents
Fetching ...

MAGIC-MASK: Multi-Agent Guided Inter-Agent Collaboration with Mask-Based Explainability for Reinforcement Learning

Maisha Maliha, Dean Hougen

TL;DR

MAGIC-MASK tackles the challenge of explainability in multi-agent reinforcement learning by extending perturbation-based saliency to MARL and introducing inter-agent collaboration. It builds a unified Explanation MDP, uses saliency masks to identify jointly critical states, and integrates adaptive exploration with a PPO-based training loop. The framework demonstrates superior explanation fidelity, faster convergence, and stronger policy robustness across diverse benchmarks, including autonomous driving and board games. By sharing compact saliency information rather than raw models, MAGIC-MASK enhances trust and sample efficiency in safety-critical multi-agent systems. This approach offers a scalable path toward interpretable, cooperative MARL with practical impact in real-world domains.

Abstract

Understanding the decision-making process of Deep Reinforcement Learning agents remains a key challenge for deploying these systems in safety-critical and multi-agent environments. While prior explainability methods like StateMask, have advanced the identification of critical states, they remain limited by computational cost, exploration coverage, and lack of adaptation to multi-agent settings. To overcome these limitations, we propose a mathematically grounded framework, MAGIC-MASK (Multi-Agent Guided Inter-agent Collaboration with Mask-Based Explainability for Reinforcement Learning), that extends perturbation-based explanation to Multi-Agent Reinforcement Learning. Our method integrates Proximal Policy Optimization, adaptive epsilon-greedy exploration, and lightweight inter-agent collaboration to share masked state information and peer experience. This collaboration enables each agent to perform saliency-guided masking and share reward-based insights with peers, reducing the time required for critical state discovery, improving explanation fidelity, and leading to faster and more robust learning. The core novelty of our approach lies in generalizing explainability from single-agent to multi-agent systems through a unified mathematical formalism built on trajectory perturbation, reward fidelity analysis, and Kullback-Leibler divergence regularization. This framework yields localized, interpretable explanations grounded in probabilistic modeling and multi-agent Markov decision processes. We validate our framework on both single-agent and multi-agent benchmarks, including a multi-agent highway driving environment and Google Research Football, demonstrating that MAGIC-MASK consistently outperforms state-of-the-art baselines in fidelity, learning efficiency, and policy robustness while offering interpretable and transferable explanations.

MAGIC-MASK: Multi-Agent Guided Inter-Agent Collaboration with Mask-Based Explainability for Reinforcement Learning

TL;DR

MAGIC-MASK tackles the challenge of explainability in multi-agent reinforcement learning by extending perturbation-based saliency to MARL and introducing inter-agent collaboration. It builds a unified Explanation MDP, uses saliency masks to identify jointly critical states, and integrates adaptive exploration with a PPO-based training loop. The framework demonstrates superior explanation fidelity, faster convergence, and stronger policy robustness across diverse benchmarks, including autonomous driving and board games. By sharing compact saliency information rather than raw models, MAGIC-MASK enhances trust and sample efficiency in safety-critical multi-agent systems. This approach offers a scalable path toward interpretable, cooperative MARL with practical impact in real-world domains.

Abstract

Understanding the decision-making process of Deep Reinforcement Learning agents remains a key challenge for deploying these systems in safety-critical and multi-agent environments. While prior explainability methods like StateMask, have advanced the identification of critical states, they remain limited by computational cost, exploration coverage, and lack of adaptation to multi-agent settings. To overcome these limitations, we propose a mathematically grounded framework, MAGIC-MASK (Multi-Agent Guided Inter-agent Collaboration with Mask-Based Explainability for Reinforcement Learning), that extends perturbation-based explanation to Multi-Agent Reinforcement Learning. Our method integrates Proximal Policy Optimization, adaptive epsilon-greedy exploration, and lightweight inter-agent collaboration to share masked state information and peer experience. This collaboration enables each agent to perform saliency-guided masking and share reward-based insights with peers, reducing the time required for critical state discovery, improving explanation fidelity, and leading to faster and more robust learning. The core novelty of our approach lies in generalizing explainability from single-agent to multi-agent systems through a unified mathematical formalism built on trajectory perturbation, reward fidelity analysis, and Kullback-Leibler divergence regularization. This framework yields localized, interpretable explanations grounded in probabilistic modeling and multi-agent Markov decision processes. We validate our framework on both single-agent and multi-agent benchmarks, including a multi-agent highway driving environment and Google Research Football, demonstrating that MAGIC-MASK consistently outperforms state-of-the-art baselines in fidelity, learning efficiency, and policy robustness while offering interpretable and transferable explanations.

Paper Structure

This paper contains 26 sections, 7 equations, 3 figures, 9 tables, 1 algorithm.

Figures (3)

  • Figure 1: Overview of the MAGIC-MASK framework.
  • Figure 2: Visualization of MAGIC-MASK in the multi-agent Pong environment.
  • Figure 3: Illustration of MAGIC-MASK applied to the multi-agent highway environment.