Tune Gradient Boosted Trees That Overfit a Small B2B Dataset
Last updated: November 29, 2026
Quick Overview
A LightGBM model predicting Amazon Business account upgrades has training AUC 0.99 and validation AUC 0.71 on 8,000 accounts. Walk through how you would diagnose and reduce the overfitting.
Amazon
November 29, 20260
0
0 solved
A LightGBM model predicting Amazon Business account upgrades has training AUC 0.99 and validation AUC 0.71 on 8,000 accounts. Walk through how you would diagnose and reduce the overfitting.
Amazon Business has far fewer customers than retail, so models often run on small data. Interviewers check that you know which boosting hyperparameters control variance and that you use early stopping and proper validation rather than guessing.
What the Interviewer Expects
- Confirms the gap is not caused by leakage or a distribution shift between splits
- Uses early stopping on a validation fold
- Lowers model capacity: depth, leaves, min data per leaf
- Adds row and column subsampling and L1 and L2 leaf penalties
- Uses repeated cross-validation for stable estimates on small data
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why does a lower learning rate with more trees often generalize better?
- What does min_child_weight control?
- How would you know if more data would help more than tuning?
- When would logistic regression beat boosting here?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Ask how many positives exist (maybe 600 upgrades), how many features, and how the split was made. With 8,000 rows and few positives, variance is the main enemy....
Approach
First rule out leakage and split mismatch, then reduce capacity, then add randomness, and measure everything with repeated stratified cross-validation because a single 20 percent split has only about ...