9
$\begingroup$

At a high level, I don't see how the ensemble of simple models obtained by gradient boosting is better than a single, more complicated model? What's the point of doing gradient boosting instead of a simple more complicated model? Two specific scenarios below:

  1. In an article I read (Gradient boosting from scratch), there is an example of ensemble of simple trees (stumps) for regression. So why is the approach with gradient boosting better than a single more complicated tree of greater depth?

  2. a) In the case of linear regression, seems like it doesn't make sense to use gradient boosting. Can somebody explain why (or rebut)? It would help my understanding of both regression and boosting. For example, instead of doing regression on many features (perhaps even special one, like LASSO), do successive iterations of single-feature regressions, group them via gradient boosting.

    b) Same as 2a, only for logistic regression. I suspect here it may make sense, because the calculated function is not linear. But why would one apply gradient boosting with logistic regressions instead of, for example, regularized logistic regression?

$\endgroup$
1
  • $\begingroup$ In a broader context of forecasting there's this phenomenon when forecast combination produces better results than any single forecast. Lookup "forecast combination" if interested $\endgroup$
    – Aksakal
    Commented Mar 21, 2018 at 16:41

3 Answers 3

5
$\begingroup$

I've answered question 2a on this site before.

The answer to 2b, as you suspect, is the same. In general, gradient boosting, when used for classification, fits trees not on the level of the gradient of predicted probabilities, but to the gradient of the predicted log-odds. Because of this, 2b reduces to 2a in principle.

As for 1:

Here there is an example of ensemble of simple trees (stumps) for regression. So why is the approach with gradient boosting better than a single more complicated tree of greater depth?

The power of gradient boosting is that it allows us to build predictive functions of great complexity. The issue with building predictive functions of great complexity is in the bias variance tradeoff. Large complexity means very low bias, which unfortunately is wed to very high variance.

If you fit a complex model in one go (like a deep decision tree for example) you have done nothing to deal with this variance explosion, and you will find that your test error is very poor.

Boosting is essentially a principled way of carefully controlling the variance of a model when attempting to build a complex predictive function. The main idea is that we should build the predictive function very slowly, and constantly check our work to see if we should stop building. This is why using a small learning rate and weak individual learners is so important to using boosting effectively. These choices allow us to layer on complexity very slowly, and apply a lot of care to constructing out predictive function. It allows us many places to stop, by monitoring the test error at each stage in the construction.

If you do not do this, your boosted model will be poor, often as poor as a single decision tree. Try setting the learning rate to $1.0$ in a gradient boosted model, or using very deep trees as individual learners.

$\endgroup$
4
  • 1
    $\begingroup$ So in summary, because we are building the ensemble model step by step, gradually, we avoid overfitting, and thus reach best of both worlds: low bias and low variance. $\endgroup$ Commented Mar 21, 2018 at 16:02
  • $\begingroup$ That's the idea. $\endgroup$ Commented Mar 21, 2018 at 16:02
  • 1
    $\begingroup$ +1 hope you do not mind I re-formatted you answer. $\endgroup$
    – Haitao Du
    Commented Mar 21, 2018 at 18:43
  • $\begingroup$ Some follow ups: 1) Can you please elaborate on " In general, gradient boosting, when used for classification, fits trees not on the level of the gradient of predicted probabilities, but to the gradient of the predicted log-odds. Because of this, 2b reduces to 2a in principle." and in general explain 2b? The fact that in logistic regression you have the sigmoid function, i.e. non-linearity, made me believe that there's some chance gradient boosting could work 2) Can you please expand on the last paragraph? I don't know what you're trying to say with "Try setting the learning rate to ..." $\endgroup$ Commented Mar 22, 2018 at 15:54
1
$\begingroup$

I would like to provide several references to answer your question.

  1. I would argue that depending on data, boosted stumps are not necessary better than deep trees. They are different. A visualization on difference can be found here

How does linear base learner works in boosting? And how does it works in the xgboost library?

Do all machine learning algorithms separate data linearly?

  1. for the discussions on boosting with linear model, my first link gives answer. In additon, @Matthew Drury had a good answer here.

Gradient Boosting for Linear Regression - why does it not work?

$\endgroup$
0
0
$\begingroup$

To complement the above answers, I would like to give my opinion purely from an intuitive standpoint. "No Free Lunch (NFL)" theorem states that no algorithm is better than another, on average across all possible data distributions. However, since real-world datasets are limited to few specific distributions, some models can be tuned well to show high performance in real-world scenarios.

Gradient boosting provides an ensemble of weak learners. If we assume that the dataset is best modeled using a mixture of distributions, then each of these weak-learners could be learning only to perform well in certain distributions. Hence, when you take the average of all such weak learners, it has a very high overall performance across the whole dataset in contrast to a heavily overfitted single model which can perform well only in very few distributions or part of the dataset (aka Wisdom of Crowd).

In short the single model attempt to generalize and lose the prediction power, whereas multiple models specialize and improve by the consensus. This is purely my opinion, either take it or leave it :)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.