Skip to main content
QUICK REVIEW

[Paper Review] Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Conditional Expectation

Alex Goldstein, Adam Kapelner|arXiv (Cornell University)|Sep 25, 2013
Mental Health Research TopicsPsychology18 citations
TL;DR

This paper introduces Individual Conditional Expectation (ICE) plots as a method to visualize how individual observations in a dataset respond to changes in predictor variables within black-box machine learning models. By plotting the predicted response for each observation across the range of a feature, ICE plots reveal heterogeneous relationships and interactions that are masked in traditional partial dependence plots (PDPs), offering deeper insight into model behavior and enabling visual tests for additivity in the data-generating process.

ABSTRACT

This article presents Individual Conditional Expectation (ICE) plots, a tool for visualizing the model estimated by any supervised learning algorithm. Classical partial dependence plots (PDPs) help visualize the average partial relationship between the predicted response and one or more features. In the presence of substantial interaction effects, the partial response relationship can be heterogeneous. Thus, an average curve, such as the PDP, can obfuscate the complexity of the modeled relationship. Accordingly, ICE plots refine the partial dependence plot by graphing the functional relationship between the predicted response and the feature for individual observations. Specifically, ICE plots highlight the variation in the fitted values across the range of a covariate, suggesting where and to what extent heterogeneities might exist. In addition to providing a plotting suite for exploratory analysis, we include a visual test for additive structure in the data generating model. Through simulated examples and real data sets, we demonstrate how ICE plots can shed light on estimated models in ways PDPs cannot. Procedures outlined are available in the R package ICEbox.

Motivation & Objective

  • To address the interpretability gap in black-box machine learning models by providing visual tools that go beyond average effects.
  • To overcome the limitations of partial dependence plots (PDPs), which obscure individual-level relationships due to averaging across observations.
  • To develop a method for detecting heterogeneous effects and interaction structures in fitted models using visual diagnostics.
  • To introduce a visual hypothesis testing framework to assess whether a model's structure is additive or contains interaction effects.

Proposed method

  • ICE plots visualize the predicted response for each individual observation as a feature of interest varies across its marginal distribution, rather than averaging across all observations.
  • For each observation, the model’s prediction is computed at multiple values of the target feature while holding other features fixed at their observed values.
  • Centered ICE (c-ICE) and derivative ICE (d-ICE) plots are derived to enhance interpretability by centering curves relative to the mean or showing rate-of-change behavior.
  • A lineup-based visual test is proposed to assess statistical significance of non-additive effects by comparing the actual ICE plot against a null distribution of additive models.
  • The method is implemented in the R package ICEbox, enabling reproducible analysis and integration into standard modeling workflows.
  • The approach is model-agnostic, applicable to any supervised learning algorithm that produces a fitted function $\hat{f}$ mapping features to predictions.

Experimental results

Research questions

  • RQ1How can we visualize individual-level relationships between predictors and predictions in black-box models more effectively than with average-based partial dependence plots?
  • RQ2In what ways do ICE plots reveal model interactions and heterogeneity that are obscured in standard PDPs?
  • RQ3Can ICE plots be used to visually test whether the true data-generating process is additive or contains interaction effects?
  • RQ4How do ICE plots compare to other model-interpretability tools such as Shapley values or variable importance metrics in capturing feature effects?
  • RQ5To what extent can ICE plots detect and visualize extrapolations in predictor space that may compromise model reliability?

Key findings

  • ICE plots successfully reveal heterogeneous relationships between predictors and predictions that are masked in partial dependence plots, particularly when interaction effects are present.
  • When the model is additive in the feature of interest and other covariates, ICE curves appear parallel, indicating consistent marginal effects across observations.
  • In the presence of interactions, ICE curves diverge in shape, clearly signaling that the effect of a feature depends on the values of other predictors.
  • The visual lineup test using ICE plots can distinguish non-additive structures from noise, with simulated examples showing high discriminability (e.g., 100% correct identification in Figure 13).
  • In real-world data, such as the white wine quality dataset, ICE plots revealed that pH’s effect on predicted quality varied significantly across observations, suggesting non-additive interactions.
  • The ICEbox R package enables researchers to generate ICE, c-ICE, and d-ICE plots, and supports advanced analyses such as clustering ICE curves for pattern detection.

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.