AI Terminology
/Advanced
Gradient Descent
Definition
The optimization algorithm used alongside backpropagation to minimize the 'Loss Function' (the error) by iteratively moving in the direction of steepest descent.
Explain Like I'm New
Imagine you are blindfolded on a mountain and want to get to the valley floor. You feel the ground with your foot. You find the direction that slopes downward the steepest, and you take a step in that direction. You repeat this until the ground is flat. The 'mountain' is the AI's error. The 'valley floor' is perfect accuracy.
Real World Example
Adam (Adaptive Moment Estimation) is a highly advanced version of Gradient Descent used to train GPT-4. It acts like a ball rolling down a hill—it builds up 'momentum' so it doesn't get stuck in small potholes along the way.
Common Use Cases
- •Model optimization
- •Minimizing loss
Interview Questions
basic
- In Gradient Descent, what represents the 'size of the step' you take down the mountain?
intermediate
- What is a 'Local Minimum' trap in Gradient Descent?