Sparse Subspace Clustering for Concept Discovery (SSCCD)

Johanna Vielhaben, Stefan Blücher, Nils StrodthoffarXiv 2022 · DOI

Introduction

Explainable AI (XAI) has traditionally relied on local attribution methods, such as heatmaps, to highlight pixels influencing a specific classification. While helpful for individual images, these methods often fail to capture how a model generalizes concepts across thousands of samples. To achieve a more robust understanding, researchers have turned to "concept-based" explanations.

However, existing methods like ACE or ICE often rely on human-defined heuristics (like superpixels) or overly simplistic assumptions (treating a concept as a 1D vector). The Sparse Subspace Clustering for Concept Discovery (SSCCD) framework addresses these limitations by defining concepts as low-dimensional linear subspaces within a neural network's hidden layers, allowing for a more faithful representation of the model's internal logic.

The SSCCD Framework

The core innovation of SSCCD is the treatment of concepts as multidimensional subspaces rather than single directions. This approach better captures "intra-concept diversity"—for instance, recognizing that a "nose" or a "wheel" can appear very differently depending on the perspective.

The SSCCD pipeline follows a three-step process:

  1. Sparse Self-Representation: Each feature vector is expressed as a sparse linear combination of other feature vectors, identifying inherent groupings without assuming a single central cluster point.
  2. Spectral Clustering: A similarity matrix derived from the first step is used to cluster features into distinct, coherent concepts.
  3. Subspace Basis Identification: Principal Component Analysis (PCA) is applied to each cluster to find a robust basis defining the concept's subspace.
The SSCCD testing phase involves measuring principal angles to create concept maps and calculating relevances and similarities.

Once discovered, these concepts are evaluated using Concept Maps, which upsample feature-level data to the input image size. Relevance is quantified using attribution methods like Integrated Gradients, while Grassmann distance allows for mathematical comparison of concepts across different classes or models.

Experimental Setup

The researchers evaluated SSCCD using two primary benchmarks:

  • ImageNet: Utilizing pretrained VGG16 and ResNet50 models to discover concepts in complex object recognition tasks, such as "police vans" and "basketballs."
  • CelebA: Training a ResNet50 from scratch to identify concepts related to human facial attributes like "smiling" or "young."

Key Insights and Results

SSCCD demonstrates that multidimensional subspaces are superior to 1D vectors for capturing complex concepts. In the "basketball" class, for example, the method successfully isolated the ball, the gym floor, and the players' jerseys as distinct concepts, whereas 1D methods often produced incoherent results.

Qualitative results showing localized concept maps discovered by SSCCD across different models and datasets.

Model-Centric Discovery and Transferability

Unlike methods that pre-segment images, SSCCD is "true to the model," discovering what the network actually utilizes for decision-making. Furthermore, because concepts are defined as subspaces, they exhibit high transferability. A "wheel" concept discovered in one vehicle class is mathematically similar to the "wheel" concept in another, enabling a universal understanding of model perception.

Quantitative Performance

In the Smallest Destroying Concepts (SDC) benchmark—where concepts are removed to measure the drop in model accuracy—SSCCD outperformed both ACE and PCA-based baselines. This indicates that the discovered subspaces are more relevant to the model's actual decision-making process. Additionally, the ranking of concept importance remained consistent across different attribution methods, highlighting the robustness of the discovered subspaces.

Conclusion and Future Work

SSCCD provides a powerful tool for moving beyond simple heatmaps toward a structured, concept-based understanding of deep learning models. While currently focused on CNNs, future work aims to apply this framework to Transformer architectures and further bridge the gap between model-centric discovery and human-interpretable descriptions. By treating concepts as subspaces, SSCCD offers a more nuanced and faithful window into the "black box" of neural networks.

Summary updated

BibTeX
@misc{vielhaben2022sparse,
  author = {Johanna Vielhaben and Stefan Blücher and Nils Strodthoff},
  title = {{Sparse Subspace Clustering for Concept Discovery (SSCCD)}},
  year = {2022},
  eprint = {2203.06043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.06043},
}
Figure