Achieving interpretable machine learning by functional decomposition of black-box models into explainable predictor effects

David Köhler, David Rügamer, Lindsey J. Boyle, Kelly O. Maloney, Matthias Schmid

This paper, published in npj Artificial Intelligence, presents a new framework for cracking open the "black box" of complex machine learning models. By decomposing opaque predictions into a sum of simpler, interpretable subfunctions, the authors provide a way to visualize exactly how individual features and their interactions drive a model's output.

TL;DR

The authors propose a novel functional decomposition method that breaks down black-box models into explainable "main effects" and interactions using a concept called stacked orthogonality. By combining Neural Additive Models (NAMs) with an efficient post-hoc orthogonalization procedure, they achieve high interpretability without sacrificing the predictive power of the original complex model.

What Problem Does This Paper Address?

Modern machine learning—think deep neural networks or gradient-boosted trees—is incredibly accurate but notoriously difficult to interpret. In high-stakes fields like medicine, insurance, or ecology, "because the computer said so" isn't a sufficient explanation.

Existing tools like Partial Dependence Plots (PDP) or Accumulated Local Effects (ALE) help, but they have flaws:

  1. Extrapolation: PDPs can produce misleading results when features are highly correlated because they look at data points that are physically impossible in the real world.
  2. Interaction Hiding: These methods often fail to clearly separate the influence of a single feature from its interactions with others.
  3. Computational Complexity: Mathematically "pure" functional decomposition (like generalized ANOVA) is often too computationally expensive for models with many features.

The authors aim to provide a method that is computationally efficient, avoids extrapolation issues, and ensures that "main effects" (the impact of a single variable) capture as much information as possible before interactions are even considered.

Methods

The researchers introduce a three-step pipeline:

  1. Surrogate Sampling: They treat the original black-box model ($F$) as a teacher and generate a large dataset of its predictions.
  2. Neural Additive Modeling (NAM): They fit a surrogate model to these predictions. Unlike a standard neural network, a NAM uses a separate, small network for each feature (or pair of features). This forces the model to be additive ($f_1(x_1) + f_2(x_2) + ...$), making it inherently more readable.
  3. Stacked Orthogonality (The Secret Sauce): This is the paper's core innovation. They apply a post-hoc mathematical transformation to the NAM components. This ensures that the "lower-order" effects (main effects) are orthogonal to the "higher-order" effects (interactions).

In plain English: it ensures that if a trend can be explained by a single variable, it stays there and doesn't "leak" into the more complex interaction terms. This maximizes the amount of the model's behavior that can be explained through simple 1D plots.

Datasets

The method was validated across several domains:

  • Chesapeake Bay Watershed (Primary): A dataset of 4,605 sites used to predict stream biological condition (the "Chessie BIBI" index) based on 19 landscape features like land use and precipitation.
  • Synthetic Data: Custom-generated datasets where the "true" underlying functions were known, allowing the authors to prove their method could recover the exact shapes of the effects.
  • Diabetes Study: Data from the Salt River Pima-Maricopa Indian Community used for binary classification.
  • Boston Housing: A classic benchmark for predicting housing prices.

Key Insights and Ideas

  • Optimality through Orthogonality: By using "stacked" rather than "hierarchical" orthogonality, the authors created a more computationally efficient way to ensure that main effects are as informative as possible.
  • Surrogate, Not Replacement: The method doesn't replace the black-box model for making predictions; it acts as a "translator" that explains the black box's logic.
  • Plausibility over Complexity: In the Chesapeake Bay example, the method produced smoother, more linear, and ecologically "plausible" curves compared to PDPs, which often show jagged artifacts due to data sparsity or correlation.
  • Quantifiable Interpretability: The authors use a summary measure ($I_k$) to show exactly what percentage of a model's variance is explained by main effects vs. interactions. In their ecology case study, 80.6% of the model's logic was captured by simple main effects.

Key Results

  • Accuracy: The surrogate NAM achieved an almost perfect correlation with the original black-box models, meaning the explanation is a highly faithful representation of the original logic.
  • Interpretability: For the Chesapeake Bay model, they showed that 83.1% of the total model behavior could be explained using just the 19 main effects and three key two-way interactions.
  • Performance: The post-hoc orthogonalization is extremely fast, involving matrix projections that scale linearly with the number of effects of interest, making it much faster than traditional ANOVA-based methods.

Limitations and Future Work

  • Dimensionality: While efficient, the method still struggles with the "combinatorial explosion" of interactions. If you have 100 features, you can't realistically look at all possible two-way or three-way interactions. Users must still pre-select "effects of interest."
  • Tabular Focus: The current implementation is designed for tabular data. While the authors suggest it could be adapted for images or text, the visualization of those subfunctions would require entirely different techniques.
  • Surrogate Error: If the NAM surrogate doesn't fit the black-box model perfectly (though it usually does), the explanation might miss subtle nuances of the original model.

Reference: Köhler, D., Rügamer, D., Boyle, L. J., et al. (2025). Achieving interpretable machine learning by functional decomposition of black-box models into explainable predictor effects. npj Artificial Intelligence. https://doi.org/10.1038/s44387-025-00033-7

Summary updated

BibTeX
@inproceedings{kohler2025achieving,
  author = {David Köhler and David Rügamer and Lindsey J. Boyle and Kelly O. Maloney and Matthias Schmid},
  title = {{Achieving interpretable machine learning by functional decomposition of black-box models into explainable predictor effects}},
  booktitle = {Npj},
  year = {2025},
  doi = {10.1038/s44387-025-00033-7},
}
Figure