TL;DR
Vision Graph Neural Networks (ViGs) are powerful tools for capturing global context in images, but they traditionally operate as uninterpretable black boxes. i-WiViG solves this by introducing a non-overlapping window encoder and a sparse graph attention bottleneck. This architecture generates clear, faithful, and semantic subgraph explanations of model decisions without sacrificing predictive performance.
What Problem Does This Paper Address?
While Convolutional Neural Networks (CNNs) excel at capturing local textures, Vision Graph Neural Networks (ViGs) have emerged to better model global interactions and irregular shapes by representing images as graphs of patches. However, ViGs suffer from a major drawback: they lack inherent interpretability.
This opacity stems from two main issues:
- Overlapping Receptive Fields: Standard ViG architectures use downsampling layers that cause the receptive fields of different graph nodes to heavily overlap. This blurs the spatial boundaries of what each node actually represents, making it impossible to isolate distinct object interactions.
- Noisy Image Graphs: Existing GNN explanation methods (like GSAT or GNNExplainer) were designed for natural graphs (e.g., molecules). When applied to images, they fail because image graphs are inherently dense, noisy, and full of redundant edges, leading to cluttered and uninformative explanations.
Methods
The authors introduce i-WiViG (Interpretable Window Vision GNN), which builds interpretability directly into the network architecture (ante hoc interpretability) using two core design choices:
- Non-overlapping Window Encoder: To fix the overlap problem, the authors redesign the downsampling layers. By strictly matching the convolution kernel size to the stride (e.g., $2\times2$ kernel with a stride of 2, and $4\times4$ with a stride of 4), they ensure that each graph node maps to a distinct, completely disjoint local window in the input image.
- Graph Bottleneck with Sparse Edge Attention: The model dynamically learns which connections between these disjoint windows actually matter for the final prediction. It employs a stochastic attention mechanism regularized by a novel sparsity loss function: $$\mathcal{L}_{\text{sparsity}}(\alpha) = \lambda_{\text{G}} \sum_{i=1}^{|E|} \alpha_i (1-\alpha_i) + \lambda_{\text{B}} \sum_{i=1}^{|E|} (\alpha_i - B)^2$$ The first term uses Gini impurity to force edge attention weights ($\alpha_i$) to a bimodal distribution (either 0 or 1), effectively pruning weak connections. The second term enforces a strict sparsity budget ($B$), ensuring only the most critical long-range interactions form the final explanatory subgraph.
Datasets
The architecture was validated across three distinct tasks spanning natural and remote sensing imagery:
- SUN397: A benchmark dataset for natural scene classification containing 397 distinct categories.
- NWPU-RESISC45: A remote sensing dataset containing 31,500 aerial images across 45 scene classes (e.g., bridges, harbors, airports).
- Liveability Dataset: A regression dataset consisting of 51,781 aerial images from the Netherlands, used to predict a composite neighborhood liveability score based on environmental attributes.
Key Insights and Ideas
- Sparsity is Mandatory for Vision Graphs: Unlike molecular graphs where most connections are meaningful, image graphs are naturally over-connected. Without an explicit mathematical push toward a bimodal edge distribution (via Gini impurity), explanation mechanisms yield dense, uninterpretable webs of attention.
- Interpretability Doesn't Require a Performance Penalty: A common assumption in deep learning is that constraining a model for the sake of interpretability degrades accuracy. i-WiViG proves otherwise, maintaining competitive performance while drastically reducing parameter overhead (from 13.3M parameters in standard WiGNet down to 12.2M).
- Spatial Consistency Matters: Restricting nodes to disjoint patches prevents the model from "cheating" by blending context across overlapping regions, forcing the graph mechanism to truly learn long-range spatial relationships.
Key Results
The authors evaluated explanation fidelity using insertion (adding important edges to see how fast accuracy recovers) and deletion (removing important edges to see how fast accuracy drops) metrics. A high Area Under the Curve (AUC) delta ($\Delta$AUC) between insertion and deletion indicates a highly faithful explanation.
Quantitative Performance
- Accuracy & Regression: On SUN397, i-WiViG achieved an accuracy of 0.58 (compared to 0.59–0.61 for black-box ViGs). On RESISC45, it achieved 0.92 accuracy. For the Liveability regression task, it achieved an $R^2$ score of 0.47, outperforming standard ResNet-18 (0.38) and matching top-performing black-box ViGs.
- Explanation Faithfulness: i-WiViG vastly outperformed post-hoc explainers. On the RESISC45 dataset, i-WiViG achieved a $\Delta$AUC of 0.45, compared to 0.24 for GNNExplainer and 0.0 for GSAT (which completely failed to distinguish discriminative edges from noise).
Qualitative Findings
Visualizations of the top 5% highest-rated attention edges showed that i-WiViG successfully ignores background noise (like water or irrelevant land) and focuses on semantic structures. For example, when classifying a "Bridge," i-WiViG uniquely highlighted the long-range connections linking the two opposite landmasses across the deck, providing an intuitive, human-readable justification for its prediction.
Limitations and Future Work
While the non-overlapping window encoder successfully isolates spatial regions, choosing the optimal window size (e.g., 1024 pixels in this work) represents a rigid architectural trade-off between fine-grained detail and computational efficiency. The authors note that while smaller window sizes can yield cleaner explanations, they require careful tuning to avoid losing critical local context. Future work could explore dynamic or multi-scale window sizes that adaptively adjust based on image content.
Summary updated