Regionally Additive Models: Explainable-by-Design Models Minimizing Feature Interactions

Vasilis Gkolemis, Anargiros Tzerefos, Theodore Dalamagas, Eirini Ntoutsi, Christos Diou

In the world of machine learning, there is a classic tug-of-war between accuracy and interpretability. On one side, we have "black-box" models like Deep Neural Networks that are highly accurate but impossible to explain. On the other, we have Generalized Additive Models (GAMs), which are "explainable-by-design" because they treat each feature independently.

But what happens when features interact? If the effect of "Age" on a prediction changes completely depending on "Income," a standard GAM falls apart. A new paper by Gkolemis et al. introduces Regionally Additive Models (RAMs), a clever middle ground that captures complex interactions without sacrificing the clarity of a simple plot.

TL;DR

Regionally Additive Models (RAMs) improve upon traditional interpretable models by identifying specific subregions of data where features behave additively. By fitting different "mini-models" to these regions, RAMs capture complex feature interactions while remaining easy for humans to visualize and understand.

What Problem Does This Paper Address?

The gold standard for interpretable machine learning is the Generalized Additive Model (GAM). A GAM assumes the output is just the sum of individual functions: $f(x) = f_1(x_1) + f_2(x_2) + \dots$. This is great because you can plot $f_1$ on a 2D graph and see exactly how feature $x_1$ affects the result.

However, GAMs have a "blind spot": feature interactions. If the impact of $x_1$ depends on the value of $x_2$, a global GAM will average those effects out, leading to poor accuracy. While researchers have tried adding pairwise interactions (GA²Ms), these become overwhelming to visualize as the number of features grows, and they still struggle with higher-order interactions (e.g., three or more features working together).

Methods

The authors propose a three-step pipeline to create a RAM:

  1. Train a Black-Box: First, they train a high-performance, differentiable black-box model (like a Deep Learning model for tabular data) to learn the "true" complex relationship in the data, interactions and all.
  2. Find Subregions: They use a technique called Differential Accumulated Local Effects (DALE) to analyze the black-box. They look for "near-local additivity"—slices of the data where the interaction effects are minimal. They use a tree-based algorithm to split the feature space into these subregions.
  3. Fit the RAM: Finally, they fit a GAM component to each identified subregion. Instead of one global function for "Age," the model might have one function for "Age" when "Income is Low" and a different one for "Age" when "Income is High."

By using gradients from the black-box model, the authors can identify these regions much more efficiently than previous methods.

Datasets

The researchers validated RAMs using three distinct setups:

  • Synthetic Toy Dataset: A controlled environment where the "ground truth" involved a three-feature interaction that standard GAMs and GA²Ms are mathematically unable to capture perfectly.
  • Bike-Sharing Dataset: Predicting hourly bike rentals in Washington D.C., where interactions between "hour of the day" and "working day vs. holiday" are crucial.
  • California Housing Dataset: A classic benchmark for predicting median house values based on eight numerical features like location, income, and room counts.

Key Insights and Ideas

  • Local Simplicity in Global Complexity: The core "aha moment" is that even if a function is globally chaotic and full of interactions, it often behaves linearly or additively if you zoom into the right "neighborhood" of the data.
  • The Interpretability Trade-off: RAMs allow users to tune the model. By increasing the "maximum depth" of the subregion splits, you get more accuracy (approaching black-box levels) at the cost of having more plots to inspect.
  • Efficiency via Gradients: By requiring the initial black-box to be differentiable, the authors can use the Jacobian matrix (gradients) as a "lookup table" to find interaction-free zones, making the process scalable to large datasets.

Key Results

The experiments showed that RAMs consistently outperform standard GAMs while remaining much more interpretable than pure black boxes:

  • Bike-Sharing: The RAM (1st order) achieved an RMSE of 0.563, significantly better than the standard GAM's 0.734. When upgraded to include second-order interactions (RA²M), it hit 0.412, nearly matching the black-box DNN's 0.389.
  • California Housing: The RAM reduced the error (RMSE) from 0.819 (GAM) to 0.754.
  • Qualitative Success: In the Bike-Sharing data, the RAM automatically discovered that the "Hour of the Day" effect looks completely different on workdays (peaks at commute times) versus non-workdays (peaks in the afternoon). A standard GAM would have averaged these into a nonsensical "middle" curve.

Limitations and Future Work

While promising, the authors note a few areas for further study:

  • Scaling: The model needs to be tested on a wider variety of much larger datasets to ensure the subregion detection remains robust.
  • Algorithmic Variety: The current framework uses a specific tree-based splitting method; future work could explore alternative clustering algorithms to define subregions.
  • Higher-Order Interactions: While RAMs handle interactions well, the authors suggest that the "optimal" subregions for 1st-order effects might not be the same as those for 2nd-order effects, implying a need for more complex optimization in the future.

Paper Title: Regionally Additive Models: Explainable-by-design models minimizing feature interactions Authors: Vasilis Gkolemis, Anargiros Tzerefos, Theodore Dalamagas, Eirini Ntoutsi, and Christos Diou.

Summary updated

BibTeX
@inproceedings{gkolemis2023regionally,
  author = {Vasilis Gkolemis and Anargiros Tzerefos and Theodore Dalamagas and Eirini Ntoutsi and Christos Diou},
  title = {{Regionally Additive Models: Explainable-by-Design Models Minimizing Feature Interactions}},
  booktitle = {Pkdd/ecml Workshops},
  year = {2023},
  doi = {10.1007/978-3-031-74627-7\_36},
}
Figure