Skip to main content
QUICK REVIEW

[Paper Review] TalkToModel: Explaining Machine Learning Models with Interactive Natural Language Conversations

Dylan Slack, Satyapriya Krishna|arXiv (Cornell University)|Jul 8, 2022
Explainable Artificial Intelligence (XAI)Computer Science6 citations
TL;DR

TalkToModel introduces an interactive natural language dialogue system that enables users to explain machine learning models through conversational queries, using a large language model to parse natural language into executable operations and generate accurate, context-aware explanations. In evaluations, 73% of healthcare workers preferred it over existing tools, and 85% of ML professionals found it easier to use, demonstrating its effectiveness for intuitive, flexible model interpretation.

ABSTRACT

Machine Learning (ML) models are increasingly used to make critical decisions in real-world applications, yet they have become more complex, making them harder to understand. To this end, researchers have proposed several techniques to explain model predictions. However, practitioners struggle to use these explainability techniques because they often do not know which one to choose and how to interpret the results of the explanations. In this work, we address these challenges by introducing TalkToModel: an interactive dialogue system for explaining machine learning models through conversations. Specifically, TalkToModel comprises of three key components: 1) a natural language interface for engaging in conversations, making ML model explainability highly accessible, 2) a dialogue engine that adapts to any tabular model and dataset, interprets natural language, maps it to appropriate explanations, and generates text responses, and 3) an execution component that constructs the explanations. We carried out extensive quantitative and human subject evaluations of TalkToModel. Overall, we found the conversational system understands user inputs on novel datasets and models with high accuracy, demonstrating the system's capacity to generalize to new situations. In real-world evaluations with humans, 73% of healthcare workers (e.g., doctors and nurses) agreed they would use TalkToModel over baseline point-and-click systems for explainability in a disease prediction task, and 85% of ML professionals agreed TalkToModel was easier to use for computing explanations. Our findings demonstrate that TalkToModel is more effective for model explainability than existing systems, introducing a new category of explainability tools for practitioners. Code & demo released here: https://github.com/dylan-slack/TalkToModel.

Motivation & Objective

  • To address the challenge of complex, opaque machine learning models that are difficult for practitioners to interpret.
  • To overcome limitations of existing explainability tools that require technical expertise and lack support for dynamic, follow-up questions.
  • To design an interactive, natural language-based system that enables intuitive, conversational exploration of model predictions and behavior.
  • To support diverse user needs across different domains by enabling flexible, context-aware dialogue about model features, predictions, and counterfactuals.
  • To evaluate the system’s usability and effectiveness in real-world settings with both healthcare and ML professionals.

Proposed method

  • A dialogue engine uses a large language model to parse natural language user utterances into an SQL-like executable language for model operations.
  • The execution engine processes these parsed commands to compute explanations such as feature importance, counterfactuals, and prediction changes.
  • The system supports multi-turn conversations, maintaining context to answer follow-up questions accurately.
  • It supports a wide range of analysis types, including feature importance, counterfactual generation, prediction changes, and model definition queries.
  • The interface includes features like pinned messages and a 'help generate' button to assist users in formulating questions.
  • The system is designed to work with any tabular dataset and classifier, enabling broad applicability across model classes and data types.

Experimental results

Research questions

  • RQ1Can a natural language dialogue system effectively support open-ended, context-aware conversations about machine learning model predictions?
  • RQ2How does the usability of a conversational interface compare to traditional point-and-click dashboards for model explanation?
  • RQ3Can users with varying expertise levels (e.g., healthcare workers vs. ML professionals) effectively use the system to understand model behavior?
  • RQ4To what extent can the system handle complex, follow-up questions about model behavior, such as counterfactual reasoning or feature impact?
  • RQ5How well does the system generalize across different model types and data domains?

Key findings

  • 73% of healthcare workers agreed they would prefer TalkToModel over existing systems for understanding disease prediction models.
  • 85% of machine learning professionals agreed that TalkToModel was easier to use than current tools for model explanation.
  • The system successfully interpreted diverse natural language queries, including complex follow-up questions, and generated accurate, context-aware responses.
  • Users were able to perform advanced analyses such as counterfactual reasoning and feature impact evaluation through simple conversational interactions.
  • The system demonstrated strong generalization across different model classes and data types, supporting a wide range of explanation tasks.
  • The integration of a large language model for intent parsing enabled accurate and flexible interpretation of user queries without requiring technical expertise.

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.