Learning Interpretable Concept Groups in CNNs

Saurabh Varshneya, Antoine Ledent, Robert A. Vandermeulen, Yunwen Lei, Matthias Enders, Damian Borth, Marius Kloft

Abstract

Convolutional Neural Networks (CNNs) are powerful but often operate as "black boxes" with entangled internal representations. We present Concept Group Learning (CGL), a training methodology that encourages filters to organize into semantically cohesive groups (e.g., "dogs," "clouds," or "textures") without requiring human-annotated concept labels. By introducing specialized loss functions—Group Activation Loss, Spatial Loss, and General Block Norm Regularization—CGL induces interpretability during the learning process with a negligible impact (often <1%) on classification accuracy.

Introduction

Most research in Explainable AI (XAI) focuses on post-hoc analysis, attempting to interpret models that have already been trained. However, standard training objectives do not prioritize interpretability, often resulting in redundant, noisy filters that react to abstract patterns incomprehensible to humans. CGL shifts this paradigm by moving from measuring interpretability to enforcing it as a structural constraint. The goal is to create a framework where the network naturally organizes its internal logic into human-understandable categories in an unsupervised manner.

Methods

The CGL framework partitions filters in each layer into $G$ groups before training begins. Three novel components are added to the standard training objective to guide these groups:

  1. Group Activation Loss ($L_g$): This ensures that all filters within a specific concept group activate on the same regions of an image. It uses a soft Intersection over Union (IoU) metric to penalize filters in the same group if their focus is not aligned.
  2. Spatial Loss ($L_s$): This encourages each filter to focus on a single, connected area of an image, minimizing spatial variance and preventing scattered activations.
  3. General Block Norm Regularizer ($R_{bn}$): Replacing standard weight decay, this promotes "group sparsity," encouraging the network to utilize a few highly relevant concept groups for a given task rather than spreading information thinly across all filters.
Overview of the CGL framework, showing how filters are partitioned into semantically meaningful groups like 'dog' or 'clouds' based on activation maps.

Crucially, the method includes a mechanism to "undo" Batch Normalization specifically for interpretability loss calculations, preserving the performance benefits of normalization without sacrificing the clarity of the learned features.

Experimental Setup and Results

The authors evaluated CGL on three distinct setups: a controlled Synthetic Dataset, Places365 for scene recognition, and ImageNet for object recognition. Using the Broden dataset—which contains pixel-level annotations for objects, parts, textures, and colors—the researchers scored how well filters aligned with human concepts.

Key Findings

  • Increased Interpretability: CGL-trained models discovered significantly more unique human-interpretable concepts. For example, on Places365 with AlexNet, the interpretability score rose from 130 to 185.
  • Improved RUD Score: The Ratio of Unique Detectors (RUD) improved across almost every test case (AlexNet, VGG16), indicating a higher percentage of the network's filters were performing human-understandable tasks.
  • Qualitative Focus: Visualizations demonstrate that CGL filters concentrate tightly on semantic features, whereas standard filters often exhibit noisy activation maps triggered by irrelevant background pixels.
Qualitative comparison of activation maps between an ordinary CNN and a CNN trained with spatial loss, demonstrating more localized and semantic focus.

Discussion and Limitations

CGL demonstrates that the perceived trade-off between interpretability and accuracy is largely a myth; by using "soft" constraints, high interpretability is achievable with minimal accuracy loss. Furthermore, the method shows that redundancy within groups is a feature, allowing the model to capture concepts more robustly than single filters could.

However, challenges remain. The number of groups ($G$) is a hyperparameter that requires careful tuning to avoid entanglement or over-sparsity. Additionally, while CGL works well for individual layers, maintaining layer-wise consistency across very deep architectures like ResNets remains an open area for future research.

Summary updated

BibTeX
@inproceedings{varshneya2021learning,
  author = {Saurabh Varshneya and Antoine Ledent and Robert A. Vandermeulen and Yunwen Lei and Matthias Enders and Damian Borth and Marius Kloft},
  title = {{Learning Interpretable Concept Groups in CNNs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/147},
}
Figure