Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[JSAI24] C3-LRP: Visual Explanation Generation ...

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

[JSAI24] C3-LRP: Visual Explanation Generation based on Layer-Wise Relevance Propagation forย ResNet

More Decks by Semantic Machine Intelligence Lab., Keio Univ.

Other Decks in Technology

Transcript

  1. ๐ถ!-LRP : Visual Explanation Generation based on Layer-Wise Relevance Propagation

    for ResNet Felix Doublet, Seitaro Otsuki, Tsumugi Iida, Komei Sugiura Keio University
  2. - 2 - Summary : We adapted LRP to handle

    ResNet models โ€ข A new Layer-wise Relevance Propagation (LRP) rule to handle residual connections of ResNet โ€ข ๐‘ช๐Ÿ‘-LRP that selects the most noteworthy area based on the generated relevance regions. We introduce : LRP [Bach+, PLoS15] GradCAM [Selvaraju+, ICCV17] Ours
  3. - 3 - Background : The need for an eXplainable

    AI Deep Neural Networks (DNNs) = black box nature : โ€ข Lack of trust by end-users (medical analysis, autonomous vehicles) โ€ข Legal need (RGPD, AI Act) to explain decisions Anastasia Grivia : https://impact.universityofgalway.ie/articles/to- black-box-or-not-to-black-box/ โ‡’ Explainable AI (XAI) Layer-Wise Relevance Propagation [Bach+, PLoS15] : โ€ข Strong theoretical background โ€ข Transparency in Decision-Making โ€ข Interpretable Relevance scores โ‡’ White Box Analysis
  4. - 4 - Background : Generating visual explanations for ResNet

    with LRP Input Image n Layer-Wise Relevance Propagation (LRP) fails to generate insightful explanations for ResNet models LRP Output LRP FAIL !
  5. - 5 - n Layer-Wise Relevance Propagation (LRP) fails to

    generate insightful explanations for ResNet models LRP Output Residual connections ResNet[He+, CVPR16] No designed rule โœ• Background : Generating visual explanations for ResNet with LRP ???
  6. - 6 - n Layer-Wise Relevance Propagation (LRP) fails to

    generate insightful explanations for ResNet models LRP Output Residual connections ResNet[He+, CVPR16] Tailored rule โœ“ Our method Background : Generating visual explanations for ResNet with LRP
  7. - 7 - GradCAM [Selvaraju+, ICCV17] Related work : Back-Propagation

    methods GradCAM [Selvaraju+, ICCV17] Gradients flowing to produce a coarse localization map. Input x Gradient [Shrikumar+, ICLR18] Multiplying the input image by the gradient of the output. LRP [Bach+, PLoS15] Propagating the prediction backward through the network layers.
  8. - 8 - Related work : Layer-Wise Relevance Propagation -

    an established theoretical framework LRP [Bach+, PloS15] n Layer-wise Relevance Propagation [Bach+, PLoS15] n Established theoretical framework n Transparent computational processes
  9. - 9 - : the relevance score of neuron ๐‘˜

    at layer ๐‘™ + 1 : activation of neuron ๐‘˜ : weight of the connection between neuron ๐‘– and neuron ๐‘˜ Related work : Layer-Wise Relevance Propagation - an established theoretical framework LRP [Bach+, PloS15]
  10. - 10 - : the relevance score of neuron ๐‘˜

    at layer ๐‘™ + 1 : activation of neuron ๐‘˜ : weight of the connection between neuron ๐‘– and neuron ๐‘˜ Related work : Layer-Wise Relevance Propagation - an established theoretical framework LRP [Bach+, PloS15] A rule must be defined for each type of layer
  11. - 11 - Proposed Method : The need for a

    new rule for the ResNet models ResNet50 architecture :
  12. - 12 - Proposed Method : The need for a

    new rule for the ResNet models ResNet50 architecture :
  13. - 13 - One bottleneck block: ResNet50 architecture : Proposed

    Method : The need for a new rule for the ResNet models Need for a tailored backpropagation rule
  14. - 14 - IDEA : Considering each bottleneck block as

    a single dense layer Proposed Method : Relevance backpropagation for Bottleneck layers
  15. - 15 - : Relevance of the layer L IDEA

    : Considering each bottleneck block as a single dense layer Proposed Method : Relevance backpropagation for Bottleneck layers
  16. - 16 - : Input of the Bottleneck block :

    Output of the Bottleneck block ๐ถ : Output channels ๐‘ˆ : Height ๐‘‰ : Width : Avoiding a zero division IDEA : Considering each bottleneck block as a single dense layer : Relevance of the layer L Proposed Method : Relevance backpropagation for Bottleneck layers
  17. - 17 - Choice Contour Component (๐ถ") : Removing unnecessary

    information Relevance map (LRP output) Proposed Method : Choice Contour Component : ๐‘ช๐Ÿ‘
  18. - 18 - Choice Contour Component (๐ถ") : Removing unnecessary

    information Relevance map (LRP output) Proposed Method : Choice Contour Component : ๐‘ช๐Ÿ‘ 1st Contour (findContours) 1st Component (connectedComponents) C1C [Iida+, SIG-AM23] TRUE Two binary masks are created
  19. - 19 - Choice Contour Component (๐ถ") : Removing unnecessary

    information Relevance map (LRP output) Proposed Method : Choice Contour Component : ๐‘ช๐Ÿ‘ 1st Contour (findContours) 1st Component (connectedComponents) C1C [Iida+, SIG-AM23] AND TRUE
  20. - 20 - Choice Contour Component (๐ถ") : Removing unnecessary

    information Relevance map (LRP output) Proposed Method : Choice Contour Component : ๐‘ช๐Ÿ‘ 1st Contour (findContours) 1st Component (connectedComponents) C1C [Iida+, SIG-AM23] AND Final Relevance map Only the pixels from BOTH the 1st contour and the 1st component are kept TRUE
  21. - 21 - Experimental setup : The CUB-200-2011 dataset n

    The CUB-200-2011 dataset [Wah+, 11] : n 11,788 images of birds n 200 classes n Split : 5,794:200:5,794 (train:val:test) Laysan Albatros Least Auklet
  22. Method Acc. โ†‘ Insertionโ†‘ Deletionโ†“ ID scoreโ†‘ RISE [Petsuik+, RMVC18]

    0.815ยฑ0.001 0.371ยฑ0.015 0.043ยฑ0.004 0.328ยฑ0.004 GradCAM [Selvaraju+, ICCV19] 0.815ยฑ0.001 0.466ยฑ0.019 0.156ยฑ0.008 0.310ยฑ0.020 LRP [Bach+, PLoS15] 0.815ยฑ0.001 0.063ยฑ0.007 0.051ยฑ0.006 0.011ยฑ0.001 ABN [Fukui+, CVPR19] 0.642ยฑ0.009 0.282ยฑ0.052 0.075ยฑ0.011 0.207ยฑ0.054 Ours 0.815ยฑ0.001 0.685ยฑ0.015 0.017ยฑ0.001 0.668ยฑ0.015 - 22 - Quantitative results : Our method outperformed the baseline methods
  23. - 26 - Qualitative results : Our method provided the

    most insightful explanations Original Ours ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  24. - 27 - Ours Qualitative results : Our method provided

    the most insightful explanations ยง Only one wing is attended ยง The attended area is vague Original ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  25. - 28 - Ours Qualitative results : Our method provided

    the most insightful explanations ยง The bird is correctly attended ยง The attended area is vague Original ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  26. - 29 - Ours Qualitative results : Our method provided

    the most insightful explanations ยง Almost no pixel is attended ยง Not an insightful explanation Original ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  27. - 30 - Ours Qualitative results : Our method provided

    the most insightful explanations ยง The bird is correctly attended ยง The background is also attended Original ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  28. - 31 - Ours Qualitative results : Our method provided

    the most insightful explanations ยง The bird is correctly attended ยง The shape of the birdโ€™s body is precisely attended Original ABN [Fukui+, CVPR19] LRP [Bach+, PloS15] GradCAM [Selvaraju+, ICCV17] RISE [Petsuik+, BMVC18]
  29. - 32 - Ablation study : ๐‘ช๐Ÿ‘ effectively generated high

    quality explanations +๐ŸŽ. ๐Ÿ’๐Ÿ‘๐Ÿ”
  30. - 33 - Ablation study : ๐‘ช๐Ÿ‘ effectively generated high

    quality explanations +๐ŸŽ. ๐ŸŽ๐Ÿ”๐Ÿ–
  31. - 34 - Conclusion : We successfully generated high quality

    explanations Contributions: โ€ข A method for calculating LRP in models with residual connections โ€ข ๐ถ!-LRP, which improves the quality of explanations ๐‘ช๐Ÿ‘-LRP LRP [Bach+, PloS15] output ๐ถ!-LRP output
  32. - 35 - Appendix : Failure case example โ€“ All

    the different methods failed to generate an insightful explanation Original Ours ABN [Fukui 19] LRP [Bach 15] GradCAM [Selvaraju 18] RISE [Petsuik 18] โ‡’ None of the different methods correctly attend the bird
  33. - 36 - Appendix : Error analysis - The method

    focusing on an insufficient part of the image Error Type IA OA WA #Error 63 21 16 Insufficiently Attended (IA) Over-Attended (OA) Wrongly-Attended (WA) โ€ข IA : The area of attention is too small. โ€ข OA : The area of relevance is excessively large โ€ข WA : The relevance is given to pixels that do not directly contribute to the classification.