arXiv:2611.22853cs.CVNov 2026

Manuscript Offprint

arXiv:2611.22853

Keeping Parts Honest: Isolated Part Graphs for Faithful Vision Transformer Explanations

Bernard Tomczyk, Gail Collyer-Hoar, Bryan Williams

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Part and prototype-based explanations for Vision Transformers (ViTs) present a decision as evidence from individual image regions. However, self-attention mixes information across patches, so part-level features absorb context from the whole image and consequently fail to faithfully reflect the decision. We show that existing interpretable ViT classifiers depend heavily on this leakage: when each explained region is encoded in isolation, their accuracy collapses, and retraining them under isolation recovers only part of the lost accuracy. We propose a classifier that represents each image as a graph of isolated parts. Each part is encoded only from its own patches by a ViT whose last blocks are fine-tuned under isolation, preventing evidence leakage from elsewhere in the image. Parts are discovered without annotation and refined hierarchically through their sub-parts, making them more consistent and stable across images than those of competing methods. Each edge is computed from part pairs, and recovers evidence that attention previously shared across the object without affecting the parts. Matching the image graph to a learned prototype graph per class makes the prediction a direct combination of node and edge similarities, each computed only from the patches it is credited to, so every explanation is faithful by construction. Across 11 fine-grained and general-object benchmarks, our method exceeds the accuracy of existing explainable methods that rely on leakage, while providing explanations that reflect what the model actually uses. Code will be made publicly available.

1 Introduction

Figure

Figure 1: Our approach discovers unannotated coarse and fine sub-parts, encodes each in isolation and connects pairs by edges. The resulting prediction is an exact sum of node z(k)z^{(k)} and edge z(uv)z^{(uv)} terms, each computed only from its credited part or pair (top). When an explained part is replaced by the mean colour, an existing part-based model [80] still credits it 99% of its original evidence, leaked from elsewhere (a), while ours leaked none (b).

Vision Transformers (ViTs) [20] now underpin much of visual recognition, yet our understanding of how they reach a decision has not kept pace with their accuracy [65, 38, 55]. Where decisions must be inspected or contested, as in health [42, 61] or autonomous driving [45, 19], an explanation is only useful if it reflects what the model actually used. Post-hoc attributions such as attention rollout and gradient saliency [1, 62, 15] highlight where a model is sensitive, but can be insensitive to the model itself [2], can be manipulated [64], and can mislead users into trusting incorrect predictions [63, 67]. Part- and prototype-based classifiers, instead, build the explanation into the decision itself, classifying an image because a part of it ‘looks like’ a prototypical part [16] and reporting the evidence of each part alongside the prediction [50, 44, 77, 6, 80].

Self-attention mixes information across all patches so, after a few blocks, a token located on a part also carries evidence from the rest of the image [1, 5], and evidence credited to a part may come from elsewhere, in which case the explanation shows where the model points rather than what it used [75, 31]. We measure for the first time how much existing interpretable ViT classifiers depend on such leakage, by encoding their explained regions in isolation, so that each region sees only its own patches. We find that their accuracy collapses, dropping on CUB-200 [73] by 33 points for PDiscoFormer [6] and Zhu et al. [80], by 40–48 points for ProtoPNet and ProtoPFormer [16, 77], and by 82 points for ProtoViT [44]. Retraining them under isolation recovers only part of this and, measured from pixels, 8–52% of the evidence a typical method assigns to a part changes when the other parts are removed. These classifiers depend on evidence their explanations do not show.

We propose IsoPartFormer, a classifier that represents each image as a graph of isolated parts (Fig. 1) and is built around a single constraint, which we call region faithfulness, that every term of the decision is computed only from the pixels to which it is credited. Each part is encoded only from its own patches, with positions expressed relative to the part, by a ViT whose early blocks are frozen and whose last blocks are fine-tuned under isolation. Since an isolated part can no longer borrow context, it must be informative on its own, so we discover parts without annotation by learning coarse object parts jointly with their finer sub-parts, which aligns the sub-parts markedly better with object anatomy. Rather than forbidding interaction between parts, we make it explicit. Two parts can exchange information only within an edge computed from that pair alone, whose term is credited to the pair and leaves the term of each part unchanged. Matching the image graph to a learned prototype graph per class then makes the prediction an exact sum of node and edge terms. Models that are faithful by construction have so far decomposed the decision over pixels [10], patches [33], or feature groups selected per image [78], none of which correspond to the same region across images, whereas our unit is a semantic part shared across images, so that the part-level explanations through which part- and prototype-based models are read become faithful themselves. Our key contributions are:

  1. We introduce an isolation audit, applicable to any classifier that explains its decision through image regions, and use it to show that state-of-the-art part- and prototype-based ViT classifiers depend heavily on evidence leaked through self-attention, losing most of their accuracy when their explained regions are encoded in isolation.
  2. We propose IsoPartFormer, a classifier that is region-faithful by construction, in which each part is encoded as a separate token stream with part-relative positions and all interactions between parts are confined to pair edges that are themselves explained terms.
  3. We introduce hierarchical part discovery that learns coarse object parts jointly with nested finer sub-parts without part annotation, yielding more consistent and stable parts across images than competing methods.
  4. We show across 11 benchmarks that this guarantee does not require an accuracy sacrifice, since our model exceeds the mean accuracy of leaky interpretable classifiers and outperforms all of them under the same isolation on 10 of the benchmarks, while its explanations pass the model-randomisation test [2], show no cross-part conflation, and predict the effect of removing a part far better than competing methods (rank correlation 0.94 vs. at most 0.34).

References (43)