As machine learning models are increasingly deployed in high-stakes fields like medicine and finance, the need to understand why they make specific decisions has become critical. MAPLE (Model Agnostic SuPervised Local Explanations) is a novel interpretability framework that bridges the gap between local linear explanations and example-based methods. By using a random forest to define a "supervised neighborhood," MAPLE provides highly accurate predictions that are inherently self-explaining, outperforms popular tools like LIME in faithfulness, and can even detect complex global patterns like discontinuities.
The Interpretability Gap
Researchers generally categorize model explanations into three types:
- Example-based: Identifying which training points most influenced a prediction.
- Local: Understanding how a prediction changes if the input is slightly perturbed (e.g., LIME).
- Global: Understanding the overall patterns or "rules" the model follows.
The authors identify a major gap: existing systems rarely capture all three types simultaneously. Popular local explainers like LIME often struggle with "global patterns"—such as sharp discontinuities or non-linear effects—because they rely on random sampling around a point rather than the actual structure of the training data. Furthermore, there is often a painful trade-off between a model's predictive accuracy and its interpretability.
The MAPLE Approach
MAPLE combines two existing techniques derived from random forest literature to create a "supervised neighborhood" approach:
- SILO (Supervised Inference with Local Objects): Instead of looking at the $K$ nearest neighbors in raw feature space, MAPLE uses a random forest to determine similarity. If a training point frequently ends up in the same leaf node as your test point across many trees, it is assigned a higher weight. This creates a "local training distribution."
- DStump: This is a feature selection method that ranks features based on how much they reduce "impurity" (variance) at the root nodes of the trees in the forest.
The Algorithm: For any given prediction, MAPLE selects the top $d$ features (via DStump) and fits a weighted linear regression using the weights calculated by the random forest.
This approach allows MAPLE to act in two ways:
- As a standalone model: It is a highly accurate predictive model that provides its own "faithful" explanations.
- As a black-box explainer: It can be trained to mimic and explain the outputs of any other model (like a deep neural network or Support Vector Regressor).
Evaluation and Datasets
The authors evaluated MAPLE using both real-world and synthetic datasets to test its robustness.
- Toy Datasets: Three univariate functions (Linear, Shifted Inverse Logistic, and Step Function) were designed specifically to test how well the model handles smooth versus discontinuous effects.
- UCI Machine Learning Repository: Eight diverse real-world datasets, including Autompgs, Communities and Crimes, Housing, and Winequality-red. These range in size ($n$) from ~400 to ~2200 and in dimensionality ($p$) from 8 to 103.
Key Insights
Supervised vs. Unsupervised Neighborhoods: Traditional local explainers sample points randomly (unsupervised). MAPLE uses the random forest to "learn" which neighbors actually matter for the prediction (supervised), making the neighborhood much more relevant to the model's logic.
Sidestepping the Accuracy-Interpretability Trade-off: Because MAPLE is built on top of a powerful ensemble (Random Forests or Gradient Boosted Regression Trees), it achieves state-of-the-art predictive accuracy while remaining locally linear, and thus interpretable.
The Causal Metric: The authors argue that standard evaluation metrics for interpretability are flawed. They propose a "causal local explanation metric" that measures how well an explanation predicts a model's response when inputs are actually changed, rather than just how well it fits a single static point.
Detecting Global Patterns: By analyzing the "local training distribution" (the weights of the neighbors), MAPLE can diagnose its own limitations.
For example, if the distribution of neighbors is heavily skewed or disjoint, it’s a strong signal that a global pattern (like a "step" in the data) is present, which a simple linear model might otherwise miss.
Results and Limitations
MAPLE demonstrated strong performance across multiple fronts:
- Accuracy: On UCI datasets, MAPLE was found to be at least as accurate as standard Random Forests and Gradient Boosted Regression Trees, and often outperformed them.
- Faithfulness: When used to explain a black-box Support Vector Regressor (SVR), MAPLE significantly outperformed LIME on the causal metric across almost all datasets. In many cases, MAPLE's error was less than half that of LIME.
- Example-based Explanations: Because MAPLE assigns explicit weights to training points, it naturally identifies the most "influential" examples for any specific prediction, providing a "why" that is grounded directly in the training data.
Limitations and Future Work: While MAPLE performs well on the tested datasets, the authors note that in very high-dimensional spaces, the "neighborhood" might become sparse, potentially affecting the variance of the local linear model. Additionally, building a full random forest to generate explanations is more computationally intensive than the simple perturbations used by LIME. Future directions include exploring other ways to define similarity weights beyond tree ensembles and using MAPLE’s local linear structure to tap into "influence functions" for deeper model debugging.
Summary updated