What Would You Ask the Machine Learning Model? Identification of User Needs for Model Explanations Based on Human-Model Conversations

Michal Kuzba, Przemyslaw Biecek

Abstract

Current eXplainable AI (XAI) methods are frequently criticized for being developer-centric, focusing on technical metrics that may not align with the needs of non-expert users. This study introduces dr_ant, a conversational agent designed to bridge this gap by allowing users to interrogate a "black-box" model through natural language. By analyzing a corpus of over 600 high-quality dialogues, we identify a taxonomy of user explanatory needs. Our findings suggest that users prioritize causal "why" questions and counterfactual "what-if" scenarios over traditional feature importance scores, highlighting a significant shift required in XAI design.

Introduction

The rapid proliferation of eXplainable AI (XAI) has produced numerous post-hoc diagnostic tools like LIME and SHAP. However, these tools are often built from an engineering perspective, assuming that feature attribution is the primary goal of an explanation. There remains a significant disconnect between what developers provide and what "lay" users actually require to trust or understand an AI system. This research addresses this problem by providing an open-ended conversational interface to discover the latent explanatory needs of users through natural dialogue, rather than through rigid, pre-defined A/B testing.

The dr_ant Conversational Agent

To explore user needs, the researchers developed dr_ant, a multi-turn conversational agent. The system explains a Random Forest classifier trained on the Titanic survival dataset, predicting survival odds based on passenger attributes such as age, gender, and class.

Architecture of the dr_ant chatbot system.

The technical stack utilizes Dialogflow for Natural Language Understanding (NLU) and Node.js for fulfillment. Crucially, the chatbot integrates the iBreakDown (feature attribution) and CeterisParibus (what-if profiles) R libraries to dynamically generate visual and textual explanations. The system was refined using an active learning approach, where the NLU module was iteratively retrained on misclassified user queries to improve dialogue flow.

Data and Methodology

The study utilized two primary datasets:

  1. Titanic Dataset: Used to train the underlying predictive model (AUC = 0.84).
  2. Dialogue Corpus: A new dataset of over 1,000 dialogues, filtered to 621 high-quality interactions consisting of 5,675 user queries. This corpus provides a realistic distribution of how humans attempt to "interrogate" an AI.

Key Insights and Results

The researchers categorized the dialogues into a taxonomy of 12 query types. The results indicate a clear preference for specific types of information:

  • Causal and Counterfactual Reasoning: The most frequent queries were general "Why?" questions (73 dialogues) and "What-if" scenarios (72 dialogues). Users naturally think about AI logic in terms of how changes in input would affect the outcome.
  • Data Verification: A significant number of users (57 dialogues) asked "What do you know about me?" before seeking an explanation, suggesting that establishing data correctness is a prerequisite for trust.
  • Exploratory Data Analysis (EDA): Users frequently asked about dataset statistics (54 dialogues), indicating that understanding the broader context of the training data is a vital part of the explanation process.
  • Feature Importance: Interestingly, traditional feature importance scores—the mainstay of many XAI tools—were only requested in 31 dialogues.
Sankey diagram of user dialogue flows and intent transitions.

The average conversation lasted approximately 9 turns, though some users engaged in over 80 turns, demonstrating that a conversational interface can support deep, iterative exploration of model behavior.

Discussion and Limitations

The study reveals that users often seek "actionable" explanations (e.g., "How can I improve my chances?") and contextual data insights rather than just model weights. However, the study's participants were predominantly from the technical Data Science community, which may bias the results toward more sophisticated queries. Future work should involve "lay" users with no technical background and explore higher-stakes domains like medical diagnosis or legal sentencing.

Conclusion

By moving from static explanations to interactive dialogue, this research identifies that human explanatory needs are multifaceted, centering on causality, data verification, and actionability. These findings provide a roadmap for designing more user-centric XAI systems that align with natural human inquiry.

Summary updated

BibTeX
@inproceedings{kuzba2020what,
  author = {Michal Kuzba and Przemyslaw Biecek},
  title = {{What Would You Ask the Machine Learning Model? Identification of User Needs for Model Explanations Based on Human-Model Conversations}},
  booktitle = {PKDD/ECML Workshops},
  year = {2020},
  doi = {10.1007/978-3-030-65965-3\_30},
}
Figure