Hessian weighting scales a loss gradient by second-derivative curvature, giving difficult examples more influence when sequential ensembles fit their next weak learner. section 7.3 section 6.2.3
Apply the weighting inside each Newton boosting iteration:
- Compute each example’s first derivative g and second derivative H of the loss. section 6.2.3
- Form the residual r = −g/H, rather than using the negative gradient alone. section 6.2.3
- Fit a shallow regression tree to the weighted residuals, find a step length by line search, and update the ensemble. section 6.2.3
Newton versus gradient boosting
On a noisy two-moons classification split with 25 estimators, the implementation reports approximately 8% test error for Newton boosting versus 12% for gradient boosting. section 6.2.3
initialize: F = f0, some constant value for t = 1 to T: 1. compute first and second derivatives for each example,
The iteration outline shows where first- and second-derivative information enters the shared boosting procedure. section 6.2.3
