Accurate intelligible models with pairwise interactions

Yin Lou, Rich Caruana, Johannes Gehrke, Giles Hooker

Introduction

In machine learning, practitioners often face a trade-off between accuracy and intelligibility. High-performance models like Random Forests or Deep Neural Networks are often "black boxes," making them difficult to debug or trust in high-stakes domains. Conversely, intelligible models like Generalized Additive Models (GAMs) are easy to visualize but often sacrifice accuracy by assuming feature independence. This paper introduces GA2M, a model class that bridges this gap by incorporating a small number of pairwise interactions into standard GAMs, and FAST, an ultra-fast algorithm for identifying these interactions.

The GA2M Framework

The authors extend the standard GAM formula to include pairwise terms: $$g(E[y]) = \sum f_i(x_i) + \sum f_{ij}(x_i, x_j)$$ Because these interactions are restricted to two dimensions, they remain fully visualizable as heatmaps. This preserves the model's intelligibility while allowing it to capture critical context—such as how the effect of "Age" might vary based on "Location."

The FAST Algorithm

Identifying the most important interactions among hundreds or thousands of features is computationally expensive. With $n$ features, there are $O(n^2)$ possible pairs. Traditional methods like ANOVA or Additive Groves are prohibitively slow for large datasets.

To address this, the authors developed FAST (Fast Interaction Detection). Instead of building a full model for every pair, FAST uses a "cheap substitute" by placing a single cut on each variable to create a 2x2 grid. It then calculates the reduction in Residual Sum of Squares (RSS) across these four quadrants.

The FAST algorithm uses a 2x2 grid to efficiently estimate the strength of pairwise interactions.

By leveraging dynamic programming and cumulative histograms, FAST can evaluate a pair in $O(1)$ time after an initial $O(N)$ preprocessing step. This allows the algorithm to rank interactions orders of magnitude faster than previous state-of-the-art methods.

Experimental Evaluation

The researchers evaluated GA2M and FAST on 10 diverse real-world datasets spanning regression and classification tasks.

Accuracy and Efficiency

GA2M significantly closed the performance gap with black-box models. On average, it reduced RMSE by 34% over standard GAMs for regression and error rates by 44% for classification, often matching the performance of Random Forests.

The efficiency gains were even more dramatic. On datasets where traditional ranking methods took nearly a week, FAST completed the task in approximately 10 seconds.

Performance comparison showing FAST's stability across binning levels and its massive speed advantage over traditional methods.

Discussion and Conclusion

The success of GA2M suggests that structural constraints can serve as a powerful form of regularization. By limiting the model to 1D and 2D terms, GA2M reduces variance and avoids overfitting in high-dimensional spaces where complex models might capture noise.

While FAST is remarkably efficient, it still scales quadratically, posing a challenge for web-scale data with millions of features. However, for most practical applications, GA2M provides a unique combination of state-of-the-art accuracy and total model transparency.

Summary updated

BibTeX
@inproceedings{lou2013accurate,
  author = {Yin Lou and Rich Caruana and Johannes Gehrke and Giles Hooker},
  title = {{Accurate intelligible models with pairwise interactions}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2013},
  doi = {10.1145/2487575.2487579},
}
Figure