Explain XGBoost depth, regularization, and dropout

Quick Overview

This question evaluates understanding of model complexity and regularization across gradient-boosted decision trees and neural networks—covering how tree depth impacts bias/variance and computational cost, how L1/L2 and weight decay modify objectives and learned parameters, dropout behavior at inference, and distinctions between training and inference phases in Machine Learning. It is commonly asked to assess reasoning about overfitting, generalization, computational and deployment trade-offs, testing domain knowledge in supervised learning and regularization, and requires primarily conceptual understanding with practical-application considerations.

Explain XGBoost depth, regularization, and dropout

Company: Uber

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

Answer the following ML conceptual questions: (a) In gradient-boosted decision trees, how does maximum tree depth affect bias/variance, overfitting risk, and training/inference cost, and how would you choose it in practice? (b) In neural networks, compare L1 vs L2 regularization and weight decay—how do they modify the objective, gradients, and learned parameters? (c) After applying dropout during training, what should happen at inference time, and why? (d) Define and contrast training vs inference for ML models, including data flows, randomness, and performance considerations.

Quick Answer: This question evaluates understanding of model complexity and regularization across gradient-boosted decision trees and neural networks—covering how tree depth impacts bias/variance and computational cost, how L1/L2 and weight decay modify objectives and learned parameters, dropout behavior at inference, and distinctions between training and inference phases in Machine Learning. It is commonly asked to assess reasoning about overfitting, generalization, computational and deployment trade-offs, testing domain knowledge in supervised learning and regularization, and requires primarily conceptual understanding with practical-application considerations.

|Home/Machine Learning/Uber
Uber logo
Uber
Sep 6, 2025, 12:00 AM
mediumMachine Learning EngineerOnsiteMachine Learning
8
0

ML Conceptual Questions (Onsite)

Answer the following:

(a) Gradient-boosted decision trees: How does maximum tree depth affect bias/variance, overfitting risk, and training/inference cost? How would you choose it in practice?

(b) Neural networks: Compare L1 vs L2 regularization and weight decay — how do they modify the objective, gradients, and learned parameters?

(c) Dropout: After applying dropout during training, what should happen at inference time, and why?

(d) Training vs inference: Define and contrast these phases for ML models, including data flows, randomness, and performance considerations.

Loading comments...