H13-311_V3.5 · Question #236
What is the most important difference between batch gradient descent, mini-batch gradient descent, and stochastic gradient descent?
The correct answer is D. Number of samples used. Option D is correct because the defining characteristic that separates these three algorithms is how many training samples are used to compute each gradient update: batch gradient descent uses the entire dataset, mini-batch uses a fixed subset (e.g., 32–256 samples), and…
Question
What is the most important difference between batch gradient descent, mini-batch gradient descent, and stochastic gradient descent?
Options
- AGradient size
- BGradient direction
- CLearning rate
- DNumber of samples used
How the community answered
(51 responses)- A16% (8)
- B4% (2)
- C6% (3)
- D75% (38)
Explanation
Option D is correct because the defining characteristic that separates these three algorithms is how many training samples are used to compute each gradient update: batch gradient descent uses the entire dataset, mini-batch uses a fixed subset (e.g., 32–256 samples), and stochastic gradient descent uses exactly one sample per update.
Why the distractors are wrong:
- A (Gradient size) and B (Gradient direction) are consequences of the sample choice, not the defining difference - a single sample produces a noisier gradient, but that noise is a side effect, not the definition.
- C (Learning rate) is an independent hyperparameter; all three variants can use any learning rate, and varying it doesn't change which variant you're using.
Memory tip: Think of "batch" like cooking - full batch cooks the whole pot before tasting, mini-batch tastes a spoonful, and stochastic tastes one single noodle. The amount you taste (samples used) is what defines each approach.
Topics
Community Discussion
No community discussion yet for this question.