← Latest papers
📊 statistics

Local MDI+: Local Feature Importances for Tree-Based Models

This paper introduces Local MDI+ (LMDI+), a novel method that extends the global MDI+ framework to provide stable, structure-aware local feature importances for tree-based models, outperforming existing baselines in identifying instance-specific predictive features and enabling advanced interpretability use cases like counterfactual generation.

Original authors: Zhongyuan Liang, Zachary T. Rewolinski, Abhineet Agarwal, Tiffany M. Tang, Bin Yu

Published 2026-05-28
📖 5 min read🧠 Deep dive

Original authors: Zhongyuan Liang, Zachary T. Rewolinski, Abhineet Agarwal, Tiffany M. Tang, Bin Yu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, complex robot (a "tree-based model" like a Random Forest) that makes predictions about things like house prices or medical diagnoses. You know the robot is good at guessing, but it's a bit of a "black box." You want to know: "Why did the robot make this specific guess for this specific person?"

This is where Local Feature Importance (LFI) comes in. It's like asking the robot to point to the specific ingredients in a recipe that made the cake taste sweet.

The Problem with Current Methods

Currently, the most popular ways to ask the robot "why?" are like LIME and TreeSHAP. The paper argues these methods are a bit like a clumsy detective:

  • They guess by shaking things: They try to explain a prediction by randomly messing up the data (perturbations) and seeing how the robot reacts. It's like trying to figure out why a car engine is loud by randomly hitting it with a hammer and listening to the noise.
  • They are unstable: If you ask the detective the same question twice, they might give you two different answers because their "random shaking" was slightly different.
  • They miss the real signal: Sometimes they blame the wrong ingredients (noise) instead of the real ones (signal).

The New Solution: Local MDI+

The authors propose a new method called Local MDI+. Think of this as a master architect who doesn't just guess; they look at the actual blueprints of the robot.

Here is how it works, using a simple analogy:

  1. The Blueprint (The Tree Structure): Instead of guessing, Local MDI+ looks inside the robot's brain. It sees the decision trees (the flowcharts the robot uses to make decisions).
  2. The Translation (Linear Regression): The paper discovered a clever trick: you can translate the robot's complex decision tree into a simple math equation (a linear model). Imagine taking a complex, winding maze and realizing it's actually just a straight line if you look at it from the right angle.
  3. The "Out-of-Bag" Safety Net: The robot is trained on a bunch of data. Usually, it gets tested on the same data it learned from, which is like a student taking a test on the exact questions they memorized. Local MDI+ uses a special "out-of-bag" technique, where it tests the robot on data it didn't memorize. This prevents the robot from cheating and gives a truer score of what actually matters.
  4. The Result: By combining the robot's internal map with this "safety net" math, Local MDI+ can tell you exactly which features mattered for this specific person, without needing to randomly shake the data.

Why is this better? (The Paper's Claims)

The paper ran this new method against the old ones (LIME, TreeSHAP, and Local MDI) on 12 real-world datasets (like housing data and medical data). Here is what they found:

  • It finds the real clues: When the researchers tested the methods on fake data where they knew the answer, Local MDI+ was much better at finding the true "signal" features and ignoring the "noise." It was like a detective who actually finds the fingerprint instead of guessing based on a shadow.
  • It's consistent: If you run the robot 100 times with different random seeds, Local MDI+ gives you the same ranking of important features every time. The old methods would change their minds. This is crucial for trust; you don't want a doctor's diagnosis changing just because the computer restarted.
  • It handles messy data: When features are highly correlated (like "height in inches" and "height in centimeters"), old methods get confused and blame the wrong one. Local MDI+ stays calm and ranks the important ones correctly.
  • It works for "What-If" questions: The paper showed that Local MDI+ is better at finding "counterfactuals." This means if a loan was rejected, Local MDI+ can tell you the smallest, most realistic change needed to get approved (e.g., "increase income by $500" rather than "change your name"). It finds the path of least resistance.
  • It finds hidden groups: In a case study with Miami housing data, the method grouped houses into neighborhoods that actually made sense geographically and financially. It found that houses in one cluster were cheap because they were small and far away, while another cluster was expensive because they were huge, even if they were in similar areas.

The Bottom Line

Local MDI+ is a new tool for explaining how tree-based AI models make decisions. Instead of guessing by randomly breaking things, it looks at the model's internal structure, uses a smart mathematical translation, and checks its work on data it hasn't seen before. The result is an explanation that is more accurate, more stable, and more trustworthy than the current popular methods.

Note: The paper explicitly mentions the implementation is available in the imodels package and works with Random Forests and Gradient Boosting models. It does not claim to work on deep learning models or specific clinical outcomes beyond the general examples provided.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →