Most supervised machine learning models for regression are designed for "point prediction"—outputting a single "best guess" for a given input. However, in high-stakes domains like healthcare or meteorology, knowing the model's uncertainty is just as important as the prediction itself. While probabilistic regression (predicting a full distribution $P(y|x)$) exists, current methods have significant drawbacks. Linear models are often too simple, Bayesian methods can be computationally expensive, and Deep Learning models often struggle with the tabular datasets where Gradient Boosting Machines (GBMs) typically shine.
NGBoost (Natural Gradient Boosting) bridges this gap. It is a modular boosting algorithm that extends gradient boosting to perform probabilistic regression, returning a full probability distribution rather than just a point estimate. By utilizing the Natural Gradient, it overcomes the technical challenges of simultaneously boosting multiple distributional parameters, providing robust uncertainty estimates with the ease of use of traditional boosting libraries.
The NGBoost Architecture
NGBoost builds on the standard Gradient Boosting framework but introduces two major innovations: Multiparameter Boosting and the Natural Gradient.
Instead of boosting a single scalar (like the mean), NGBoost treats all parameters of a chosen probability distribution (e.g., the mean $\mu$ and standard deviation $\sigma$ of a Normal distribution) as targets. It fits a separate set of base learners to the gradients of each parameter at every iteration.
The algorithm is highly modular, allowing users to specify three distinct components:
- Base Learner: The underlying model architecture (e.g., Decision Trees).
- Parametric Distribution: The shape of the output probabilities (e.g., Normal, Laplace, Poisson).
- Proper Scoring Rule: The objective function used to score the forecast (e.g., Maximum Likelihood Estimation or Continuous Ranked Probability Score).
Key Insights: The Power of the Natural Gradient
Standard gradients can be problematic when updating multiple parameters simultaneously because they are sensitive to how a distribution is parameterized. Without intervention, multiparameter boosting often fails because parameters converge at wildly different rates.
NGBoost solves this by using the Natural Gradient, which accounts for the Riemannian geometry of the space of probability distributions. This ensures that the "distance" moved during an update corresponds to a change in the actual distribution, not just the parameter values. The natural gradient "pre-scales" the updates using the inverse Fisher Information matrix, ensuring stable and balanced learning across all parameters.
Because it uses the natural gradient, NGBoost is invariant to parameterization. Whether predicting $\sigma$ or $\log \sigma$, the update remains the same in the space of distributions. Ultimately, this gives users probabilistic outputs "for free"—NGBoost provides uncertainty estimates without sacrificing point-prediction accuracy.
Experimental Results
The authors evaluated NGBoost on a variety of standard regression benchmarks from the UCI Machine Learning Repository, ranging from small datasets (Boston Housing, Wine) to large-scale datasets (Year MSD).
- State-of-the-Art Probabilistic Performance: NGBoost matched or exceeded the performance of competitive methods like Deep Ensembles, Gaussian Processes, and MC Dropout in terms of Negative Log-Likelihood (NLL) across most datasets.
- Competitive Point Estimates: Despite being optimized for full distributions, NGBoost's point estimates (the mean of the predicted distribution) remained highly competitive with Random Forests and standard Gradient Boosting.
- Ablation Success: The authors demonstrated that multiparameter boosting using standard gradients performed significantly worse than NGBoost, proving that the Natural Gradient is essential for this multi-target approach.
Limitations and Future Work
While powerful, NGBoost introduces computational overhead. It is computationally more expensive than standard GBMs, scaling linearly with the number of parameters in the distribution (e.g., a 2-parameter Normal distribution is roughly twice as slow as a standard mean-only GBM). Additionally, calculating the natural gradient requires inverting a $p \times p$ matrix for every observation. While $p$ is usually small, this adds overhead for very large datasets.
Future directions include extending NGBoost to handle joint prediction (modeling multiple related outcomes simultaneously) and exploring more sophisticated tree-growing strategies to further improve scalability.
Summary updated