# Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values

Collective eXplainable AI: Shapley 값을 활용한 다중 에이전트 강화학습에서의 협력 전략과 에이전트 기여도 설명

Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez · arXiv · 2021년 10월 4일

- **연구 문제** 협력 다중 에이전트 강화학습에서는 공유 보상 아래 각 에이전트의 기여를 알기 어렵습니다.
- **연구 방법** 게임이론의 Shapley 값을 에이전트 단위로 적용하고 Monte Carlo 샘플링으로 한계기여 평균을 근사합니다.
- **주요 결과** Predator-Prey와 Harvest 실험에서 Shapley 값은 속도와 에이전트 제거 결과를 대체로 반영했고, 근사값은 정확한 값과 가까웠습니다.

## 문제 배경: 강화학습의 설명가능성 부족

강화학습은 성능과 확장성을 높이는 알고리즘 연구에 집중되어 왔고, 모델의 판단을 설명하는 연구는 상대적으로 적었습니다. 그러나 강화학습이 산업과 일상에서 쓰일수록 결정의 근거를 이해하고 정당화하는 일이 중요해집니다. 특히 여러 에이전트가 공유 보상을 얻는 협력 환경에서는 각 에이전트가 팀 성과에 얼마나 기여했는지 알기 어렵습니다. 이 논문은 이 문제를 다루기 위해 게임이론의 Shapley 값을 다중 에이전트 협력 강화학습에 적용합니다. 다만 Shapley 값은 여러 에피소드에 걸친 평균 기여를 보여 주며, 한 에피소드나 특정 행동의 기여를 설명하지는 못합니다.

## Shapley 값의 정의와 에이전트 기여로의 적용

협력 게임은 플레이어 집합 N과 연합 S에 실수 값을 대응하는 함수 v로 정의됩니다. 플레이어 i의 Shapley 값은 i를 포함하거나 제외한 연합들의 가치 차이, 즉 한계기여의 가중 평균으로 계산됩니다. 이 논문은 플레이어를 특징이 아니라 에이전트로 보고, 연합의 가치를 전역 공유 보상으로 둡니다. 정확한 계산은 연합 수가 에이전트 수에 따라 지수적으로 늘어나므로 비용이 큽니다. 이 때문에 연합을 무작위로 샘플링해 한계기여의 평균을 취하는 Monte Carlo 근사를 사용합니다. 각 에이전트마다 M번의 샘플을 뽑아 에이전트가 포함된 연합의 보상 r+i와 제외된 연합의 보상 r-i의 차이를 평균하며, 이 값은 각 에이전트의 평균 기여를 근사합니다.

## 연합에서 에이전트를 제외하는 방식

Monte Carlo 샘플에서 제외된 에이전트는 세 가지 방식으로 대체됩니다. Replace는 빠진 에이전트의 행동을 현재 연합에 있는 학습된 에이전트 중 무작위로 고른 에이전트의 행동으로 바꿉니다. Random은 빠진 에이전트가 무작위 행동을 하도록 두며, NoOp는 아무 동작도 하지 않는 행동으로 바꿉니다. 원문은 Harvest 실험에서 NoOp와 Random 사이에 평균 73.1 보상 단위의 차이가 있었다고 보고하며, 무작위로 움직이는 에이전트가 경계 충돌이나 나무 손상으로 음의 보상을 만들어 게임을 방해한다고 해석합니다. 따라서 저자들은 이 실험에서 NoOp가 실제 기여를 더 충실하게 드러낸다고 판단합니다.

![Figure 7: Harvest environment. Monte Carlo estimation of Shapley values (M=1,000) for each agent using each of the three agent substitution methods. The same s…](https://refivu.com/papers/6b57d765-3422-4345-8e24-4de5892540bb/figures/figure-0d2cebb029c007b87bbf2f72ebd54125.png?thumb=512)

**Figure 7** : Harvest environment. Monte Carlo estimation of Shapley values (M=1,000) for each agent using each of the three agent substitution methods. The same settings were used for all agents.

[원문](https://arxiv.org/abs/2110.01307v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez · Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## Predator-Prey에서 기여 순서와 근사 정확도

Multiagent Particle의 Predator-Prey 실험에서는 포식자 3마리를 MADDPG로, 먹이 1마리를 DDPG로 학습했고 동일한 하이퍼파라미터의 5개 모델을 사용했습니다. 기본 설정에서 Shapley 값의 순서는 Predator 2, Predator 1, Predator 0 순으로 나타났으며, 이는 포식자가 먹이를 잡은 횟수의 순서와 맞았다고 원문은 보고합니다. 근사 정확도는 M=1,000 Monte Carlo 추정치를 정확한 Shapley 값과 비교해 확인했습니다. 원문은 Predator 1과 Predator 2에서 평균 차이가 5%라고 보고합니다. 속도를 다르게 한 두 번째 실험에서는 Predator 0이 0.2, Predator 1이 0.8, Predator 2가 2.0의 속도를 가지며, 이때 Shapley 값 순서도 속도 순서와 맞았습니다.

다만 Predator 0의 Shapley 값은 0에 가까워 상대 차이가 53%로 커졌다는 점이 함께 보고됩니다.

![Figure 5: Predator-Prey environment, variable agents’ speeds. Comparison of the Monte Carlo approximation of Shapley values with the real Shapley values. Each…](https://refivu.com/papers/6b57d765-3422-4345-8e24-4de5892540bb/figures/figure-0973f8fa171bad4bfea6a76ee0a207ec.png?thumb=512)

**Figure 5** : Predator-Prey environment, variable agents’ speeds. Comparison of the Monte Carlo approximation of Shapley values with the real Shapley values. Each point represents one of the ﬁve model runs..

[원문](https://arxiv.org/abs/2110.01307v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez · Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## Harvest에서 에이전트 제거와 사회적 지표

Harvest 실험은 기본 설정의 6개 A3C 에이전트로 수행되었고, Monte Carlo 추정은 M=1,000과 noop 방식을 사용했습니다. Agent 5의 Shapley 값은 0에 가까웠고 나머지 다섯 에이전트는 비슷한 값을 보였습니다. 이후 Agent 5를 환경에서 완전히 제거하고 다시 계산했을 때 Shapley 값 분포와 전역 보상이 거의 같게 유지되었습니다. 원문은 이를 Agent 5의 참여가 생산적이지 않았다는 가설을 지지하는 결과로 해석합니다. 같은 모델에서 학습 중 Efficiency, Equality, Sustainability를 추적한 실험에서는 평균 Shapley 값이 Efficiency와 함께 변했고, Equality의 하락은 에이전트 3의 낮은 기여로 설명되었습니다.

반면 Sustainability는 보상이 수집되는 시간 간격이므로 보상의 전역 합으로 계산되는 Shapley 값으로는 직접 드러나지 않는다고 원문은 설명합니다.

![Figure 8: Harvest environment: Evolution of the Shapley values and social metrics from \[19\] over different training episodes with A3C model. From top to bottom…](https://refivu.com/papers/6b57d765-3422-4345-8e24-4de5892540bb/figures/figure-56fa53a6ac0f938c05ebff50e2bf1dfa.png?thumb=512)

**Figure 8** : Harvest environment: Evolution of the Shapley values and social metrics from \[19\] over different training episodes with A3C model. From top to bottom are displayed the Shapley values ( noop action selection method; MC estimation with M=500), the mean of those Shapley values of all agents, the efﬁciency, equality, and sustainability metrics.

[원문](https://arxiv.org/abs/2110.01307v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez · Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 계산 비용의 한계

이 방법은 협력형 다중 에이전트 설정에 적합하며, 원문은 경쟁형이나 단일 에이전트 모델에는 현재 형태로 적용할 수 없다고 밝힙니다. 또한 Shapley 값은 여러 에피소드에 걸친 평균 기여만 제공하므로 특정 에피소드나 특정 행동을 설명하지 못합니다. Monte Carlo 방법은 정확한 계산보다 효율적이지만 여전히 시간이 많이 소요된다고 원문은 설명합니다. 이 논문은 Harvest와 Multiagent Particle의 제한된 환경과 두 가지 알고리즘에서 결과를 보였으므로, 다른 과제와 모델로의 일반화는 이 실험 범위 밖의 질문으로 남습니다.

## 논문 정보

- **저자**: Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 10월 4일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 10월 4일
- **버전**: v1
- **arXiv**: 2110.01307
- **분류**: cs.AI · cs.GT · cs.LG · cs.MA
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2110.01307v1) · [원문 PDF ↗](https://arxiv.org/pdf/2110.01307v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

While Explainable Artificial Intelligence (XAI) is increasingly expanding more areas of application, little has been applied to make deep Reinforcement Learning (RL) more comprehensible. As RL becomes ubiquitous and used in critical and general public applications, it is essential to develop methods that make it better understood and more interpretable. This study proposes a novel approach to explain cooperative strategies in multiagent RL using Shapley values, a game theory concept used in XAI that successfully explains the rationale behind decisions taken by Machine Learning algorithms. Through testing common assumptions of this technique in two cooperation-centered socially challenging multi-agent environments environments, this article argues that Shapley values are a pertinent way to evaluate the contribution of players in a cooperative multi-agent RL context. To palliate the high overhead of this method, Shapley values are approximated using Monte Carlo sampling. Experimental results on Multiagent Particle and Sequential Social Dilemmas show that Shapley values succeed at estimating the contribution of each agent. These results could have implications that go beyond games in economics, (e.g., for non-discriminatory decision making, ethical and responsible AI-derived decisions or policy making under fairness constraints). They also expose how Shapley values only give general explanations about a model and cannot explain a single run, episode nor justify precise actions taken by agents. Future work should focus on addressing these critical aspects.

## 원문 인용

Alexandre Heuillet, Fabien Couthouis, Natalia Díaz-Rodríguez (2021). Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values. arXiv:2110.01307v1. https://arxiv.org/abs/2110.01307v1

**BibTeX**

```
@misc{heuillet2021collective,
  title = {{Collective eXplainable AI: Explaining Cooperative Strategies and Agent Contribution in Multiagent Reinforcement Learning with Shapley Values}},
  author = {Alexandre Heuillet and Fabien Couthouis and Natalia Díaz-Rodríguez},
  year = {2021},
  eprint = {2110.01307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.01307v1}
}
```

## 이 논문의 용어

- [DDPG](https://refivu.com/terms/9bd68efd54bc-ddpg)
- [MADDPG](https://refivu.com/terms/621458f4f72c-maddpg)
- [efficiency](https://refivu.com/terms/da4a2b6858a2-efficiency)
- [A3C](https://refivu.com/terms/1c4cb426dcf9-a3c)
- [Shapley values](https://refivu.com/terms/8ff7e48e0f44-shapley-values)
- [Random](https://refivu.com/terms/bffd038e7fd5-random)
- [Harvest](https://refivu.com/terms/17882221d71d-harvest)
- [marginal contribution](https://refivu.com/terms/782617b468e5-marginal-contribution)
- [Replace](https://refivu.com/terms/3336d97fc12d-replace)
- [Shapley 값](https://refivu.com/terms/a86c7cf97c65-shapley)
- [Sustainability](https://refivu.com/terms/2977fcb6b272-sustainability)

## 다른 논문 해설

- [AoI-Aware Resource Allocation for Platoon-Based C-V2X Networks via Multi-Agent Multi-Task Reinforcement Learning](https://refivu.com/papers/5b4227e6-c550-47b3-a7ad-fab8f1e84784-aoi-aware-resource-allocation-for-platoon-based-c.md)
- [Hierarchical Multi-Agent DRL-Based Framework for Joint Multi-RAT Assignment and Dynamic Resource Allocation in Next-Generation HetNets](https://refivu.com/papers/967ee93f-c3c3-4ed1-a757-9f15d03f2a28-hierarchical-multi-agent-drl-based-framework-for-joint.md)
- [Effective Communications: A Joint Learning and Communication Framework for Multi-Agent Reinforcement Learning over Noisy Channels](https://refivu.com/papers/bd215941-32dd-440d-825c-7b2f1ad254d6-effective-communications-a-joint-learning-and-communication.md)
- [Quantum Multi-Agent Reinforcement Learning for Cooperative Mobile Access in Space-Air-Ground Integrated Networks](https://refivu.com/papers/a89749b9-6d0b-4b12-b5fd-7cb93bababff-quantum-multi-agent-reinforcement-learning-for-cooperative.md)
- [Learning in Cooperative Multiagent Systems Using Cognitive and Machine Models](https://refivu.com/papers/2dbf53d7-def0-4ab9-874e-db9d7bd1d06e-learning-in-cooperative-multiagent-systems-using-cognitive.md)
- [Multi-agent reinforcement learning for the control of three-dimensional Rayleigh-Bénard convection](https://refivu.com/papers/33f67ff3-ad21-4e79-9ce4-d2be7a795434-multi-agent-reinforcement-learning-for-the-control-of.md)
- [Computer Vision for Road Imaging and Pothole Detection: A State-of-the-Art Review of Systems and Algorithms](https://refivu.com/papers/c06a17fc-d58d-4dc7-9265-31de6cea9b61-computer-vision-for-road-imaging-and-pothole-detection.md)
- [Unsupervised Deep Anomaly Detection for Multi-Sensor Time-Series Signals](https://refivu.com/papers/878b018b-6c5e-4a6c-9708-982ce4d20f8a-unsupervised-deep-anomaly-detection-for-multi-sensor-time.md)
- [Identifying optimal cycles in quantum thermal machines with reinforcement-learning](https://refivu.com/papers/91ae4a4b-783d-4d4a-9036-c66652125ae6-identifying-optimal-cycles-in-quantum-thermal-machines-with.md)
- [WaveCNet: Wavelet Integrated CNNs to Suppress Aliasing Effect for Noise-Robust Image Classification](https://refivu.com/papers/cc2b1337-98b5-4039-a554-fa79f24e53f3-wavecnet-wavelet-integrated-cnns-to-suppress-aliasing-effect.md)
- [AUC Maximization in the Era of Big Data and AI: A Survey](https://refivu.com/papers/0016cd93-8aac-4e75-b73e-309dc4c00101-auc-maximization-in-the-era-of-big-data.md)
- [Video Imprint](https://refivu.com/papers/017aa098-31cf-43a1-9136-336b50f225c8-video-imprint.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/6b57d765-3422-4345-8e24-4de5892540bb-collective-explainable-ai-explaining-cooperative-strategies)
