Gradient boosting validation loss rises after a few hundred rounds while training loss falls: what would you adjust?

Quick Overview

Asks what you would change when a gradient boosting model's validation loss starts rising after a few hundred rounds while training loss keeps falling. Tests whether you can diagnose the curve and reason about early stopping, learning rate, tree complexity, regularization, subsampling and data problems.

Gradient boosting validation loss rises after a few hundred rounds while training loss falls: what would you adjust?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Your boosted model's training loss keeps falling but validation loss starts rising after a few hundred rounds. Which levers would you adjust and why? ```hint Name the problem first Ask what a widening gap between training and validation loss says about what the later trees are learning. ``` ```hint Group the knobs Sort the hyperparameters you know by what each one limits about the model, then decide which of those the curve points to first. ``` ```hint Look past hyperparameters A validation curve can also turn upward because of how the training and validation data were built. ``` ### Clarifying Questions to Ask - Which library and loss are you using, and is the validation metric the same one the business cares about (log loss, AUC, RMSE)? - How was the validation set split from the training data: random rows, by time, or by user? - Roughly how many rows and features are there, and how noisy are the labels? ### What a Strong Answer Covers - The diagnosis and why later boosting rounds start to hurt. - Early stopping as the first fix, and how to keep an unbiased performance estimate after using validation data to choose the stopping round. - The trade-off between learning rate and number of trees. - Tree-complexity, regularization and subsampling parameters, each with what it limits. - Data-side causes such as leakage, a shift between the training and validation distributions, and label noise. ### Follow-up Questions - After you lower the learning rate, the best iteration moves from about 300 to about 3,000. How do you decide whether the gain is worth the training and serving cost? - Validation log loss rises while validation AUC keeps improving. Which one do you stop on, and why can they disagree? - How would you tune these parameters without overfitting the validation set itself? - The validation curve turns upward only on the most recent month of data. What does that suggest?

Overview: Asks what you would change when a gradient boosting model's validation loss starts rising after a few hundred rounds while training loss keeps falling. Tests whether you can diagnose the curve and reason about early stopping, learning rate, tree complexity, regularization, subsampling and data problems.

Nov 24, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Your boosted model's training loss keeps falling but validation loss starts rising after a few hundred rounds. Which levers would you adjust and why?

Clarifying Questions to Ask Guidance

  • Which library and loss are you using, and is the validation metric the same one the business cares about (log loss, AUC, RMSE)?
  • How was the validation set split from the training data: random rows, by time, or by user?
  • Roughly how many rows and features are there, and how noisy are the labels?

What a Strong Answer Covers Guidance

  • The diagnosis and why later boosting rounds start to hurt.
  • Early stopping as the first fix, and how to keep an unbiased performance estimate after using validation data to choose the stopping round.
  • The trade-off between learning rate and number of trees.
  • Tree-complexity, regularization and subsampling parameters, each with what it limits.
  • Data-side causes such as leakage, a shift between the training and validation distributions, and label noise.

Follow-up Questions Guidance

  • After you lower the learning rate, the best iteration moves from about 300 to about 3,000. How do you decide whether the gain is worth the training and serving cost?
  • Validation log loss rises while validation AUC keeps improving. Which one do you stop on, and why can they disagree?
  • How would you tune these parameters without overfitting the validation set itself?
  • The validation curve turns upward only on the most recent month of data. What does that suggest?