Skip to main content
QUICK REVIEW

[Paper Review] dalex: Responsible Machine Learning with Interactive Explainability and Fairness in Python

Hubert Baniecki, Wojciech Kretowicz|arXiv (Cornell University)|Dec 28, 2020
Explainable Artificial Intelligence (XAI)Computer Science73 citations
TL;DR

dalex provides a unified Python package with a model-agnostic interface for interactive explainability and fairness, unifying multiple methods and enabling dashboards for end-to-end responsible ML.

ABSTRACT

The increasing amount of available data, computing power, and the constant pursuit for higher performance results in the growing complexity of predictive models. Their black-box nature leads to opaqueness debt phenomenon inflicting increased risks of discrimination, lack of reproducibility, and deflated performance due to data drift. To manage these risks, good MLOps practices ask for better validation of model performance and fairness, higher explainability, and continuous monitoring. The necessity of deeper model transparency appears not only from scientific and social domains, but also emerging laws and regulations on artificial intelligence. To facilitate the development of responsible machine learning models, we showcase dalex, a Python package which implements the model-agnostic interface for interactive model exploration. It adopts the design crafted through the development of various tools for responsible machine learning; thus, it aims at the unification of the existing solutions. This library's source code and documentation are available under open license at https://python.drwhy.ai/.

Motivation & Objective

  • Address opaque ML models and associated risks such as discrimination, reproducibility issues, and data drift.
  • Provide a unified, model-agnostic interface for explainability and fairness in Python.
  • Facilitate interactive analysis and model comparison to support responsible ML practices.

Proposed method

  • Introduce the dalex.Explainer class as a uniform abstraction over diverse model and data APIs.
  • Provide model-level and predict-level explanations and enable integration of external explanations (e.g., SHAP, LIME) through a common interface.
  • Incorporate fairness checks via a fairness object and a fairness_check method with textual and visual outputs.
  • Offer an interactive Arena dashboard for live model comparison incorporating explanations and fairness analyses.
  • Plotly-based visualizations and a consistent result structure (DataFrame) across explanation objects.

Experimental results

Research questions

  • RQ1How can we unify explainability and fairness methods for diverse Python ML frameworks under a single interface?
  • RQ2Can interactive dashboards improve end-to-end understanding and comparison of models with respect to fairness and accuracy?
  • RQ3What are the mechanisms to assess and communicate model fairness using common metrics and visualizations?
  • RQ4To what extent can a model-agnostic architecture facilitate integration of external explainability tools?
  • RQ5What future extensions are needed to enhance accountability, robustness, and safety in responsible ML?

Key findings

  • A Python package named dalex provides a uniform abstraction layer (Explainer) that connects models, data, and explanations.
  • Dalex supports both model-level and predict-level explanations and can incorporate external explainers like SHAP and LIME via a common API.
  • Fairness checks are implemented and can be invoked through a fairness object and a fairness_check method with textual and visual outputs.
  • An interactive Arena dashboard enables live model comparisons with explainability and fairness analyses, and can be saved for reproducibility.
  • The package emphasizes end-to-end responsible ML by unifying explanations, fairness, and interactivity within a single framework.

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.