Inducing Semantic Grouping of Latent Concepts for Explanations: An Ante-Hoc Approach

Anirban Sarkar, Deepak Vijaykeerthy, Anindya Sarkar, Vineeth N. Balasubramanian

Abstract

Self-explaining deep models are designed to learn the latent concept-based explanations implicitly during training, which eliminates the requirement of any post-hoc explanation generation technique. In this work, we propose one such model that appends an explanation generation module on top of any basic network and jointly trains the whole module that shows high predictive performance and generates meaningful explanations in terms of concepts. Our training strategy is suitable for unsupervised concept learning with much lesser parameter space requirements compared to baseline methods. Our proposed model also has provision for leveraging self-supervision on concepts to extract better explanations. However, with full concept supervision, we achieve the best predictive performance compared to recently proposed concept-based explainable models. We report both qualitative and quantitative results with our method, which shows better performance than recently proposed concept-based explainability methods. We reported exhaustive results with two datasets without ground truth concepts, i.e., CIFAR10, ImageNet, and two datasets with ground truth concepts, i.e., AwA2, CUB-200, to show the effectiveness of our method for both cases. To the best of our knowledge, we are the first ante-hoc explanation generation method to show results with a large-scale dataset such as ImageNet.

Introduction

Modern explainable AI (XAI) is dominated by post-hoc techniques like Grad-CAM or LIME, which attempt to interpret pre-trained "black-box" models. However, these methods often suffer from a "faithfulness gap," where the generated explanation may not accurately reflect the model's internal decision-making process.

Ante-hoc explainability—building interpretability directly into the model architecture—offers a more reliable alternative. Yet, existing ante-hoc methods face a "Goldilocks" problem: Concept Bottleneck Models (CBM) require expensive manual labeling, while others like Self-Explaining Neural Networks (SENN) struggle with scalability and accuracy on complex datasets. This paper introduces a flexible framework that bridges this gap, achieving state-of-the-art accuracy and interpretability across diverse datasets, including the first successful application to large-scale ImageNet.

Methodology

The proposed framework introduces a modular architecture that can be integrated with any standard backbone network (e.g., ResNet). It decouples the prediction task from the explanation task, allowing the model to maintain high accuracy while learning human-understandable concepts.

The proposed ante-hoc architecture featuring a concept encoder, decoder, and multiple loss functions to ensure fidelity and semantic meaning.

The architecture consists of three primary components:

  • Concept Encoder ($\Psi$): Compresses high-level features from the backbone into a set of $C$ latent concepts.
  • Concept Decoder ($h$): Reconstructs the original image from these concepts using a reconstruction loss ($L_R$). This forces the concepts to capture essential semantic information rather than collapsing into noise.
  • Fidelity Loss ($L_F$): Ensures the learned concepts are individually informative by penalizing discrepancies between the backbone's prediction and a prediction made solely from the concepts.

The framework is highly flexible, supporting unsupervised, self-supervised (using auxiliary tasks like rotation prediction), and supervised concept learning modes.

Experimental Results

The researchers evaluated their framework on four major benchmarks: CIFAR10 and ImageNet (unsupervised/self-supervised) and AwA2 and CUB-200 (supervised). Notably, this is the first ante-hoc explanation method to report results on the massive ImageNet dataset, proving the approach is robust enough for real-world scale.

Key findings include:

  • Superior Accuracy: On CIFAR10, the model achieved 91.68% accuracy, significantly outperforming the SENN baseline (84.5%).
  • High Faithfulness: The learned concepts were more predictive of the final class label than those generated by post-hoc methods.
  • Functional Explanations: Because the concepts are tied to the prediction via the Fidelity Loss, they are functional.
Qualitative results showing how intervening on specific concept activations (zeroing them out) changes the model's final prediction, demonstrating functional faithfulness.

As illustrated in the intervention examples, zeroing out a specific concept activation (like "car wheel" or "weak") directly impacts the final classification. This proves the model truly relies on these learned semantic features for its decisions.

Conclusion

This work presents a scalable and accurate framework for ante-hoc concept learning. By leveraging reconstruction and fidelity losses, the model generates faithful explanations without sacrificing predictive performance. While training complexity is slightly higher due to the decoder, inference time remains nearly identical to standard models. Future research will explore "adaptive concept discovery" to automatically determine the optimal number of concepts for a given task.

Summary updated

BibTeX
@inproceedings{sarkar2022inducing,
  author = {Anirban Sarkar and Deepak Vijaykeerthy and Anindya Sarkar and Vineeth N. Balasubramanian},
  title = {{Inducing Semantic Grouping of Latent Concepts for Explanations: An Ante-Hoc Approach}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=UOCNVdj2Puo},
}
Figure