1. Mathematical Formulations & Derivations
Both algorithms aim to find a stationary point (a local or global minimum) where .
A. Gradient Descent (First-Order Method)
- Update Rule:
B. Newton’s Method (Second-Order Method)
- Update System:
2. Side-by-Side Comparison
Let’s look at the scalar quadratic function from your first and fourth slides:
- First derivative (gradient):
- Second derivative (Hessian):
- True minimum:
- Starting point:
Walkthrough: Gradient Descent ()
| Step | Current | Gradient | Next |
|---|---|---|---|
| Converges gradually to |
Walkthrough: Newton’s Method
| Step | Current | Solve | ||
|---|---|---|---|---|
| (STOP) |
3. Vector Input: General Quadratic Function
As shown in your second slide:
- Gradient:
- Hessian:
- Newton Step:
Because the quadratic Taylor model is exact for any quadratic function, Newton’s method computes the exact analytical minimum in 1 single step.
4. Non-Convex Functions & Challenges (Slide 3)
When optimizing complex surfaces such as:
-
Local Minima vs. Global Minimum:
- Starting at traps gradient descent in an outer local minimum valley.
- Starting at allows the optimizer to slide into the deeper global minimum.
-
How Newton’s Method Behaves on Non-Convex Surfaces:
- If is not positive definite (e.g., negative eigenvalues near a saddle point or local maximum), Newton’s method can step uphill towards local maxima or diverge.
5. Summary: GD vs. Newton’s Method
| Feature | Gradient Descent (GD) | Newton’s Method |
|---|---|---|
| Order | 1st-order () | 2nd-order ( and ) |
| Update formula | ||
| Hyperparameter | Needs learning rate tuning | Pure Newton has no step-size parameter |
| Convergence rate | Linear convergence (slow near minimum) | Quadratic convergence (extremely fast near minimum) |