# Explaining a Series of Models by Propagating Shapley Values

샤플리 값을 전파하여 일련의 모델을 설명하기

Hugh Chen, Scott M. Lundberg, Su-In Lee · arXiv · 2021년 4월 30일

- **연구 문제** 여러 모델이 직렬로 연결된 구조의 국소 특징 기여도를 기존 방법보다 빠르고 안정적으로 계산하는 문제입니다.
- **연구 방법** 기준 분포에 대한 단일 기준 기여도의 평균과 각 층에서 이전 출력 차이로 정규화하는 generalized rescale 규칙을 결합합니다.
- **주요 결과** CIFAR10 실험에서 단일 검은 이미지 기준은 어두운 픽셀의 기여도를 과소평가했고, 훈련 이미지 1000개 기준의 평균은 더 타당한 기여도를 보였습니다.

## 기존 설명 방법의 한계와 직렬 모델 문제

여러 모델이 출력을 다음 모델의 입력으로 넘기는 직렬 모델(series of models)은 스태킹 일반화, 딥 특징 추출, 소비자 점수처럼 실제 현장에서 널리 쓰입니다. 이런 구조는 단일 모델보다 설명하기 어렵기 때문에 개별 예측이 왜 나왔는지 보여주는 국소 특징 기여도가 필요합니다. 기존 모델 불가지론적(model-agnostic) 방법인 IME, LIME, KernelSHAP은 어떤 모델에도 적용되지만 샘플링 기반 추정이라 변동성이 있고 계산 비용이 큽니다. 반면 DeepLIFT나 TreeSHAP 같은 모델 특화 방법은 빠르지만 직렬로 연결된 여러 모델을 한꺼번에 설명하기 어렵습니다. 이 논문은 이 두 문제를 함께 다루며, 분산된 기관이 각자 소유한 모델을 공유하지 않고도 설명을 얻는 상황까지 범위에 포함합니다.

![Figure 1: DeepSHAP estimates Shapley value feature attributions to explain a series of models using a baseline distribution.(a) Local feature attributions with…](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-a3b6a151654a07ba9c5604d2e868fcc5.png?thumb=512)

**Figure 1** :DeepSHAP estimates Shapley value feature attributions to explain a series of models using a baseline distribution.(a) Local feature attributions with DeepSHAP require explicands (samples being explained), a baseline distribution (samples being compared to), and a model that is comprised of a series of models. They can be visualized to understand model behavior (Appendix Section A.3). (b) Theoretical motivation behind DeepSHAP (Methods Sections 6.1 and 6.4). (c) The baseline distribution is an important, but often overlooked, parameter that changes the scientiﬁc question implicit in the local feature attributions we obtain. (d) Explaining a series of models enables us to explain groups of features, model loss, and complex pipelines of models (deep feature extraction and stacked generalization). Experimental setups are described in Appendix Section A.2.

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Figure 7: Explaining a stacked generalization pipeline of models for the HELOC data set (details in Appendix Section A.1.7)(a) A simulated model pipeline in th…](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-5e797e631b74472bd14a9718ff7bc24c.png?thumb=512)

**Figure 7** :Explaining a stacked generalization pipeline of models for the HELOC data set (details in Appendix Section A.1.7)(a) A simulated model pipeline in the ﬁnancial services industry. We partition the original set of features into fraud, credit, and bank features. We train a model to predict risk using fraud data and a model to predict risk using credit data. Then, we use the outputs of the fraud and credit models as scores alongside additional bank features to predict the ﬁnal customer risk. (b) Ablation tests (ablating top 5 positive/negative features out of a total 22 features) comparing model agnostic approaches (LIME, KernelSHAP, IME with 100 samples), which require access to all models in the pipeline, and DeepSHAP, which allows institutions to keep their proprietary models private. (c) Summary plot of the top six features the bank model uses to predict risk (TreeSHAP). (d) Summary plot of the top six features the entire pipeline uses to explain risk (DeepSHAP). The green features originate from the fraud data, and the yellow features from the credit data. We explain 1000 randomly samples explicands using 100 randomly sampled baselines for all attribution methods. Note that (c) and (d) show summary plots (Appendix Section A.3.3).

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 기준 분포 평균과 generalized rescale 규칙

DeepSHAP의 핵심은 설명 대상 샘플 x\_e를 단일 기준 x\_b와 비교한 기여도를 여러 기준에 대해 평균하는 것입니다. 원문은 이 평균이 개입적 조건부 기대값(interventional conditional expectation)을 쓴 Shapley 값의 기준 분포 형태와 일치한다고 보고합니다. 직렬 모델 f\_k는 중간 함수 f\_i의 합성으로 정의되며, 최종 모델 h\_k에서 시작해 ψ\_k = φ̂(h\_k, x\_e, x\_b)로 두고, 각 이전 단계에서 ψ\_i = φ̂(h\_i, x\_e, x\_b)(ψ\_{i+1} ⊘ (f\_i(x\_e) − f\_i(x\_b)))를 계산합니다. 여기서 ⊘는 분모가 0이면 0으로 두는 원소별 나눗셈입니다.

이 나눗셈은 각 층에서 이전 출력 차이로 기여도를 정규화하여 효율성을 유지하도록 합니다. φ̂는 딥 모델에는 DeepLIFT의 rescale 규칙, 트리 모델에는 interventional TreeSHAP, 선형 모델에는 정확한 계산을 씁니다.

![Figure 3: The baseline distribution is an important parameter for model explanation.(a) Ex- plaining an older male explicand with both a general population bas…](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-6d1304dbd0f80e9c0491d492353b54a6.png?thumb=512)

**Figure 3** : The baseline distribution is an important parameter for model explanation.(a) Ex- plaining an older male explicand with both a general population baseline distribution and an older male baseline distribution. (b) Automatically ﬁnding baseline distributions using 8-means clustering on age and sex. (c) Explaining the older male subpopulation (62-75 years old) with either a general population baseline or an older male baseline. (d) Quantitative evaluation of the feature attributions via positive and negative ablation tests where we mask with the mean of the older male subpopulation. Note that (b) shows summary plots (Appendix Section A.3.3) and (c) shows dependence plots (Appendix Section A.3.2).

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 효율성을 보존하는 중간 기여도

Theorem 1은 모든 중간 기여도 ψ\_i가 효율성을 만족하며, 그 합이 f\_k(x\_e) − f\_k(x\_b)와 같다는 결과입니다. 증명은 귀납법으로 진행되며, 각 단계에서 ψ\_i의 합에 나누어 준 이전 출력 차이를 다시 곱해 다음 단계의 합과 같아진다는 점을 이용합니다. 기준 분포 D에 대해 평균한 값은 설명 대상의 예측과 기준 분포에서의 기대 출력의 차이로 해석됩니다. 이 결과는 각 층이 입력 특징 공간에서 기여도 총합의 보존을 지킨다는 뜻이며, 선형 모델만으로 이루어진 경우에는 정확한 interventional Shapley 값과 일치한다고 원문이 설명합니다. 다만 이 정리는 기여도 합의 보존을 다루며, 모든 Shapley 공리를 일반적으로 보장한다는 주장으로 읽으면 안 됩니다.

## 단일 기준과 기준 분포의 편향 비교

CIFAR10에서 75.56% 테스트 정확도를 가진 CNN을 사용해, 단일 검은 이미지를 기준으로 하는 방식과 훈련 이미지에서 무작위로 뽑은 1000개 기준을 쓰는 방식을 비교했습니다. 단일 검은 이미지 기준의 기여도는 실제로 어두운 픽셀이 많은데도 검은 픽셀에 적은 기여도를 할당하는 편향을 보였습니다. 기준 분포를 쓴 평균은 어두운 픽셀에 더 큰 기여도를 할당했습니다. 이 비교는 같은 CNN과 같은 이미지 설명 대상에서 기준의 선택만 바꾼 결과이며, 이 실험은 IME와 Integrated Gradients에서도 같은 편향이 나타난다는 부록 결과를 함께 가집니다.

![Figure 2: Using a single all-black baseline image (DeepLIFT) leads to biased attributions com- pared to attributions with a randomly sampled baseline distribut…](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-68554caff4a3749aed879cd8fd9492e8.png?thumb=512)

**Figure 2** :Using a single all-black baseline image (DeepLIFT) leads to biased attributions com- pared to attributions with a randomly sampled baseline distribution (DeepSHAP).The image is the explicand. The attribution plots are the sum of the absolute value of the feature attributions for the three channels of the input image. The pixel distribution is the distribution of pixels in terms of their grayscale values. The attribution distribution is the amount of attribution mass upon a group of pixels binned by their grayscale values.

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Figure 8: Demonstrating bias of a single baseline for IME](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-0f1897e27fad468a4f7393349576afd2.png?thumb=512)

**Figure 8** : Demonstrating bias of a single baseline for IME.

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

![Figure 9: Demonstrating bias of a single baseline for integrated/expected gradients](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-474801e9e52eaeab3a085f993a43af80.png?thumb=512)

**Figure 9** : Demonstrating bias of a single baseline for integrated/expected gradients.

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

## 절제 테스트로 본 설명 품질

설명의 정확도는 절제 테스트(ablation test)로 확인합니다. 이 테스트는 특징을 기여도 순서대로 기준 값으로 바꾸면서 모델 출력의 평균 변화를 측정합니다. 양의 기여도를 가진 특징을 먼저 제거하면 출력이 줄어드는지, 음의 기여도를 가진 특징을 제거하면 출력이 커지는지를 보고 설명이 모델 동작을 얼마나 잘 나타내는지 판단합니다. 원문은 이 절제 테스트를 기준 분포를 달리한 여러 설정과 여러 모델에 적용했다고 설명하며, 각 결과는 해당 실험의 지표와 조건 안에서만 읽어야 합니다.

![Figure 6: Explaining a series of models comprised of a convolutional neural network feature extractor and a gradient boosted tree classiﬁer.(a) Explanations fr…](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c/figures/figure-30c2235c3ab7e01b80bf21b2df2721ea.png?thumb=512)

**Figure 6** : Explaining a series of models comprised of a convolutional neural network feature extractor and a gradient boosted tree classiﬁer.(a) Explanations from DeepSHAP and state of the art model-agnostic approaches. Each model-agnostic approach has a “number of samples” parameter which we set to 100,000. (b) Quantitative evaluation of approaches, including runtime and ablation of the top 10% of positive and negative features.

[원문](https://arxiv.org/abs/2105.00108v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hugh Chen, Scott M. Lundberg, Su-In Lee · Explaining a Series of Models by Propagating Shapley Values · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 공리 보장의 한계

저자들은 DeepSHAP이 여러 혼합 모델에서 실용적으로 잘 작동하지만, 구현 불변성 같은 Shapley 공리를 모든 조건에서 보장하지는 않는다고 밝힙니다. 이는 정확한 공리 기반 방법을 완전히 계산할 수 없는 상황에서 DeepSHAP이 근사적으로 쓰인다는 뜻입니다. 따라서 저자들은 고위험 결정에는 공리 기반 방법을 충분히 계산하거나 해석 가능한 모델을 쓰는 편이 적절할 수 있다고 해석하고, DeepSHAP은 모델 디버깅이나 과학적 가설 탐색처럼 빠른 분석이 중요한 상황에 더 적합하다고 봅니다. 또한 분산 모델 설정에서 설명을 얻으려면 모든 기관이 협력하고 같은 기준 분포를 유지해야 한다는 조건도 있습니다.

## 논문 정보

- **저자**: Hugh Chen, Scott M. Lundberg, Su-In Lee
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 4월 30일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 10월 13일
- **버전**: v2
- **arXiv**: 2105.00108
- **DOI**: 10.1038/s41467-022-31384-3
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Local feature attribution methods are increasingly used to explain complex machine learning models. However, current methods are limited because they are extremely expensive to compute or are not capable of explaining a distributed series of models where each model is owned by a separate institution. The latter is particularly important because it often arises in finance where explanations are mandated. Here, we present DeepSHAP, a tractable method to propagate local feature attributions through complex series of models based on a connection to the Shapley value. We evaluate DeepSHAP across biological, health, and financial datasets to show that it provides equally salient explanations an order of magnitude faster than existing model-agnostic attribution techniques and demonstrate its use in an important distributed series of models setting.

## 원문 인용

Hugh Chen, Scott M. Lundberg, Su-In Lee (2021). Explaining a Series of Models by Propagating Shapley Values. arXiv:2105.00108v2. https://doi.org/10.1038/s41467-022-31384-3

**BibTeX**

```
@article{chen2021explaining,
  title = {{Explaining a Series of Models by Propagating Shapley Values}},
  author = {Hugh Chen and Scott M. Lundberg and Su-In Lee},
  year = {2021},
  eprint = {2105.00108},
  archivePrefix = {arXiv},
  doi = {10.1038/s41467-022-31384-3},
  url = {https://arxiv.org/abs/2105.00108v2}
}
```

## 이 논문의 용어

- [MNIST](https://refivu.com/terms/28b9bb66d1c6-mnist)
- [CIFAR10](https://refivu.com/terms/19bd6ffb1901-cifar10)
- [K-means clustering](https://refivu.com/terms/fe9b188ae278-k-means-clustering)
- [DeepLift](https://refivu.com/terms/db4f80bf1878-deeplift)
- [Shapley value](https://refivu.com/terms/f702ac842da6-shapley-value)
- [DeepSHAP](https://refivu.com/terms/bb6a68222d3d-deepshap)

## 다른 논문 해설

- [Client Selection in Federated Learning: Principles, Challenges, and Opportunities](https://refivu.com/papers/97721b1b-e2e2-49d7-a7b5-5c9b90145153-client-selection-in-federated-learning-principles-challenges.md)
- [Risk-Sensitive Non-Parametric and Kernel Bandits](https://refivu.com/papers/c25a3ce6-eeb8-4ea0-9d3a-8c1ca6b6ad83-risk-sensitive-non-parametric-and-kernel-bandits.md)
- [Selective Prediction Intervals: Jointly Learning to Predict, Bound, and Abstain](https://refivu.com/papers/c3c86972-2a00-436d-a47b-5ee5b8d85b6e-selective-prediction-intervals-jointly-learning-to-predict.md)
- [AI-Assisted Classification under Correlation Neglect and Trust](https://refivu.com/papers/4b2b2db4-6896-48c0-a3f1-7811c863f6d3-ai-assisted-classification-under-correlation-neglect-and.md)
- [A low-rank decoder bottleneck bounds reliability in foundation-model perturbation prediction](https://refivu.com/papers/bf045779-02d9-42f9-9266-e9b3f69bf2f1-a-low-rank-decoder-bottleneck-bounds-reliability-in.md)
- [Consistency Is Not Understanding: Orbit Audits for Neural Field Weight Readers](https://refivu.com/papers/a75f3e10-8266-48f0-a6f9-69b3e04da301-consistency-is-not-understanding-orbit-audits-for-neural.md)
- [Communication and Computation O-RAN Resource Slicing for URLLC Services Using Deep Reinforcement Learning](https://refivu.com/papers/5ddc57a5-9cb1-4669-ba8e-74c4ee4a318e-communication-and-computation-o-ran-resource-slicing-for.md)
- [Time-Ordered Recent Event (TORE) Volumes for Event Cameras](https://refivu.com/papers/b3e578ee-aa47-4822-8eb7-dcd45898d20a-time-ordered-recent-event-tore-volumes-for-event.md)
- [The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks](https://refivu.com/papers/7d72dab0-39a2-41ec-8bd7-e822a01c939b-the-heidelberg-spiking-datasets-for-the-systematic.md)
- [CAST-Bench: Tracing Every Sound to Its Source in Multi-Shot Audio-Video Generation](https://refivu.com/papers/79f226e8-e802-4a0d-8452-37c0f6742e11-cast-bench-tracing-every-sound-to-its-source.md)
- [PowerNet: Multi-agent Deep Reinforcement Learning for Scalable Powergrid Control](https://refivu.com/papers/b2dd6bb9-dc1a-4867-9892-09392951cc65-powernet-multi-agent-deep-reinforcement-learning-for.md)
- [WINNet: Wavelet-inspired Invertible Network for Image Denoising](https://refivu.com/papers/0fd7b132-2e64-4862-9b60-ed78a3c4a2cd-winnet-wavelet-inspired-invertible-network-for-image.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c-explaining-a-series-of-models-by-propagating-shapley)
