Imagine a committee where each expert only speaks up about what the previous expert got wrong. Each correction is small and imperfect, but after enough rounds the committee's collective answer is surprisingly accurate. That is the core idea behind gradient boosting.
The algorithm starts with a single prediction — typically the mean of the training targets. It then measures the residual errors (how far each prediction is from the truth), fits a shallow decision tree to those residuals, and adds a scaled version of that tree to the model. The residuals shrink. A new tree is fitted to the new residuals, and the cycle repeats.
After rounds the final prediction is the sum of small trees:
where is the initial guess, is the learning rate (a small shrinkage factor like ), and each is a shallow tree fitted to the residuals at round .
Algorithms like XGBoost (Chen & Guestrin, 2016) and LightGBM (Ke et al., 2017) are refined, highly optimised versions of this idea. They dominate structured-data competitions and underpin systems from fraud detection to medical diagnosis.
Comments
Loading comments...