How does gradient boosting handle multiclass classification with one tree per class per round?

Quick Overview

Explain how gradient boosting extends to multiclass classification by fitting one regression tree per class in every round. Tests the softmax setup, the per-class pseudo-residuals and Newton leaf values, how the classes are coupled, and how cost grows with the number of classes.

How does gradient boosting handle multiclass classification with one tree per class per round?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does gradient boosting handle multiclass classification with one tree per class per round? ```hint Count the scores How many raw scores does the model need for each sample to give a probability for every class, and what function turns those scores into probabilities? ``` ```hint Differentiate the loss Take the gradient of the cross-entropy loss with respect to one class's score and see what each tree should be fit to. ``` ### What a Strong Answer Covers - The per-class score functions and how they become class probabilities - The loss and the per-class pseudo-residuals each tree is fit to - The steps of one boosting round, including how leaf values are set - How the classes are coupled, and why binary classification needs only one tree per round - How training cost and model size grow with the number of classes ### Follow-up Questions - Why does binary classification need only one tree per round, and how does its residual relate to the multiclass one? - With 1,000 classes, what goes wrong with this scheme and what would you do instead? - How would you handle strong class imbalance in this setup?

Overview: Explain how gradient boosting extends to multiclass classification by fitting one regression tree per class in every round. Tests the softmax setup, the per-class pseudo-residuals and Newton leaf values, how the classes are coupled, and how cost grows with the number of classes.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does gradient boosting handle multiclass classification with one tree per class per round?

What a Strong Answer Covers Guidance

  • The per-class score functions and how they become class probabilities
  • The loss and the per-class pseudo-residuals each tree is fit to
  • The steps of one boosting round, including how leaf values are set
  • How the classes are coupled, and why binary classification needs only one tree per round
  • How training cost and model size grow with the number of classes

Follow-up Questions Guidance

  • Why does binary classification need only one tree per round, and how does its residual relate to the multiclass one?
  • With 1,000 classes, what goes wrong with this scheme and what would you do instead?
  • How would you handle strong class imbalance in this setup?