The Kernel Interaction Trick: Fast Bayesian Discovery of Pairwise Interactions in High Dimensions

Raj Agrawal, Brian L. Trippe, Jonathan H. Huggins, Tamara Broderick

Summary

Bayesian methods for discovering pairwise interactions are statistically powerful but computationally crushing in high dimensions. This paper introduces the Kernel Interaction Trick (KIT), a method that re-parameterizes hierarchical models as Gaussian Processes. This innovation reduces computational complexity from $O(p^2)$ to $O(p)$, enabling fast and accurate interaction discovery even when the number of covariates far exceeds the number of observations.

The High-Dimensional Interaction Problem

In fields like genomics or precision medicine, researchers often need to find "interaction effects"—cases where two variables (like two different genes) together impact an outcome more than the sum of their individual parts.

The standard approach is to add multiplicative terms ($x_i \times x_j$) to a linear regression. However, if you have $p$ covariates, the number of possible pairwise interactions grows quadratically ($O(p^2)$). In high-dimensional settings where $p$ is large (e.g., thousands of genes), this leads to two major hurdles:

  1. Statistical Overfitting: With so many parameters, models easily overfit. While LASSO-based methods can provide sparse estimates, they struggle to provide valid confidence intervals or handle multiple comparison adjustments.
  2. Computational Intractability: Bayesian hierarchical models are great for addressing these statistical issues, but they are traditionally intractable for large $p$. Naive Markov chain Monte Carlo (MCMC) sampling becomes impossibly slow because it tries to explicitly track every single interaction term.

Methods: The Gaussian Process Lens

The authors' core innovation is treating the interaction problem through the lens of Gaussian Processes (GPs).

  • Gaussian Process Representation: They demonstrate that many hierarchical models (including those with sparsity and "strong hierarchy" constraints) can be rewritten as a GP. Instead of sampling $O(p^2)$ individual interaction coefficients, they sample a much smaller vector of $O(p)$ kernel hyper-parameters.
  • Kernel Interaction Sampler (KIS): By using a specific "two-way interaction kernel," the authors can compute the marginal likelihood in time linear in $p$. This allows MCMC to run efficiently in high dimensions.
  • The Kernel Interaction Trick (KIT): Once the model is fit, recovering the $O(p^2)$ space usually requires massive computation. KIT allows researchers to recover the posterior mean and variance of any specific interaction in $O(1)$ time by evaluating the GP at specific "test points." This "lazy evaluation" means you only compute the interactions you are actually interested in.
  • SKIM (Sparse Kernel Interaction Model): The authors introduce a specific model that uses these tricks to enforce "strong hierarchy"—the prior assumption that an interaction effect is only likely to exist if both corresponding "main effects" (individual variables) are also significant.

Datasets

The authors evaluated their approach using several datasets:

  • Synthetic Datasets: 36 different configurations varying the number of observations ($N$), dimensions ($p$), and signal-to-noise ratios to test variable selection accuracy and MSE.
  • Residential Building Data Set (UCI): Used real-world covariate geometry combined with simulated responses to see how the method handles highly correlated data.
  • Auto MPG Dataset (UCI): A classic dataset where hundreds of "fake" noise covariates were added to test the model's ability to distinguish true physical interactions (like weight $\times$ horsepower) from random noise in high dimensions.

Key Insights

  • Implicit is Better than Explicit: You don't need to explicitly represent every interaction to learn from them. By using the "weight-space view" of GPs, the kernel implicitly handles the $O(p^2)$ interactions.
  • Linear Scaling in $p$: The computational bottleneck shifts from the number of covariates ($p$) to the number of observations ($N$). In "wide" data scenarios ($p \gg N$), this is a massive win.
  • Better Mixing: Sampling in the lower-dimensional hyper-parameter space leads to much better MCMC convergence (mixing) than trying to sample the high-dimensional coefficient space directly.

Key Results

  • Speed and Memory: The KIT/KIS approach scales linearly with dimension $p$, while naive and Woodbury-based baselines explode computationally and memory-wise.
Empirical evaluation of time and memory scaling
  • Superior Accuracy: In synthetic tests, the authors' method (SKIM-KIS) achieved lower Type I (false discovery) and Type II (missed discovery) error rates compared to state-of-the-art LASSO-based approaches like HLASSO and PLASSO.
Comparison of discovery accuracy and error rates
  • Robustness to Noise: On the Auto MPG dataset with 200 added noise variables, SKIM-KIS correctly identified the original physical interactions without picking up a single "fake" interaction, whereas LASSO-based methods selected dozens of false positives.

Limitations and Future Work

  • The $N^3$ Bottleneck: While the method is linear in $p$, it is cubic in the number of observations ($O(N^3)$) due to the matrix inversions required by Gaussian Processes. This makes it less suitable for "tall" datasets with many thousands of observations.
  • Scaling with $N$: The authors suggest that future work could integrate standard GP acceleration techniques, like inducing points, to handle larger $N$.
  • Higher-Order Interactions: While the paper focuses on pairwise interactions, the theoretical framework can be extended to three-way or higher-order interactions, though the kernel complexity would increase accordingly.

Summary updated

BibTeX
@inproceedings{agrawal2019kernel,
  author = {Raj Agrawal and Brian L. Trippe and Jonathan H. Huggins and Tamara Broderick},
  title = {{The Kernel Interaction Trick: Fast Bayesian Discovery of Pairwise Interactions in High Dimensions}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure