LearnBenchStart learning →

AI Research Scientist · Optimization Algorithms & Schedules

Gradient descent optimization

Real lesson card · Page 1 of 4

Gradient descent optimization

Gradient descent update rule

Gradient descent updates a parameter by stepping opposite the gradient of the loss: θθηθL(θ)\theta \leftarrow \theta - \eta \nabla_\theta L(\theta) Here η\eta is the learning rate controlling step size.
Example
With θ=5\theta=5, gradient θL=2\nabla_\theta L=2, and η=0.1\eta=0.1: θ50.1(2)=4.8\theta \leftarrow 5-0.1(2)=4.8.

Recall check from the same lesson

For a training set with 50 million examples, computing the full-batch gradient every step is usually preferred over mini-batch or stochastic updates because it gives the most accurate gradient direction each step.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Optimization Algorithms & Schedules questions