OpenHEXAI: An Open-Source Framework for Human-Centered Evaluation of Explainable Machine Learning

Jiaqi Ma, Vivian Lai, Yiming Zhang, Chacha Chen, Paul Hamilton, Davor Ljubenkov, Himabindu Lakkaraju, Chenhao TanarXiv 2024 · DOI

Introduction

The rapid proliferation of Explainable AI (XAI) algorithms, such as SHAP and LIME, has created a significant challenge: how to effectively evaluate whether these explanations actually help humans. Because explainability is inherently human-centric, it requires rigorous user studies. However, conducting such studies is often a logistical nightmare for machine learning researchers, plagued by inconsistent UI designs, varying participant pools, and a lack of standardized metrics. This infrastructure gap often leads researchers to skip human-centered benchmarks, resulting in "explainable" models with little empirical evidence of their utility in real-world decision-making.

The OpenHEXAI Framework

To address these challenges, we present OpenHEXAI, a modular, open-source framework designed to bridge the gap between ML algorithms and Human-Computer Interaction (HCI). OpenHEXAI provides a full-stack toolkit that standardizes the evaluation process through three primary modules:

  1. Machine Learning Module: Manages data processing and model training.
  2. Web Application Module: Offers a ready-to-use, customizable user interface for conducting participant studies.
  3. Evaluation Module: Automatically calculates key metrics such as decision accuracy, trust, and fairness.
The OpenHEXAI web interface provides a standardized environment for user studies, featuring profile details, AI predictions, and visual explanations.

A core innovation of the framework is the "Evaluation Card." Inspired by Model and Data Cards, this standardized checklist documents study designs—including recruitment criteria, budget, and UI choices—to ensure reproducibility across the research community. Additionally, the framework includes built-in statistical tools for power analysis and cost estimation, helping researchers plan studies with appropriate participant counts.

Benchmark Datasets and Systematic Evaluation

OpenHEXAI includes seven benchmark datasets spanning critical domains such as finance, criminal justice, and education. These datasets are accompanied by pre-trained models (Logistic Regression and Neural Networks) and "codebooks" that define feature semantics for human participants. Through a systematic study of 371 participants across 12 conditions, several critical insights emerged regarding the state of XAI:

  • Dataset Dependency: The effectiveness of an explanation method is not universal. While SHAP and Integrated Gradients (IG) significantly improved human-AI performance on financial tasks, they had negligible impact on criminal justice tasks like recidivism prediction (RCDV).
  • The Trust-Performance Gap: Subjective trust does not always correlate with objective performance. Participants often reported higher trust in LIME explanations, even when SHAP led to more accurate decisions.
  • Fairness Risks: While XAI can help reduce disparate impact, providing excessive information can sometimes backfire by magnifying unimportant features, potentially hindering fair human judgment.

Key Results

The framework demonstrates that human-AI collaboration can yield superior results. In the German Credit task, joint performance reached 76% accuracy with SHAP/IG, outperforming both humans alone (50%) and the AI alone (67.5%).

Performance and fairness metrics for the German Credit and RCDV datasets, highlighting the baseline AI accuracy and fairness disparities.

Furthermore, the framework's power analysis revealed the varying complexity of different tasks; while a valid study on German Credit requires only 154 participants, the more complex RCDV dataset would require over 22,000 to reach statistical significance for certain metrics.

Conclusion and Future Work

OpenHEXAI aims to move the XAI community toward a standardized "Leaderboard" for human-centered evaluation. While currently focused on tabular data and post-hoc feature attribution, future iterations will expand to include text and image modalities, as well as example-based and counterfactual explanations. By lowering the barrier to entry for human-centered research, OpenHEXAI enables a more rigorous, empirical approach to building AI systems that humans can truly understand and trust.

Summary updated

BibTeX
@misc{ma2024openhexai,
  author = {Jiaqi Ma and Vivian Lai and Yiming Zhang and Chacha Chen and Paul Hamilton and Davor Ljubenkov and Himabindu Lakkaraju and Chenhao Tan},
  title = {{OpenHEXAI: An Open-Source Framework for Human-Centered Evaluation of Explainable Machine Learning}},
  year = {2024},
  eprint = {2403.05565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.05565},
}
Figure