Why can't trees in gradient boosting be trained independently in parallel like in a random forest?

Quick Overview

Asks why gradient boosting must build its trees one after another while a random forest can build them in parallel. Tests understanding of pseudo-residual targets, the sequential dependency between boosting rounds, and where libraries such as XGBoost and LightGBM still parallelize work.

Why can't trees in gradient boosting be trained independently in parallel like in a random forest?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why can't trees in gradient boosting be trained independently in parallel like in a random forest? ```hint Look at the training target Write down the target that the $m$-th boosting tree is fit to, and list what you need to have computed before you can build it. ``` ### What a Strong Answer Covers - What target each boosting tree is fit to and what is needed to compute it - Why that creates a sequential dependency from one tree to the next - Why trees in a random forest have no such dependency - Where boosting libraries do parallelize the work ### Follow-up Questions - If you trained all the boosting trees at once on the residuals of the initial model, what would you end up with? - How do XGBoost or LightGBM spread the work of building a single tree across threads or machines? - In multiclass gradient boosting, which trees can be built at the same time? - How do the learning rate and the number of trees affect wall-clock training time?

Overview: Asks why gradient boosting must build its trees one after another while a random forest can build them in parallel. Tests understanding of pseudo-residual targets, the sequential dependency between boosting rounds, and where libraries such as XGBoost and LightGBM still parallelize work.

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

Why can't trees in gradient boosting be trained independently in parallel like in a random forest?

What a Strong Answer Covers Guidance

  • What target each boosting tree is fit to and what is needed to compute it
  • Why that creates a sequential dependency from one tree to the next
  • Why trees in a random forest have no such dependency
  • Where boosting libraries do parallelize the work

Follow-up Questions Guidance

  • If you trained all the boosting trees at once on the residuals of the initial model, what would you end up with?
  • How do XGBoost or LightGBM spread the work of building a single tree across threads or machines?
  • In multiclass gradient boosting, which trees can be built at the same time?
  • How do the learning rate and the number of trees affect wall-clock training time?