Given a query image “I” for which a classifier model predicts class “c”, a counterfactual visual explanation identifies how “I” could change such that the system would output a different specified class c′ .
Interpretability using Diffusion
Rushikesh Zawar, Zhili Feng, Yutong He, Zico Kolter�rzawar@andrew.cmu.edu
Motivation
Visual Counterfacts
Guiding conditions
Conclusion & Future Work
With increasing use and integration of deep learning models in almost every aspect, a deeper understanding of their working becomes quite important. Diffusion models with their capabilities to generate images, can also be used to understand or even improve other models using Counterfactual Explanations (CFE). CFEs might assist in comprehending the rationale behind a classifier model's decisions and gaining insights into the determinations made by black-box neural network models. This could help evaluate a model especially for applications where false positives have high costs and thus evaluate their dependability.
References
Fig 1: Finding a region in a distractor image [1]
Visual Counterfact
Adversarial example
≠
Fig 4: Examples and their desired counterfactuals
Fig 2: CFE generation
Positive Samples
Non ideal Samples
Cheetah
Leopard
Cheetah
Tiger
Labrador
Golden Retriever
Loggerhead turtle
Box Turtle
Loggerhead turtle
Terrapin turtle
Cheetah
Cheetah
No change in classification
Changed to unintended class
Eq.1 : Modified description
Fig.3 : Magnified visual of feature change
Cheetah
Leopard
Fig.6 : Partial Information Decomposition[6]
Fig 5: Samples with their unintended counterfactuals
Diffusion for Counterfactual Explanation (CFE)
Given a query image “I” for which a classifier model predicts class “c”, a counterfactual visual explanation identifies how “I” could change such that the system would output a different specified class c′ .
Interpretability using Diffusion
Rushikesh Zawar, Zhili Feng, Yutong He, Zico Kolter�rzawar@andrew.cmu.edu
Motivation
Visual Counterfacts
Diffusion for Counterfactual Explanations (CFE)
Conclusion & Future Work
With increasing use and integration of deep learning models in almost every aspect, a deeper understanding of their working becomes quite important. Diffusion models with their capabilities to generate images, can also be used to understand or even improve other models using Counterfactual Explanations (CE). CEs might assist in comprehending the rationale behind a classifier model's decisions and gaining insights into the determinations made by black-box neural network models. This could help evaluate a model especially for applications where false positives have high costs and thus evaluate their dependability.
References
Fig 1: Finding a region in a distractor image [1]
Visual Counterfact
Adversarial Example
≠
Fig 5: Generated Examples and their Counterfactuals
Fig 2: CFE generation
Chancing description at different steps onwards can have varying effects. Further totally replacing a description i.e. a hard switch can have adverse effects. So instead a soft combination can help transition smoothly and generate more aligned image.
Positive Samples
Non ideal Samples
Cheetah
Leopard
Cheetah
Tiger
Labrador
Golden Retriever
Loggerhead turtle
Box Turtle
Loggerhead turtle
Terrapin turtle
Cheetah
Cheetah
No change in classification
Changed to unintended class
Improving the efficiency as it requires multiple iterations of the reverse process to create one sample, making it very slow.
Building a method that need not rely on a robust model during the creation of CEs and still avoid generating adversarial examples.��Use it for downstream applications like casual relation or mutual interaction detection.
Eq.1 : Modified description
Given a query image “I” for which a classifier model predicts class “c”, a counterfactual visual explanation identifies how “I” could change such that the system would output a different specified class c′ .
Interpretability using Diffusion
Rushikesh Zawar, Zhili Feng, Yutong He, Zico Kolter�rzawar@andrew.cmu.edu
Motivation
Visual Counterfacts
Diffusion for Counterfactual Explanations (CE)
Conclusion & Future Work
With increasing use and integration of deep learning models in almost every aspect, a deeper understanding of their working becomes quite important. Diffusion models with their capabilities to generate images, can also be used to understand or even improve other models using Counterfactual Explanations (CE). CEs might assist in comprehending the rationale behind a classifier model's decisions and gaining insights into the determinations made by black-box neural network models. This could help evaluate a model especially for applications where false positives have high costs and thus evaluate their dependability.
References
Fig 2: Finding a region in a distractor image [1]
Fig 4: CFE generation
Visual Counterfact
Adversarial Example
≠
Improving the efficiency as it requires multiple iterations of the reverse process to create one sample, making it very slow.
Building a method that need not rely on a robust model during the creation of CEs and still avoid generating adversarial examples.��Use it for downstream applications like casual relation or mutual interaction detection.
Fig 5: Generated Examples and their Counterfactuals
Fig 3: CNN as a feature extractor, with replaced features as input to classifier [1]
METHOD
Loss
Positive Samples
Negative Samples
Cheetah
Leopard
Cheetah
Tiger
Labrador
Golden Retriever
Loggerhead turtle
Box Turtle
Garden spider
Black widow spider
Cheetah
Cheetah
No change in classification
No change in classification
Diffusion for Counterfactual Explanations (CE)
Given a query image “I” for which a classifier model predicts class “c”, a counterfactual visual explanation identifies how “I” could change such that the system would output a different specified class c′ .
Interpretability using Diffusion
Rushikesh Zawar, Zhili Feng, Yutong He, Zico Kolter�rzawar@andrew.cmu.edu
Motivation
Visual Counterfacts
Diffusion
Conclusion & Future Work
With increasing use and integration of deep learning models in almost every aspect, a deeper understanding of their working becomes quite important. Diffusion models with their capabilities to generate images, can also be used to understand or even improve other models using Counterfactual Explanations (CE). CEs might assist in comprehending the rationale behind a classifier model's decisions and gaining insights into the determinations made by black-box neural network models. This could help evaluate a model especially for applications where false positives have high costs and thus evaluate their dependability.
References
Fig 1: Ex. of Counter Factual Explanation [4]
Fig 2: Finding a region in a distractor image [1]
Fig 4: Working of Diffusion Model
The input image is converted into a latent code, and a random noise vector is generated. The forward diffusion process gradually corrupts the input image/latent code, while the reverse diffusion process gradually refines the corrupted image back to the original. The diffusion steps and decoder network are trained to minimize a reconstruction loss function which ensures that the output image is similar to the input image.
Some works like [1] approach this problem by, selecting a ‘distractor’ image I′ that the system predicts as class c′ and identifies spatial regions in I and I′ such that replacing the corresponding region in I with with its counterpart in I′ would push the system towards classifying I as c′.
Visual Counterfact
Adversarial Example
≠
Improving the efficiency as it requires multiple iterations of the reverse process to create one sample, making it very slow.
Building a method that need not rely on a robust model during the creation of CEs and still avoid generating adversarial examples.
Fig 5: Diffusion models for counterfactual explanations[6]
Fig 3: CNN as a feature extractor, with replaced features as input to classifier [1]
Diffusion for Counterfactual Explanations (CE)
Given a query image “I” for which a classifier model predicts class “c”, a counterfactual visual explanation identifies how “I” could change such that the system would output a different specified class c′ .
Interpretability using Diffusion
Rushikesh Zawar, Zhili Feng, Yutong He, Zico Kolter�rzawar@andrew.cmu.edu
Motivation
Visual Counterfacts
Diffusion
Conclusion & Future Work
With increasing use and integration of deep learning models in almost every aspect, a deeper understanding of their working becomes quite important. Diffusion models with their capabilities to generate images, can also be used to understand or even improve other models using Counterfactual Explanations (CE). CEs might assist in comprehending the rationale behind a classifier model's decisions and gaining insights into the determinations made by black-box neural network models. This could help evaluate a model especially for applications where false positives have high costs and thus evaluate their dependability.
References
Fig 1: Ex. of Counter Factual Explanation [4]
Fig 2: Finding a region in a distractor image [1]
Fig 4: Working of Diffusion Model
The input image is converted into a latent code, and a random noise vector is generated. The forward diffusion process gradually corrupts the input image/latent code, while the reverse diffusion process gradually refines the corrupted image back to the original. The diffusion steps and decoder network are trained to minimize a reconstruction loss function which ensures that the output image is similar to the input image.
Some works like [1] approach this problem by, selecting a ‘distractor’ image I′ that the system predicts as class c′ and identifies spatial regions in I and I′ such that replacing the corresponding region in I with with its counterpart in I′ would push the system towards classifying I as c′.
Visual Counterfact
Adversarial Example
≠
Improving the efficiency as it requires multiple iterations of the reverse process to create one sample, making it very slow.
Building a method that need not rely on a robust model during the creation of CEs and still avoid generating adversarial examples.
Fig 5: Diffusion models for counterfactual explanations[6]
Fig 3: CNN as a feature extractor, with replaced features as input to classifier [1]