Gaussian Process Neural Additive Models

Wei Zhang, Brian Barr, John Paisley

Introduction

In high-stakes domains such as healthcare and finance, the adoption of machine learning is often hindered by the "black-box" nature of deep neural networks. Practitioners require models that are not only accurate but also transparent. Neural Additive Models (NAMs) emerged as a solution, decomposing complex multi-dimensional functions into a sum of univariate neural networks. While NAMs provide interpretability through "shape functions," they suffer from high computational costs, optimization instability due to non-convexity, and often produce jagged, overfitted visualizations.

The GP-NAM Approach

Gaussian Process Neural Additive Models (GP-NAM) address these limitations by replacing deep neural networks with Gaussian Processes (GPs) approximated via Random Fourier Features (RFF). This architectural shift transforms the interpretability problem into a convex optimization task.

Architecture and Methodology

The core innovation of GP-NAM lies in its use of RFF to approximate a Radial Basis Function (RBF) kernel. Instead of learning complex weights across multiple layers, the model employs a fixed hidden layer of cosine functions with random frequencies ($z_s$) and phases ($c_s$). These frequencies are sampled from a normal distribution, effectively mapping the input feature into a high-dimensional space that represents the GP kernel.

The GP-NAM architecture utilizes shared random features to transform inputs into a basis for a linear output layer, ensuring a convex optimization objective.

Because the hidden layer weights are fixed, only the final linear layer—which weights these Fourier features—needs to be trained. This results in a global optimum that can be reached quickly using standard linear solvers or conjugate gradients, eliminating the "initialization lottery" common in deep learning.

Performance and Efficiency

The authors evaluated GP-NAM across 14 diverse tabular datasets, ranging from credit scoring (FICO, LCD) to healthcare (MIMIC). The results demonstrate that GP-NAM is significantly more efficient than its predecessors.

  • Computational Speed: On the LCD dataset, GP-NAM achieved a training speed of 50ms per epoch on a standard CPU, compared to 5.5 seconds per epoch for standard NAMs on a GPU.
  • Model Parsimony: GP-NAM consistently utilizes approximately 60x fewer parameters than standard NAMs. For instance, on the FICO dataset, the parameter count dropped from 262,000 to just 3,901.

Enhanced Interpretability

Beyond efficiency, GP-NAM provides superior interpretability. Standard NAMs often produce "wiggly" shape functions that capture noise rather than underlying trends. In contrast, the GP-based approach inherently favors smoother functions.

Comparison of shape functions across different models. GP-NAM (bottom row) produces significantly smoother and more interpretable trends compared to the jagged outputs of standard NAMs (top row).

As shown in the figure above, GP-NAM captures meaningful non-linearities—such as the relationship between Debt-to-Income (DTI) ratios and loan risk—without the distracting oscillations seen in deep neural network implementations.

Conclusion

GP-NAM represents a significant step forward for interpretable machine learning on tabular data. By leveraging the mathematical properties of Gaussian Processes and Random Fourier Features, it offers a model that is faster to train, easier to optimize, and more human-readable than traditional Neural Additive Models. While currently focused on univariate features, future extensions to handle feature interactions (GP-NA²M) promise to further bridge the gap between performance and transparency.

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