How would you choose between XGBoost, LightGBM and CatBoost for a new tabular problem?

Quick Overview

Asks how to pick between XGBoost, LightGBM and CatBoost for a new tabular machine learning problem. Tests knowledge of how the gradient boosting libraries differ in tree growth, categorical handling, speed, defaults and ecosystem, and how to benchmark them fairly.

How would you choose between XGBoost, LightGBM and CatBoost for a new tabular problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How would you choose between XGBoost, LightGBM and CatBoost for a new tabular problem? ```hint Start from the data Look at the row count, the width and sparsity of the feature matrix, and how many high-cardinality categorical columns you have. ``` ```hint Look past accuracy After tuning, the three often land close on accuracy. Ask what else differs: training speed, defaults, overfitting behavior, and what your infrastructure already supports. ``` ### What a Strong Answer Covers - What the three libraries share and why their tuned accuracy is often close - How data size, sparsity and categorical features point toward one library - The overfitting risk that comes with each library's tree-growth strategy - Infrastructure, serving and tuning-budget constraints - How to confirm the choice empirically ### Follow-up Questions - How do CatBoost's ordered target statistics avoid the leakage that naive target encoding causes? - Why does leaf-wise growth overfit small datasets, and which parameters keep it in check? - How would you set up a fair benchmark of the three libraries on the same problem? - The model must score a request in under 1 ms on a CPU. How does that change your choice and settings?

Overview: Asks how to pick between XGBoost, LightGBM and CatBoost for a new tabular machine learning problem. Tests knowledge of how the gradient boosting libraries differ in tree growth, categorical handling, speed, defaults and ecosystem, and how to benchmark them fairly.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How would you choose between XGBoost, LightGBM and CatBoost for a new tabular problem?

What a Strong Answer Covers Guidance

  • What the three libraries share and why their tuned accuracy is often close
  • How data size, sparsity and categorical features point toward one library
  • The overfitting risk that comes with each library's tree-growth strategy
  • Infrastructure, serving and tuning-budget constraints
  • How to confirm the choice empirically

Follow-up Questions Guidance

  • How do CatBoost's ordered target statistics avoid the leakage that naive target encoding causes?
  • Why does leaf-wise growth overfit small datasets, and which parameters keep it in check?
  • How would you set up a fair benchmark of the three libraries on the same problem?
  • The model must score a request in under 1 ms on a CPU. How does that change your choice and settings?