Conjugate Gradient
vs Gradient Descent on SPD matrix
Solving where is SPD is equivalent to minimizing the quadratic form:
Iteration 0
Use Left/Right arrow keys to navigate steps
Gradient Descent (Blue)
Moves strictly in the direction of the local negative gradient. Because the "bowl" is skewed (ill-conditioned ), the path zig-zags back and forth, taking many steps to reach the bottom.
Conjugate Gradient (Red)
Chooses search directions that are -orthogonal (conjugate) to all previous directions. For an matrix, it perfectly reaches the minimum in exactly steps. Here (), it reaches the center in exactly 2 steps!
Gradient Descent (Zig-Zag)
Conjugate Gradient (A-orthogonal)