Preconditioning practice
Original practice questions (PDF)
Original questions by Wenzhi Gao.
For exercises 1–4, let with and . The matrix approximates . Write and take the full step . When , define . Stop if a gradient is zero.
1. A perfect preconditioner and a bad one
- Show that . Why does solve the problem in one step?
- For , , , and , compute and . Does the gradient norm improve?
- Why might we learn over several inexpensive steps?
Solution to exercise 1
Since , the new gradient is . With it is zero, which certifies the unique minimizer for . In the numerical case, , , and the new gradient is . Thus . Learning from cheap updates can capture useful curvature without explicitly forming or inverting a large Hessian.
2. Repairing an unsuccessful direction
Let and . For unit , suppose and set . Consider .
- Expand as a quadratic in , and find the minimizing .
- You may use at . For , choose so that , and interpret the decrease.
Solution to exercise 2
Expanding the squared Frobenius norm gives The denominator is positive because and is a unit vector. Choose . Then . A step with larger remaining gradient ratio gives a larger guaranteed decrease in the potential.
3. A finite budget for bad steps
Suppose , , and before termination.
- Bound . For fixed , how many indices can satisfy ? If the method never terminates, what happens to ?
- Use the arithmetic–geometric mean inequality to bound the ratio by . Can an occasional prevent that bound?
Solution to exercise 3
Summing the potential decreases gives . At most indices can have , so in an infinite run. The gradient ratio telescopes to . AM–GM bounds this product by . Occasional large ratios use part of a finite budget, so the cumulative bound still holds.
4. A least-change secant update
For distinct , let and .
- Show that and . How can be formed without knowing the minimizer?
- Derive for unrestricted real . Write as an outer product.
Solution to exercise 4
Subtracting the two gradients gives , hence . Both differences use only the observed points and gradients. For the correction , require . In each row, the least-norm vector with the required inner product with is a multiple of . Therefore Here because is invertible and .
5. Learning one direction at a time
Let , , , and .
- Compute and . Do both satisfy ?
- Which column of does the equation determine?
- A second observation gives and . Find satisfying both secant equations.
Solution to exercise 5
Multiplication by selects the first column. Both matrices give , and the first equation imposes no condition on the second column. Multiplication by selects the second column, giving . Thus the two observations together give .