Learning Interpretable Concept Groups in CNNs

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

Abstract

We propose a novel training methodology — Concept Group Learning (CGL) — that encourages training of interpretable CNN filters by partitioning filters in each layer into concept groups, each of which is trained to learn a single visual concept. We achieve this through a novel regularization strategy that forces filters in the same group to be active in similar image regions for a given layer. We additionally use a regularizer to encourage a sparse weighting of the concept groups in each layer so that a few concept groups can have greater importance than others. We quantitatively evaluate CGL's model interpretability using standard interpretability evaluation techniques and find that our method increases interpretability scores in most cases. Qualitatively we compare the image regions that are most active under filters learned using CGL versus filters learned without CGL and find that CGL activation regions more strongly concentrate around semantically relevant features.

Introduction

While deep learning has achieved remarkable success in computer vision, understanding the internal logic of Convolutional Neural Networks (CNNs) remains a challenge. Most existing research focuses on post-hoc interpretability—analyzing features after training is complete. However, there is a lack of techniques that actively steer the learning process toward interpretable representations from the outset.

Existing methods for disentangling representations often rely on strict architectural constraints that can degrade performance or require expensive, fine-grained annotations (e.g., object part labels). Concept Group Learning (CGL) addresses this by inducing unsupervised interpretability, allowing internal filters to naturally align with human-understandable concepts like colors, shapes, or objects using only standard classification labels.

Methodology

CGL modifies the standard CNN training objective by introducing three specialized components designed to organize and localize learned features.

Overview of Concept Group Learning (CGL): Filters are partitioned into groups (e.g., w1-w3) that learn distinct concepts like objects, scenes, or textures through specialized loss functions.

1. Concept Groups & Group Activation Loss ($L_g$)

Filters in each convolutional layer are partitioned into equal-sized groups. A novel loss function encourages filters within the same group to activate in similar image regions. This is achieved by calculating a "soft receptive field" using a sigmoid function on pre-activations and penalizing the soft equivalent of $1 - \text{IoU}$ (Intersection over Union) between filters in the same group.

2. Spatial Loss ($L_s$)

This regularizer forces individual filters to activate in a single, concentrated, and connected area of the image. By preventing a single filter from firing across multiple disjoint abstract concepts, $L_s$ ensures that learned features remain spatially localized and semantically coherent.

3. General Block Norm Regularizer ($R_{bn}$)

Replacing standard weight decay, this $L_{2,1}$-norm regularizer induces group-level sparsity. It encourages the network to rely on a parsimonious set of highly relevant concept groups while ignoring others, making the resulting model easier for humans to analyze.

Experimental Setup

The authors evaluated CGL across several benchmarks:

  • Synthetic Dataset: A controlled environment featuring images with shapes (square, circle, triangle) and colors (red, blue, green) to test if the network can recover known visual concepts.
  • ImageNet & Places365: Large-scale datasets used to test classification performance and real-world concept emergence.
  • Broden Dataset: Used for quantitative evaluation via "Network Dissection," measuring how well learned filters align with pixel-wise human-annotated concepts.

Key Results

CGL consistently improves interpretability with negligible impact on classification accuracy (less than 1% drop in Top-1 accuracy across AlexNet and VGG16).

Quantitative and Qualitative Gains

Using the Network Dissection metric, CGL increased the number of "unique detectors" (filters aligned with human concepts). For VGG16 on Places365, the count rose from 315 to 332. In synthetic tests, CGL recovered 14 out of 15 underlying concepts, compared to only 10 for standard training.

Qualitatively, the impact of the spatial loss is striking. As shown in the comparison below, CGL-trained filters produce much cleaner, more localized activations that tightly bound specific semantic features, whereas ordinary CNN filters often exhibit scattered and noisy activation patterns.

Qualitative comparison of activation maps: Ordinary CNN filters (top) show scattered activations, while CGL-trained filters with spatial loss (bottom) produce localized, semantically coherent regions.

Conclusion

Concept Group Learning demonstrates that interpretability can be an emergent property of the training process rather than just a post-hoc analysis tool. By using soft constraints and structured sparsity, CGL allows networks to discover human-understandable concepts without the need for expensive supervision. Future work may involve extending these structured sparsity techniques to other architectures, such as Transformers, to further disentangle complex neural representations.

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