Research Library · Idea
Gradient boosting
Gradient boosting builds a prediction as a sum of many small models, usually shallow regression trees, added one at a time, each fitted to what the current sum gets wrong. Friedman's 2001 paper views function estimation as numerical optimisation in function space rather than parameter space and connects stagewise additive expansions with steepest-descent minimisation; it gives algorithms for least-squares, least-absolute-deviation and Huber losses in regression and multiclass logistic likelihood in classification, with special enhancements for regression trees.1
For squared error the step is easy to state: begin with a constant (the mean), compute residuals, fit a small tree to the residuals, add a shrunken copy to the model, and repeat. The residual is the negative gradient of the squared-error loss. ISLR's Algorithm 8.2 states this, and names three tuning parameters: the number of trees (boosting can overfit if it is too large), the shrinkage rate, typically 0.01 or 0.001, and the number of splits per tree, where single-split stumps often work.2 Worked example: with y = 1, 2, 6, 7 at x = 1 to 4, a start at the mean 4 and a stump with shrinkage 0.5, the sum of squared errors falls from 26 to 7.25 in one step.
Chen and Guestrin's XGBoost (2016) credits shrinkage to Friedman and adds a regularised objective with a penalty on tree size and leaf weights, a second-order approximation of the loss, a sparsity-aware split finder with a learned default direction, a weighted quantile sketch and cache-aware systems design. They report that 17 of 29 winning Kaggle solutions published in 2015 used XGBoost.3 LightGBM reports training up to over 20 times faster than conventional gradient boosted trees on its tests.4
Gradient-boosted trees are a common choice for tabular data and for deployed security scores. The EPSS exploit-prediction score uses XGBoost in its current versions,5 and EMBER's baseline malware classifier is a LightGBM model with default settings.6 Benchmarks from 2021 to 2025 show tuned boosted trees as a strong baseline that newer tabular models match mainly under larger tuning budgets or on small datasets.
Source · Greedy function approximation: A gradient boosting machine (opens in a new tab) · J. H. Friedman, Annals of Statistics 29(5), 2001 (archived abstract page), doi:10.1214/aos/1013203451
References
- Greedy function approximation: A gradient boosting machine (opens in a new tab) · Annals of Statistics 29(5), archived Project Euclid page · October 1, 2001 ↩
- An Introduction to Statistical Learning with Applications in R (first edition, seventh printing) (opens in a new tab) · James, Witten, Hastie and Tibshirani, Springer · January 1, 2013 ↩
- XGBoost: A Scalable Tree Boosting System (opens in a new tab) · arXiv 1603.02754 / KDD 2016 (Chen, Guestrin) · June 10, 2016 ↩
- LightGBM: A Highly Efficient Gradient Boosting Decision Tree (opens in a new tab) · NeurIPS 2017 (Ke et al.) · January 1, 2017 ↩
- EPSS: how it works (opens in a new tab) · FIRST ↩
- EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models (opens in a new tab) · arXiv 1804.04637 (Anderson, Roth) · April 16, 2018 ↩
Research articles
- Before deep learning: a reader in the classical methods behind tabular machine learning, from nearest neighbours to gradient boosting · Machine learning
See what connects to it on the map of ideas →

SecSIG