[Paper Review] ViCE: Visual Counterfactual Explanations for Machine Learning Models
ViCE is an interactive visual analytics tool that generates counterfactual explanations for tabular machine learning models, identifying the minimal feature changes needed to flip a model's prediction. It enables end-users to explore actionable insights through an intuitive interface, demonstrating effectiveness on a home equity credit dataset with personalized, constraint-aware explanations.
The continued improvements in the predictive accuracy of machine learning models have allowed for their widespread practical application. Yet, many decisions made with seemingly accurate models still require verification by domain experts. In addition, end-users of a model also want to understand the reasons behind specific decisions. Thus, the need for interpretability is increasingly paramount. In this paper we present an interactive visual analytics tool, ViCE, that generates counterfactual explanations to contextualize and evaluate model decisions. Each sample is assessed to identify the minimal set of changes needed to flip the model's output. These explanations aim to provide end-users with personalized actionable insights with which to understand, and possibly contest or improve, automated decisions. The results are effectively displayed in a visual interface where counterfactual explanations are highlighted and interactive methods are provided for users to explore the data and model. The functionality of the tool is demonstrated by its application to a home equity line of credit dataset.
Motivation & Objective
- To address the growing need for interpretability in high-stakes machine learning decisions, especially in domains like finance and healthcare.
- To provide end-users with actionable, personalized insights into model predictions through counterfactual reasoning.
- To develop a visual analytics interface that effectively displays counterfactual explanations for non-binary, tabular data.
- To enable users to explore constraints (e.g., time-sensitive features) and understand model behavior under real-world limitations.
- To support model verification and bias detection by contextualizing individual predictions within the broader data distribution.
Proposed method
- The tool uses a model-agnostic algorithm to compute counterfactuals for tabular numerical data, focusing on minimal feature perturbations that flip the model’s output.
- It integrates interactive visualizations to display counterfactuals, including feature distribution comparisons across positive, negative, and general samples.
- Users can apply constraints (e.g., locking time-based features) to explore feasible changes under real-world limitations.
- The interface supports dynamic re-computation of counterfactuals when user-defined constraints are applied, revealing whether a prediction flip is still possible.
- It visualizes feature importance and monotonicity trends using frequency density distributions across different sample groups.
- The system is built as a modular, black-box tool, decoupled from model internals, enabling plug-and-play integration with any trained model.
Experimental results
Research questions
- RQ1How can counterfactual explanations be effectively visualized for non-binary, tabular machine learning models?
- RQ2What minimal set of feature changes is required to flip a model’s prediction for a given instance?
- RQ3How can users interactively constrain feature changes (e.g., time-based features) to assess feasibility of prediction changes?
- RQ4Can visual analytics help users identify biases or model flaws by comparing counterfactuals with broader data distributions?
- RQ5How do user-defined constraints affect the feasibility and nature of counterfactual explanations?
Key findings
- The tool successfully identifies actionable, minimal changes to feature values that flip model predictions, such as increasing the number of satisfying trades and reducing delinquency duration.
- When time-based features like 'Months Since Most Recent Delinquency' were locked, the algorithm could no longer generate a feasible counterfactual, indicating high model dependence on such features.
- Locking additional time-based features (e.g., 'Average Months in File') confirmed the model’s strong weighting of temporal variables in decision-making.
- Releasing the 'External Risk Estimate' constraint revealed it as a highly influential feature, with large changes being the most effective path to flipping the prediction.
- The visualization effectively supports bias detection by enabling comparison of feature distributions across positive, negative, and general samples.
- The system demonstrates feasibility for real-world use, such as helping a loan applicant understand how to improve their credit application.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.