What is the difference between row subsampling and column subsampling in boosted models?

Quick Overview

Asks how row subsampling and column subsampling differ in gradient boosted trees such as XGBoost and LightGBM. Tests what each samples and at what level, which kind of overfitting each reduces, the effect on training cost, and how to tune the rates.

What is the difference between row subsampling and column subsampling in boosted models?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Gradient boosting libraries such as XGBoost and LightGBM let you subsample rows and subsample columns while building trees. What is the difference between row subsampling and column subsampling in boosted models? ```hint Picture the data matrix Think of the training set as a matrix of examples by features, and ask what each kind of sampling hides from a single tree. ``` ```hint Think about cost Consider which step of building a tree each kind of sampling makes cheaper. ``` ### What a Strong Answer Covers - What each method samples, and at what granularity - Which kind of overfitting each one addresses - The effect of each on training cost - What happens when the rates are set too low, and how to tune them with the learning rate and number of rounds - Library variants such as LightGBM's GOSS ### Follow-up Questions - How does row subsampling in gradient boosting differ from the bootstrap sampling in a random forest? - With `colsample_bytree=0.5` and `colsample_bynode=0.5` on 200 features in XGBoost, how many features does each split consider? - GOSS drops many small-gradient rows. How does it keep its split gains from being biased? - How would you tune the two rates together with the learning rate?

Overview: Asks how row subsampling and column subsampling differ in gradient boosted trees such as XGBoost and LightGBM. Tests what each samples and at what level, which kind of overfitting each reduces, the effect on training cost, and how to tune the rates.

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

Gradient boosting libraries such as XGBoost and LightGBM let you subsample rows and subsample columns while building trees. What is the difference between row subsampling and column subsampling in boosted models?

What a Strong Answer Covers Guidance

  • What each method samples, and at what granularity
  • Which kind of overfitting each one addresses
  • The effect of each on training cost
  • What happens when the rates are set too low, and how to tune them with the learning rate and number of rounds
  • Library variants such as LightGBM's GOSS

Follow-up Questions Guidance

  • How does row subsampling in gradient boosting differ from the bootstrap sampling in a random forest?
  • With colsample_bytree=0.5 and colsample_bynode=0.5 on 200 features in XGBoost, how many features does each split consider?
  • GOSS drops many small-gradient rows. How does it keep its split gains from being biased?
  • How would you tune the two rates together with the learning rate?