Search Knowledge

© 2026 LIBREUNI PROJECT

Machine Learning / Supervised Learning

Gradient Boosting Systems

Gradient Boosting Systems

Boosting methods train predictors sequentially, with each model attempting to correct its predecessor’s errors.

AdaBoost (Adaptive Boosting)

AdaBoost focuses on misclassified instances by adjusting their weights:

  1. Initialize all instance weights to w(i)=1/mw^{(i)} = 1/m.
  2. Train a base predictor and calculate its weighted error rate rjr_j.
  3. Compute the predictor weight αj=ηlog((1rj)/rj)\alpha_j = \eta \log((1-r_j)/r_j), where η\eta is the learning rate.
  4. Update instance weights: increase weights for misclassified instances and decrease them for correctly classified instances.
  5. Normalize weights and repeat.

Gradient Boosting

Unlike AdaBoost, Gradient Boosting trains models on the residual errors of the previous predictor.

For regression with squared error loss, the target for predictor ht(x)h_t(x) is the residual:

rt(i)=y(i)k=1t1ηhk(x(i))r_t^{(i)} = y^{(i)} - \sum_{k=1}^{t-1} \eta h_k(x^{(i)})

The final prediction aggregates all estimators:

y^(i)=t=1Tηht(x(i))\hat{y}^{(i)} = \sum_{t=1}^{T} \eta h_t(x^{(i)})

In classification, Gradient Boosting fits new trees to minimize the pseudo-residuals of the loss function, which are the negative gradients of the loss.

Histogram-Based Gradient Boosting

Modern implementations (like XGBoost, LightGBM, and scikit-learn’s HistGradientBoostingRegressor) bin continuous features into integer bins (e.g., 256 bins). This reduces the computational complexity of finding splits from O(300×nlogn)O(300 \times n \log n) to O(300×n bins)O(300 \times n \text{ bins}), speeding up training on large datasets.

Example: Residual Learning

The following example demonstrates fitting successive decision trees to residual errors:

python

Interactive Lab

Fit sequential regression trees to residual errors to simulate a simple Gradient Boosting step-by-step pipeline.

Step 1
Inspect the idea
Step 2
Edit the program
Step 3
Run and compare

Exercise

Test your understanding of the boosting process:

What happens if the learning rate parameter is set too high in a Gradient Boosting model?

Shrinkage and Estimator Limits

In gradient boosting, learning rate η\eta is also known as shrinkage. A low learning rate (e.g., η=0.01\eta = 0.01) paired with more trees allows the model to converge smoothly, increasing generalization performance on tabular data.

References & Further Reading

Previous Module Ensemble Learning