← Back

Gradient Descent and Boosting: Untangling the Terms

·Bryan Lai

Gradient Descent and Boosting: Untangling the Terms

"Gradient" appears in both Gradient Descent and Gradient Boosting. They are not the same thing.

Gradient Descent: The Optimizer

Gradient Descent is a way to reduce loss.

The loss function tells you how wrong the model is.

The gradient tells you which direction makes the loss rise fastest.

Gradient Descent moves the other way.

  1. Calculate the gradient.
  2. Move opposite the gradient.
  3. Use the learning rate to control step size.

Small steps are safer. Large steps are faster until they overshoot.

Gradient Descent tunes model parameters. It is used inside linear regression, neural networks, and many other models.

Gradient Boosting: The Ensemble Method

Gradient Boosting is a model-building method.

It builds a strong model by adding many weak models, usually small decision trees.

Each new tree focuses on what the existing trees still get wrong.

  1. Train a weak model.
  2. Measure where it is wrong.
  3. Add another weak model to fix part of the error.
  4. Repeat.

The gradient tells the next model what errors matter most.

XGBoost, LightGBM, and CatBoost are popular implementations.

Key Difference: Optimizer vs. Algorithm

FeatureGradient DescentGradient Boosting
What it isOptimization AlgorithmMachine Learning Algorithm
PurposeMinimize Loss FunctionBuild Predictive Model
How it uses GradientTo adjust model parametersTo correct errors of weak learners
Model TypeNot a model itselfEnsemble of Weak Models

Think of it this way:

  • Gradient Descent: How a model adjusts its parameters.
  • Gradient Boosting: How many weak models are added into one stronger model.

Both use "gradient," but at different levels. Gradient Descent is an optimization technique used within many algorithms. Gradient Boosting is an algorithm that uses gradients to build ensembles. That distinction matters.