Understanding of Kernels in CNN Models by Suppressing Irrelevant Visual Features in Images

Jia-Xin Zhuang, Wanying Tao, Jianfei Xing, Wei Shi, Ruixuan Wang, Wei-Shi ZhengarXiv 2021

Abstract

Convolutional Neural Networks (CNNs) are often criticized as "black boxes" due to the difficulty in interpreting the specific visual features that trigger individual kernels. This paper introduces a novel optimization-based method designed to disentangle these features by preserving the activation of a target kernel while actively suppressing all other kernels in the same layer. By "silencing" the rest of the network, the optimization process isolates the exact visual stimuli—such as specific colors or textures—responsible for a kernel's response. Evaluated on VGG-16 using ImageNet and synthetic datasets, the proposed method demonstrates superior clarity and quantitative performance compared to traditional visualization techniques like Deconvolution and Guided Backpropagation.

Introduction

Despite their state-of-the-art performance, understanding why a specific kernel in a CNN fires remains a significant challenge. A primary hurdle is feature entanglement: in natural images, regions often contain overlapping information regarding color, shape, and texture. Standard interpretation methods like Deconvolution (Deconv) or Guided Backpropagation (GBP) often struggle to distinguish whether a kernel is responding to a leaf's "greenness" or its "vein pattern," frequently resulting in noisy visualizations. This research addresses this by providing a precise mapping between visual stimuli and kernel responses through targeted feature suppression.

Methodology: Feature Disentanglement via Optimization

The authors propose an optimization strategy that modifies an input image $\hat{X}$ via gradient descent to minimize a composite loss function consisting of three components:

  1. Preservation Loss ($L_p$): Ensures the target kernel's activation on the optimized image remains as close as possible to its original activation.
  2. Suppression Loss ($L_s$): This is the core innovation. It penalizes the activation of every other kernel in the same layer, forcing the optimization to strip away any visual information not strictly necessary for the target kernel.
  3. Regularization Loss ($L_r$): An $L_1$ norm applied to the image pixels to reduce noise and encourage a sparse, clean visualization.

By balancing these terms, the resulting image contains only the specific visual "triggers" for the kernel of interest.

Experimental Results

The method was evaluated using VGG-16 pre-trained on ImageNet. Quantitative analysis reveals that the proposed method achieves significantly lower Mean Squared Error (MSE) for non-target kernels compared to baselines like Deconv, LRP, and GBP. For instance, in VGG-16 Block 4, the method reached an MSE of 0.07 for other kernels, whereas baselines ranged from 1.02 to 2.10.

Quantitative comparison of kernel suppression performance across different interpretation methods.

Qualitatively, the method provides much higher clarity. While Deconv might visualize an entire blurry object to explain a kernel's activation, this method isolates the specific trigger, such as a patch of color or a specific texture. As shown in Figure 4, the method can even isolate specific hues from a complex color spectrum, proving that certain kernels are tuned to very narrow visual features.

Qualitative comparison of feature isolation across different images and synthetic spectra.

Discussion and Conclusion

The study reveals that kernels in deeper layers represent more distinct, separable concepts, while mid-level features are more interrelated and co-dependent. A limitation of the approach is its computational cost, as it requires a separate optimization process (up to 10,000 iterations) for each kernel-image pair. However, the ability to find "minimal" sufficient features makes it a valuable tool for high-stakes fields like medical diagnosis, where understanding the specific rationale behind a model's decision is critical for safety and regulatory compliance.

Summary updated

Abstract

Deep learning models have shown their superior performance in various vision tasks. However, the lack of precisely interpreting kernels in convolutional neural networks (CNNs) is becoming one main obstacle to wide applications of deep learning models in real scenarios. Although existing interpretation methods may find certain visual patterns which are associated with the activation of a specific kernel, those visual patterns may not be specific or comprehensive enough for interpretation of a specific activation of kernel of interest. In this paper, a simple yet effective optimization method is proposed to interpret the activation of any kernel of interest in CNN models. The basic idea is to simultaneously preserve the activation of the specific kernel and suppress the activation of all other kernels at the same layer. In this way, only visual information relevant to the activation of the specific kernel is remained in the input. Consistent visual information from multiple modified inputs would help users understand what kind of features are specifically associated with specific kernel. Comprehensive evaluation shows that the proposed method can help better interpret activation of specific kernels than widely used methods, even when two kernels have very similar activation regions from the same input image.
BibTeX
@misc{zhuang2021understanding,
  author = {Jia-Xin Zhuang and Wanying Tao and Jianfei Xing and Wei Shi and Ruixuan Wang and Wei-Shi Zheng},
  title = {{Understanding of Kernels in CNN Models by Suppressing Irrelevant Visual Features in Images}},
  year = {2021},
  eprint = {2108.11054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.11054},
}
Figure