Hybrid CNN -Interpreter: Interpret local and global contexts for CNN-based Models

Wen‐Li Yang, Guan Huang, Renjie Li, Jiahao Yu, Yanyu Chen, Quan Bai, Beyong Kang · DOI

Abstract

Convolutional neural network (CNN) models have seen advanced improvements in performance in various domains, but lack of interpretability is a major barrier to assurance and regulation during operation for acceptance and deployment of AI-assisted applications. There have been many works on input interpretability focusing on analyzing the input-output relations, but the internal logic of models has not been clarified in the current mainstream interpretability methods. In this study, we propose a novel hybrid CNN-interpreter through: (1) An original forward propagation mechanism to examine the layer-specific prediction results for local interpretability. (2) A new global interpretability that indicates the feature correlation and filter importance effects. By combining the local and global interpretabilities, hybrid CNN-interpreter enables us to have a solid understanding and monitoring of model context during the whole learning process with detailed and consistent representations. Finally, the proposed interpretabilities have been demonstrated to adapt to various CNN-based model structures.

Introduction

Despite their state-of-the-art performance, Convolutional Neural Networks (CNNs) remain "black boxes." Most existing interpretability methods focus on input visualization, such as heatmaps showing which pixels the model prioritized. While useful, these techniques fail to explain the internal logic: which specific filters are driving decisions, and whether every layer contributes meaningfully to the final prediction. In high-stakes environments like healthcare, understanding the relationship between internal feature maps and the final output is critical to ensure models are not relying on irrelevant noise or "shortcuts."

Methodology: The Hybrid Approach

The proposed Hybrid CNN-Interpreter addresses these gaps through a two-pronged approach that evaluates both local and global contexts.

1. Local Interpretability: Stacking Forward Propagation

Standard CNNs provide a prediction only at the final layer. This framework introduces a mechanism to "short-circuit" the model by connecting the output of any specific intermediate layer directly to a final probability mapping layer. This allows researchers to examine what the model "thinks" based solely on features learned up to that point in the architecture.

2. Global Interpretability: Regression-based Analysis

To understand model behavior across an entire dataset, the framework employs a Ridge Regression model. The mean values of feature maps (outputs of specific filters) serve as independent variables, while the CNN’s final output probability is the dependent variable. By calculating coefficients, t-values, and p-values, the system statistically ranks every filter by its importance to the final decision.

Schematic of the stacking forward propagation and regression-based importance analysis.

Experimental Setup

The interpreter was evaluated using a Brain Tumor MRI dataset, consisting of 2,065 augmented images (1,085 positive, 980 negative). The researchers tested the framework on two distinct architectures: AlexNet (a sequence-based model) and ResNet (a block-based model).

Key Insights and Results

The Hybrid CNN-Interpreter revealed several critical aspects of CNN behavior:

  • Layer Efficiency: Local interpretation showed that adding more layers does not always increase confidence. In some instances, middle layers produced more accurate local predictions than the final layer, suggesting that deeper layers can occasionally introduce noise for specific samples.
  • Filter Importance: The global analysis identified "hero" filters that consistently provided strong positive contributions to correct classifications. Conversely, "negative" filters were found to decrease model confidence when present.
  • Consistency: Local and global interpretabilities were found to be consistent. Filters identified as statistically important globally typically aligned with recognizable features, such as tumor edges, in local image samples.
  • Semantic Gap: As models increase in depth (e.g., ResNet), feature maps become more abstract. While accuracy improves, the visual representations become harder for humans to interpret semantically.
Overview of the Hybrid CNN-Interpreter framework showing local and global explanations across different CNN structures.

Conclusion and Future Work

The Hybrid CNN-Interpreter provides a robust tool for monitoring model context throughout the learning process. By identifying filters with negligible or negative effects, this framework offers a path toward model pruning—removing redundant neurons to create faster, lighter models without sacrificing accuracy. Future work includes scaling the interpreter to larger datasets like ImageNet and developing "self-debugging" models that can automatically re-weight or skip underperforming layers during training.

Summary updated

Abstract

Convolutional neural network (CNN) models have seen advanced improvements in performance in various domains, but lack of interpretability is a major barrier to assurance and regulation during operation for acceptance and deployment of AI-assisted applications. There have been many works on input interpretability focusing on analyzing the input-output relations, but the internal logic of models has not been clarified in the current mainstream interpretability methods. In this study, we propose a novel hybrid CNN-interpreter through: (1) An original forward propagation mechanism to examine the layer-specific prediction results for local interpretability. (2) A new global interpretability that indicates the feature correlation and filter importance effects. By combining the local and global interpretabilities, hybrid CNN-interpreter enables us to have a solid understanding and monitoring of model context during the whole learning process with detailed and consistent representations. Finally, the proposed interpretabilities have been demonstrated to adapt to various CNN-based model structures.
BibTeX
@misc{yang2022hybrid,
  author = {Wen‐Li Yang and Guan Huang and Renjie Li and Jiahao Yu and Yanyu Chen and Quan Bai and Beyong Kang},
  title = {{Hybrid CNN -Interpreter: Interpret local and global contexts for CNN-based Models}},
  year = {2022},
  eprint = {2211.00185},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.00185},
}
Figure