What does it mean that gradient boosting performs gradient descent in function space?

Quick Overview

Asks what it means to say gradient boosting does gradient descent in function space. It tests whether you can explain what the loss is differentiated against, why each round fits a tree to pseudo-residuals, and how the boosting update differs from updating fixed weights.

What does it mean that gradient boosting performs gradient descent in function space?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Gradient boosting is often described as gradient descent in function space. What does it mean that gradient boosting performs gradient descent in function space? ```hint What gets differentiated There is no fixed weight vector to update. Ask what you could differentiate the training loss with respect to instead. ``` ```hint From training points to new inputs The gradient you get is a list of numbers, one per training example. Think about how the method turns that list into something it can apply to an input it has never seen. ``` ### What a Strong Answer Covers - What plays the role of the parameters, and what the loss gradient is taken with respect to. - Why a tree is fit to the negative gradients and what that does to the step. - The full update in one boosting round, including the step size and the learning rate. - How this differs from gradient descent over a fixed set of weights. ### Follow-up Questions - For squared error loss, what are the pseudo-residuals, and why is boosting often described as fitting residuals? - What are the pseudo-residuals for log loss in binary classification? - How does using second derivatives, as XGBoost does, change the step? - Why does a smaller learning rate usually generalize better, and what does it cost?

Overview: Asks what it means to say gradient boosting does gradient descent in function space. It tests whether you can explain what the loss is differentiated against, why each round fits a tree to pseudo-residuals, and how the boosting update differs from updating fixed weights.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Gradient boosting is often described as gradient descent in function space. What does it mean that gradient boosting performs gradient descent in function space?

What a Strong Answer Covers Guidance

  • What plays the role of the parameters, and what the loss gradient is taken with respect to.
  • Why a tree is fit to the negative gradients and what that does to the step.
  • The full update in one boosting round, including the step size and the learning rate.
  • How this differs from gradient descent over a fixed set of weights.

Follow-up Questions Guidance

  • For squared error loss, what are the pseudo-residuals, and why is boosting often described as fitting residuals?
  • What are the pseudo-residuals for log loss in binary classification?
  • How does using second derivatives, as XGBoost does, change the step?
  • Why does a smaller learning rate usually generalize better, and what does it cost?