In words
What it is, why it matters, and what it is like.
Why am I learning this?
This method is the engine behind almost every modern AI system you use, from voice assistants on your phone to large language models that write text. Without it, these systems could not learn from data. Understanding this process lets you see how a computer goes from knowing nothing to making predictions, and gives you the context needed to understand related ideas like 'momentum' (which speeds up learning) or 'Adam' (a more advanced version of this method used in practice). It is also essential for reading training graphs and understanding what happens when we adjust an existing model.
The idea, in plain terms
Imagine you are hiking down a steep mountain in thick fog. You cannot see the peak or the path ahead; you can only feel the slope of the ground right under your feet. To get down, you take a step in the direction that feels steepest downward, then stop to feel the ground again and take another step. You will not find the perfect path — you might step over a small ridge into a different valley — but you will reach the bottom far faster than if you stopped to map the entire mountain before every single move.
An analogy
Think of a student trying to master a subject for an exam using a textbook with thousands of practice problems. A 'perfect' approach would require solving every single problem perfectly, analyzing all results at once, and then adjusting their study plan. This is thorough but incredibly slow. Instead, imagine the SGD approach: The student grabs ten random problems, solves them, sees what they got wrong, and adjusts their understanding for that evening. Then they pick ten different random problems and repeat. Their daily study plan is noisy — those ten problems might not represent the whole subject perfectly — but because they learn every day rather than once at the end of the month, they make rapid progress over weeks.
Definition
Stochastic Gradient Descent is a method for improving predictions by estimating the direction to adjust based on a small, random sample of data, then updating the model's settings in that direction, and repeating this process many times to gradually reduce error.
Where this sits
This concept belongs to Optimization, which is the general study of finding the best possible outcome from many choices. SGD is a specific technique within this field that uses randomness to speed up the search for better settings. It connects closely to Learning Rate, which determines how big each step is during this process, and Loss Function, which is the measure of error we are trying to minimize.