CRAFT: Concept Recursive Activation FacTorization for Explainability

Thomas Fel, Agustin Martin Picard, Louis Béthune, Thibaut Boissin, David Vigouroux, Julien Colin, Rémi Cadène, Thomas Serre

Abstract

Explainable AI (XAI) for computer vision has long relied on attribution heatmaps that identify where a model looks but fail to explain what it sees. We introduce CRAFT (Concept Recursive Activation FacTorization), a framework that automatically decomposes model decisions into a hierarchy of human-understandable visual concepts. By integrating recursive matrix factorization with Sobol sensitivity indices, CRAFT provides faithful and interpretable explanations. Our results demonstrate that CRAFT significantly improves human utility and model debugging compared to existing state-of-the-art attribution and concept-based methods.

Introduction: Beyond the Heatmap

The primary challenge in modern XAI is moving from spatial attribution to semantic explanation. Standard heatmaps highlight influential pixels but do not reveal the underlying visual triggers. For instance, a model might correctly classify an image of an astronaut while relying on spurious features like "snow" or "ski gear" rather than the actual spacesuit. CRAFT addresses this by automating the discovery of these semantic concepts and measuring their true importance to the model's decision-making process.

Methods

CRAFT's architecture is built on three foundational pillars:

  1. Recursive Decomposition: CNNs naturally build a hierarchy of features. CRAFT "unpacks" this hierarchy by recursively applying matrix factorization across layers. If a high-level concept is too complex, the algorithm drills down into earlier layers to find simpler sub-concepts.
  2. Sobol Indices for Importance: To ensure mathematical faithfulness, CRAFT uses Total Sobol Indices from sensitivity analysis. By perturbing concept representations and measuring output variance, it identifies which concepts the model actually relies on, avoiding human confirmation bias.
  3. Implicit Differentiation: The framework allows for the projection of global concepts back onto specific pixels. By differentiating through the Non-Negative Matrix Factorization (NMF) optimization, CRAFT generates "Concept Attribution Maps" that link semantic concepts to spatial regions.
Example of discovered visual concepts (e.g., "ski pants") used to explain model activations.

Key Insights: Identifying Model Bias

A key insight from the CRAFT framework is that models often look at the "right" area for the "wrong" reason.

Comparison between a standard attribution heatmap (left) and CRAFT's semantic decomposition (right).

As shown in the astronaut example above, a standard heatmap (left) simply highlights the person. However, CRAFT (right) reveals that the model has decomposed the image into specific concepts like "ski pants" (purple) and "lunar soil" (green). This reveals a hidden bias: the model learned to recognize astronauts by associating them with heavy winter clothing, a concept likely inherited from training data involving people in snow.

Results and Human Validation

CRAFT was rigorously tested on ImageNet and specialized benchmarks:

  • Human Utility: In the "Husky vs. Wolf" bias detection task, CRAFT achieved a utility score of 1.53, significantly higher than ACE (1.15) and Grad-CAM (1.34).
  • Fidelity: Quantitative tests showed that ranking concepts by Sobol indices identifies influential features more accurately than previous importance measures like TCAV.
  • Interpretability: Psychophysics experiments with 73 participants showed that humans preferred CRAFT's recursive sub-concepts over top-level concepts 74% of the time, confirming the effectiveness of the hierarchical approach.

Conclusion

CRAFT represents a significant step forward in making deep learning models transparent. By automating concept discovery and providing a mathematically grounded measure of importance, it allows researchers to debug models and identify hidden biases. Future work will explore applying these recursive techniques to other domains, such as Natural Language Processing, and automating the semantic labeling of discovered concepts.

Summary updated

BibTeX
@inproceedings{fel2023craft,
  author = {Thomas Fel and Agustin Martin Picard and Louis Béthune and Thibaut Boissin and David Vigouroux and Julien Colin and Rémi Cadène and Thomas Serre},
  title = {{CRAFT: Concept Recursive Activation FacTorization for Explainability}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00266},
}
Figure