The repository contains lists of papers on causality and how relevant techniques are being used to further enhance deep learning era computer vision solutions.
The repository contains lists of papers on causality and how relevant techniques are being used to further enhance deep learning era computer vision solutions.
We are pleased to announce the launch of our comprehensive survey, titled "Towards Trustworthy and Aligned Machine Learning: A Data-centric Survey with Causality Perspectives," drawing from the papers succinctly outlined in this repository. This survey delves into the multifaceted realm of merging causality with various machine learning methodologies to attain trustworthiness, encompassing domains such as domain adaptation, domain generalization, and more. Furthermore, we explore the attributes and constraints of pre-trained large models, shedding light on their significance and limitations. Ultimately, we address the pivotal question of why causality, particularly in the context of trustworthiness, serves as a viable solution.
The repository contains lists of papers on causality and how relevant techniques are being used to further enhance deep learning era computer vision solutions.
The repository is organized by Maheep Chaudhary, and Haohan Wang as an effort to collect and read relevant papers and to hopefully serve the public as a collection of relevant resources.
The papers in this section focuses to use the concepts of Causality to increase the interpretability of the Neural Network.
Contrastive_Counterfactual_Visual_Explanations_With_Overdetermination
Maheep's Notes
The author slams the above works and contends that Counterfactual Explanation should be contrastive, counterfactual and measurable. It focuses to generate counterfactual explanation for medical image classification.
The author proposes the following things in the paper:
The author contends that the mask resulted from the subtraction of factual and counterfactual is not a good measure of explainability as it can vary significantly and also other critical segments shoud be absent. Therefore it takes mask, image and classification behaviour to generate counterfactual image.
The author implements it by
Born Identity Network: Multi-way Counterfactual Map Generation to Explain a Classifier’s Decision
Maheep's Notes
The paper focuses on interpretability of medical image classification and mainly focuses on 2 main problems, i.e.
The author proposes $M_{x,y}$ counterfactual map that transforms an input image $X$ to $\tilde{X} = X + M_{x,y}$
where $y$ is the counterfactual class, i.e. $F(\tilde{X}) = y$
It uses a U-net network consisting of Encoder $E$, Generator $G$ and Discriminator $D$. The combination of $E$ and $G$ produces $M_{x}$ as shown in the figure below:
The above process is guided by Target Attribution Network(TAN), which guides the generator to produce counterfactual maps that transform an input sample to be classified as a target class.
$M$ generates the image counterfactual image which is compared from the dataset distribution $P_{X}$, aiming to generate image of the same distribution, for which it uses Adversarial loss.
The Cycle Consistency loss(CCL) is used to regulate the "multi-way" counterfactual maps.
$$ L_{cyc} = E_{X \sim P_X, Y \sim P_Y}[||(\tilde{X} + M_{\tilde{x},y'}) - X||_1] $$
Explaining the Black-box Smoothly-A Counterfactual Approach
Maheep's Notes
The paper focuses on increasing the interpretability of medical imaging classification by generating counterfactual image by perturbing the original image.
It modifies the image using pre-trained function $f(\cdot) \in [0,1]$ The work aims to learn the explanatory function $I_f(\cdot)$ using the equation:
$$ x_{\delta} \approx I_f(x,\delta) $$
where
$$ f(x_{\delta}) - f(x) = \delta $$
It optimizes the overall process using 3 loss functions with $\phi(\cdot)$ defining a feature extractor, $\psi$ computes a scalar loss value, $\textbf{c}$ defining the one-hot vector of condition, which is $\textbf{c} = c_f(x, \delta)$ and $V$ is the embedding metrics modulated on $\textbf{c}$ as :
$$ L_{cGAN} = \psi(\phi(G(z);\theta_{\phi});\theta_{\psi}) + c^T V \phi(x;\theta_{\phi}) $$
$$ L := c^T V \phi(x;\theta_{\phi}) + D_{KL}(f(x')||f (x) + \delta) $$
$$ L = L_{rec}(x,\mathcal{I}f(x,0)) + L{rec}(x,\mathcal{I}_f({I}_f(x,\delta),-\delta)) $$
where
$$ L_{rec}(x,x') = \sum_j \frac{S_j(x)\odot||x-x'||1}{\sum S_j(x)} + D{KL}(O(x)||O(x')) $$
where $S(\cdot)$ is a pretrained semantic segmentation network that produces a label map for different regions in the input domain. $O(x)$ is a pre-trained object detector that, given an input image $x$ , output a binary mask $O(x)$
The author argues that there is a chance that the GAN may ignore small or uncommon details therfore the images are compared using semantic segmentation $S(\cdot)$ with object detection combined in identity loss.
Generative_Counterfactuals_for_Neural_Networks_via_Attribute_Informed_Perturbations
Maheep's Notes
The paper tries to generate counterfactual images using a low-dimensional latent space containing the raw features and attribute informed latent space, which are continously re-iterated for modification to generate a counterfactual image.
The author highlight some of the challenges in the existing works, generating counterfactual image to increase interpretability:
The author implements it by:
$$ E(x) = z_o + a_o $$
$$ z^{(n+1)} = z^n - \mu^n \nabla_z L_d(z^n, a^n, z_o, a_o, \overline{y}) $$
$$ a^{(n+1)} = a^n - \gamma^n \nabla_a L_d(z^n, a^n, z_o, a_o, \overline{y}) $$
where $L_d(\cdot)$ is the cross-entropy loss.
$$ l_c = l_d(F(G^{dec}(z,a)),\overline{y}) + ||z - z_o||_2 + ||a - a_o||_2 $$
$$ L = \sum_{i}^T \ -a_i \ log(D^i(\overline{x})) - (1 - a_i)\ log(1 - D^i(\overline{x})) + \mathbb{E} \ ||x - \overline{x}||_2 $$
The overall solution can be summed up using the equation below:
EXPLAINABLE IMAGE CLASSIFICATION WITH EVIDENCE COUNTERFACTUAL
Maheep's Notes
The author proposes to generate the counterfactual image b
No open issues yet, or sync has not completed.