Home/Machine Learning/Gradient Boosting
Machine Learning

Gradient Boosting

Trees built in sequence, each fixing the last one's mistakes — the most accurate thing on tabular data, and the easiest to overfit.

Reviewed July 11, 2026Stable
Reading level: Curious
Pick your depth ↓

When not to use it

  • Without a validation set and early stopping. Boosting reduces bias indefinitely. Nothing in the algorithm stops it fitting your noise.
  • When a random forest is close enough. A few percent for a day of tuning and a fragile model isn't always the trade you want.
  • On images, text, or audio. No representation learning. Wrong tool.
  • When you need to explain the decision. Hundreds of sequential corrections is not an explanation.
  • On very small, noisy datasets — especially with LightGBM's leaf-wise growth, which overfits fast there.

Reach for something else instead

  • Random forest — more forgiving, nearly as good, no tuning.
  • Regularised regression — when interpretation matters more than the last few percent.
  • Neural networks — for perceptual data or where representations must be learned.
  • Boosting on neural features — the hybrid that quietly wins in a lot of production systems.

Gradient boosting adds trees that each fix the last's errors.

+tree 1+tree 2+tree 3+tree 4 error remaining → ≈0

Start with a weak prediction, then add a small tree trained only on the errors that remain, then another on the errors after that, and so on. Each round shrinks the mistakes a little more. Hundreds of these tiny corrections, added together, become a highly accurate model — the reigning champion on tabular data.

Further reading

  • Friedman (2001), Greedy Function Approximation: A Gradient Boosting Machine — the paper that framed boosting as gradient descent in function space.
  • Chen & Guestrin (2016), XGBoost: A Scalable Tree Boosting System — second-order approximation plus the engineering that made it dominate.
  • Grinsztajn et al. (2022), Why do tree-based models still outperform deep learning on tabular data? — the structural case, and the one to cite when someone proposes a transformer for a spreadsheet.

Primary sources, listed so you can check the claims on this page rather than take them on trust.

Where people go wrong

  • No early stopping. The single most common way to ship an overfit boosted model.
  • High learning rate to "save time," then wondering why it's unstable. Low rate plus more trees is the recipe.
  • Deep trees. This isn't a forest — 3 to 8 is the range, and going deeper overfits quickly.
  • Choosing LightGBM for a small dataset because it's fast. Leaf-wise growth overfits small data.
  • Tuning against your test set. Boosting has enough knobs that you'll succeed, and the number will be a fiction.

At a glance

FieldMachine Learning
Ideasequential trees fitting the previous errors
Reducesbias (which is why it overfits)
Essentialearly stopping
Depth3–8, shallow
Learning rate0.01–0.1
Statusthe thing to beat on tabular data
DifficultyIntermediate
Flashcards for this concept · study, save or share them →
Question
Answer
1 / 4

Often compared with

Gradient boosting vs. random forest — sequential correction vs. parallel averaging. Boosting is sharper and will overfit; the forest is duller and won't.

Where this sits

A destination. 3 concepts lead here, and nothing in the corpus depends on it.

3Levelsteps in
3Needs firstconcepts
0Opens upnothing further
1Areastays here
Learn these firstDecision Tree
LEARN FIRST Decision Tree Gradient Boosting
Gradient Boosting sits after Decision Tree, and nothing further depends on it.

Computed from the prerequisite graph, not assigned. How this works