Gaussian Process Neural Additive Models

Wei Zhang, Brian Barr, John Paisley

Deep neural networks are the heavy hitters of modern AI, but their "black-box" nature makes them a tough sell in high-stakes fields like healthcare and finance. When a model denies a loan or suggests a diagnosis, we need to know why. This has led to the rise of Neural Additive Models (NAMs), which trade some complexity for transparency.

In their recent paper, "Gaussian Process Neural Additive Models," researchers Wei Zhang, Brian Barr, and John Paisley introduce GP-NAM, a new subclass of NAMs that leverages Gaussian Processes (GPs) to make these interpretable models faster, leaner, and easier to train.

TL;DR

GP-NAM combines the inherent interpretability of additive models with the flexible function-learning power of Gaussian Processes. By using Random Fourier Features, the authors create a model that performs as well as deep neural networks on tabular data but trains significantly faster and uses up to 60x fewer parameters.

What Problem Does This Paper Address?

The gold standard for interpretability is the Generalized Additive Model (GAM). A GAM predicts an outcome by summing up the individual contributions of each input feature: $g(x) = f_1(x_1) + f_2(x_2) + \dots + f_d(x_d)$. Because each "shape function" $f_i$ only depends on one variable, you can simply plot it to see exactly how that variable affects the prediction.

Recent Neural Additive Models (NAMs) use deep neural networks to learn these shape functions. While powerful, NAMs come with the typical baggage of deep learning: they are non-convex (prone to local optima), sensitive to initialization, and computationally expensive, often requiring thousands of parameters per feature. The authors sought a way to retain the flexibility of NAMs while ditching the optimization headaches.

Methods

The core innovation of GP-NAM is replacing deep neural networks with Gaussian Processes as the shape functions. GPs are excellent at learning complex, non-parametric univariate functions, making them a natural fit for the additive framework.

To make this computationally feasible for large datasets, the authors use the Random Fourier Feature (RFF) approximation. This trick maps the input features into a space where the Gaussian Process behaves like a simple linear model.

Figure 2: The architecture of GP-NAM. Each 𝑥𝑖represents one feature of a single input vector 𝑥∈ℝ𝑑. Each (𝑧𝑠, 𝑐𝑠) is shared across shape functions. The GP 𝑓𝜃𝑖(𝑥𝑖) is the shape function for the 𝑖th feature. The only trainable parameters are the feature-specific 𝑆-dimensional weight vectors 𝑤1, … , 𝑤𝐷that connect the output from the cosine functions to their corresponding GP shape function. The prediction is made by using the sum of the outputs from all the shape functions with the bias term 𝑓0. This is mathematically equivalent to an additive Gaussian process.

As shown in Figure 2, the GP-NAM architecture is mathematically equivalent to a single-layer neural network where the hidden layer weights and biases are sampled from a distribution and fixed, and the activation function is a cosine. Only the final output weights are learned. This results in a convex objective function, meaning there is a single "best" solution that can be found quickly and reliably.

Datasets

The authors evaluated GP-NAM on a wide array of tabular datasets covering both classification and regression:

  • Classification: MIMIC-II/III (healthcare), FICO (credit scoring), Credit, GMSC, Adult, Churn, and LCD.
  • Regression: CA Housing, Bikeshare, Click, Microsoft, Yahoo, and Year.

These represent standard benchmarks for testing how well models handle structured, tabular data where interpretability is often a requirement.

Key Insights and Ideas

  • Convexity is a Superpower: Because the objective is convex, GP-NAM avoids the "lucky initialization" lottery of deep learning. You get stable, reproducible results every time.
  • Linear Parameter Growth: In standard NAMs, adding a feature adds a whole new sub-network. In GP-NAM, the number of parameters grows strictly linearly with the number of features.
  • Smoothness by Design: GPs naturally favor smooth functions. Deep NAMs can sometimes produce "jagged" shape functions that are harder for humans to interpret. GP-NAM produces clean, smooth curves that clearly show trends (e.g., how debt-to-income ratio affects default probability).
  • CPU-Friendly: Because the model is so lightweight, it can often be trained on a CPU in less time than it takes a deep NAM to train on a high-end GPU.

Key Results

GP-NAM achieves performance comparable to, and sometimes better than, state-of-the-art models like EBMs and deep NAMs, but with a fraction of the complexity.

  • Parameter Efficiency: On the LCD dataset, GP-NAM used only 501 parameters, compared to 32,000 for a standard NAM. Figure 3 illustrates this massive reduction across different data dimensions.
  • Speed: For the same LCD dataset, GP-NAM trained at 50ms per epoch on a CPU, while a standard NAM took 5.5 seconds per epoch on a GPU.
  • Accuracy: In classification tasks like GMSC and Click, GP-NAM achieved the highest AUC (Area Under the Curve) among all interpretable baselines.
Parameter number ratios showing that GP-NAM uses significantly fewer parameters than NAM or NBM as the number of features (D) increases.

Limitations and Future Work

  • Feature Interactions: Like all additive models, the basic GP-NAM assumes features don't interact (e.g., it doesn't account for how the effect of "age" might change based on "income"). The authors note that GP-NAM can be extended to include pairwise interaction terms ($GA^2M$), though this increases complexity.
  • Multiclass Classification: The current work focuses on binary classification and regression. Extending this to multiclass problems is straightforward but wasn't the focus of this paper.
  • Kernel Selection: The study primarily uses the RBF (Radial Basis Function) kernel. Exploring other kernels via different RFF mappings could potentially unlock better performance for specific types of data.

In summary, GP-NAM proves that you don't always need "deep" models to get "smart" results. By revisiting classical Gaussian Processes through the lens of modern neural architectures, the authors have provided a powerful, efficient tool for the interpretable AI toolbox.

Summary updated

BibTeX
@inproceedings{zhang2024gaussian,
  author = {Wei Zhang and Brian Barr and John Paisley},
  title = {{Gaussian Process Neural Additive Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29628},
}
Figure