Explainable boosting machine

Also known as: EBM model

On this page 7

An explainable boosting machine (EBM) is a glass-box machine learning model that predicts by adding together one learned shape function per feature plus a small number of pairwise interaction terms, each trained with gradient boosting. In explainable AI, it is the leading example of an interpretable-by-design model that often reaches accuracy close to random forests and boosted tree ensembles on tabular data.

Because every prediction is an exact sum of per-feature contributions, the EBM model needs no post-hoc approximation such as SHAP or LIME to be explained. Its global explanation and its local explanation come directly from the model itself, which makes it attractive in regulated areas of artificial intelligence such as credit, healthcare and insurance.

How an explainable boosting machine learns

An explainable boosting machine is a modern implementation of a generalized additive model with interactions, often written as GA2M. The prediction for a regression task, or the log-odds for a classification task, is a bias term plus a sum of functions f(x1) + f(x2) + … + f(xi, xj), where each function depends on one feature or on one selected pair of features.

The functions are learned with cyclic gradient boosting. Training visits the features one at a time in a round-robin order and fits a very shallow tree on a single feature to the current residuals, using a very small learning rate. Thousands of such passes are made, so no single feature can absorb signal that belongs to a correlated neighbor, and the order of features has little effect on the final result.

Several training stages make the result stable and readable. The table below summarizes them and the role each plays.

StageWhat happensWhy it matters
Feature binningContinuous features are discretized into binsMakes shape functions fast and piecewise constant
Cyclic boosting of main effectsShallow trees fitted one feature at a timeProduces one clean curve per feature
Interaction detectionFAST algorithm ranks candidate feature pairsKeeps only the most useful pairs
Boosting of pairwise termsTwo-dimensional functions fitted on residualsCaptures effects no single feature explains
Outer baggingMany models trained on resamples and averagedSmooths curves and gives error bands
PurificationInteraction mass moved into main effectsMakes each term identifiable
Main stages of EBM training

The final model is effectively a set of lookup tables: one table per feature and one grid per interaction pair. Prediction is therefore extremely fast, often faster than evaluating a large tree ensemble, although training is slower than with typical gradient boosting libraries.

Reading shape functions and contributions

The shape function of a feature is a curve that shows how much that feature adds to or subtracts from the prediction across its range. A data scientist can see, for example, that risk rises steeply above a certain age, flattens between two income levels, or jumps at a specific threshold.

For a single prediction, the explanation is exact: each feature contributes the value of its curve at the observed input, and the contributions sum precisely to the model output. This is a key difference from post-hoc methods, whose attributions are estimates that can be unfaithful to the model.

Global importance is usually reported as the mean absolute contribution of each term across the training data. Interaction terms are shown as heatmaps, which are readable for two dimensions but become harder to interpret as their number grows.

EBM compared with other models and explanations

The explainable boosting machine sits between simple linear models and black-box ensembles. It keeps the additive structure that makes linear models readable while allowing each feature effect to be nonlinear and to contain sharp jumps.

ModelInterpretabilityTypical tabular accuracyExplanation source
Logistic or linear regressionHighLower on nonlinear dataCoefficients
Single decision treeHigh if shallowLowerDecision path
Explainable boosting machineHighClose to boosted ensemblesExact additive terms
Gradient boosted treesLowUsually highestPost-hoc, such as TreeSHAP
Deep neural networkVery lowStrong on unstructured dataPost-hoc attribution
How an EBM compares with common tabular models

The comparison is not absolute. On datasets where high-order interactions carry most of the signal, unrestricted gradient boosted trees can be clearly more accurate. On many business datasets with a few dozen meaningful features, the accuracy gap is small or absent, and the interpretability gain is substantial.

EBMs are also often confused with global surrogate models. A surrogate imitates a black box and may disagree with it, whereas an EBM is the model that makes the decision, so its explanation is faithful by construction.

Key hyperparameters and practical use

The reference implementation is the open-source InterpretML library, which exposes EBM classifiers and regressors with a scikit-learn-style interface. Default settings work well on many problems, but a few hyperparameters shape the trade-off between accuracy, smoothness and readability.

ParameterTypical rangeEffect
Learning rate0.005 to 0.05Lower values give smoother, more stable curves
Maximum bins64 to 1,024More bins capture finer detail but add noise
Number of interactions0 to about 30More pairs raise accuracy and lower readability
Outer bags8 to 25 or moreMore bags reduce variance and lengthen training
Maximum leaves per tree2 to 3Keeps each boosting step very simple
Minimum samples per leaf2 to 50Limits overfitting in sparse regions
Important EBM hyperparameters

A distinctive practical benefit is model editing. Because each term is a table, domain experts can inspect a curve, spot an implausible pattern and correct or remove a term before deployment. This is impossible to do reliably inside a large tree ensemble.

  • Use an EBM when regulators or clinicians must review the full decision logic.
  • Use it to audit data problems, since curves expose leakage and coding errors quickly.
  • Prefer a black box with post-hoc explanation when inputs are images, audio or raw text.
  • Set monotonic constraints where domain knowledge requires them.

Limitations and common misconceptions

An explainable boosting machine is interpretable, not causal. A shape function shows what the model learned from correlations in the data, and correlated features can split credit between them in ways that look surprising. Readers must not treat a curve as proof that changing a feature will change the outcome.

  • Many interaction terms reduce readability; dozens of heatmaps are no longer a glass box.
  • Sparse regions of a feature produce jagged, unreliable curve segments.
  • Training on very large or wide datasets is slower than standard boosting.
  • Features engineered into opaque composites weaken the benefit of transparent terms.

Another misconception is that interpretability guarantees fairness. An EBM makes biased patterns visible, which is valuable, but someone still has to inspect the terms, judge them and act on what they reveal.

Explained without jargon

Picture a simple score sheet. Each fact about a person adds or removes a few points. Age gives some points. Income gives some points. The final score is just the total.

An explainable boosting machine builds that score sheet automatically from data. It learns a small chart for each fact, showing how many points every value is worth. Anyone can read the charts and see exactly why a score came out the way it did. Many complex models cannot offer that.

A typical use case

A hospital data team builds a model to predict 30-day readmission risk for about 40,000 discharged patients each year. Clinicians refuse to act on a score they cannot inspect, so the team trains an explainable boosting machine with 45 features and 10 interaction pairs.

Its accuracy, measured by AUC, comes within 0.01 of a tuned gradient boosting model. While reviewing the shape functions, physicians notice that patients with a history of asthma appear to have lower risk. The pattern exists because those patients were routinely sent to intensive care, which the data did not record as a feature.

The team edits the asthma term to remove the misleading benefit, documents the change, and deploys the model. Discharge nurses now see the top contributing factors for each patient, and the clinical board approves the model because every point of the score is traceable.