Why do gradient boosted trees not need feature scaling?

Quick Overview

Asks why gradient boosted tree models such as XGBoost and LightGBM work without standardizing or min-max scaling their features. Tests understanding of threshold splits, split gain and histogram binning, and the cases where scale still matters for boosting.

Why do gradient boosted trees not need feature scaling?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why do gradient boosted trees not need feature scaling? ```hint Look at one split Write a split as a threshold test on one feature, then standardize that feature. Which training samples go left before the transform, and which go left after it? ``` ### What a Strong Answer Covers - How a tree split uses a feature, and why only the order of its values matters - Why split gains and histogram bins are unchanged by scaling - How this differs from models built on distances or weight magnitudes - Where scale still matters, such as the regression target and linear boosters - Whether a nonlinear monotonic transform such as a log changes anything ### Follow-up Questions - Would log-transforming a skewed feature change a gradient boosted model? In which cases? - Does rescaling the regression target change an XGBoost model, and which hyperparameters would you retune? - Do gradient boosted trees need one-hot encoding for categorical features? - How do XGBoost and LightGBM decide which side of a split missing values go to?

Overview: Asks why gradient boosted tree models such as XGBoost and LightGBM work without standardizing or min-max scaling their features. Tests understanding of threshold splits, split gain and histogram binning, and the cases where scale still matters for boosting.

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

Why do gradient boosted trees not need feature scaling?

What a Strong Answer Covers Guidance

  • How a tree split uses a feature, and why only the order of its values matters
  • Why split gains and histogram bins are unchanged by scaling
  • How this differs from models built on distances or weight magnitudes
  • Where scale still matters, such as the regression target and linear boosters
  • Whether a nonlinear monotonic transform such as a log changes anything

Follow-up Questions Guidance

  • Would log-transforming a skewed feature change a gradient boosted model? In which cases?
  • Does rescaling the regression target change an XGBoost model, and which hyperparameters would you retune?
  • Do gradient boosted trees need one-hot encoding for categorical features?
  • How do XGBoost and LightGBM decide which side of a split missing values go to?