What is the primary trade-off between full-batch gradient descent and stochastic gradient descent?

Quick Overview

Asks for the main trade-off between full-batch gradient descent and stochastic gradient descent. Tests understanding of per-update cost, the accuracy and variance of gradient estimates, learning rate schedules, and why mini-batches are the usual choice when training models.

What is the primary trade-off between full-batch gradient descent and stochastic gradient descent?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the primary trade-off between full-batch gradient descent and stochastic gradient descent? ```hint Count the work per update Compare how many training examples each method touches to make one parameter update, and how accurate the gradient behind that update is. ``` ### What a Strong Answer Covers - What each method computes per step and how that cost grows with the dataset size - How the quality of the gradient estimate differs, and how that shows up in the loss curve and near the minimum - Why SGD needs a decaying learning rate to settle - Why mini-batches are the usual choice in practice ### Follow-up Questions - How does the variance of a mini-batch gradient change with batch size, and why do very large batches give diminishing returns? - If you double the batch size, how would you adjust the learning rate? - Why does SGD with a constant learning rate not converge exactly, and what fixes it? - When would you still choose a full-batch method such as L-BFGS?

Overview: Asks for the main trade-off between full-batch gradient descent and stochastic gradient descent. Tests understanding of per-update cost, the accuracy and variance of gradient estimates, learning rate schedules, and why mini-batches are the usual choice when training models.

Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the primary trade-off between full-batch gradient descent and stochastic gradient descent?

What a Strong Answer Covers Guidance

  • What each method computes per step and how that cost grows with the dataset size
  • How the quality of the gradient estimate differs, and how that shows up in the loss curve and near the minimum
  • Why SGD needs a decaying learning rate to settle
  • Why mini-batches are the usual choice in practice

Follow-up Questions Guidance

  • How does the variance of a mini-batch gradient change with batch size, and why do very large batches give diminishing returns?
  • If you double the batch size, how would you adjust the learning rate?
  • Why does SGD with a constant learning rate not converge exactly, and what fixes it?
  • When would you still choose a full-batch method such as L-BFGS?