M9 · Chapter 2 · Descent methods and convergence rates
How gradient-type methods walk downhill and how fast they get there: descent directions, step-size rules, the Descent Lemma, the four rates (smooth, convex, strongly convex, quadratic). Lectures 6–10 (MT1 material). Full theory and every past question: M1.
Each stop = a concept card (plain words → symbols → picture → exact statement) followed by questions that start trivial and end tricky. Answer before opening the explanation. Levels: L1 term L2 use L3 trap L4 exam. Questions tagged with a year are real past-paper items. Three small widgets let you play with the objects (upper parabola, iteration counter, gradient descent on a quadratic).
1. Descent direction and Algorithm DESCENT
In plain words: You stand on a hilly landscape and want to get to the bottom. At your spot the ground has a steepest-uphill direction; that arrow is the gradient. Any direction that points even a little bit against it (an angle of more than 90° from the gradient) takes you downhill, at least for a short walk. That is a descent direction. Algorithm DESCENT is the whole method: at every iteration choose a descent direction, choose how far to walk, walk, repeat.
Words and symbols on this stop: $f$ = the function we minimise (a height). $x^{(k)}$ = our position after $k$ moves ($x^{(0)}$ = where we start). $\nabla f(x)$ = the gradient, the vector of partial derivatives; it points uphill. $u^{(k)}$ = the search direction chosen at iteration $k$. $\alpha_k\gt0$ = the step size (how far we walk). $u^\top\nabla f$ = a dot product: positive means "same general side as the gradient" (uphill), negative means "opposite side" (downhill), zero means "sideways".
Precisely (his form): Algorithm DESCENT is $$x^{(k+1)}=x^{(k)}+\alpha_k u^{(k)},\qquad u^{(k)\top}\nabla f(x^{(k)})\lt0 .$$ The condition $u^\top\nabla f\lt0$ is what "descent direction" means. If it holds, then $f(x^{(k)}+\alpha u^{(k)})\lt f(x^{(k)})$ for all small enough $\alpha\gt0$ (not for all $\alpha$!). Choosing $u^{(k)}=-\nabla f(x^{(k)})$ gives gradient descent (steepest descent), and then $u^\top\nabla f=-\|\nabla f\|^2\lt0$ whenever $\nabla f\ne0$.
The gradient $\nabla f(x)$ points in the direction in which $f$ increases fastest, so $-\nabla f(x)$ points in the direction of steepest decrease.
Explanation
True. Near $x$, $f(x+tu)\approx f(x)+t\,\nabla f(x)^\top u$ for a short walk of length $t$ along a unit vector $u$. The dot product $\nabla f^\top u$ is largest when $u$ points along $\nabla f$ and most negative when $u$ points along $-\nabla f$ (Cauchy–Schwarz). So $-\nabla f$ is the steepest way down. (“Steepest” is measured with ordinary Euclidean length.) Depth: M1 §B.
If $\nabla f(x)\ne0$, then $u=-\nabla f(x)$ is a descent direction.
Explanation
True. A descent direction means $u^\top\nabla f(x)\lt0$. With $u=-\nabla f(x)$ we get $u^\top\nabla f=-\nabla f^\top\nabla f=-\|\nabla f(x)\|^2$, which is strictly negative exactly when $\nabla f(x)\ne0$. (At a point with $\nabla f=0$ no direction can satisfy $u^\top\nabla f\lt0$, since the left side is always $0$: the algorithm has nowhere to go.)
$f(x)=x_1^2+3x_2^2$ at $x=(1,1)$, so $\nabla f(x)=(2,6)$. Which of these is a descent direction?
- (a) $u=(1,0)$
- (b) $u=(-1,1)$
- (c) $u=(-3,-1)$
- (d) $u=(0,1)$
Explanation
(c). Compute $u^\top\nabla f$ for each: (a) $1\cdot2+0=2\gt0$; (b) $-2+6=4\gt0$; (c) $-6-6=-12\lt0$; (d) $0+6=6\gt0$. Only the negative one is a descent direction. Notice (b) looks as if it goes toward the origin in the first coordinate but the big second coordinate of the gradient wins: the check is the dot product, not a guess from the picture.
In Algorithm DESCENT, if $u^{(k)\top}\nabla f(x^{(k)})\lt0$ then $f(x^{(k+1)})\lt f(x^{(k)})$ for every choice of step $\alpha_k\gt0$.
Explanation
False. The descent property is only local: it holds for small steps. Counterexample: $f(x)=x^2$, $x^{(k)}=1$, $u=-1$ (descent: $u\cdot f'(1)=-2\lt0$) and $\alpha=3$: $x^{(k+1)}=1-3=-2$ and $f$ goes from $1$ up to $4$. You walked straight past the bottom and up the other side. This is why a step-size rule (stop 2) is part of every algorithm. Depth: M1 §B1.
Let $\nabla f(x)\ne0$. Mark all vectors $u$ that are descent directions (i.e. $u^\top\nabla f(x)\lt0$).
- (a) $u=-\nabla f(x)$
- (b) $u=-D\nabla f(x)$ where $D$ is a diagonal matrix with all diagonal entries positive
- (c) any $u\ne0$ with $u^\top\nabla f(x)=0$ (sideways)
- (d) $u=0.001\,\nabla f(x)$ (a very short vector)
Explanation
(a), (b). (a) gives $-\|\nabla f\|^2\lt0$. (b) gives $u^\top\nabla f=-\sum_i D_{ii}(\partial_if)^2\lt0$, because every $D_{ii}\gt0$ and at least one $\partial_if\ne0$; this is the idea behind preconditioning (stop 7). (c) is not: the dot product is $0$, not strictly negative; walking sideways along a level set leaves $f$ unchanged to first order and may even raise it (move along the tangent of a circle: you drift outwards). (d) is uphill: $u^\top\nabla f=0.001\|\nabla f\|^2\gt0$; shortness does not change the sign. The condition is about the sign of the dot product, never about length.
2. How far to walk: exact line search, Armijo, Wolfe
In plain words: (His exam papers call the Armijo-type rule “Armijo–Goldstein”.) Once you have a direction $u$, you walk along the straight line $x+\alpha u$. Look only at the height along that line: $\varphi(\alpha)=f(x+\alpha u)$ is an ordinary one-variable function. Exact line search walks to the lowest point of that one-variable curve. That is often too expensive, so inexact rules just accept any $\alpha$ that is "good enough". Armijo: the curve must be below a line that starts at $\varphi(0)$ and falls with a fraction of the tangent's slope (enough decrease). Wolfe adds: the slope at the new point must have flattened out a bit (so you did not stop absurdly early). Backtracking: start with a big $\alpha$ and keep halving until Armijo holds.
Words and symbols on this stop: $\varphi(\alpha)=f(x+\alpha u)$ = height along the line; $\varphi'(0)=\nabla f(x)^\top u\lt0$ = the starting slope (negative because $u$ is a descent direction). $\rho_1,\rho_2$ = two fixed numbers with $0\lt\rho_1\lt\rho_2\lt1$ (his letters). "Line search" = choosing $\alpha$.
Precisely: Exact line search: $\alpha_k=\arg\min_{\alpha\gt0}f(x^{(k)}+\alpha u^{(k)})$; then $\nabla f(x^{(k+1)})^\top u^{(k)}=0$ (the slope at the minimum is zero). Armijo: $f(x+\alpha u)\le f(x)+\rho_1\alpha\,\nabla f(x)^\top u$. Wolfe: Armijo and $\nabla f(x+\alpha u)^\top u\ge\rho_2\,\nabla f(x)^\top u$. On a quadratic $f=\frac12x^\top Qx-h^\top x+c$ with gradient $g=\nabla f(x)$, exact line search along any direction $u$ gives $\alpha=\dfrac{-g^\top u}{u^\top Qu}$; for $u=-g$ that is $\dfrac{g^\top g}{g^\top Qg}$.
Exact line search chooses $\alpha_k$ as the minimiser of $f(x^{(k)}+\alpha u^{(k)})$ over $\alpha\gt0$.
Explanation
True. That is the definition: along the chosen line, go to the lowest point. Because the slope of $\varphi$ is zero there, the new gradient is perpendicular to the direction just used: $\nabla f(x^{(k+1)})^\top u^{(k)}=0$. For gradient descent this means consecutive gradients are orthogonal (the “zig-zag” of stop 7). Depth: M1 §B2.
The Armijo condition demands that the actual decrease in $f$ is at least a fixed fraction $\rho_1$ of the decrease that the tangent line along $u$ promises.
Explanation
True. The tangent line along $u$ predicts $f(x)+\alpha\,\varphi'(0)$, i.e. a decrease of $\alpha|\varphi'(0)|$. Armijo asks for a decrease of at least $\rho_1\alpha|\varphi'(0)|$ (with $\rho_1$ small, e.g. $0.1$ or $10^{-4}$). A step that is too long fails because the curve bends back up above the line. Depth: M1 §B3.
$f(x)=\frac12x^\top Qx$ with $Q=\mathrm{diag}(1,4)$, at $x=(4,1)$, direction $u=-\nabla f(x)$. What step does exact line search choose?
- (a) $\alpha=0.25$
- (b) $\alpha=0.4$
- (c) $\alpha=0.5$
- (d) $\alpha=1$
Explanation
(b). $g=Qx=(4,4)$. $g^\top g=32$, $g^\top Qg=1\cdot16+4\cdot16=80$, so $\alpha=32/80=0.4$. Then $x^{(1)}=(4,1)-0.4(4,4)=(2.4,-0.6)$, whose gradient $(2.4,-2.4)$ is orthogonal to $(4,4)$, as it must be. The other options are the tempting wrong constants: (a) $0.25=1/\lambda_{\max}$ is the best constant step, not the exact-search step; (c) $0.5=2/\lambda_{\max}$ is the edge of the safe range; (d) $1=1/\lambda_{\min}$. ($L$ and $\mu$ are explained in stops 3 and 6.) Depth: M1 §B2, F2.
For the example of the figure ($\varphi(\alpha)=(1-2\alpha)^2$, $\rho_1=0.1$, $\rho_2=0.5$), mark all step sizes accepted by the Wolfe conditions (Armijo and curvature).
- (a) $\alpha=0.1$
- (b) $\alpha=0.5$
- (c) $\alpha=0.8$
- (d) $\alpha=1.0$
Explanation
(b), (c). Armijo: $\varphi(\alpha)\le1-0.4\alpha$, which simplifies to $4\alpha^2\le3.6\alpha$, i.e. $\alpha\le0.9$. Curvature: $\varphi'(\alpha)=8\alpha-4\ge-2$, i.e. $\alpha\ge0.25$. So Wolfe accepts $[0.25,0.9]$. (a) $\alpha=0.1$ passes Armijo but fails curvature (slope still $-3.2$, far from flat): the curvature rule exists to forbid tiny steps. (d) $\alpha=1.0$ fails Armijo ($\varphi(1)=1\gt0.6$): overshoot. (b) and (c) pass both.
Exact line search for minimising a quadratic function can be implemented only when the descent direction is along the negative of the gradient.
Explanation
False. Along any direction $u$ the quadratic restricted to the line is a one-variable parabola $\varphi(\alpha)=\varphi(0)+\alpha g^\top u+\frac{\alpha^2}{2}u^\top Qu$, and its minimum is $\alpha=-g^\top u/(u^\top Qu)$, in closed form. $-\nabla f$ is just one choice of $u$; for example the conjugate directions of conjugate gradient (M2) also use exact line search on a quadratic. (Checked numerically for a non-gradient direction in the check script.)
The Armijo–Goldstein procedure for inexact line search will not apply to quadratic functions.
Explanation
False. Armijo–Goldstein needs only a differentiable $f$ and a descent direction, since the test uses $\varphi(0)$, $\varphi'(0)$ and values of $\varphi$. A quadratic is differentiable, so the rule applies; on a quadratic one can even do exact line search, but that is a bonus, not a requirement. Do not read “exact formula exists” as “inexact rules cannot be used”.
3. $C^1_L$ and the Descent Lemma (the upper parabola)
In plain words: To say how much a step decreases $f$, we must know how fast the slope of $f$ can change; otherwise $f$ could bend away violently and any short-term promise from the tangent line would be worthless. The number $L$ is a speed limit on the change of the gradient. With it, $f$ can curve upwards away from its tangent at most like a parabola of curvature $L$: the function is always below an upward-opening parabola that touches it at your current point. This ceiling is the Descent Lemma. Importantly, it needs no convexity.
Words and symbols on this stop: $\|\cdot\|$ = ordinary length. "Lipschitz" = bounded rate of change: $\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|$ for all $x,y$. $f\in C^1_L$ = "$f$ is differentiable and its gradient is Lipschitz with constant $L$" (the little 1 = one derivative, the $L$ = the constant). $y$ = any second point. The Hessian $\nabla^2 f(x)$ = the matrix of second derivatives (the curvature). For a twice-differentiable $f$, $f\in C^1_L$ means all eigenvalues of the Hessian $\nabla^2 f(x)$ lie between $-L$ and $L$ at every $x$.
Precisely (Descent Lemma): if $f\in C^1_L$ then for all $x,y$ $$f(y)\le f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2 .$$ (The right side is the "upper parabola" in $y$.) Convexity is not assumed. Any $L'\ge L$ also works, so $L$ is a valid constant, not a unique one.
$f\in C^1_L$ means that $f$ is differentiable and $\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|$ for all $x,y$.
Explanation
True. This is the definition: the gradient map $x\mapsto\nabla f(x)$ is Lipschitz with constant $L$. In words, the gradient cannot change by more than $L$ per unit of distance travelled. Depth: M1 §A1.
The Descent Lemma (the inequality $f(y)\le f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2$) requires $f$ to be convex.
Explanation
False. It needs only $f\in C^1_L$. The function $f=\ln(1+x^2)$ of the figure is not convex but satisfies it with $L=2$. (Convexity gives the opposite kind of inequality, a lower bound by the tangent line, and is used later for the $O(1/T)$ rate.) Depth: M1 §A1.
$f(x)=\frac12x^\top Qx$ with $Q=\mathrm{diag}(1,4)$. What is the smallest $L$ for which $f\in C^1_L$?
- (a) $L=1$
- (b) $L=4$
- (c) $L=5$
- (d) $L=2.5$
Explanation
(b). $\nabla f(x)-\nabla f(y)=Q(x-y)$, and $\|Q(x-y)\|\le\lambda_{\max}(Q)\|x-y\|$ with equality along the eigenvector of the largest eigenvalue. So the best constant is $\lambda_{\max}=4$. (a) $1$ is too small: along the second axis the gradient changes four times faster. (c) $5$ is valid but not smallest (the trace, a common wrong guess); (d) $2.5$ is the average, also too small. Valid constants are every $L\ge4$.
If $f\in C^1_L$ then $L$ is uniquely determined by $f$ (it is the Lipschitz constant of $\nabla f$).
Explanation
False. If $\nabla f$ is Lipschitz with constant $L$, it is also Lipschitz with every larger constant. So the statement “$f\in C^1_L$” names any valid constant. This matters in exam items: when a problem says “step $1/L$” but gives only eigenvalue bounds, $L$ could be much larger than the largest eigenvalue (see stop 7, 2024 final 1(c)). Example: $f=\frac12x^2$ is in $C^1_1$, $C^1_{10}$ and $C^1_{100}$.
Mark all functions $f:\mathbb R\to\mathbb R$ that belong to $C^1_L$ for some finite $L$.
- (a) $f(x)=x^2$
- (b) $f(x)=\sin x$
- (c) $f(x)=x^4$
- (d) $f(x)=e^x$
Explanation
(a), (b). The test is whether $f'$ is Lipschitz, i.e. whether $f''$ is bounded. (a) $f'=2x$, $f''=2$: $L=2$. (b) $f'=\cos x$, $|f''|=|\sin x|\le1$: $L=1$. (c) $f'=4x^3$, $f''=12x^2$ is unbounded, so no single $L$ works on all of $\mathbb R$. (d) $f''=e^x$ is unbounded as $x\to\infty$. Smoothness constants are global: polynomials of degree $\ge3$ and exponentials fail on the whole line.
4. One step of decrease and the Sufficient Decrease Lemma
In plain words: Take the upper parabola from stop 3 and plug in the point you actually reach after one gradient step. The parabola is above $f$, so $f$ at the new point is below the parabola's value, and that value is easy to compute. The result: each step lowers $f$ by at least a constant times the squared gradient length. A big gradient means a guaranteed big drop; a tiny gradient means you are near a flat spot. Any method whose steps obey such a rule satisfies the Sufficient Decrease Lemma (his name), and everything in stops 5 and 6 starts from it.
Words and symbols on this stop: $g=\nabla f(x^{(k)})$ = the current gradient; $\|g\|^2=g^\top g$ = its squared length. $R\gt0$ = the "decrease constant": some number that does not change from step to step. $h(\alpha)=\alpha\bigl(1-\tfrac{L\alpha}{2}\bigr)$ = the guaranteed decrease per unit of $\|g\|^2$ when the constant step is $\alpha$. $q\in(0,1]$ = the cosine of the largest angle allowed between $u$ and $-\nabla f$ (the "angle condition" $-\nabla f^\top u\ge q\|\nabla f\|\|u\|$; for $u=-\nabla f$, $q=1$).
Precisely: with $y=x^{(k)}-\alpha g$ in the Descent Lemma: $f(x^{(k)})-f(x^{(k+1)})\ge\alpha\bigl(1-\tfrac{L\alpha}2\bigr)\|g\|^2$, positive exactly for $0\lt\alpha\lt\tfrac2L$ (open interval). Sufficient Decrease Lemma: there is $R\gt0$ with $f(x^{(k)})-f(x^{(k+1)})\ge R\,\|\nabla f(x^{(k)})\|^2$ for all $k$. Constants: constant step $\alpha\in(0,\tfrac2L)$: $R=\alpha(1-\tfrac{L\alpha}{2})$ (best $\alpha=\tfrac1L$, $R=\tfrac1{2L}$); exact line search: $R=\tfrac1{2L}$; Wolfe line search with angle condition: $R=\dfrac{\rho_1(1-\rho_2)q^2}{L}$.
The Sufficient Decrease Lemma says: there is a constant $R\gt0$ such that $f(x^{(k)})-f(x^{(k+1)})\ge R\,\|\nabla f(x^{(k)})\|^2$ for all $k$.
Explanation
True. That is the lemma as he states it: the drop in value is at least a fixed multiple of the squared gradient length. It is not a theorem about all algorithms; it holds for DESCENT iterates whose steps are chosen well (constant step in the safe range, exact line search, Wolfe with the angle condition). Depth: M1 §B3.
$f\in C^1_L$ with $L=5$, gradient descent with a constant step. Which step gives the largest guaranteed decrease, and what is it?
- (a) $\alpha=0.4$, decrease $\ge0.4\|\nabla f\|^2$
- (b) $\alpha=0.2$, decrease $\ge0.1\|\nabla f\|^2$
- (c) $\alpha=0.2$, decrease $\ge0.2\|\nabla f\|^2$
- (d) $\alpha=1$, decrease $\ge\|\nabla f\|^2$
Explanation
(b). $h(\alpha)=\alpha(1-2.5\alpha)$ is maximised at $\alpha=1/L=0.2$, where $h=0.2\cdot0.5=0.1=\frac1{2L}$. (a) $\alpha=0.4=2/L$ is the excluded end point: $h=0.4(1-1)=0$, no guarantee at all. (c) forgets the factor $(1-\frac{L\alpha}{2})=\frac12$. (d) $\alpha=1\gt2/L$ is outside the safe range ($h(1)=1-2.5\lt0$). Depth: M1 §B1.
For $f\in C^1_L$, gradient descent with the constant step $\alpha=2/L$ always decreases $f$ (unless $\nabla f=0$).
Explanation
False. The safe range is the open interval $(0,2/L)$; at $2/L$ the guaranteed factor $h=\alpha(1-L\alpha/2)$ is $0$. Counterexample: $f(x)=\frac L2x^2$ (so $f'=Lx$). With $\alpha=2/L$: $x\mapsto x-\frac2L\cdot Lx=-x$. The iterate bounces between $1$ and $-1$ and $f$ never changes. Depth: M1 §B1.
We apply Algorithm DESCENT to $f\in C^1_L$ with an inexact line search. Then there exists $C\gt0$ such that $\Delta_k-\Delta_{k+1}\ge C\|\nabla f(x^{(k)})\|^2$ (where $\Delta_k=f(x^{(k)})-f(x^*)$).
Explanation
False (his key). Bare DESCENT only demands $u^\top\nabla f\lt0$; “inexact line search” with no further rule may accept absurdly tiny steps, and then the decrease is tiny compared with $\|\nabla f\|^2$. Counterexample: $f=\frac12x^2$, $x^{(k)}\ne0$, steps $\alpha_k=2^{-(k+1)}$: the decrease/$\|\nabla f\|^2$ ratio is $\alpha_k-\alpha_k^2/2\to0$, so no constant $C\gt0$ works for all $k$. The lemma needs a rule such as Wolfe plus the angle condition, or a constant step in $(0,\frac2L)$ (checked numerically in the script).
In the setting of the previous statement (inexact line search), if $u^{(k)}=-\nabla f(x^{(k)})$ then the value of $C$ increases.
Explanation
True (his key; read it as “the constant you can guarantee is at least as good”). With Wolfe and the angle condition the guaranteed constant is $R=\rho_1(1-\rho_2)q^2/L$, increasing in $q$. For a general direction $q\le1$; for $u=-\nabla f$ the angle is $0$, so $q=1$, the largest possible value. So steepest descent can only improve the constant. Loose wording, but that is the intended reading, and this is why the exam key says T. Depth: M1 §B3.
Constant stepsize algorithms do not satisfy the Sufficient Decrease Lemma for any choice of stepsize.
Explanation
False. Any constant $\alpha\in(0,\tfrac2L)$ satisfies it, with $R=\alpha(1-\frac{L\alpha}2)\gt0$ (for example $\alpha=\frac1L$ gives $R=\frac1{2L}$). It fails only for the bad constants $\alpha\ge\frac2L$. The double negative (“do not satisfy … for any”) turns the claim into “no constant step works”, which is false as soon as one works.
The Sufficient Decrease Lemma is not satisfied by the iterates of Algorithm DESCENT when $\alpha_k$ is chosen by the Wolfe method for inexact line search.
Explanation
False. The first Wolfe condition (Armijo) forces enough decrease, the curvature condition prevents tiny steps, and with the angle condition on $u^{(k)}$ (a hypothesis of the lemma as stated in class) one gets $R=\rho_1(1-\rho_2)q^2/L\gt0$. So Wolfe steps do satisfy the lemma. His solution notes exactly this dependence on the angle condition. Depth: M1 §B3.
5. Rung 1: the efficiency estimate $1/\sqrt T$ and counting iterations
In plain words: Each step must pay for itself: it lowers $f$ by at least $R\|g\|^2$. But $f$ cannot drop forever, because it has a floor. So the gradients cannot all stay large: if every one of $T$ gradients were bigger than some $\varepsilon$, the total drop would exceed the room between the start value and the floor. Adding up the one-step inequalities ("telescoping": the middle values cancel) turns this into a guarantee on the smallest gradient seen. No convexity is used, so all it proves is that we get near a point where the gradient is zero (a stationary point), not near a minimum.
Words and symbols on this stop: $M$ = a lower bound of $f$ ("bounded below": $f(x)\ge M$ for all $x$). $T$ = the number of steps taken. $\min_{0\le k\le T-1}\|\nabla f(x^{(k)})\|$ = the smallest gradient length among $x^{(0)},\dots,x^{(T-1)}$. $A$ = a constant. $\varepsilon$ = the accuracy we want. $\lceil\cdot\rceil$ = round up to an integer.
Precisely ("efficiency estimate"): if $f\in C^1_L$ is bounded below by $M$ and the iterates satisfy the Sufficient Decrease Lemma with constant $R$, then $$R\sum_{k=0}^{T-1}\|\nabla f(x^{(k)})\|^2\le f(x^{(0)})-M\ \Longrightarrow\ \min_{0\le k\le T-1}\|\nabla f(x^{(k)})\|\le\frac{A}{\sqrt T},\quad A=\sqrt{\frac{f(x^{(0)})-M}{R}} .$$ To guarantee some iterate with $\|\nabla f\|\le\varepsilon$ it suffices that $T\ge\dfrac{f(x^{(0)})-M}{R\,\varepsilon^2}$ (rounded up).
The efficiency estimate bounds the smallest gradient length among $x^{(0)},\dots,x^{(T-1)}$, not the gradient at the last iterate.
Explanation
True. The proof compares the sum of $T$ squared gradients with the total available drop; a sum of $T$ numbers is at least $T$ times its smallest term, so only the smallest is controlled. Which iterate is the smallest is not known in advance, so in practice you keep the best one. Depth: M1 §C.
The bound $\min_{k\lt T}\|\nabla f(x^{(k)})\|\le A/\sqrt T$ for gradient descent needs $f$ to be convex.
Explanation
False. It needs only $f\in C^1_L$ (so the Descent Lemma and hence Sufficient Decrease hold) and that $f$ is bounded below. Convexity is not used anywhere in the telescoping argument. Convexity enters only in the $O(1/T)$ gap bound of stop 6. Depth: M1 §C.
$f\in C^1_L$ with $L=4$, $f(x^{(0)})=10$, $f(x)\ge2$ for all $x$, constant step $\alpha=\frac1L$. How many iterations guarantee some iterate with $\|\nabla f\|\le0.2$?
- (a) $40$
- (b) $200$
- (c) $1600$
- (d) $3200$
Explanation
(c). $R=\frac1{2L}=\frac18$ and the available drop is $f(x^{(0)})-M=8$. $T\ge\dfrac{8}{(1/8)(0.2)^2}=\dfrac{8}{0.005}=1600$. The wrong options: (a) $40=8/0.2$ forgets both $R$ and the square on $\varepsilon$; (b) $200=8/0.2^2$ forgets $R$; (d) $3200$ uses $R=\frac1{4L}$, off by a factor 2. Always do three things: find $R$, find the drop, square $\varepsilon$. Depth: M1 §C.
For gradient descent on $f\in C^1_L$ (bounded below, with a safe constant step), the gradient length $\|\nabla f(x^{(k)})\|$ decreases at every iteration.
Explanation
False. Without convexity the gradient can grow after a step. Example: $f(x)=\ln(1+x^2)$ ($L=2$, not convex), $\alpha=\frac12$, $x^{(0)}=3$: $|f'(3)|=0.6$, $x^{(1)}=3-0.5\cdot0.6=2.7$, and $|f'(2.7)|=0.651\gt0.6$. The function value does decrease at every step, the gradient length need not. That is exactly why the estimate speaks of the minimum over the iterates.
The efficiency estimate $\min_{k\lt T}\|\nabla f(x^{(k)})\|\le A/\sqrt T$ holds for every $f\in C^1_L$, even if $f$ is not bounded below.
Explanation
False. The constant $A$ contains $f(x^{(0)})-M$, which is infinite without a lower bound. Counterexample: $f(x)=x$ is in $C^1_L$ (its gradient is constant, so any $L\gt0$ works) but $\|\nabla f\|=1$ at every point, so no iterate has a small gradient and no $A/\sqrt T$ bound can exist. “Bounded below” is part of the hypothesis; say so in an answer. Depth: M1 §C.
$f:\mathbb R^d\to[0,\infty)$, $f\in C^1_L$ with $L=2$, $f(x^{(0)})=20$. DESCENT with inexact line search such that $\dfrac{f(x^{(k)})-f(x^{(k+1)})}{\|\nabla f(x^{(k)})\|^2}\ge0.2$ for all $k$. For which $T$ are we sure to find $\hat x$ with $\|\nabla f(\hat x)\|\le0.1$? Mark all correct.
- (a) $T=1000$
- (b) $T=2000$
- (c) $T=10000$
- (d) $T=20000$
Explanation
(c), (d). Here $R=0.2$ is given directly, $M=0$ ($f\ge0$), so the guarantee needs $\dfrac{20}{0.2\,T}\le(0.1)^2$, i.e. $T\ge\dfrac{100}{0.01}=10000$. His working shows $T\ge10000$. Since a larger $T$ only helps, both $10000$ and $20000$ are guaranteed; $1000$ and $2000$ are below the threshold, so the argument does not guarantee anything for them. (His working stops at the threshold $10000$; (d) is correct by the same inequality.) Note that the given $L=2$ is a distraction: $R$ is already supplied.
6. Convex: $O(1/T)$. Strongly convex: a fixed fraction every step
In plain words: With convexity the graph lies above all its tangent lines, so a small gradient really does mean you are close to the bottom, and the value gap shrinks like $1/T$: halving the error needs twice as many steps. With strong convexity the graph lies above its tangent by at least a parabola of curvature $\mu$, so the function is at least as curved as a bowl; then each step removes a fixed fraction of the gap that is left, and the gap falls geometrically (a linear rate: a straight line on a log plot). The ratio $\kappa=L/\mu$ of the upper to the lower curvature sets how big that fraction is.
Words and symbols on this stop: $\Delta_k=f(x^{(k)})-f^*$ = the gap (how far the value still is above the minimum value $f^*=f(x^*)$). $x^*$ = a minimiser. Convex: $f(y)\ge f(x)+\nabla f(x)^\top(y-x)$. $\mu\gt0$ = strong-convexity constant: $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$. $\kappa=L/\mu\ge1$ = condition number. "PL inequality" $\Delta\le\frac1{2\mu}\|\nabla f\|^2$: small gradient forces small gap.
Precisely: convex, $f\in C^1_L$, $\alpha=\frac1L$: $\Delta_T\le\dfrac{L\|x^{(0)}-x^*\|^2}{2T}$ (so $T\ge\frac{L\|x^{(0)}-x^*\|^2}{2\varepsilon}$ for $\Delta_T\le\varepsilon$). $\mu$-strongly convex, $f\in C^1_L$, constant $\alpha\in(0,\frac2L)$: $\Delta_{k+1}\le(1-\beta)\Delta_k$ with $\beta=2\mu\alpha(1-\frac{L\alpha}2)$, which equals $\frac\mu L=\frac1\kappa$ at $\alpha=\frac1L$; hence $\Delta_T\le(1-\beta)^T\Delta_0$ and $T\ge\dfrac{\ln(\Delta_0/\varepsilon)}{-\ln(1-\beta)}$. Four consequences of strong convexity: $\Delta\le\frac{\|\nabla f\|^2}{2\mu}$, $\ \|x-x^*\|^2\le\frac2\mu\Delta$, $\ \Delta\le\frac L2\|x-x^*\|^2$, $\ \|x-x^*\|\le\frac{\|\nabla f\|}{\mu}$.
For a convex $f\in C^1_L$, gradient descent with step $\frac1L$ guarantees a gap of the form $\Delta_T\le\frac{C}{T}$ for some constant $C$ that does not depend on $T$.
Explanation
True. Indeed $C=\frac{L\|x^{(0)}-x^*\|^2}{2}$. The gap shrinks like $1/T$, called a sublinear or $O(1/T)$ rate. Depth: M1 §D.
$f$ convex, $f\in C^1_L$ with $L=2$, $\|x^{(0)}-x^*\|=3$, $\alpha=\frac1L$. How many iterations guarantee $\Delta_T\le0.01$?
- (a) $90$
- (b) $450$
- (c) $900$
- (d) $1800$
Explanation
(c). $T\ge\dfrac{L\|x^{(0)}-x^*\|^2}{2\varepsilon}=\dfrac{2\cdot9}{2\cdot0.01}=900$. (a) $90$ uses $\varepsilon=0.1$; (b) $450$ forgets the factor $L$; (d) $1800$ forgets the $2$ in the denominator. Depth: M1 §D.
$f$ is $\mu$-strongly convex and $f\in C^1_L$ with $L=8$, $\mu=2$; $\alpha=\frac1L$, $\Delta_0=1$. Using $\Delta_T\le(1-\frac\mu L)^T\Delta_0$, what is the smallest $T$ that guarantees $\Delta_T\le0.01$?
- (a) $16$
- (b) $17$
- (c) $19$
- (d) $25$
Explanation
(b). The factor is $1-\frac\mu L=0.75$. Need $0.75^T\le0.01$, so $T\ge\dfrac{\ln100}{-\ln0.75}=16.01$. Careful: $0.75^{16}=0.010023\gt0.01$ (just fails) and $0.75^{17}=0.0075\lt0.01$. So $T=17$, not $16$: when the log comes out close to an integer, check the boundary. (c) $19$ comes from the cruder bound $e^{-\beta T}$ with $\beta=0.25$ ($T\ge\ln100/0.25=18.4$); it is a valid guarantee but not the smallest. (d) $25$ is not related. Depth: M1 §E.
The convergence rate of Gradient Descent on a convex function depends on the distance from the initial point to the set of optimal points.
Explanation
True. The convex bound $\Delta_T\le\frac{L\|x^{(0)}-x^*\|^2}{2T}$ contains the squared start distance: start twice as far and the guarantee is four times larger. (Read “function” as $C^1_L$ convex, as in class.) Depth: M1 §D.
Let $f$ be strongly convex with global minimum $x^*$. Iterates of Algorithm DESCENT with a constant step size satisfy $\Delta_k-\Delta_{k+1}\ge\gamma_k\Delta_k$ for some $\gamma_k\gt0$, where $\Delta_k=f(x^{(k)})-f(x^*)$.
Explanation
True (his key; read as gradient descent with $\alpha\in(0,\frac2L)$, as his solution says). The linear-rate statement $\Delta_{k+1}\le(1-\beta)\Delta_k$ is the same as $\Delta_k-\Delta_{k+1}\ge\beta\Delta_k$ with $\gamma_k=\beta=2\mu\alpha(1-\frac{L\alpha}{2})\gt0$. Notice the right side is $\Delta_k$ to the first power: a fixed fraction of the gap. Depth: M1 §E.
For gradient descent on a convex $f\in C^1_L$ there exists $C\gt0$ with $f(x^{(k)})-f^*\le\frac{C}{k^2}$ for all $k\ge1$.
Explanation
False. Plain gradient descent has an $O(1/k)$ guarantee, and over the whole class the best guaranteed rate of plain GD is $1/k$ (some convex $C^1_L$ functions decay only that fast), so no $C/k^2$ bound holds for all convex $C^1_L$ $f$. $1/k^2$ belongs to accelerated methods, which are not plain gradient descent. Do not confuse the $\frac1{\sqrt T}$ of stop 5 (gradient length, no convexity), $\frac1T$ (gap, convex) and the geometric rate (strongly convex). Depth: M1 §D.
$f$ is strongly convex, DESCENT is run with an inexact line search. Then it can be shown that $\Delta_k-\Delta_{k+1}\ge C\,\Delta_k^2$ for a constant $C\gt0$.
Explanation
False (his key). With only “an inexact line search” (no step rule) nothing forces any decrease at all (see 4.4), so no such $C$ exists. The correct statement under a legal step is with $\Delta_k$ to the first power: $\Delta_k-\Delta_{k+1}\ge\beta\Delta_k$. Remark (so you are not confused): for a legal constant step the squared version also holds with $C=\beta/\Delta_0$, because $\Delta_k\le\Delta_0$ gives $\beta\Delta_k\ge(\beta/\Delta_0)\Delta_k^2$ (verified in the script), but it is weaker and not the form he states.
7. Quadratics: eigen-modes, step range, $\rho$, exact line search, condition number
In plain words: On a quadratic $f=\frac12x^\top Qx-h^\top x+c$ everything can be computed exactly. Split the error $x-x^*$ into independent "modes", one per eigenvector of $Q$ (the principal axes of the elliptical level sets). Gradient descent with a constant step multiplies mode $i$ by the plain number $1-\alpha\lambda_i$ at every step. The step must be small enough for the steepest mode (largest $\lambda$) not to overshoot, yet the flattest mode (smallest $\lambda$) then creeps. The ratio of steepest to flattest is the condition number $\kappa$; the larger it is, the worse the zig-zag. If all modes are equally steep ($\kappa=1$, circles) one step suffices.
Words and symbols on this stop: $Q$ = symmetric positive definite matrix (the Hessian). $\lambda_i$ = its eigenvalues, $v_i$ = eigenvectors; $\lambda_{\min},\lambda_{\max}$ = smallest, largest. $e^{(k)}=x^{(k)}-x^*$ = the error vector. $\rho(\alpha)=\max_i|1-\alpha\lambda_i|$ = the shrink factor of the slowest mode. $\kappa=\lambda_{\max}/\lambda_{\min}$. $E(x)=\frac12(x-x^*)^\top Q(x-x^*)=\Delta$ (his name for the gap on a quadratic). "Preconditioning" = changing variables so that $\kappa=1$.
Precisely: $\nabla f(x)=Qx-h=Qe$, so $e^{(k+1)}=(I-\alpha Q)e^{(k)}$ and mode $i$ is multiplied by $1-\alpha\lambda_i$. Converges from every start iff $0\lt\alpha\lt\frac2{\lambda_{\max}}$. Rate: $\|e^{(k)}\|\le\rho(\alpha)^k\|e^{(0)}\|$ and $\Delta_k\le\rho^{2k}\Delta_0$. Best constant step: $\alpha^*=\frac2{\lambda_{\min}+\lambda_{\max}}$, $\rho^*=\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}=\frac{\kappa-1}{\kappa+1}$. Exact line search ($\alpha_k=\frac{g^\top g}{g^\top Qg}$): $\Delta_{k+1}\le\bigl(\frac{\kappa-1}{\kappa+1}\bigr)^2\Delta_k$, i.e. $E(x^{(k+1)})\le\rho^2E(x^{(k)})$ with $\rho=\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}$. Change of variables $x=UD^{-1}y$ with $Q=U\Lambda U^\top$, $D=\Lambda^{1/2}$: the Hessian in $y$ is $I$, $\kappa=1$, one step.
Steepest descent with exact line search, applied to a quadratic whose Hessian has all its eigenvalues equal, converges in one step.
Explanation
True. If every eigenvalue is $\lambda$ then $Q=\lambda I$ and the level sets are circles. The gradient $g=\lambda(x^{(0)}-x^*)$ points straight at $x^*$, and the exact step is $\alpha_0=\frac{g^\top g}{g^\top Qg}=\frac{1}{\lambda}$, which gives $x^{(1)}=x^{(0)}-\frac1\lambda\lambda(x^{(0)}-x^*)=x^*$. In rate language: $\rho=\frac{\lambda-\lambda}{\lambda+\lambda}=0$. Depth: M1 §F3.
$Q$ has eigenvalues $2,5,10$. Gradient descent $x^{(k+1)}=x^{(k)}-\alpha\nabla f(x^{(k)})$ converges from every start for exactly which constant steps $\alpha$?
- (a) $0\lt\alpha\lt0.1$
- (b) $0\lt\alpha\lt0.2$
- (c) $0\lt\alpha\lt0.4$
- (d) $0\lt\alpha\lt1$
Explanation
(b). Mode $i$ is multiplied by $1-\alpha\lambda_i$ and must satisfy $|1-\alpha\lambda_i|\lt1$, i.e. $0\lt\alpha\lt2/\lambda_i$. All three at once: $\alpha\lt\min_i\frac2{\lambda_i}=\frac2{\lambda_{\max}}=0.2$. (a) $0.1$ is safe but not the whole range; (c) $0.4=2/\lambda=2/5$ for the middle mode only: the $\lambda=10$ mode gives $|1-4|=3$, divergence; (d) is far too big. The end point $0.2$ itself fails ($\rho=1$). Depth: M1 §F1.
Same $Q$ (eigenvalues $2,5,10$). Which constant step is best, and what is its contraction factor $\rho$ on $\|x-x^*\|$?
- (a) $\alpha=\frac16$, $\rho=\frac23$
- (b) $\alpha=0.1$, $\rho=0.8$
- (c) $\alpha=\frac16$, $\rho=\frac49$
- (d) $\alpha=0.2$, $\rho=0$
Explanation
(a). Balance the two ends: $1-2\alpha=-(1-10\alpha)$ gives $\alpha=\frac2{2+10}=\frac16$, and then $\rho=\frac{10-2}{10+2}=\frac23$ (the middle mode $|1-\frac56|=\frac16$ is not binding). (b) $\alpha=0.1=1/\lambda_{\max}$ is safe but slower: $\rho=\max(0.8,0.5,0)=0.8$. (c) mixes in $\frac49=\bigl(\frac23\bigr)^2$, which is the factor on the value $\Delta$ (square for value, no square for distance). (d) $\alpha=0.2=2/\lambda_{\max}$ is the end point of the safe range: the $\lambda=10$ mode gets factor $1-2=-1$, so it only flips sign forever, $\rho=1$, no convergence (the $\lambda=5$ mode is the one that is killed, with factor $0$). Depth: M1 §F1.
Run (DESCENT) with $u^{(k)}=-\nabla f(x^{(k)})$ and $\alpha_k=\frac1L$ on $h(x)=\frac12x^\top Qx+b^\top x+c$, whose eigenvalues are all greater than $1$ but less than $7$. From any start $\hat x$, after $5$ iterations we can be assured that $h(x^{(5)})-h(x^*)\le\left(\frac34\right)^5\bigl(h(\hat x)-h(x^*)\bigr)$.
Explanation
False (his key). The step is $\frac1L$, but $L$ is not given: any $L\ge7$ is a valid constant (stop 3). With $L=100$ the step is $0.01$; for eigenvalues $1.01$ and $6.99$ the slowest mode shrinks by $0.9899$, so $\Delta$ shrinks by only about $0.98$ per step and $0.904$ after five steps, far from $(\frac34)^5=0.237$. Careful: had $L$ been exactly $7$, then $\rho\lt\frac67$ and $\Delta$ would shrink by $\rho^2\lt(\frac67)^2=0.735\lt\frac34$ per step and the claim would be true. In the exam say what $L$ you assume, then answer. Depth: M1 practice P1.
Convex quadratic, Hessian eigenvalues between $1$ and $3$, steepest descent with exact line search, $E(x^{(0)})=1$ where $E(x)=\frac12(x-x^*)^\top H(x-x^*)$. After how many iterations is $\|x^{(T)}-x^*\|\le10^{-2}$ guaranteed?
- (a) $T=4$
- (b) $T=7$
- (c) $T=8$
- (d) $T=25$
Explanation
(c). Per step $E_{k+1}\le\bigl(\frac{3-1}{3+1}\bigr)^2E_k=\frac14E_k$, so $E_T\le4^{-T}$. Value to distance: $E\ge\frac{\lambda_{\min}}2\|x-x^*\|^2=\frac12\|x-x^*\|^2$, so $\|x^{(T)}-x^*\|^2\le2E_T\le2\cdot4^{-T}$. Need $2\cdot4^{-T}\le10^{-4}$: $4^T\ge2\times10^4$, $T\ge7.14$, so $T=8$ ($T=7$ gives $1.2\times10^{-4}\gt10^{-4}$, just fails: option (b)). (a) $4$ drops the factor $2$ and squares nothing ($4^{-T}\le10^{-2}$). (d) $25$ uses the general strongly convex factor $1-\frac13=\frac23$ on $\Delta$ instead of the exact quadratic factor $\frac14$. Depth: M1 §F2.
$Q=\mathrm{diag}(1,4)$ unless stated. Steepest descent is run with exact line search unless stated. Mark all situations in which the iterate lands exactly on $x^*$ after one step.
- (a) $Q=3I$ (any start)
- (b) $Q=\mathrm{diag}(1,4)$, start with $x^{(0)}-x^*=(4,1)$ (a worst-case start for exact line search: the bound is attained)
- (c) $Q=\mathrm{diag}(1,4)$ after the change of variables $x=U\Lambda^{-1/2}y$, steepest descent in the variable $y$ (any start)
- (d) $Q=\mathrm{diag}(1,4)$, constant step $\alpha=\frac14$, start with $x^{(0)}-x^*=(4,1)$
Explanation
(a), (c). (a) $\kappa=1$: one step (stop 7 card). (c) The Hessian in $y$ is $(U\Lambda^{-1/2})^\top Q(U\Lambda^{-1/2})=\Lambda^{-1/2}\Lambda\Lambda^{-1/2}=I$, so it is case (a) again; same $x^*$ and same $f^*$, only the coordinates changed. (b) is the worst start (components in ratio $4:1$): $\alpha_0=0.4$ and $x^{(1)}-x^*=(2.4,-0.6)\ne0$, with $E$ falling by exactly $0.36$ each step and never reaching $0$ in finitely many steps. (d) With $\alpha=\frac14=\frac1{\lambda_{\max}}$ the second component is killed ($1-\frac44=0$) but the first becomes $4\cdot0.75=3$: result $(3,0)\ne0$. One step needs the factor $1-\alpha\lambda_i=0$ for every mode present in the error. Depth: M1 §F2–F3.
The rigorous version
- Algorithm DESCENT. $x^{(k+1)}=x^{(k)}+\alpha_ku^{(k)}$ with $u^{(k)\top}\nabla f(x^{(k)})\lt0$. Gradient descent: $u^{(k)}=-\nabla f(x^{(k)})$. Exact line search: $\alpha_k=\arg\min_{\alpha\gt0}f(x^{(k)}+\alpha u^{(k)})$, and then $\nabla f(x^{(k+1)})^\top u^{(k)}=0$. On $f=\frac12x^\top Qx-h^\top x+c$: $\alpha_k=\frac{-g^\top u}{u^\top Qu}$.
- Armijo / Wolfe ($0\lt\rho_1\lt\rho_2\lt1$): $f(x+\alpha u)\le f(x)+\rho_1\alpha\nabla f(x)^\top u$ (Armijo); and $\nabla f(x+\alpha u)^\top u\ge\rho_2\nabla f(x)^\top u$ (curvature). Both together = Wolfe. Backtracking enforces Armijo only.
- $C^1_L$ and the Descent Lemma. $\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|$ for all $x,y$ $\Rightarrow$ $f(y)\le f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2$ for all $x,y$. No convexity needed. Any larger $L$ is also valid.
- One step and Sufficient Decrease Lemma. Constant $\alpha$: $f(x^{(k)})-f(x^{(k+1)})\ge\alpha(1-\frac{L\alpha}{2})\|\nabla f(x^{(k)})\|^2$, positive iff $0\lt\alpha\lt\frac2L$; best $\alpha=\frac1L$, giving $\frac1{2L}$. Exact line search: $\ge\frac1{2L}\|\nabla f\|^2$. Wolfe with $-\nabla f^\top u\ge q\|\nabla f\|\|u\|$: $R=\frac{\rho_1(1-\rho_2)q^2}{L}$. Lemma: $f(x^{(k)})-f(x^{(k+1)})\ge R\|\nabla f(x^{(k)})\|^2$ for some $R\gt0$ and all $k$.
- Efficiency estimate (no convexity). $f\in C^1_L$, $f\ge M$, Sufficient Decrease with $R$: $\min_{0\le k\le T-1}\|\nabla f(x^{(k)})\|\le\sqrt{\frac{f(x^{(0)})-M}{R}}\cdot\frac1{\sqrt T}$; to reach $\varepsilon$: $T\ge\frac{f(x^{(0)})-M}{R\varepsilon^2}$.
- Convex, $C^1_L$, $\alpha=\frac1L$. $f(x^{(T)})-f^*\le\frac{L\|x^{(0)}-x^*\|^2}{2T}$, i.e. $O(1/T)$ (not $O(1/T^2)$ for plain gradient descent).
- $\mu$-strongly convex, $C^1_L$. $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$. Consequences: $\Delta\le\frac1{2\mu}\|\nabla f\|^2$; $\|x-x^*\|^2\le\frac2\mu\Delta$; $\Delta\le\frac L2\|x-x^*\|^2$; $\|x-x^*\|\le\frac1\mu\|\nabla f\|$. Constant step: $\Delta_{k+1}\le(1-\beta)\Delta_k$, $\beta=2\mu\alpha(1-\frac{L\alpha}2)$ ($=\frac1\kappa$ at $\alpha=\frac1L$); $\Delta_T\le(1-\beta)^T\Delta_0$; $\log\frac{\Delta_T}{\Delta_0}\le-\beta T$; $T\ge\frac{\ln(\Delta_0/\varepsilon)}{-\ln(1-\beta)}$. With $\alpha=\frac2{L+\mu}$: $\|x^{(k+1)}-x^*\|\le\frac{\kappa-1}{\kappa+1}\|x^{(k)}-x^*\|$.
- Quadratics ($Q\succ0$). $e^{(k+1)}=(I-\alpha Q)e^{(k)}$; converges from every start iff $0\lt\alpha\lt\frac2{\lambda_{\max}}$; $\rho(\alpha)=\max_i|1-\alpha\lambda_i|$; best $\alpha^*=\frac2{\lambda_{\min}+\lambda_{\max}}$, $\rho^*=\frac{\kappa-1}{\kappa+1}$; exact line search: $E(x^{(k+1)})\le\left(\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}\right)^2E(x^{(k)})$; $\kappa=1$: one step; $x=U\Lambda^{-1/2}y$ makes the Hessian $I$.
- Reading traps. Decide upper/lower parabola from the direction of the inequality, not from the letter ($\mu$ vs $L$; in 2016 he wrote the upper bound with $\mu$). $2/L$ is excluded. It is the smallest gradient, not the last. State “bounded below”. Round $T$ up. Square for the value, no square for the distance.
Full derivations and every past question on this topic: M1 Convergence Rates.
Final mixed round (exam level)
The Wolfe procedure for inexact line search is always more efficient than the Armijo–Goldstein procedure.
Explanation
False. Wolfe is Armijo plus a curvature test, so it accepts a smaller set of steps and each trial costs an extra gradient evaluation; nothing makes it faster in every case. What the curvature test buys is a guarantee: it rules out tiny steps, which is what lets one prove the Sufficient Decrease Lemma with $R=\rho_1(1-\rho_2)q^2/L$ (stop 4). That is a statement about guarantees, not about “always more efficient”; the word “always” is the trap.
$f\in C^1_L$ with $L=0.5$, $f(x^{(0)})=f(0)=0$ and $f^*=-1$. Steepest descent with exact line search. What is the smallest number of iterations that guarantees some iterate with $\|\nabla f\|\le0.1$?
- (a) $10$
- (b) $50$
- (c) $100$
- (d) $200$
Explanation
(c). Exact line search gives $R=\frac1{2L}=1$ (since $2L=1$). Available drop: $0-(-1)=1$. $T\ge\dfrac{1}{1\cdot0.1^2}=100$. (a) $10=1/0.1$ forgets to square $\varepsilon$; (d) $200$ uses $R=\frac12$, e.g. $\frac1{4L}$; (b) $50$ is not tied to any slip (it would need $R=2$). Part (c) of the paper (a constant step) gives $100$ again at the best step $\alpha=\frac1L=2$. Depth: M1 §C.
$f\in C^1_L$ convex, $L=5$, and $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac12\|x-y\|^2$ for all $x,y$. Given $\|\nabla f(x^{(0)})\|=\sqrt2$, which is the tightest bound on $\|x^{(0)}-x^*\|^2$ that follows from the consequences of strong convexity?
- (a) $1$
- (b) $2$
- (c) $4$
- (d) $10$
Explanation
(b). Read the constants: the lower parabola has $\frac12\|\cdot\|^2=\frac\mu2\|\cdot\|^2$, so $\mu=1$ (and $L=5$ is a distractor here). Gap from gradient: $\Delta_0\le\frac{\|\nabla f\|^2}{2\mu}=\frac22=1$. Distance from gap: $\|x^{(0)}-x^*\|^2\le\frac2\mu\Delta_0\le2$. (Directly: $\|x^{(0)}-x^*\|\le\frac{\|\nabla f\|}{\mu}=\sqrt2$, same.) (a) $1$ is the gap bound mistaken for the distance; (c) $4$ comes from using $\|\nabla f\|^2/\mu$ for the gap (forgetting the $2$); (d) $10$ involves $L$ and nothing justifies it. $4$ and $10$ are true but weaker; the question asks for the tightest. Depth: M1 §E.
$f$ is $\mu$-strongly convex and $f\in C^1_L$, with minimiser $x^*$, $\Delta=f(x)-f(x^*)$. Mark all inequalities that hold for every $x$.
- (a) $\Delta\le\dfrac{1}{2\mu}\|\nabla f(x)\|^2$
- (b) $\|x-x^*\|^2\le\dfrac{2}{\mu}\Delta$
- (c) $\Delta\le\dfrac L2\|x-x^*\|^2$
- (d) $\|\nabla f(x)\|\le\mu\|x-x^*\|$
Explanation
(a), (b), (c). (a) is the lower parabola minimised over $y$ (the PL inequality). (b) is the lower parabola at $x=x^*$ where $\nabla f(x^*)=0$. (c) is the upper parabola at $x^*$. (d) has the inequality the wrong way: strong convexity gives $\|\nabla f(x)\|\ge\mu\|x-x^*\|$ (equivalent to $\|x-x^*\|\le\|\nabla f\|/\mu$). Counterexample to (d): $f=\frac12(x_1^2+4x_2^2)$ ($\mu=1$), $x=(0,1)$: $\|\nabla f\|=4\gt\mu\|x\|=1$. Depth: M1 §A3.
For a quadratic with condition number $\kappa\gt1$, the exact-line-search factor $\left(\frac{\kappa-1}{\kappa+1}\right)^2$ on $\Delta$ is smaller (better) than the general strongly convex factor $1-\frac1\kappa$ obtained with $\alpha=\frac1L$.
Explanation
True. Compare $\frac{(\kappa-1)^2}{(\kappa+1)^2}$ with $\frac{\kappa-1}{\kappa}$. Divide out $\kappa-1\gt0$: the claim is $\frac{\kappa-1}{(\kappa+1)^2}\lt\frac1\kappa$, i.e. $\kappa^2-\kappa\lt\kappa^2+2\kappa+1$, i.e. $0\lt3\kappa+1$, always true. Example $\kappa=5$: $\frac{16}{36}=0.444$ versus $0.8$. The general theorem is not wrong, just less sharp, because it does not know $f$ is a quadratic. Depth: M1 practice P9.
Steepest descent with exact line search on a quadratic reaches $x^*$ in a single step from $x^{(0)}$ only if all eigenvalues of $Q$ are equal.
Explanation
False. “All eigenvalues equal” is sufficient (from every start) but not necessary for one particular start. If $x^{(0)}-x^*$ is itself an eigenvector of $Q$ (say $Q=\mathrm{diag}(1,4)$, $x^{(0)}-x^*=(2,0)$), then $g=Qe=\lambda e$ and $\alpha_0=\frac1\lambda$ lands exactly on $x^*$. The word “only if” is the trap: the claim holds for every start iff $\kappa=1$, but a lucky start works anyway. (Checked in the script.)