NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Xplique: A Deep Learning Explainability Toolbox

Thomas Fel, Lucas Hervier, David Vigouroux, Antonin Poché, Justin Plakoo, Rémi Cadène, Mathieu Chalvidal, Julien Colin, Thibaut Boissin, Louis Béthune, Agustin Martin Picard, Claire Nicodeme, Laurent Gardes, Grégory Flandin, Thomas SerrearXiv 2022 · DOI

Abstract

Xplique is a comprehensive, open-source Python library designed to demystify deep learning "black boxes" by unifying three major explainability paradigms: attribution methods, feature visualization, and concept-based explanations. By providing a single API that includes both explanation techniques and the metrics to evaluate them, Xplique helps researchers move beyond "pretty heatmaps" toward rigorous, trustworthy AI.

Introduction: The Challenge of Black Box Models

As deep neural networks are increasingly deployed in high-stakes fields like medicine, finance, and autonomous transportation, their "black box" nature has become a significant liability. We often know what a model predicted, but rarely why. While the field of Explainable AI (XAI) has exploded with new techniques, the ecosystem remains fragmented. Researchers often have to juggle different libraries for different frameworks (e.g., Captum for PyTorch), and there is a notorious lack of standardized metrics to verify if an explanation is actually faithful to the model's logic. Xplique addresses this by providing a unified, framework-agnostic toolbox (supporting TensorFlow, PyTorch, and others) that combines explanation generation with rigorous evaluation.

The Xplique Framework

Xplique organizes the complex landscape of XAI into three distinct modules, supporting various data modalities including images, tabular data, and time series.

1. Attribution Methods

These produce "saliency maps" or heatmaps that highlight which parts of an input (pixels in an image, words in a sentence) were most influential for a specific decision. Xplique implements over 14 representative methods, including Gradient-based (Integrated Gradients, Grad-CAM) and Perturbation-based (RISE, Sobol) approaches.

2. Feature Visualization

Instead of looking at a specific input, this module explores what a model's internal components (neurons or channels) have learned to detect in general. It uses optimization techniques like Fourier preconditioning to generate synthetic images that maximize a specific neuron's response.

Feature visualization explores model internals across neurons, channels, and directions.

3. Concept-based Explanations

This is a more "human-centric" approach. It uses Concept Activation Vectors (CAV) to translate a model's high-level internal states into human-understandable concepts (e.g., "Does this model recognize a 'wheel' concept when identifying a car?").

Concept Activation Vectors (CAV) map high-level human concepts like 'striped' into the model's latent space.

Evaluation: The "Trust but Verify" Philosophy

Crucially, the library includes an Evaluation component, implementing metrics to test the "faithfulness" and "robustness" of these explanations. The authors emphasize that the large number of explanation methods available has brought to the forefront a major issue: the urgent need for metrics. By shipping evaluation metrics alongside the methods, Xplique treats explainability as a measurable engineering task rather than a subjective art.

Key Insights and Results

One of the most innovative features is the synergy between modules. For example, a user can use Feature Visualization to see what a Concept Activation Vector actually looks like, or use Attribution to see where a specific human concept is physically located within an image.

The library successfully integrates over 14 attribution methods and the popular TCAV (Testing with Concept Activation Vectors) framework. While it fills a major gap in the TensorFlow ecosystem, its ability to interface with multiple libraries makes it a versatile "Swiss Army Knife" for XAI. The code is released under the MIT license and is available on GitHub, accompanied by notebooks and tutorials to lower the barrier to entry.

Limitations and Future Work

Some of the more robust attribution methods (like RISE or Sobol) and feature visualization techniques are computationally expensive, requiring many model passes. Furthermore, while the library provides the tools for concepts and visualizations, the final "aha!" moment still relies on human interpretation. Future work in the field may involve more automated ways to describe these visualizations as the community discovers more ways that explanations can be fragile or misleading.

Summary updated

BibTeX
@misc{fel2022xplique,
  author = {Thomas Fel and Lucas Hervier and David Vigouroux and Antonin Poché and Justin Plakoo and Rémi Cadène and Mathieu Chalvidal and Julien Colin and Thibaut Boissin and Louis Béthune and Agustin Martin Picard and Claire Nicodeme and Laurent Gardes and Grégory Flandin and Thomas Serre},
  title = {{Xplique: A Deep Learning Explainability Toolbox}},
  year = {2022},
  eprint = {2206.04394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04394},
}
Figure