Boosting Algorithms: Regularization, Prediction and Model Fitting
Paper · 2007 · Peter Bühlmann and Torsten Hothorn
Summary
A prediction can improve when it is corrected in small steps. The difficult question is when to stop correcting it. Peter Bühlmann and Torsten Hothorn explain how boosting, originally developed to combine classifiers, can fit regression functions whose structure is chosen in advance. Their account covers continuous measurements, binary outcomes, counts, and event times that are sometimes only partially observed. It shows how the same fitting procedure can produce a short linear equation, a collection of smooth predictor effects, or a more flexible fit assembled from trees.
The procedure begins with a baseline prediction. It then calculates, for each observation, the direction in which a change to that prediction would reduce a chosen loss. An elementary fitting procedure, called a base learner, turns those directions into a function of the predictors. Boosting adds a fraction of that function to the current prediction and starts again. For squared-error loss, the directions are ordinary residuals, the differences between observed and fitted values. A base learner that uses one predictor at a time makes the successive corrections easy to trace. A predictor enters the fit when it first contributes a correction and can be selected again as the remaining errors change.
The number of corrections controls how much the final fit can adapt to the training data. In a simulation with a known regression curve, boosting a smooth spline and fitting a single spline achieved about the same minimum mean squared prediction error. The boosted fit deteriorated more gradually as its complexity increased. The authors explain this behavior through the way repeated corrections affect bias and variance. They also develop estimates of effective degrees of freedom, which measure the flexibility of a fit. These estimates allow stopping rules based on information criteria, alongside rules based on resampling. Their treatment of high-dimensional regression distinguishes accurate prediction from identifying the predictors that truly matter.
The illustrations show how those distinctions play out. For body fat, the corrected Akaike information criterion selected a stopping point close to the one suggested by bootstrap prediction error. For a breast tumor dataset with 7129 gene expression measurements and 49 samples, the authors obtained a fit with non-zero coefficients for 33 genes. In the Wisconsin breast cancer data, conventional stepwise logistic regression achieved a lower Akaike information criterion than either boosted logistic fit, while the boosted additive fit displayed nonlinear contributions. The authors use the open-source R package mboost to carry out these analyses. It brings together choices about what to predict, how to construct each correction, and how to decide when the fit is complete.
Deep dive: Boosting Algorithms: Regularization, Prediction and Model Fitting
Bühlmann and Hothorn explain how gradient boosting fits regression and classification functions, and how early stopping controls their complexity. · about 39 minutes to read
The problem and its context
From combining classifiers to estimating a function
Boosting began with a question in machine learning. If several classifiers are only slightly better than random guessing, can their predictions be combined to make a substantially better decision? As the paper recounts it, Kearns and Valiant established that a combination could improve on weak predictions. Schapire then gave a construction with a polynomial runtime guarantee. AdaBoost made sequential combination a practical proposition. It fits an elementary classifier to weighted observations, increases the relative influence of cases that classifier misses, and gives the classifier a vote whose strength depends on its weighted error.
The order of fitting matters. An observation that is hard for the current classifier can receive greater attention at the next round. The new classifier therefore solves a problem shaped by the ones already fitted. The paper places boosting alongside other ensemble methods, including random forests and Breiman’s scheme for fitting and aggregating predictors on resampled data. What the general ensemble description leaves open is how the training data for each member arise and how much each member contributes. For boosting, the dependence of one round on the preceding state is central. Bagging Predictors
Breiman supplied the reinterpretation that motivates the article. He recognized that AdaBoost could be understood as descending an objective over prediction functions. In ordinary numerical optimization, the gradient gives the slope with respect to a list of unknown numbers. Here the objects being improved are functions. A change must specify how to adjust a prediction over the predictor space, including at inputs the algorithm has yet to see. The direction computed at the training observations supplies the raw material for such a change. A fitted function extends it beyond those observations.
Friedman, Hastie, and Tibshirani connected this interpretation to statistical estimation and to building a fit as a sum of simpler functions. Friedman gave a general gradient procedure, and the paper recognizes related developments by Mason and colleagues and by Rätsch and colleagues. This history matters because it explains why an algorithm introduced for reweighted classification can also fit a conditional mean or a probability. The statistical question determines a loss, and the loss determines which changes the algorithm tries to make.
There are two kinds of additivity in the discussion. The algorithm adds a new function to the running prediction at each round. Separately, an analyst can require that the resulting prediction be a sum of effects, each of which depends on just one predictor. That second property follows when each correction uses a single predictor. A sequence of corrections from larger trees is still additive across rounds, while individual corrections can depend on several predictors jointly. The distinction determines what can be learned by inspecting the fitted contributions.
Why stopping deserves a statistical explanation
An iterative optimizer usually comes with a natural instruction to keep going until it has solved its numerical problem. Boosting brings a statistical objective into that decision. The training data contain both the pattern of interest and variation that may fail to recur. As the number of rounds increases, the procedure gains opportunities to fit both. Ending the calculation early limits its flexibility. For the authors, selecting the last round is therefore part of specifying the estimator.
The distinction was important in the debate over AdaBoost. Some experiments found that classification error on a test set could keep falling after the training set was already classified perfectly. The paper explains how that observation can coexist with eventual overfitting. A correct class prediction records the side of a decision boundary on which an observation lies. The loss AdaBoost optimizes also responds to how confidently the case lies on that side. That objective can continue to improve after every observed label has been classified correctly. The number of wrong answers can consequently have a very different trajectory from the objective being optimized.
Earlier theoretical explanations focused on aspects of generalization such as the distribution of classification margins. A margin combines the sign of the true class and the size and sign of the fitted score. A classifier that gives many cases substantial positive margins can behave differently on new data from one that gives equally many correct answers with scores close to zero. The paper reviews work that used margins to bound classification error, including bounds that depend on the number of rounds. It also distinguishes the relatively slow deterioration often seen in misclassification error from behavior under evaluation criteria that remain sensitive to the magnitude of a prediction.
Squared-error regression gives the authors a direct way to examine the same issue. They can track how the fitted values depend on the observed responses and see which parts of the data get absorbed first. For a fixed smoother, they can analyze these changes direction by direction. This gives a statistical account of why a rough approximation can be deliberately chosen at the start and improved through repeated corrections.
Why the shape of the fit matters
The range of problems had already widened by the time of the paper. The authors cite earlier applications in generalized regression, density estimation, survival analysis, and multivariate analysis. They also point to antecedents in regression and numerical analysis. Tukey’s twicing fits a smoother and then smooths its residuals. For linear regression, repeatedly choosing the coordinate that most reduces squared error connects boosting to the Gauss–Southwell method for solving linear systems. The same computation can thus be viewed as a familiar optimization routine whose intermediate answers are of statistical interest.
The authors put particular emphasis on situations in which an analyst wants to understand the fitted relationship. Predicting an expensive measurement from simpler measurements makes this goal concrete. A short equation is easy to communicate. Separate smooth effects can show where a straight-line relationship is inadequate. A tree can accommodate predictors of different kinds and can allow effects to depend on each other. Choosing the base learner determines which of these structures the procedure can express.
Large predictor sets add a second reason to choose a restricted base learner. If each round updates only one predictor, the analyst obtains a sequence of different subsets without carrying out an exhaustive search over subsets. Predictors may be ordinary measurements, transformed measurements, or terms that represent interactions. The optimization engine remains the same in each case. The paper relates this sequence to the Lasso, which controls the total absolute size of the coefficients by a penalty. An early-stopped sequence and a penalized regression can have similar behavior under certain conditions, which gives the authors a basis for asking how far the resemblance extends.
The method, step by step
Choose the prediction target and start with an offset
Each training observation consists of a vector of predictors and a response. The authors generally consider one response per observation and allow the observations to come from a stationary process, with independent, identically distributed observations as a special case. A loss assigns a cost to pairing a response with a particular prediction. Squared error emphasizes the size of prediction errors. A binary likelihood loss rewards assigning probability to the class that occurs. The analyst’s choice of loss determines what a perfect population fit would represent.
f*(·) = arg min_f E[ρ(Y, f(X))]
Here X is the random predictor vector and Y the random response. f is a candidate real-valued prediction function, and f(X) is its prediction at X. The loss is ρ, the expectation E averages over the joint distribution of X and Y, and arg min_f selects a function that minimizes that average. f* denotes the population target, while · marks the input of the function.
The population distribution is unknown, so the algorithm works with the observed counterparts of these quantities. A common initialization is the constant that achieves the best average loss on the training responses. This gives a baseline that uses the overall level of the outcome before looking for patterns in the predictors. The authors also consider starting from zero and, when appropriate, from a fitted function that absorbs effects the analyst wants to estimate without boosting.
f̂0 ≡ arg min_c n⁻¹ Σᵢ₌₁ⁿ ρ(Yᵢ, c)
f̂[0] is the initial fit, the dot denotes its input, and ≡ indicates that it has the same value everywhere. c ranges over constant predictions. n is the number of observations, i indexes them, and Yᵢ is the observed response. Σ adds the losses over the sample, and n⁻¹ makes the sum an average.
Functional gradient boosting
The steps in order.
Turn the loss gradient into a correction
At a given round, the prediction for each training case is known. The algorithm asks how the loss at that case changes if its fitted value increases slightly. The negative of that slope points toward a reduction in loss. Its magnitude indicates how strongly the loss responds near the current prediction. This produces a target for each case, sometimes called a pseudo-response. It can be a residual, although its meaning in general is the local direction of improvement under the chosen loss.
Uᵢ = −∂ρ(Yᵢ, f)/∂f evaluated at f = f̂m−1
Uᵢ is the negative gradient for observation i, and Xᵢ is that observation’s predictor vector. Within the derivative ∂ρ/∂f, f is a scalar prediction. m indexes the current round, and f̂m−1 is the preceding fit evaluated at Xᵢ. The minus sign makes the target point downhill in the loss.
These targets are known only at the training inputs. The base learner regresses them on those inputs, giving a function that can be evaluated at a new predictor vector. For instance, a learner restricted to a straight line in one predictor finds the predictor whose line best explains the targets. A spline learner can express a curved relationship. The update adds a fraction of whatever function this fitting step produces.
f̂m = f̂m−1 + ν ĝm
x is an arbitrary predictor vector, f̂[m] is the updated function, and ĝ[m] is the base fit at round m. The step-length factor ν lies in the interval 0 < ν ≤ 1. The paper uses ν = 0.1 as an example of a small step. Reducing it generally means that more rounds are needed, because each correction has less influence. The stopping iteration, m_stop, governs how far along the resulting sequence the analyst goes.
The algorithm recomputes the gradients after each correction. This matters even when the same predictor wins several times. An earlier correction can remove most of one pattern, leaving a different shape for the next round to fit. For a squared-error problem with correlated predictors, a correction along one predictor can also change how well the residuals align with another. The running fit stores the results of past rounds, and the next gradient is calculated from that current state.
Friedman’s procedure also allows a line search after the direction has been fitted. A line search determines how far to move along that particular direction by inspecting the loss there. Bühlmann and Hothorn use small steps and dispense with this extra search in their generic description. Their argument compares the local change in loss for a general differentiable objective with the exact change under squared error. With standardized predictor columns and componentwise linear least squares, the first-order calculation is especially transparent.
R̂ₘ ≈ R̂ₘ₋₁ − ν n⁻¹ Σᵢ₌₁ⁿ Uᵢ ĝm
R̂ₘ denotes average training loss at round m, and R̂ₘ₋₁ is the preceding average. The approximation uses the first derivative of the loss. ν is the step size, and Uᵢ ĝm is the product of the gradient target and the fitted direction at observation i. The sum runs over the n observations. When the fitted direction aligns with the targets, their positive average product contributes a decrease in the loss.
In the exact squared-error change, the first-order calculation is adjusted by the factor 1 − ν/2. For a small step the adjustment is small. The comparison explains the authors’ reasoning for using the same short-step strategy with other losses. It is an argument about local optimization. Choosing an iteration by out-of-sample performance or by an information criterion addresses the separate statistical question of how much optimization is desirable.
See what changes with the loss
For continuous responses, the simplest choice is half the squared error. The factor used to scale the loss makes its negative derivative equal to the ordinary residual. With the sample mean as the offset, the first base fit tries to explain the deviations from that mean. The second base fit tries to explain the deviations left by the updated predictor, and so on. This is the algorithm the paper calls L₂ Boosting.
ρL₂(y, f) = |y − f|²/2
ρL₂ is the squared-error loss used by L₂ Boosting. y is an observed response, f the scalar prediction, and |y − f| the magnitude of their difference. Squaring gives larger errors greater influence. The population minimizer is the conditional mean of Y at the predictor value under consideration.
Uᵢ = Yᵢ − f̂m−1
Here Uᵢ is the residual supplied as a target to the base learner. Yᵢ is the observed response, Xᵢ the corresponding predictor vector, and f̂[m−1] the preceding fit. In the special case of 2 rounds and ν = 1, the paper identifies the procedure with Tukey’s twicing.
For noisier response distributions, the authors discuss absolute loss and Huber loss. Absolute loss targets the conditional median. It changes at a constant rate as the prediction error grows on either side of zero, with a kink where the response and prediction coincide. The paper treats differentiation away from that point as adequate when exact equality has probability zero. Huber loss smooths the transition around small errors by using squared error near zero and a linear expression farther away.
ρHuber(y, f) = { |y − f|²/2 if |y − f| ≤ δ
{ δ(|y − f| − δ/2) if |y − f| > δ
ρHuber is the Huber loss. y is the response and f its fitted value. δ is the positive cutoff where the expression changes, and |y − f| is the absolute error. The paper describes an adaptive choice in which the cutoff at a round is the median absolute residual under the preceding fit. This lets the scale at which large errors receive linear treatment change during fitting.
With binary outcomes, a useful score must distinguish the two labels and can also express how probable each is. The paper uses Y coded as 0 or 1 and converts an observed label y to a signed label ỹ = 2y − 1 when writing the loss. Multiplying this signed label by the score gives the margin. A positive margin indicates agreement between the signs of the score and the true label. A margin of zero is the boundary where the score leaves the classification undetermined.
ρ₀₋₁(y, f) = I(ỹf ≤ 0)
ρ₀₋₁ is the misclassification loss, f is the score, and ỹ is the signed version of label y. I equals 1 when the condition is true and 0 otherwise. The expression counts a boundary case as an error. This loss jumps at the boundary, so its values give little guidance about how far or in which direction to move a score away from that boundary.
ρlog-lik(ỹ, f) = log₂(1 + exp(−2ỹf))
ρlog-lik is the scaled negative binomial log-likelihood used to describe BinomialBoosting. log₂ is the logarithm to base 2, exp is the exponential function, and ỹf is the margin. The scaling makes this a convex upper bound on the misclassification loss. In the paper’s gradient derivation for fitting, the irrelevant overall scaling is dropped.
f*(x) = (1/2) log(p(x)/(1 − p(x)))
f*(x) is the ideal score under this loss at predictor value x. p(x) is the conditional probability that Y = 1 at that input, and log is the natural logarithm. The score is half the log odds. Its sign agrees with whether the probability is above or below 1/2, while its magnitude retains information about the probability.
p̂m = exp(f̂m)/(exp(f̂m) + exp(−f̂m))
p̂m is the estimated probability of the positive class after round m, and f̂m is the score at the same input. This transformation inverts the half-log-odds scale. The default offset for BinomialBoosting uses the initial sample proportion of positives in place of p(x). Using the unscaled likelihood convention from the derivation, the gradient targets are 2(y − p), where p is the current fitted probability. Cases whose labels already receive a high probability therefore contribute smaller corrections.
BinomialBoosting and LogitBoost use the same likelihood idea with different update rules. In the version described by the authors, BinomialBoosting fits the ordinary gradient targets with a regression base learner. LogitBoost uses a Newton step, which brings in second derivative information and requires weighted fitting. The base learner in the generic gradient version can be ordinary least squares.
The paper also considers exponential loss, exp(−ỹf), which leads to the gradient interpretation of AdaBoost. It has the same population score on the half-log-odds scale. As the margin becomes very negative, exponential loss grows more rapidly than binomial likelihood loss. In the authors’ reasoning, this makes the likelihood a more attractive choice when badly classified cases should have less influence. The paper discusses hinge loss as another convex upper bound, with a population solution that gives the classification sign but loses the information required to recover the class probability. Squared and absolute loss can also be used with binary responses. On the signed margin scale, both penalize margins greater than 1, so their preference for increasingly positive margins differs from that of the likelihood.
How AdaBoost changes the observation weights
The original weighted-classifier version of AdaBoost is worth distinguishing from the general gradient recipe. Its base procedure predicts a label, and each training case initially receives weight 1/n. After fitting the classifier, the algorithm calculates the fraction of the current weight assigned to cases it misclassifies.
err[m] = (Σᵢ₌₁ⁿ wᵢ[m−1] I(Yᵢ ≠ ĝm))/(Σᵢ₌₁ⁿ wᵢ[m−1])
err[m] is the weighted training error for round m. wᵢ[m−1] is the weight of case i before fitting that round’s classifier ĝ[m]. I marks an incorrect label, Yᵢ is the observed label, and the denominator sums the weights of all n cases. This gives an error measured against the training distribution currently used by the algorithm.
α[m] = log((1 − err[m])/err[m])
α[m] is the vote weight assigned to ĝ[m], err[m] is its current weighted error, and log is the natural logarithm. A smaller weighted error gives a stronger vote. The same quantity helps determine how sample weights are changed for the next round.
w̃ᵢ = wᵢ[m−1] exp(α[m] I(Yᵢ ≠ ĝm))
w̃ᵢ is the unnormalized new weight for case i. The exponential factor uses the vote weight and the indicator of an incorrect prediction. Cases the classifier misses receive the extra factor. The weights are then divided by their total to obtain the normalized weights for the next round.
f̂AdaBoost(x) = arg max_y∈{0,1} Σₘ₌₁^m_stop α[m] I(ĝm = y)
f̂AdaBoost(x) is the predicted class at input x. The sum collects vote weights from all rounds up to m_stop whose classifiers predict the candidate label y. The arg max selects the label with the greater total support. The choice of the last round is a tuning decision in this formulation as well.
Choose the structure of each correction
With componentwise linear least squares, the base learner fits a straight line through the origin to the current gradient targets for each predictor in turn. It takes the candidate that gives the smallest remaining sum of squares. The analysts can center the predictor columns before fitting so a separate intercept accounts for the overall level. For squared-error boosting, starting from the response mean supplies that overall level. In binary likelihood boosting, the analogous offset is based on the observed class proportion, with the outcome codes left in their original form.
β̂⁽ʲ⁾ = (Σᵢ₌₁ⁿ Xᵢ⁽ʲ⁾ Uᵢ)/(Σᵢ₌₁ⁿ (Xᵢ⁽ʲ⁾)²)
β̂⁽ʲ⁾ is the one-predictor slope for candidate j. Xᵢ⁽ʲ⁾ is the value of that predictor at observation i, Uᵢ is the gradient target, and n is the number of observations in the fit. The numerator measures alignment with the targets and the denominator accounts for the scale of the predictor.
Ŝ = arg min₁≤ⱼ≤ₚ Σᵢ₌₁ⁿ (Uᵢ − β̂⁽ʲ⁾ Xᵢ⁽ʲ⁾)²
Ŝ is the index of the winning predictor. p is the number of candidates, and j ranges over them. The expression compares the total squared discrepancies between the gradient targets and each candidate’s fitted values. The chosen fit at input x is the corresponding slope multiplied by coordinate x⁽Ŝ⁾.
Adding a fraction of that fit changes just the coefficient of the selected variable. Variables that have yet to enter keep a zero coefficient. A variable selected earlier can receive another increment in either direction, because the algorithm evaluates it against the current targets. With squared error, accumulating these corrections yields a linear regression. With the binomial loss, the same base learner yields a score that is linear in the predictors on the half-log-odds scale.
For an additive fit with nonlinear effects, each candidate can instead be a cubic smoothing spline in one variable. The spline trades fit to the gradient targets against roughness. Its penalty grows with the integral of the squared second derivative. The penalty thus acts on the curvature of the correction, leaving the algorithm free to express a gently bending effect where the data support one.
f̂⁽ʲ⁾(·) = arg min_f {Σᵢ₌₁ⁿ (Uᵢ − f(Xᵢ⁽ʲ⁾))² + λ ∫ (f″(v))² dv}
f̂⁽ʲ⁾ is the candidate smooth function for variable j, and f ranges over the functions considered in the spline fit. Uᵢ and Xᵢ⁽ʲ⁾ are the target and predictor value for observation i. λ is the positive smoothing penalty, v is the integration variable, and f″(v) is the second derivative. The first term measures agreement with the targets and the integral measures roughness.
The penalty is set so that each candidate has the same chosen degrees of freedom. For a fixed spline smoother, this is the trace, or sum of the diagonal entries, of the matrix that maps target values to fitted values. Setting that trace to a low value, such as 4, gives each candidate relatively little flexibility. The candidate that leaves the smallest squared discrepancy wins. Since every winner depends on one predictor, all corrections associated with that predictor can be added together to give its final partial effect.
f̂m = μ̂ + Σⱼ₌₁ᵖ f̂m,ⱼ
μ̂ is the overall level and f̂[m,ⱼ] is the accumulated contribution of predictor j at iteration m. The input x contributes its jth coordinate x⁽ʲ⁾ to the corresponding function, and p is the number of predictors. The paper gives a normalization in which each partial function averages to zero over its observed inputs. This gives the curves a common reference level and places their constant contributions in μ̂.
The authors describe two ways to allow richer effects. Pairwise spline learners can search for corrections involving two variables together. Alternatively, one can expand the predictor matrix before fitting. For instance, an individual B-spline basis function of a measurement becomes a candidate column, so a round can select one part of that measurement’s curve. A componentwise smoothing spline selects a whole smooth function of one measurement in a round. The resulting curves can be similar even though their fitting paths count different elementary corrections.
Regression trees give a different set of allowable shapes. A stump has two terminal nodes and splits only one predictor, so a sum of stumps is additive across predictors. With at most d terminal nodes, the paper gives d − 2 as the upper interaction order. Tree fitting can accommodate continuous, ordinal, and nominal predictors, and a monotone transformation of a predictor preserves the order relevant to splits. The authors use tree fits to illustrate what the same algorithm does when a concise coefficient list or a collection of separate curves is less important than flexibility.
Follow the accumulation of flexibility
The math is simplest when the same linear smoother is used repeatedly. A linear smoother multiplies the vector of training targets by a fixed matrix to get its fitted values. Under squared-error loss the targets are residuals. The next residual vector is therefore the previous residual vector with its smoothed part removed. With a full step and a zero initial prediction, the paper writes the cumulative fitted-value operator as follows.
Bₘ = I − (I − H)ᵐ
Bₘ maps the response vector to fitted values after m rounds, H is the fixed base smoother, and I is the identity matrix. The power means repeated matrix multiplication. The operator (I − H) leaves the part of the residual vector that survives one correction. Its repeated application gives what remains after m corrections.
If the residual operator contracts in a suitable norm, repeated application eventually removes the training residuals. The fit then approaches the observed responses exactly. Before that limit, each direction in the smoother’s eigensystem is treated according to its eigenvalue. An eigenvalue is the fraction of a direction that the smoother retains when applied to a vector pointing entirely in that direction.
dᵢ,ₘ = 1 − (1 − λᵢ)ᵐ
λᵢ is the eigenvalue of the base smoother for direction i, and dᵢ,ₘ is the corresponding eigenvalue of the boosted smoother at round m. For the cubic smoothing spline considered in the paper, the leading two eigenvalues are 1. The others lie between 0 and 1 and approach 1 after repeated boosting. Directions with large initial eigenvalues enter more quickly. Directions given little influence by the base smoother can enter slowly as the residuals are smoothed again.
Selection among predictors makes the operator depend on the responses. To describe the resulting flexibility, the authors condition the calculation on the sequence of selected predictors. Within that calculation each selected predictor has its own least-squares projection matrix. Applied to the gradient target vector, it returns the fitted values from the one-predictor regression. Applied to the residuals at a later round, it contributes only what the fit currently leaves unexplained.
Bₘ = Bₘ₋₁ + ν H⁽Ŝₘ⁾(I − Bₘ₋₁)
Bₘ₋₁ is the preceding fit operator, H⁽Ŝₘ⁾ is the projection for the predictor whose index is Ŝₘ at round m, and ν is the step size. I − Bₘ₋₁ gives the residual operator. The product first forms residuals and then fits the selected projection to them. Since the winner depends on those same residuals, this expression describes the operator along the selected path.
df(m) = trace(Bₘ)
df(m) is the paper’s estimate of effective degrees of freedom at round m. trace adds the diagonal entries of Bₘ. A diagonal entry describes the direct contribution of one response value to its own fitted value along the path. The trace summarizes this responsiveness across the training sample. It can be divided into contributions from the different predictors by keeping track of the part of the operator added whenever each predictor wins. The resulting quantities distinguish the flexibility used for particular coefficients from a simple count of selected variables.
The paper extends this calculation to binomial likelihood by linearizing the change in fitted probability. This brings in weights that depend on the current probability estimates.
Bₘ = Bₘ₋₁ + 4ν W[m−1] H⁽Ŝₘ⁾(I − Bₘ₋₁)
This is the approximate recursion for later BinomialBoosting rounds in the paper’s derivation with a zero offset. Bₘ and Bₘ₋₁ are the new and preceding operators on the probability scale. W[m−1] is a diagonal matrix with an entry p̂(1 − p̂) for each case, using its preceding fitted probability p̂. H⁽Ŝₘ⁾, ν, and I have the same roles as in the least-squares recursion. The factor 4 comes from the gradient and the derivative of the probability transformation. It helps account for the fact that a change in score translates into a smaller probability change near the ends of the probability scale.
Select the stopping iteration
A resampling approach asks how well different points along the fitting path predict cases withheld from a particular fit. Cross-validation or the bootstrap supplies training and evaluation cases for this purpose. An internal criterion uses the fitted sample and an explicit penalty for complexity. The paper’s corrected Akaike information criterion for squared-error boosting combines the logarithm of average squared residual size with a correction that grows with effective degrees of freedom.
AICc(m) = log(σ̂²) + (1 + df(m)/n)/(1 − (df(m) + 2)/n)
AICc(m) is the corrected criterion at round m. σ̂² here denotes the average of the squared residuals at that round, log is the natural logarithm, df(m) is the trace-based degrees of freedom, and n is the sample size. The criterion favors a reduction in residual size when it is large enough to justify the extra flexibility. The stopping point is the round with the smallest criterion among those examined.
For classification, the authors also discuss scoring the fit by the binomial log-likelihood. A likelihood-based criterion responds to how much probability the fit assigns to each observed label. It can be used to evaluate predictions even when residuals for a squared-error loss supplied the actual boosting directions. In that application fitted values are interpreted as probabilities and clipped near the endpoints if necessary for evaluating logarithms.
AIC(m) = −2 Σᵢ₌₁ⁿ [Yᵢ log(p̂ᵢ) + (1 − Yᵢ) log(1 − p̂ᵢ)] + 2 df(m)
AIC(m) is the classical Akaike information criterion. Yᵢ is the binary label of case i and p̂ᵢ its fitted probability at iteration m. n is the number of cases, and df(m) estimates the flexibility of the fit at that round. The bracket selects the log probability assigned to the observed label. For the Bayesian information criterion, the paper uses log(n) df(m) as the penalty. It also discusses the generalized minimum description length criterion, which is intended to adapt between Akaike and Bayesian approaches.
Extend the same procedure to counts and censored times
For counts, the paper considers a conditional Poisson distribution. The score is the logarithm of the conditional mean, which keeps that mean positive after transforming the score back. The loss supplies a gradient equal to the difference between the observed count and the current fitted mean.
ρ(y, f) = −yf + exp(f)
ρ is the Poisson negative log-likelihood up to terms that do not depend on the fit. y is the count, f is the fitted log mean, and exp(f) returns the mean on the count scale. In the approximate fit-operator recursion, the authors use a diagonal matrix of the fitted means where the binary calculation uses fitted probability weights.
In a survival analysis, an event may occur after observation ends. Then the recorded time gives a lower bound on the true event time. The paper discusses fitting a proportional hazards regression by supplying the negative gradient of Cox’s partial likelihood. It gives more detail on another option that targets the logarithm of the event time under squared error. That option uses weights to account for how likely an event is to have been recorded before censoring.
ρobs(o, f) = (ỹ − f)² Δ/G(t̃ | x)
ρobs is the observed-data loss for record o. The predictor vector is x, t̃ is the smaller of the actual event time and the censoring time, and ỹ is its logarithm. Δ is the indicator that the event occurred by the censoring time. G(t̃ | x) is the conditional probability that the censoring time exceeds t̃, and f is the predicted log event time at x. Therefore, only records with an observed event contribute directly to the weighted loss, with larger weights when remaining under observation to that time was less likely.
If censoring and event time are conditionally independent given the predictors, under the paper’s sampling assumptions the expected observed-data loss corresponds to the expected complete-data squared error. The authors estimate the censoring probabilities and then use weighted least squares for the gradient fits. The structure of the resulting regression again follows from the base learner. For instance, a componentwise linear learner yields a weighted sequence of one-variable corrections on the log-time scale.
Use the sequence for variable selection
The Lasso provides a reference point for interpreting that sequence. It trades average squared error against an absolute-coefficient penalty. Increasing this penalty can shrink coefficients to zero, giving a smaller set of selected predictors.
β̂(λ) = arg min_β {n⁻¹ Σᵢ₌₁ⁿ (Yᵢ − β₀ − Σⱼ₌₁ᵖ β⁽ʲ⁾ Xᵢ⁽ʲ⁾)² + λ Σⱼ₌₁ᵖ |β⁽ʲ⁾|}
β̂(λ) is the collection of fitted coefficients for penalty strength λ, and β denotes the candidates over which the objective is minimized. β₀ is the intercept, β⁽ʲ⁾ is the slope for predictor j, p is the number of predictors, and n is the sample size. Yᵢ and Xᵢ⁽ʲ⁾ are the response and predictor value for case i. The final sum adds absolute slope sizes, leaving the intercept outside the penalty.
Boosting obtains its sequence by adding increments to selected coefficients. The authors review conditions under which a forward stagewise version with very small steps has a path close to the Lasso’s, and conditions under which the paths coincide. They use the resemblance to motivate Twin Boosting. The first stage runs an ordinary boosting fit. The second is constrained to resemble that first fit. In particular, it can only choose variables selected in the first stage. The paper relates this restriction to the adaptive Lasso, where the penalty on an individual coefficient depends on the strength of its initial estimate. Under an orthonormal linear design, the equivalence between the corresponding Twin Boosting procedure and the adaptive Lasso can be made exact.
The software ties these choices together. The authors use glmboost for linear predictor structures and gamboost for smooth additive structures. blackboost supplies tree-based fits. The Family interface lets an analyst provide the negative gradient, the offset, and the loss used to evaluate the resulting path. This is how the paper implements squared-error steps with binomial likelihood evaluation in the gene expression illustration. The authors include the full analyses in the mboost package vignette.
Experiments and results
Body fat from anthropometric measurements
The bodyfat data contain 9 anthropometric predictors from 71 healthy German women. The response is body fat measured by dual energy X-ray absorptiometry, or DXA. The practical aim is to use simpler measurements to predict the more demanding reference measurement. A previously proposed equation, obtained through backward elimination, used hip circumference, knee breadth, and a composite of logged skinfold measurements. The paper uses an ordinary least-squares fit on those preselected variables as a reference for its boosted linear fit.
The boosted analysis begins with all available anthropometric predictors. It centers the predictors and initializes the response offset at the sample mean, 30.783. The initial path runs for 100 boosting iterations with step length 0.1. Most variables are in the fit by the end of that path, so the authors investigate shorter fits. They evaluate out-of-bootstrap mean squared error across 100 bootstrap samples. This metric uses observations left out of the corresponding resample to check how well the fitted equation predicts. The error curve suggests that about 44 iterations are sufficient. The corrected Akaike information criterion reaches its minimum at 45 iterations.
The selected linear fit uses seven covariates, including all three variables in the earlier equation. The two procedures differ in which other variables participate and in the amount of shrinkage in the coefficients. For instance, the knee breadth slope in the earlier ordinary least-squares equation is 1.90199. The corresponding slope in the boosted linear fit at the criterion’s chosen iteration is 1.5217686. These are slopes from fits with different sets of predictors, so the values illustrate the resulting equations rather than isolate the effect of shrinkage on that measurement. The paper plots the reference equation’s average out-of-bootstrap squared error alongside the boosted curve.
To examine curved effects, the authors fit an additive regression with componentwise smoothing splines. The initial fit again uses 100 rounds and a step length of 0.1, with 4 degrees of freedom for each candidate spline. The corrected criterion selects 46 iterations. The partial curves show modest departures from linearity, most visibly for knee breadth. The curves come from the fitted contributions of individual measurements, so the comparison with the linear fit concerns how the response changes along each predictor.
The authors also expand each measurement using B-spline basis functions and then apply componentwise linear boosting to the expanded columns. They allow 5000 iterations, of which the criterion selects 2891. At that point the fit includes 21 transformed predictors. These are selected basis columns, so several of them can represent different parts of an effect for the same original measurement. When the partial contributions are regrouped by measurement, the curves shown for this approach are qualitatively similar to those from boosting the smoothing splines directly.
A tree illustration uses 500 iterations with blackboost and compares the fitted values with those from gbm. The mboost implementation uses conditional inference trees, and the two implementations can use different trees. The fitted values nonetheless look broadly similar in the paper’s figure. This comparison concerns agreement between fitted values on the body-fat data. The bootstrap curve for the linear fit provides a different kind of evidence, since it evaluates how predictions behave on observations omitted from a resample.
A simulated curve with a known target
The spline simulation allows the authors to evaluate the estimated function against the true function. Each run contains 100 observations. The signal at input x is 0.8x + sin(6x), the predictors are sampled uniformly over the interval from −1/2 to 1/2, and the figure specifies normal noise as N(0, 2). The comparison averages mean squared prediction error over 100 simulation runs. This error measures departure from the known regression function, so the assessment can see errors in the estimated curve independently of the noise added to the observed responses.
One approach varies the number of boosting rounds while holding the base spline at 4 degrees of freedom and the step size at 0.1. The comparator is a single spline whose degrees of freedom vary. Both procedures can visit fits that range from very smooth to flexible. They make that progression in different ways. The single spline gets a different smoothing strength, while the boosted fit keeps applying the same small correction to the residuals that remain.
The paper reports roughly the same minimum mean squared prediction error for the two approaches. Beyond the minima, the boosted procedure’s error rises more slowly. This is evidence about sensitivity to the amount of fitting in this simulation. It also motivates the paper’s analysis of which directions in a response vector are absorbed rapidly and which enter later. The paper gives its comparison of the minima qualitatively, while the simulation figure displays the error curves across the settings.
Gene expression and lymph node status
The westbc example concerns lymph node status in breast cancer. It contains 49 tumor samples with 7129 gene expression measurements as candidate predictors. There are 25 samples with negative status and 24 with positive status. With so many measurements per tumor, the example tests the feasibility of running a variable-selecting procedure and illustrates what the selected coefficients look like.
The authors code the labels as 0 and 1, center the predictors, and fit squared-error boosting with one-variable least-squares updates. They initially allow 200 rounds. The evaluation loss for stopping is the negative binomial log-likelihood, even though the fitting directions come from squared error. The classical Akaike criterion chooses 100 rounds, at which point 33 gene coefficients are non-zero. The paper displays standardized coefficient values, putting the gene contributions on a scale that accounts for variation in the respective expression measurements.
The paper reports a computational comparison on an Intel Pentium 4 desktop running at 2.8 GHz. The boosting call fits the initial path. The Lasso comparison computes the full path of solutions with the lars package, without using a stored Gram matrix. The timings belong to those particular workloads.
Computation time for boosting and the Lasso on westbc
The boosting fit took less time than computing the full Lasso path in the reported runs.
The numbers
| System or setting | seconds |
|---|---|
| Componentwise L₂ Boosting (this paper) | 3.6 |
| Full Lasso path with lars | 6.7 |
The selected subset is an output of the procedure applied to these samples. The analysis reports a selection size and a runtime, without a comparison of held-out classification errors for the fitted paths. The authors also say that fitting the data by BinomialBoosting would take time on the same order of magnitude. The measured comparison in the chart is the one for squared-error boosting and the complete Lasso path.
Recurrence in the Wisconsin breast cancer data
The Wisconsin prognostic breast cancer example uses measurements derived from digitized images of cell nuclei in fine needle aspirates. The binary analysis distinguishes recurrence from nonrecurrence. It works with 194 complete observations and 32 candidate predictors, excluding the time variable from the binary predictors. The authors compare stepwise ordinary logistic regression, boosted linear logistic regression, and boosted additive logistic regression. All are scored with classical AIC on the binary analysis.
Stepwise logistic regression ends with 16 parameters and a log-likelihood of -80.13. Its AIC is 192.26. The boosted linear fit starts from the half-log odds of the observed recurrence proportion and has centered predictors. Out of an initial allowance of 500 rounds, the classical criterion selects 465, with estimated effective degrees of freedom of 9.147 and an AIC of 199.54.
For the additive logistic fit, the criterion selects 99 rounds, with estimated degrees of freedom of 14.583 and an AIC of 199.76. It uses 16 of the 32 covariates. The partial contribution plots show considerable nonlinearity for the displayed predictors. This offers a way to inspect the functional form even though the criterion puts the additive fit slightly behind the boosted linear one.
Classical AIC for binary recurrence predictors on the Wisconsin prognostic breast cancer data
Stepwise logistic regression achieved the lowest criterion value, with the boosted fits close to each other.
The numbers
| System or setting | AIC |
|---|---|
| Stepwise logistic regression (this paper) | 192.26 |
| Boosted linear logistic regression | 199.54 |
| Boosted additive logistic regression | 199.76 |
The penalty term makes this a comparison of fit and estimated complexity on the observed sample, rather than a count of correct predictions on new patients. In particular, the linear boosted fit’s degrees of freedom express the response sensitivity of its shrunken path after many updates. The parameter count in stepwise logistic regression counts the coefficients in the selected ordinary logistic regression. These are the respective complexity quantities used in the reported criteria.
The time analysis uses the same prognostic problem with a different response. It uses time to recurrence, treating observations without recurrence as censored. The authors calculate inverse probability-of-censoring weights and fit a weighted regression of log time with the componentwise linear learner. The criterion selects 122 rounds from a path allowed to run for 500. Selected measurements include mean radius, mean texture, and variables describing concavity. In the displayed fit, circle sizes are proportional to the weights and observations with zero weight are omitted. The figure illustrates the fitted relationship among the cases contributing to the weighted criterion. The paper also shows how to use its Cox partial-likelihood option for these data.
What the ablations show
The paper uses focused comparisons of stopping rules, base learners, and shrinkage paths, with the spline simulation providing its clearest controlled study. That comparison holds the signal and noise setting fixed while varying how a spline fit becomes more flexible. On one path, a single spline is allowed to follow the observations more closely as its smoothing strength changes. On the other, a fixed smooth learner repeatedly fits the residuals. The near tie at the best mean squared error narrows the finding. The empirical advantage illustrated by boosting is the slower deterioration as the iteration count increases past the best part of the path.
The analysis of smoothing directions gives this comparison an explanation. Bias is the systematic difference between what a fit would estimate on average and the underlying signal. Variance measures how much that fit changes when the noise in the observations changes. A strongly smoothed starting fit suppresses some directions and can have appreciable bias. Repeated residual corrections progressively restore those directions. The paper’s eigenvalue calculation shows that squared bias falls exponentially with the iteration count in the analyzed setting, while the added variance comes in exponentially diminishing increments. An initially small-variance fit can make substantial gains from reducing bias before the continuing increase in variance begins to dominate.
The comparison with a single spline has a further theoretical implication. The authors review a result in which early-stopped boosting with a cubic spline of fixed degrees of freedom attains the minimax rate on Sobolev classes, which group functions by smoothness. Under the appropriate stopping schedule, the boosted estimator can take advantage of higher smoothness in the truth using the same low-complexity base spline. A related kernel calculation considers twicing. Applying the smoother again to the residuals creates an effective kernel with a subtraction term, so the combined correction can behave like a higher-order kernel. Under the paper’s fixed-design and smoothness conditions, this leads to a squared bias of order O(h⁸), where h is the bandwidth. These results examine how repeated correction changes the estimator, beyond the empirical observation about the shape of an error curve.
The body-fat analyses show what happens when the comparison concerns the selection criterion. Bootstrap evaluation and corrected AIC estimate the value of further fitting in different ways. Their suggested iteration counts in the linear example are close. This agreement is specific to that fitted path and gives the authors an illustration of an internal rule arriving near a resampling choice. The linear and additive analyses examine a different question, namely whether allowing curved partial effects changes the relationships visible in the fit. The two spline constructions both show a slight departure from linearity for knee breadth in spite of building their corrections from different units. Their iteration counts therefore describe their own paths. The numerical count of steps is less informative across these constructions than the shape of the predicted relationship.
The Wisconsin classification comparison tests whether additional flexibility in the structure yields a better penalized fit under the reported criterion. The four partial curves displayed for the additive fit show why the analyst might examine a nonlinear specification. The AIC values show that this flexibility does not produce a better criterion value than the simpler boosted linear fit in that example. Separately, the ordinary stepwise regression outperforms both under AIC. This result puts a concrete boundary on claims of superiority and shows why a plot of interesting effects and a ranking by a selected metric answer different questions.
The comparisons with the Lasso isolate properties that would be difficult to infer from an application alone. Consider predictors whose columns are orthonormal, so their inner products vanish across columns and each has unit norm. The fitted contribution can then be understood through its response projection along each column. For that setting the paper contrasts soft thresholding, hard thresholding, and the adaptive Lasso. With soft thresholding, a projection beyond the threshold is still pushed back by a fixed amount. In the analyzed setting, that shrinkage persists however far the projection lies beyond the threshold. Hard thresholding or adaptive weighting yields less bias for sufficiently strong projections. Ordinary boosting with very small steps follows soft-threshold behavior in this special design.
Twin Boosting addresses that issue by using an initial fit to guide the variables available in a second fit. The paper discusses evidence of improved selection from the cited work on Twin Boosting and gives the orthonormal equivalence to adaptive Lasso. This is distinct from the gene expression example, where the paper displays the selected coefficients of ordinary boosting. The theoretical comparison makes the intended difference clear. One can use a prediction-oriented first pass to screen a large set and then target variable selection more directly with a constrained second pass.
Limitations
Limits identified by the authors
The probability and curve analyses have explicit conditions. The fixed-smoother calculation uses the same linear operator at each round. The cubic spline rate result uses a smoothness class and an appropriate stopping schedule. The high-dimensional linear result uses sparsity in the sense of a bounded total absolute coefficient size, bounded predictors, a moment requirement on errors, and a stopping iteration that grows sufficiently slowly with sample size. Under those conditions it concerns mean squared prediction error at new predictors drawn from the same distribution. These results describe what early stopping can achieve under stated assumptions. Selecting the appropriate number of rounds for a particular dataset remains an estimation problem.
The authors identify recovery of the underlying variable set as a separate and less settled question. They describe restrictions on the predictor design that affect whether the Lasso consistently recovers the correct set. Even for the Lasso, choosing the penalty for the best prediction can lead to selection of too many variables. By analogy, the authors expect difficulties when boosting is used to identify exactly those predictors with non-zero population coefficients. A shrunken fit can predict well by using a substitute for a useful variable, or by distributing a contribution among correlated predictors. The paper explicitly says that it sees no general empirical superiority of L₂ Boosting or the Lasso over the other.
The degrees-of-freedom calculation contains an approximation even for componentwise squared-error boosting. The matrices describe fitted responses along a path whose sequence of winning variables is treated as given. In the real fitting procedure, changes to the responses can change that sequence. The trace used in the internal criteria omits the effect of choosing the winners. For likelihood boosting, there is also a linearization that approximates the relation between successive fitted probabilities or means. The authors’ information criteria inherit these approximations.
The paper also qualifies its account of resistance to overfitting. AdaBoost can eventually overfit even if misclassification error changes slowly, and the authors acknowledge datasets with clear deterioration. A likelihood loss and a count of classification errors respond differently to the same change in fitted scores. Good performance according to one criterion leaves a separate question about the other, particularly when the analyst wants probabilities. The authors point to cautions about reading calibrated probability estimates directly from boosted scores.
For the weighted time-to-event analysis, the censoring assumption is restrictive. The method requires that event and censoring times be independent conditional on the predictors, together with independence across observations in the development given there. The authors also say that the choice of estimator for the censoring distribution can have substantial effects on the result. As a result, the squared-error loss on observed, weighted cases has the desired interpretation only insofar as the censoring assumptions and weight estimates support it.
Limits of the evidence in the illustrations
The datasets illuminate different parts of the method and use different outcomes and metrics. The bootstrap error curve for body fat addresses prediction within a resampling scheme. The Wisconsin AIC scores address fit and complexity on the analysis sample. The gene expression example addresses timing and selection size. Each is informative about its own question, and there is no common held-out comparison that would rank the approaches across these applications.
The body-fat sample consists of healthy German women. The results describe the behavior of the fitted equations and curves in that setting, with a reference equation assembled from preselected measurements. Applying an equation to another population would raise a question about predictive performance outside that sample. Within the sample, similar partial curves from the two spline constructions show agreement about the fitted shape. The plot alone leaves open how stable that shape would be under different samples or choices about which predictors to include.
The computation times for the gene expression example reflect the named implementations, hardware, and amounts of work. One path is restricted to an initial round allowance, while the Lasso comparison computes all its solutions. The experiment establishes the reported feasibility of fitting thousands of candidate measurements in that setup. It gives neither a general ratio of computational costs nor evidence that the selected genes recover a biological mechanism. The linear theory and the comparisons with adaptive selection concern statistical relationships under their own assumptions.
Finally, the recurrence illustrations give a binary analysis and a censored-time analysis with different targets. The binary fit assigns a probability to recurrence status, while the weighted regression tries to describe log time to recurrence. The apparent reasonableness of the weighted fitted-value plot is a descriptive assessment. External prognostic accuracy, probability calibration, and performance at particular follow-up times would each require their own evaluation. Those quantities are beyond what the application figures establish.
What came after
The paper discusses related research on early stopping, variable selection, and censored outcomes as part of the development of boosting. Its coverage of that research establishes the directions the method had already taken by the time of publication. A subsequent line of work building on this article remains undocumented here.
Cite
Cite as Peter Bühlmann and Torsten Hothorn. 2007. Boosting Algorithms: Regularization, Prediction and Model Fitting. Statistical Science.
@inproceedings{buhlmann2007boosting,
title = {{Boosting Algorithms: Regularization, Prediction and Model Fitting}},
author = {Peter Bühlmann and Torsten Hothorn},
booktitle = {Statistical Science},
year = {2007},
doi = {10.1214/07-sts242},
eprint = {0804.2752},
archivePrefix = {arXiv},
url = {https://doi.org/10.1214/07-sts242}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/buhlmann-2007-boosting-algorithms-regularization-prediction-model/