Newton boosting builds a sequential ensemble by repeatedly directing a weak learner toward the examples the current model handles poorly. Its distinguishing idea is to use both the loss gradient and its Hessian: the gradient measures the direction of error, while the second derivative scales that correction. This produces weighted residuals, letting each new learner approximate a Newton step rather than an ordinary gradient step. section 6.0 section 6.2.1
Like gradient boosting, it can work with loss functions for classification, regression, and ranking. The ensemble still grows stage by stage: fit a weak regression tree to the current correction, add its prediction to the model, and repeat. The practical difference is how the correction is formed: gradient boosting uses negative gradients directly, whereas Newton boosting uses negative gradients scaled by Hessian information. section 6.2.1 section 6.6
A basic Newton-boosting iteration is:
- Compute the first and second derivatives of the loss for every training example. section 6.2.3
- Form a weighted residual, using the negative gradient divided by the Hessian. section 6.2.3
- Fit a weak decision-tree regressor to the features and weighted residuals. section 6.2.3
- Choose a step length with line search and add the scaled tree prediction to the current ensemble. section 6.2.3
Figure 6.8 Unweighted residuals (left) used by gradient boosting compared to Hessian-weighted residuals (right) used by Newton boosting. Positive values of misclassification margin (y ⋅ f(x) > 0) indicate correct classification. For misclassifications, we have y ⋅ f(x) < 0. For badly misclassified examples, the Hessian-weighted gradients capture that notion more effectively than unweighted gradients.
Compare ordinary residuals with Hessian-weighted residuals to see why the latter emphasize badly misclassified examples differently. section 6.2.1
A small classification comparison
On a noisy two-moons classification data set, an ensemble of 25 weak trees produced about 8% test error with Newton boosting versus about 12% with gradient boosting. The implementations share the same sequential structure; replacing negative-gradient residuals with Hessian-weighted residuals is the essential change. section 6.2.3
XGBoost applies Newton boosting to regularized tree ensembles. Its objective controls fit while also penalizing model complexity, including tree structure through the number of leaf nodes. Regularization, learning rate, early stopping, and tree depth help limit overfitting, but introduce parameters that commonly require cross-validation or randomized search. section 6.3 section 6.3.1 section 6.6
Second derivatives also constrain loss selection. For example, XGBoost cannot directly use MAE or Huber loss in this setting because their required second derivatives are unavailable; pseudo-Huber supplies a differentiable alternative. For large-scale work, XGBoost adds efficient split finding plus parallel and distributed processing. section 7.3.2 section 6.3
Regression with XGBoost
For continuous or count targets, choose a loss that matches the problem, tune tree, learning, and regularization parameters, and evaluate on held-out data. In a regression comparison, XGBoost models used squared-error, pseudo-Huber, Poisson, and Tweedie objectives; results varied by objective, reinforcing that loss selection matters. section 7.3 section 7.4.4
