# Poster 28798

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28798

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, my name is Bartek and I'm glad to present to you our work Rethinking Visual-Conceptual Explanations through Region Constraint, accepted to the 13th International Conference on Learning Representations. In computer vision, one approach to explaining the reasoning of a classifier is by visual-contrapactual explanations.
For a given image on the left hand side, predicted as J, a VCE is a semantically modified version which results in a changed decision. Here to Bulbul, on the right. They allow us to understand whether the model is aligned with our semantic understanding of the images by indicating features required for this specific decision. At first glance, it suggests that the model's reasoning is primarily based on the bird's feathers and head.
However, after a closer inspection, we observe that the V_C_E_ modified the original in a variety of ways. For example, we see a previously unknown dis-change of the branch, modified clause, or even an entirely different copyright caption of the author. This begs the question: can we trust visual counterfactual explanations in their current form?
Our work addresses this issue with a simple idea, the region constraint. We propose to allow the changes to appear exclusively within a predetermined region for a given image while leaving the rest unchanged. RVCEs have a simple mathematical formulation. They originate from a distribution in which the classifier's decision is modified to a target class under only the predetermined region differs from the original.
Prior state -of-the-art methods on VCE generation utilize diffusion models, also called score-based generative models, together with classifier guidance used during gradual denoising. We argue that the nature of the considered problem suggests the use of a wider class of models, so-called diffusion bridges. We propose to utilize image-to-image Schrödinger bridges, a generalization of SGMs. For a predefined region, these models can solve the problem of inpainting while keeping the complement unchanged.
Since I2SB generalizes SGMs, its generation process can also be formulated as solving the reverse equation of the considered stochastic process, and its extension to a conditional case with guidance is straightforward. However, performing classifier guidance with a non-robust classifier cannot be done effectively through simple replacement due to out-of-manifold samples unobserved by the classifier during training, the issue identified and extensively analyzed by prior work.
Hence, for I_2_S_B_ we propose to improve upon the naive strategy of replacing the classifier through a series of steps. With a large-scale experiment, we analyze the effect of each proposed adaptation by depicting the achieved F_I_D_ value. At first, in each intermediate step of the reverse process, we input the Tweedie's estimate to our classifier instead of the noisy state X_T_ before computing the score of its likelihood.
By treating the conditional reverse equation as a gradient descent problem, we propose to correlate the gradients between consecutive steps using the Adam update rule. This further lowers FID but significantly increases the gradients norm, making it very difficult to properly choose optimal guidance scale. To counteract this, we introduce adaptive normalization. At the beginning of the generation, we cache the norm of the first encountered gradient and use it as a normalization constant for all subsequent steps.
This allows choosing close to optimal guidance scale and further lowers FID. At last, inspired by previous works, we propose to start the generation from an intermediate step of the forward process. This allows for precise control over how the original image is mixed with edits coming from the classifier. To obtain a fully autonomous algorithm, one must also extract the region in some automated manner.
We propose to base this component on the attribution methods which highlight pixels important for the model's decision. However, naively thresholding the attribution maps leads to highly dispersed and scattered regions. To address that, we use a simple post-processing step where the entire image is split into a grid of cells in which the attributions are aggregated. By thresholding the grid, we obtain regions that align with the semantic components of images.
In terms of results, our method leads to impressive boost in performance on ImageNet, one of the most challenging benchmarks, and sets new state of the art by a large margin. Visually, the extracted regions are well aligned with human intuition while the in-field content remains semantically valid. The explanations are highly informative and non-trivial.
For example, our pipeline allows for detecting the guacamole located in the background and infuse its region with a realistically looking cabbage, all done in a fully automated manner. We may also omit the dependency of the region on the classifier, for example by utilizing text condition segment anything model. In an example use case, we are able to find out what the classifier is missing to recognize an image of a volcano as a seashore.
By going to the extreme, we may even allow the user to provide the regions manually. For the first time, we showed that interactive control can be incorporated into the creation of VCEs. This opens another paradigm, where the regions are chosen very precisely, but they refer to highly abstract concepts that often cannot be described using natural language. This is just a fraction of experiments showing the capabilities of RCSV and RVCEs.
For more, make sure to read the full camera -ready version available on OpenReview. Thank you for attention and see you at the conference.
