What is gradient boosting?

Quick Overview

Asks what gradient boosting is and how it builds a model from many weak learners trained in sequence. Tests understanding of what each new learner is fitted to, the role of the loss gradient, shrinkage, the main hyperparameters and how popular libraries extend the basic method.

What is gradient boosting?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is gradient boosting? Explain how the model is built round by round and where the gradient comes in. ```hint Start from squared error Suppose the current model's prediction is off by a known amount on every training row. Think about what the next model should learn, then ask how to generalize that to other loss functions. ``` ### What a Strong Answer Covers - The structure of the model: an additive ensemble of weak learners built in sequence - What each new learner is fitted to, and why that amounts to a gradient step - The training loop: initialization, pseudo-residuals, leaf values and shrinkage - The main hyperparameters and how they interact - How the common libraries extend the basic method ### Follow-up Questions - What are the pseudo-residuals for log loss in binary classification? - How do the learning rate and the number of trees interact, and how do you choose them? - How does gradient boosting differ from a random forest in what kind of error it reduces? - What does XGBoost gain by using second-order information?

Overview: Asks what gradient boosting is and how it builds a model from many weak learners trained in sequence. Tests understanding of what each new learner is fitted to, the role of the loss gradient, shrinkage, the main hyperparameters and how popular libraries extend the basic method.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is gradient boosting? Explain how the model is built round by round and where the gradient comes in.

What a Strong Answer Covers Guidance

  • The structure of the model: an additive ensemble of weak learners built in sequence
  • What each new learner is fitted to, and why that amounts to a gradient step
  • The training loop: initialization, pseudo-residuals, leaf values and shrinkage
  • The main hyperparameters and how they interact
  • How the common libraries extend the basic method

Follow-up Questions Guidance

  • What are the pseudo-residuals for log loss in binary classification?
  • How do the learning rate and the number of trees interact, and how do you choose them?
  • How does gradient boosting differ from a random forest in what kind of error it reduces?
  • What does XGBoost gain by using second-order information?