GlanceNets: Interpretabile, Leak-proof Concept-based Models

Emanuele Marconato, Andrea Passerini, Stefano Teso

TL;DR

Concept-based models (CBMs) promise transparent AI by predicting outcomes via human-understandable concepts, but they frequently suffer from "concept leakage"—silently encoding unintended spurious information into these concepts. GlanceNets address this by redefining interpretability as semantic alignment with true generative factors and treating leakage as an out-of-distribution domain shift problem, using a VAE architecture combined with open-set recognition to detect and reject leaked data.

What Problem Does This Paper Address?

Concept-based models (CBMs) and Concept Bottleneck Models (CBNMs) are popular interpretability tools: rather than mapping raw inputs directly to a class label, an encoder first extracts high-level concepts (e.g., has wings, beak shape), and a simple linear layer maps those concepts to the final classification.

However, existing CBMs face two major hurdles:

  1. Ambiguous Interpretability: Most models rely on heuristic penalties (such as sparsity or orthogonality) without a rigorous definition of what makes a concept semantically faithful.
  2. Concept Leakage: Even when trained with ground-truth concept supervision, latent concept dimensions frequently absorb unobserved, confounding background signals. For example, a model trained to recognize the concepts for digits "4" and "5" might secretly encode whether a digit is even or odd into those concepts, breaking their intended meaning and providing misleading explanations.

Methods

The authors tackle these issues through two theoretical and algorithmic contributions:

  • Formalizing Interpretability as Alignment: Instead of relying on heuristics, the authors define a concept representation as interpretable if it is aligned with the underlying generative factors of the data through simple, monotonic transformations that preserve semantics. This builds an explicit bridge between CBMs and disentangled representation learning.
  • GlanceNets Architecture:
  • Split Latent Space: A variational autoencoder (VAE) backbone splits the latent space into $k$ interpretable concepts $Z_I$ (used by a linear layer for prediction) and $\bar{k}$ opaque latent factors $Z_{\bar{I}}$ (used solely for image reconstruction).
  • Class Prototype Priors: The prior $p(Z \mid Y)$ is modeled as a mixture of Gaussians, establishing class-specific prototypes in the latent space.
  • Supervised ELBO: The standard Evidence Lower Bound (ELBO) is augmented with an auxiliary cross-entropy loss over available concept annotations.
  • Open-Set Recognition (OSR) to Plug Leakage: The authors reframe concept leakage as a domain shift where unobserved factors stay fixed during training but vary at test time. GlanceNets detect these out-of-distribution inputs at inference time using two checks:
  • Distance from the predicted class latent prototype (outside a threshold radius $\eta_y$).
  • Abnormally high reconstruction error (exceeding a threshold $\eta_{thr}$). If an input triggers either threshold, it is flagged as an open-set instance and rejected (or assigned a random guess), preventing unintended information transfer.
Input X ---> Encoder q_phi(Z|X) ---> Latent Space Z = [ Z_I (Interpretable) | Z_opaque ]
                                         |                      |
                                   Classifier p_W(Y|Z_I)   Decoder p_theta(X|Z)
                                         |                      |
                                         v                      v
                               Prototype Distance Check    Reconstruction Error Check
                                         \                      /
                                          v                    v
                                     [ Open-Set Rejection (No Leakage) ]

Datasets

The authors evaluated their framework on both synthetic disentanglement benchmarks and real-world image datasets:

  • dSprites: A synthetic 2D shapes dataset parameterized by 5 generative factors (shape, scale, orientation, position X, position Y).
  • MPI3D: A dataset of real-world and simulated 3D physical objects recorded via a robotic arm across 7 factors of variation.
  • CelebA-64: A subset of ~127k celebrity face images restricted to 10 binary facial attribute concepts (e.g., smiling, eyeglasses, black hair, bald).
  • MNIST: Used specifically in the leakage evaluations (trained on digits "4" and "5", tested on the remaining digits).

Key Insights and Ideas

  • Alignment $\succ$ Disentanglement: Disentanglement simply ensures factors do not mix, but does not guarantee the mapping between ground-truth factors and latent dimensions is simple or preserves semantics. Alignment demands monotonic, low-complexity relationships, making it a stronger and more appropriate criterion for interpretability.
  • Leakage is Domain Shift: Concept leakage typically occurs when training data holds certain latent generative factors constant while others vary. When those held-constant factors change at test time, standard models exploit the correlation. Framing this as an open-set domain shift makes leakage cleanly detectable.
  • Rejection Prevents False Confidence: Models cannot reliably reason about concepts they were never trained to decouple. Flagging out-of-distribution instances preserves the semantic integrity of the concept bottleneck.

Key Results

  • Higher Semantic Alignment: Evaluated using the DCI (Disentanglement, Completeness, Informativeness) metric across varying levels of concept supervision (from 1% to 100%):
  • GlanceNets outperformed Concept Bottleneck Models (CBNMs) in alignment in 13 out of 15 experimental settings.
  • GlanceNets achieved up to 15% higher alignment on dSprites, 8% higher on MPI3D, and nearly 8% higher on CelebA (with full supervision), all while matching CBNM classification accuracy.
  • Effective Leakage Prevention:
  • Entangled Leakage (MNIST parity task): Standard CBNMs showed ~28% leakage, and GlanceNets without OSR showed ~30% leakage. Full GlanceNets correctly identified and rejected ~85% of unseen digits, slashing leakage down to ~2%.
  • Disentangled Leakage (dSprites position test): CBNMs and non-OSR VAEs exhibited massive leakage (80% and 98%, respectively). GlanceNet's dual OSR check flagged nearly all test points due to high reconstruction error, resulting in negligible leakage.

Limitations and Future Work

  • Abstention vs. Adaptation: When GlanceNets detect an open-set instance, their current mitigation is outright rejection (or random guessing). They cannot dynamically adapt to classify the input safely.
  • Dependency on Concept Supervision: While GlanceNets tolerate partial supervision, they still require explicit concept labels during training to achieve statistical identifiability and semantic alignment.
  • Architecture Constraints: The current formulation relies on standard $\beta$-VAE objectives. The authors note that integrating more specialized disentanglement techniques (e.g., Jacobian-regularized VAEs or structured priors) could further improve alignment stability.

Summary updated

BibTeX
@inproceedings{marconato2022glancenets,
  author = {Emanuele Marconato and Andrea Passerini and Stefano Teso},
  title = {{GlanceNets: Interpretabile, Leak-proof Concept-based Models}},
  booktitle = {CRL @ UAI},
  year = {2022},
  url = {https://openreview.net/forum?id=kn7uYQJraAt},
}
Figure