UnionCAM: enhancing CNN interpretability through denoising, weighted fusion, and selective high-quality class activation mapping

Hao Hu, Rui Wang, Hao Lin, Huai YuFrontiers Neurorobotics 2024

Introduction

Convolutional Neural Networks (CNNs) have revolutionized computer vision, yet they remain largely "black box" models. To deploy these systems in high-stakes environments like healthcare or autonomous driving, interpretability is essential. Class Activation Mapping (CAM) has emerged as the standard for visualizing model focus, but existing methods often struggle with a trade-off between noise and completeness. Gradient-based methods (e.g., Grad-CAM) frequently highlight irrelevant background pixels, while region-based methods (e.g., Score-CAM) often fail to capture the full extent of an object.

UnionCAM addresses these limitations through a novel "denoising-union-selection" strategy. By fusing the fine-grained detail of gradients with the global context of region-based scores, it produces heatmaps that are both cleaner and more comprehensive than previous state-of-the-art techniques.

The UnionCAM Framework

The UnionCAM architecture is divided into three distinct modules designed to refine the visual explanation process sequentially.

The UnionCAM framework overview, illustrating the integration of the Denoising, Union, and Selection modules.

1. Activation Map Denoising (AMD)

The AMD module targets the noise inherent in gradient-based maps. Rather than using a fixed threshold, it employs an adaptive percentile-based threshold ($\theta$). Pixels with gradient values below this threshold are zeroed out, effectively stripping away background interference before the final map is constructed. This ensures that only the most relevant features contribute to the visualization.

2. Activation Map Union (AMU)

The AMU module performs a weighted fusion of the denoised gradient map and a region-based map. This hybrid approach leverages the strengths of both: gradients provide high-resolution detail, while region scores offer robust localization. The fusion is weighted by the contribution of each map to the model's final confidence score, creating a "fused CAM" that captures the object's global context without losing fine-grained edges.

3. Activation Map Selection (AMS)

To prevent the final output from being diluted by redundant or low-quality information, the framework includes a selection stage. It compares the fused CAM against the original region-based CAM and selects the candidate that yields the highest discriminative score for the target class.

Detailed view of the Activation Map Selection (AMS) process, which uses a weighted sum and comparison logic to form the final Union CAM.

Experimental Evaluation

The researchers validated UnionCAM using the ILSVRC2012 (ImageNet) validation set and the VOC2007 benchmark, utilizing a pre-trained VGG16 architecture as the base model. The framework was compared against major baselines, including Grad-CAM, Grad-CAM++, Score-CAM, and GroupCAM.

Quantitative Results

UnionCAM demonstrated superior performance across several key metrics on ImageNet:

  • Average Drop: Achieved 43.15% (lower is better), indicating that the regions highlighted are highly critical to the model's prediction.
  • Average Increase: Achieved 28.95% (higher is better), showing the method's ability to identify regions that significantly boost model confidence.
  • Insertion/Deletion Scores: UnionCAM reached an overall score of 45.3%, surpassing the previous best of 44.5% held by GroupCAM.

Qualitative Insights

Visually, UnionCAM produces heatmaps that are strikingly cleaner and more complete. In complex scenes featuring multiple targets—such as two birds in a single frame—UnionCAM successfully highlights both objects in their entirety. In contrast, traditional methods like Grad-CAM often blur the objects together or focus on a single, small texture, failing to provide a full explanation of the model's logic.

Conclusion and Future Work

UnionCAM represents a significant advancement in CNN interpretability by successfully bridging the gap between gradient-based and region-based CAM methods. While the framework currently faces challenges in extremely cluttered backgrounds where objects overlap heavily, its adaptive denoising and selective fusion provide a robust foundation for future research. The authors intend to expand this framework to more complex architectures, including Recurrent Neural Networks (RNNs) and Graph Neural Networks (GNNs), to provide human-understandable explanations across a broader range of AI applications.

Summary updated

BibTeX
@article{hu2024unioncam,
  author = {Hao Hu and Rui Wang and Hao Lin and Huai Yu},
  title = {{UnionCAM: enhancing CNN interpretability through denoising, weighted fusion, and selective high-quality class activation mapping}},
  journal = {Frontiers Neurorobotics},
  year = {2024},
  doi = {10.3389/fnbot.2024.1490198},
}
Figure