Why does gradient boosting eventually overfit if trained for too many rounds?

Quick Overview

Asks why gradient boosting starts to overfit when it is trained for too many rounds. Tests understanding of how boosting adds capacity round by round, what later trees end up fitting, how validation error behaves over rounds, and how to control it.

Why does gradient boosting eventually overfit if trained for too many rounds?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why does gradient boosting eventually overfit if trained for too many rounds? ```hint Follow the residuals After the model has captured the real pattern in the data, what is left in the residuals that the next trees are fit to? ``` ### What a Strong Answer Covers - Why each boosting round adds capacity and keeps lowering training loss - What later trees end up fitting once the signal has been captured - The shape of the validation curve over rounds, and the overconfidence effect under log loss - Why adding trees to a random forest does not behave the same way - Mitigations such as early stopping, shrinkage, tree constraints, subsampling and leaf penalties ### Follow-up Questions - How do the learning rate and the number of rounds trade off, and how would you tune them together? - Why can validation log loss get worse while validation accuracy stays flat? - Once early stopping has picked a round count, how would you set it when retraining on all the data?

Overview: Asks why gradient boosting starts to overfit when it is trained for too many rounds. Tests understanding of how boosting adds capacity round by round, what later trees end up fitting, how validation error behaves over rounds, and how to control it.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Why does gradient boosting eventually overfit if trained for too many rounds?

What a Strong Answer Covers Guidance

  • Why each boosting round adds capacity and keeps lowering training loss
  • What later trees end up fitting once the signal has been captured
  • The shape of the validation curve over rounds, and the overconfidence effect under log loss
  • Why adding trees to a random forest does not behave the same way
  • Mitigations such as early stopping, shrinkage, tree constraints, subsampling and leaf penalties

Follow-up Questions Guidance

  • How do the learning rate and the number of rounds trade off, and how would you tune them together?
  • Why can validation log loss get worse while validation accuracy stays flat?
  • Once early stopping has picked a round count, how would you set it when retraining on all the data?