Neural Additive Models: Interpretable Machine Learning with Neural Nets

Rishabh Agarwal, Levi Melnick, Nicholas Frosst, Xuezhou Zhang, Benjamin J. Lengerich, Rich Caruana, Geoffrey E. Hinton

TL;DR

Deep neural networks are highly accurate but notoriously difficult to interpret, limiting their use in high-stakes domains like healthcare and criminal justice. This paper introduces Neural Additive Models (NAMs), which combine the inherent interpretability of Generalized Additive Models (GAMs) with the expressivity of neural networks. By assigning a dedicated neural network to each input feature, NAMs match the performance of state-of-the-art interpretable models while offering unique advantages like differentiability and seamless extension to multitask learning.

The Accuracy-Interpretability Trade-off

In machine learning, there is a well-known trade-off between accuracy and interpretability. Full-complexity models like Deep Neural Networks (DNNs) and Gradient Boosted Trees (XGBoost) are highly accurate but act as "black boxes." Conversely, linear regression and shallow decision trees are easy to understand but often lack the capacity to model complex real-world data.

Generalized Additive Models (GAMs) bridge this gap by learning a separate, non-linear shape function for each feature and adding them together ($Prediction = \beta + f_1(x_1) + f_2(x_2) \dots$). Because the features don't interact in hidden ways, you can graph each function to see exactly how a feature impacts the prediction. However, modern state-of-the-art GAMs (like Explainable Boosting Machines, or EBMs) rely on boosted decision trees. Tree-based GAMs are difficult to extend to multitask learning, cannot be easily integrated into larger deep learning pipelines, and require training millions of trees. The authors tackle this by replacing boosted trees with neural networks, bringing interpretable GAMs into the deep learning ecosystem.

Methods: Building a Neural Additive Model

The core architecture of a NAM is straightforward: each input feature is fed into its own separate neural network (a "subnet"), and the outputs of these subnets are summed together with a bias term to make a prediction.

NAM Architecture

The ExU Unit: Learning Jagged Functions

During development, the authors discovered a major hurdle: standard neural networks with ReLU activations are biased toward smoothness and struggle to learn the "jagged" or jumpy 1D functions commonly found in real-world tabular data (e.g., sharp changes in housing prices at specific city boundaries).

To solve this, they introduce exp-centered (ExU) hidden units. Instead of a standard linear transformation, ExU units learn weights in a logarithmic space: $h(x) = f(e^w * (x - b))$. This allows the network to learn incredibly steep slopes with relatively small weight parameters. To prevent these highly expressive units from overfitting, the authors pair them with capped ReLU activations (ReLU-n) and apply heavy regularization, including dropout, weight decay, and feature dropout.

Key Insights and Results

The authors evaluated NAMs across a mix of classification and regression tasks, including MIMIC-II (ICU mortality), COMPAS (recidivism), and COVID-19 patient data.

  • Competitive Accuracy: NAMs perform similarly to state-of-the-art tree-based GAMs (EBMs) and significantly outperform traditional interpretable models (Logistic Regression, CART). On the MIMIC-II dataset, NAMs achieved an AUC of 0.830, closely trailing EBMs (0.835) and full-complexity XGBoost (0.844).
  • Exact Interpretability: Unlike post-hoc explainability tools like LIME or SHAP—which create local approximations of a black-box model—NAMs provide an exact description of how the model computes its prediction. What you see on the feature graph is exactly what the model is doing.
Shape Graphs
  • Exposing and Correcting Bias: On the COMPAS dataset, the NAM's shape graphs clearly exposed racial bias, showing the model learned to assign higher recidivism risk to Black defendants. Because of the additive nature of the model, developers can easily "zero out" the race feature's contribution graph to remove this specific learned bias without retraining from scratch.
  • Differentiability Unlocks New Architectures: Because NAMs are built with neural networks, they are fully differentiable. The authors demonstrate this by using a NAM to generate parameters for a secondary model that predicts personalized COVID-19 treatment benefits—something impossible with tree-based GAMs.
  • Multitask Superiority: Multitask learning is trivial for NAMs. By allowing different tasks to share feature subnets while learning task-specific weights, Multitask NAMs reduced Mean Squared Error (MSE) by 34% on synthetic data compared to training separate single-task NAMs.

Limitations and Future Work

  • Lack of Feature Interactions: By design, NAMs only model first-order terms (individual features). They do not capture interactions between features (e.g., Age $\times$ Blood Pressure), which slightly limits their expressivity compared to full DNNs. Incorporating a small number of crucial higher-order interactions without destroying intelligibility is a key next step.
  • Alternative Activations: Exploring other feature representations, such as Fourier features (which help networks learn high-frequency functions), could be an alternative to ExU units.
  • Beyond Tabular Data: While NAMs currently operate on tabular data, future work could apply them to high-dimensional inputs (like images or text) by using NAMs to make decisions based on learned representations rather than raw pixels.

Summary updated

BibTeX
@inproceedings{agarwal2021neural,
  author = {Rishabh Agarwal and Levi Melnick and Nicholas Frosst and Xuezhou Zhang and Benjamin J. Lengerich and Rich Caruana and Geoffrey E. Hinton},
  title = {{Neural Additive Models: Interpretable Machine Learning with Neural Nets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=8EcS-zdy3r},
}
Figure