Finer-CAM: Spotting the Difference Reveals Finer Details for Visual Explanation

Ziheng Zhang, Jianyang Gu, Arpita Chowdhury, Zheda Mai, David Carlyn, Tanya Y. Berger-Wolf, Yu Su, Wei-Lun Chao · DOI

Abstract

Standard Class Activation Maps (CAMs) often produce "blurry" explanations that highlight an entire object rather than the specific features that define its species or model. We introduce Finer-CAM, which reframes visual explanation as a "spot the difference" task: instead of asking "Why is this a bird?", it asks "What makes this a Blue Grosbeak instead of a Grandala?", resulting in much more precise localization of fine-grained discriminative details.

Introduction: The Coarseness Problem in XAI

In Explainable AI (XAI), Class Activation Maps (CAMs) are essential for interpreting deep learning models by producing heatmaps of pixel contributions. However, CAMs struggle with fine-grained classification—tasks where differences between classes are subtle, such as distinguishing between similar bird species or aircraft models.

The core issue is not the mathematical calculation of importance, but the explanatory objective. Standard CAMs evaluate a target class logit in isolation. Since similar classes share many features (e.g., wings, tails), the resulting heatmap often highlights the entire object, failing to pinpoint the "smoking gun" features like unique beak shapes or wing patterns.

High cosine similarity between top classes in fine-grained datasets necessitates a more discriminative approach.

Methods: Explaining via Comparison

Finer-CAM introduces a simple yet effective modification to the CAM formula. Instead of calculating importance weights for a target class $c$ alone, it computes them based on the difference between the target class $c$ and a similar reference class $d$.

The "Spot the Difference" Objective

The importance weight for a feature channel $k$ is defined as: $$\alpha_k^{c,d} = \alpha_k^c - \gamma \alpha_k^d$$ where $\gamma$ represents the "comparison strength" coefficient.

By subtracting the influence of a similar class, Finer-CAM suppresses shared features (like general body shape) and amplifies features unique to the target. This approach is "plug-and-play," compatible with gradient-based (Grad-CAM), score-based (Score-CAM), and multi-modal models (CLIP). To ensure robustness, explanations are often aggregated across the top-3 most similar classes.

Finer-CAM identifies discriminative features by comparing the target class (Blue Grosbeak) against a similar reference (Grandala).

Evaluation and Results

Finer-CAM was evaluated across five fine-grained datasets: Birds-525, CUB-200, Stanford Cars, FGVC-Aircraft, and FishVista.

Quantitative Performance

The authors introduced a new metric, Relative Confidence Drop (RD), which measures the drop in model confidence for the target class relative to a similar class when highlighted pixels are masked. Finer-CAM consistently outperformed traditional methods like Grad-CAM and Layer-CAM across all benchmarks. Additionally, in the "Energy-based Pointing Game," Finer-CAM demonstrated superior localization accuracy by effectively suppressing background noise.

Qualitative Superiority

Visually, Finer-CAM produces significantly cleaner maps. While Grad-CAM might highlight a bird's entire body and its surroundings, Finer-CAM pinpoints specific traits like a crest or unique wing pattern, providing a more focused explanation of the model's decision logic.

Discussion and Future Work

A key insight of this work is that the coarseness of current XAI is often a limitation of the objective rather than the algorithm. By tuning the $\gamma$ parameter, users can adjust the granularity of the explanation, from a coarse overview to a "microscopic" view of distinguishing textures.

However, Finer-CAM's effectiveness depends on the underlying model's accuracy; it explains the model's logic, not necessarily biological ground truth. Future work includes developing more sophisticated strategies for reference class selection and integrating "expert-in-the-loop" systems where humans can specify reference classes to probe specific model understandings.

Summary updated

BibTeX
@inproceedings{zhang2025finer,
  author = {Ziheng Zhang and Jianyang Gu and Arpita Chowdhury and Zheda Mai and David Carlyn and Tanya Y. Berger-Wolf and Yu Su and Wei-Lun Chao},
  title = {{Finer-CAM: Spotting the Difference Reveals Finer Details for Visual Explanation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00898},
}
Figure