TRANSMISSION // 1905.10797v2

How SANE Explains a Fixed Model’s Image Matches

Source published

SANE pairs highlighted image regions with an attribute to explain a fixed image-similarity model’s score. Tests on fashion and animal images are promising, but limited.

AI-generated conceptual illustration for How SANE Explains a Fixed Model’s Image Matches
AI-generated conceptual illustration; not documentary evidence.

Image-similarity models assign scores to pairs of pictures, but a score alone does not show which features influenced it. Researchers introduce SANE, a method that combines highlighted image regions with an attribute to help explain a fixed model’s score.

The question: why did the model match these images?

Some computer-vision systems compare two images and return a similarity score. Such models can be used for image retrieval, fashion compatibility and other tasks. But the score alone does not reveal what influenced the comparison.

Explanations developed for image classifiers do not directly answer that question. A classifier explanation typically highlights regions of one image that contributed to a category prediction. For a similarity model, the explanation depends on a pair: what matters in one image may depend on the image it is compared with. And a highlight alone can be hard to interpret. Identifying a necklace as important, for example, does not say what about it helps explain a match.

The researchers propose SANE, short for Salient Attributes for Network Explanation. It pairs a saliency map—a visual indication of regions that affect a similarity score—with an attribute, such as a color or pattern, intended to make the explanation more interpretable.

How the method works

SANE is designed to explain a fixed, already-trained similarity model; it does not replace or retrain that model. To estimate important image regions, the researchers adapt several saliency methods. These methods perturb image regions and measure how the similarity score changes. In their experiments, they considered two strategies: changing the query image while keeping the reference fixed, or perturbing both images. They generally found better saliency-map performance when the reference stayed fixed, and note potential complications when both images are changed.

An attribute-prediction network estimates which attributes are present and where they appear. During training, SANE encourages an attribute’s activation map to overlap with regions identified as important to similarity. At explanation time, it ranks candidate attributes using how well their regions align with the saliency map, the attribute’s predicted likelihood, and an estimate of how useful that attribute tends to be for explaining the model.

The explanation can depend on which image is being explained. The authors note that the attribute identified for one image need not be the same as the one identified for its partner.

Tests on fashion and animal images

The main evaluations used Polyvore Outfits, a fashion dataset, and Animals with Attributes 2, a collection of animal images with attribute annotations. The researchers tested image pairs and compared SANE with alternative attribute and saliency methods. For saliency maps, they measured how the model’s score changed as highlighted pixels were inserted into or removed from an image. For attributes, they tested whether changing a proposed attribute shifted the score more than changing attributes suggested by comparison methods. This attribute test is imperfect: using a representative image to alter one attribute can unintentionally change others.

The team also ran a user study. Fifty-nine participants, aged 14–50, each answered 10 questions. They saw an image and two possible matches and guessed which match the model scored higher. Depending on the condition, they saw no explanation, saliency maps, predicted attributes or SANE’s attributes, alone or in combination. Each question type received only one to four responses per question, so the accuracy comparisons should be read cautiously.

On the automatic attribute insertion and deletion measures, the full SANE approach—combining saliency-map matching with an attribute-utility estimate—performed best among the reported methods. Separately, saliency-map supervision improved attribute recognition compared with a simple attribute classifier: mean average precision rose from 53.2 to 56.0 on Polyvore and from 65.1 to 67.2 on Animals with Attributes 2. These are gains of 2.8 and 2.1 points, respectively.

User-study results varied by dataset. On Polyvore, participants’ accuracy was 66.0% with no explanation, 56.7% with saliency maps alone, 68.9% with SANE attributes alone and 70.0% with saliency maps plus SANE attributes. On the animal dataset, the corresponding results were 42.0%, 53.8% and 61.3% for no explanation, saliency alone and SANE attributes alone. The combined maps-and-attributes condition reached 52.5% on animals. The authors also report that participants’ ratings of whether explanations were helpful did not always align with their accuracy.

What the findings establish—and what they do not

The results suggest that an attribute can add information beyond a visual highlight, and that people may sometimes use SANE’s explanations to infer a model’s preference. They do not show that SANE exposes a model’s complete internal reasoning or that its explanations are faithful in every case. The method assumes that an attribute present in an image can help explain its contribution to a match; this may not apply to every image pair or model.

The main explanation experiments cover two datasets, and the small number of responses per user-study question limits how confidently the accuracy differences can be interpreted. The paper also explores unsupervised attribute discovery in an appendix, but describes that work as needing further investigation. Its attribute-change measures are noisy, in part because changing an image can alter more than the target feature.

This article is based on an arXiv preprint. The supplied source does not establish whether the manuscript has been peer reviewed. Its findings concern the particular models, datasets and study design tested; they do not establish that SANE will work equally well in other settings. The authors provide code, which may help others investigate the method.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Mammography AI heat maps perform worse in dense breasts—but the reasons matter

    Supporting evidence: Both papers indicate that a saliency map alone can be an incomplete explanation: SANE pairs maps with attributes and reports user-study benefits, while the mammography audit cautions that lesion localization is a weak proxy for whether a classifier relies on the lesion. These are compatible but distinct findings—image-pair explanations versus mammography localization and reliance—not a direct replication.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 1905.10797v2 — Original paper

      Excerpt reference: static/papers/1905.10797v2.md:113-157
      Basis: Paper text
      Source file SHA-256: c60acd0ca441ef282ed075912843d72993a7c3d6db42f866e322dba65fb64de6

    • 2611.05909v1 — Original paper

      Excerpt reference: static/papers/2611.05909v1.md:84-159
      Basis: Paper text
      Source file SHA-256: a08d6e8b5ff2a6daad3d2e50bf0c3ae7590886491f8784fa55f4b7fe0b4f3d7f

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.