Gradient Boosting builds an ensemble sequentially. Each new weak learner (a small decision tree) is trained to fix the residual errors left by the models before it. Rather than voting in parallel like Random Forest, boosting descends a loss surface step by step — performing gradient descent in function space — turning a crowd of shallow trees into one sharp, low-bias predictor.
Each tree fits the negative gradient of the loss with respect to current predictions — the direction that most reduces error. A small learning rate shrinks each tree's contribution, trading more rounds for better generalization. Regularization (tree depth, subsampling, shrinkage) keeps the sequential process from overfitting the residuals.