Inferensys

Glossary

Neural Additive Models (NAM)

A class of deep learning models that constrain the network architecture to learn a linear combination of shape functions, one for each input feature, making the model's prediction a sum of independent, interpretable feature effects.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
INTERPRETABLE DEEP LEARNING

What is Neural Additive Models (NAM)?

Neural Additive Models represent a class of deep learning architectures that constrain the network to learn a linear combination of independent shape functions, making predictions fully interpretable as a sum of feature effects.

A Neural Additive Model (NAM) is a deep learning architecture that learns a separate neural network for each input feature and sums their outputs to make a prediction. This additive structure ensures the model's decision is the linear combination of independent, univariate shape functions, making the contribution of each feature to the final output exactly identifiable and auditable.

Unlike black-box deep networks, NAMs provide intrinsic interpretability by design, allowing analysts to visualize each feature's learned function as a graph. This makes them particularly valuable for regulated domains like financial fraud detection, where compliance officers must understand and justify every anomaly score to regulators and customers.

ARCHITECTURAL PRINCIPLES

Key Characteristics of NAMs

Neural Additive Models (NAMs) constrain deep learning to learn a linear combination of independent shape functions, one per feature. This design yields inherently interpretable predictions while maintaining the representational power of neural networks.

01

Additive Structure

The model's prediction is the sum of univariate shape functions applied to each input feature, plus a bias term. This enforces the form:

g(E[y]) = f₁(x₁) + f₂(x₂) + ... + fₙ(xₙ) + β

  • Each fᵢ is a neural network trained on a single feature
  • No feature interactions are learned, making the contribution of each input completely independent
  • The final prediction is a simple summation, enabling exact decomposition of the output
02

Shape Function Networks

Each feature is processed by its own dedicated feedforward neural network that learns a non-linear transformation of that single input.

  • A shape function fᵢ(xᵢ) can capture complex, jagged relationships that linear models miss
  • The architecture typically uses ExU (Exp-centered) units in the first layer to better model sharp jumps common in tabular data
  • Each network outputs a scalar contribution, which is added to the total prediction
  • The learned function can be plotted directly as a graph of feature value vs. contribution
03

Native Interpretability

NAMs are intrinsically interpretable glass-box models, not black-boxes requiring post-hoc explanation.

  • The contribution of any feature to a specific prediction is simply fᵢ(xᵢ) — a single, exact value
  • No approximation methods like SHAP or LIME are needed; the explanation is the model itself
  • Auditors can inspect every shape function to understand the model's global behavior across the entire feature range
  • This satisfies regulatory requirements for adverse action reason codes and model documentation
04

Pairwise Interactions (NA²M)

The standard NAM can be extended to include learned pairwise feature interactions, creating a Neural Additive Model plus Interactions (NA²M).

  • Adds terms of the form fᵢⱼ(xᵢ, xⱼ) for selected feature pairs
  • Each interaction is a small neural network trained on two features
  • The model remains interpretable because each interaction can be visualized as a heatmap
  • Balances the accuracy gains of modeling interactions against the cost of added complexity
05

Accuracy vs. Interpretability Trade-off

NAMs achieve a favorable position on the Pareto frontier between predictive performance and explainability.

  • On tabular benchmarks, NAMs often match or approach the accuracy of gradient-boosted trees like XGBoost
  • They consistently outperform logistic regression and other linear models on complex, non-linear problems
  • The accuracy gap to fully-connected deep networks is typically small, while the interpretability gain is massive
  • For fraud detection, this means catching sophisticated patterns while still providing auditable reason codes
06

Regularization and Smoothness

Shape functions can be constrained to enforce desirable real-world properties that align with domain knowledge.

  • Feature dropout randomly drops entire features during training, preventing over-reliance on any single input
  • Smoothness penalties on the output of shape networks prevent erratic, high-frequency learned functions
  • Monotonicity constraints can be imposed to ensure that, for example, a higher transaction amount never decreases risk
  • These constraints produce shape functions that are not only accurate but also intuitively reasonable to human reviewers
GLASS-BOX MODEL COMPARISON

NAM vs. Explainable Boosting Machine (EBM) vs. Generalized Additive Models (GAM)

A structural and functional comparison of three intrinsically interpretable model architectures that learn additive feature effects for transparent, auditable predictions.

FeatureNeural Additive Model (NAM)Explainable Boosting Machine (EBM)Generalized Additive Model (GAM)

Core Architecture

Deep neural network constrained to learn independent shape functions per feature

Gradient-boosted tree ensemble learning bagged shape functions with pairwise interactions

Statistical model fitting smooth spline or polynomial functions per feature via backfitting

Base Learner

Multi-layer perceptron (MLP) subnetworks

Boosted bagged trees (cyclic gradient boosting)

Smoothing splines, local regression, or polynomial basis functions

Interpretability Type

Intrinsic (glass-box by architectural constraint)

Intrinsic (glass-box by design)

Intrinsic (glass-box by statistical formulation)

Pairwise Interaction Detection

Automatic Feature Shape Discovery

Handles Non-Linear Feature Effects

Training Algorithm

Stochastic gradient descent (SGD) with mini-batches

Cyclic gradient boosting with bagging

Iterative backfitting or restricted maximum likelihood (REML)

Native GPU Acceleration

Typical Accuracy vs. Black-Box

Comparable to deep networks on tabular data

Comparable to XGBoost/LightGBM

Often lower than modern boosting methods

Output Format

Sum of learned neural shape functions + bias

Sum of learned tree-based shape functions + bias

Sum of smooth functions + link function

NEURAL ADDITIVE MODELS EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Neural Additive Models and their role in interpretable fraud detection.

A Neural Additive Model (NAM) is a deep learning architecture that constrains the network to learn a linear combination of independent shape functions, one for each input feature. The model's final prediction is the sum of these individual feature effects: f(x) = f1(x1) + f2(x2) + ... + fn(xn). Each shape function fi is a small, independent neural network trained on a single feature, learning a non-linear transformation of that feature's values. This additive structure eliminates feature interactions by design, making the model's decision-making process fully transparent. For a fraud analyst reviewing a flagged transaction, a NAM can output a scorecard showing exactly how much each feature—such as transaction amount, time since last login, or device age—contributed to the final risk score, enabling precise adverse action reason codes and regulatory compliance.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.