Skip to main content
QUICK REVIEW

[Paper Review] OmniXAI: A Library for Explainable AI

Wenzhuo Yang, Hung Lê|arXiv (Cornell University)|Jun 1, 2022
Explainable Artificial Intelligence (XAI)Computer Science23 citations
TL;DR

OmniXAI is an open-source Python library that provides omni-way explainability for various data types and models, with a unified interface and a GUI dashboard for visualizing multiple XAI methods.

ABSTRACT

We introduce OmniXAI (short for Omni eXplainable AI), an open-source Python library of eXplainable AI (XAI), which offers omni-way explainable AI capabilities and various interpretable machine learning techniques to address the pain points of understanding and interpreting the decisions made by machine learning (ML) in practice. OmniXAI aims to be a one-stop comprehensive library that makes explainable AI easy for data scientists, ML researchers and practitioners who need explanation for various types of data, models and explanation methods at different stages of ML process (data exploration, feature engineering, model development, evaluation, and decision-making, etc). In particular, our library includes a rich family of explanation methods integrated in a unified interface, which supports multiple data types (tabular data, images, texts, time-series), multiple types of ML models (traditional ML in Scikit-learn and deep learning models in PyTorch/TensorFlow), and a range of diverse explanation methods including "model-specific" and "model-agnostic" ones (such as feature-attribution explanation, counterfactual explanation, gradient-based explanation, etc). For practitioners, the library provides an easy-to-use unified interface to generate the explanations for their applications by only writing a few lines of codes, and also a GUI dashboard for visualization of different explanations for more insights about decisions. In this technical report, we present OmniXAI's design principles, system architectures, and major functionalities, and also demonstrate several example use cases across different types of data, tasks, and models.

Motivation & Objective

  • Provide a one-stop, easy-to-use library for explainable AI across data types and models.
  • Integrate a rich set of explanation methods (model-agnostic, model-specific, and counterfactual) under a unified interface.
  • Support tabular, image, text, and time-series data for comprehensive XAI analyses.
  • Offer a GUI dashboard to visualize and compare explanations across methods.
  • Facilitate easy extension and integration with common ML frameworks (scikit-learn, PyTorch, TensorFlow).

Proposed method

  • Introduce OmniXAI design principles (unified interface, easy extension, easy visualization).
  • Describe five core components: data classes, preprocessing, explainers, explanations, and visualization tools.
  • Provide four explainers groups: data analysis, tabular, vision, and NLP (with Timeseries in a separate explainer).
  • Classify explainers as model-agnostic, model-specific, or counterfactual; explain their applicability and limitations.
  • Present a unified AutoExplainerBase architecture that selects applicable explainers and routes to ExplainerBase.
  • Demonstrate integration of popular methods (LIME, SHAP, PDP, MACE, Grad-CAM, IG, Polyjuice, etc.) across data types.
  • Offer a GUI dashboard (Plotly Dash) and code examples to generate and visualize explanations.
  • Provide practical usage patterns for initializing Tabular/NLP/ Vision/Timeseries explainers and retrieving local/global explanations.

Experimental results

Research questions

  • RQ1How can a single library provide a comprehensive set of XAI methods across diverse data types and models?
  • RQ2What architectural decisions enable easy extension, comparison, and visualization of multiple explanations?
  • RQ3How effectively can model-agnostic and model-specific explanations be unified under one API?
  • RQ4Can counterfactual explanations be efficiently integrated for tabular, image, and time-series data within a single framework?
  • RQ5What is the impact of OmniXAI in real-world ML workflows (data exploration, feature engineering, model evaluation, decision making)?

Key findings

  • OmniXAI supports a wide range of data types (tabular, image, text, time-series) and ML frameworks (e.g., scikit-learn, PyTorch, TensorFlow) with a unified interface.
  • It integrates many popular explanation methods (LIME, SHAP, PDP, Morris, L2X, Gradient-based methods, Grad-CAM, CEM, MACE, Polyjuice) including model-agnostic and model-specific categories.
  • The library provides both local and global explanations, plus a counterfactual explanation component (MACE for tabular/time-series, CE for image, Polyjuice for text).
  • A GUI dashboard enables visual comparison and exploration of multiple explanations for the same instance or dataset.
  • Experiments demonstrate explainability across four data regimes (tabular income prediction, image classification, NLP sentiment analysis, time-series anomaly detection).
  • The design emphasizes ease of use, extensibility, and visualization to support practical AI debugging and auditing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.