Tutorials › Statistical Learning (Graduate) › Gradient Descent Selects The Minimum-Norm Solution

Interpolation and Implicit Regularization · Tutorial 950 of 989

Gradient Descent Selects The Minimum-Norm Solution

See how zero-initialized gradient descent selects the minimum-Euclidean-norm interpolator, and why both consistency and the step size matter.

Advanced 11 min read

What You'll Learn

  • Define the minimum-Euclidean-norm solution of a consistent linear system.
  • Derive the gradient-descent update for squared loss.
  • State a sufficient step-size condition for convergence.
  • Prove that zero initialization keeps every iterate in the row space of the design matrix.
  • Use a singular value decomposition to identify the limit of the iterates.
  • Distinguish convergence to an interpolator from selection of the minimum-norm interpolator.

Why the Optimization Path Matters

When a linear system has more coefficients than independent equations, it can have many exact solutions. Fitting the data perfectly therefore does not, by itself, say which solution an optimization algorithm will produce. The choice matters in statistical learning: among solutions with the same training loss, their coefficient vectors can have different Euclidean norms and make different predictions away from the observed design.

For squared loss, gradient descent has a precise selection rule when it starts at zero. Under a suitable step size, its iterates converge to the solution with smallest Euclidean norm. The conclusion concerns both the objective and the initialization: the loss has many minimizers, while the optimization path chooses one particular minimizer.

Setup and Definitions

Let \(A\in\mathbb{R}^{n\times p}\), where \(p>n\), and let \(b\in\mathbb{R}^n\). Consider the squared loss

$$ L(w)=\frac{1}{2}\|Aw-b\|_2^2,\qquad w\in\mathbb{R}^p. $$

Assume the system \(Aw=b\) is consistent: at least one \(w\) satisfies it. Consistency does not require the rows of \(A\) to be linearly independent. Write \(r=\operatorname{rank}(A)\), and let \(\|A\|_{\mathrm{op}}\) denote the largest singular value of \(A\).

Definition: A minimum-Euclidean-norm solution of \(Aw=b\) is a solution \(w_{\min}\) whose norm is no larger than that of any other solution: \(\|w_{\min}\|_2\leq\|w\|_2\) whenever \(Aw=b\). For a consistent linear system, this solution is unique. It is also called the minimum-norm interpolator, because it fits every observed response exactly.

The gradient is \(\nabla L(w)=A^\top(Aw-b)\). With a fixed step size \(\eta>0\), gradient descent from zero is the sequence

$$ w_0=0,\qquad w_{t+1}=w_t-\eta A^\top(Aw_t-b),\quad t=0,1,2,\ldots. $$

The factor \(1/2\) in the definition of \(L\) makes this gradient expression direct. Using the unscaled loss \(\|Aw-b\|_2^2\) would multiply the gradient by \(2\), so its step-size condition would need to be adjusted accordingly.

Three Worked Examples

Worked Example: A One-Equation System

Take \(A=\begin{bmatrix}1&1\end{bmatrix}\), \(b=2\), and \(\eta=1/4\). The system is \(w_1+w_2=2\), so it has infinitely many solutions. Since \(\|A\|_{\mathrm{op}}^2=2\), the step size satisfies \(0<\eta<2/\|A\|_{\mathrm{op}}^2=1\).

At an iterate \(w_t=(a_t,a_t)\), the residual is \(2a_t-2\), and the update adds \(-\eta(2a_t-2)\) to each coordinate. Starting with \(a_0=0\), this gives

$$ a_{t+1}=a_t-\frac14(2a_t-2) =\frac12a_t+\frac12. $$

It follows by induction that \(a_t=1-2^{-t}\): it is true at \(t=0\), and substituting it into the recurrence gives \(a_{t+1}=1-2^{-(t+1)}\). Therefore \(w_t\) converges to \((1,1)\), which satisfies the equation. Every solution has the form \((s,2-s)\), and

$$ s^2+(2-s)^2=2(s-1)^2+2\geq 2. $$

Equality holds only at \(s=1\). Thus the limit is the unique minimum-norm solution.

Worked Example: Unequal Feature Scales

Let \(A=\begin{bmatrix}1&2\end{bmatrix}\), \(b=3\), and \(\eta=1/10\). Here \(\|A\|_{\mathrm{op}}^2=1^2+2^2=5\), so \(0<1/10<2/5\). The minimum-norm solution is

$$ w_{\min}=A^\top(AA^\top)^{-1}b =\begin{bmatrix}1\\2\end{bmatrix}\frac{3}{5} =\begin{bmatrix}3/5\\6/5\end{bmatrix}. $$

To check the formula, \(Aw_{\min}=3/5+2(6/5)=3\). Also, every solution has the form \((3-2s,s)\). Its squared norm is

$$ (3-2s)^2+s^2=5s^2-12s+9 =5\left(s-\frac65\right)^2+\frac95, $$

which is minimized at \(s=6/5\), giving \((3/5,6/5)\). The gradient update is \(w_{t+1}=w_t+\eta(3-Aw_t)A^\top\), so every iterate is a multiple of \(A^\top\). Writing \(w_t=c_tA^\top\) yields \(c_{t+1}=c_t+\frac1{10}(3-5c_t)\), with \(c_0=0\). Thus \(c_{t+1}=c_t/2+3/10\), and \(c_t=(3/5)(1-2^{-t})\). The iterates converge to the stated minimum-norm solution.

Worked Example: A Consistent System With Dependent Rows

Consider

$$ A=\begin{bmatrix}1&1&0\\2&2&0\end{bmatrix}, \qquad b=\begin{bmatrix}1\\2\end{bmatrix}, \qquad \eta=\frac1{20}. $$

The second equation is twice the first, so the system is consistent but \(A\) does not have full row rank. Its solutions satisfy \(w_1+w_2=1\), with \(w_3\) unrestricted. Minimizing \(w_1^2+w_2^2+w_3^2\) gives \(w_1=w_2=1/2\) and \(w_3=0\): indeed, \(w_1^2+w_2^2\geq(w_1+w_2)^2/2=1/2\), with equality when \(w_1=w_2\), and the norm is smallest at \(w_3=0\).

For a direct gradient-descent check, \(A^\top b=(5,5,0)^\top\) and \(A^\top A\) has eigenvalue \(10\) in the direction \((1,1,0)^\top\). The update from zero therefore remains in that direction. Writing \(w_t=(c_t,c_t,0)\), its residual is \((2c_t-1,4c_t-2)^\top\), and the first coordinate of \(A^\top(Aw_t-b)\) is \(10c_t-5\). Hence

$$ c_{t+1}=c_t-\frac1{20}(10c_t-5) =\frac12c_t+\frac14. $$

Starting from \(c_0=0\) gives \(c_t=\frac12(1-2^{-t})\). Thus \(w_t\) converges to \((1/2,1/2,0)\), the minimum-norm solution. The step size is admissible because \(\|A\|_{\mathrm{op}}^2=10\) and \(1/20<2/10\).

Main Result and Proof

Theorem: Suppose \(Aw=b\) is consistent, \(A\neq 0\), and gradient descent uses the update above with \(w_0=0\) and \(0<\eta<2/\|A\|_{\mathrm{op}}^2\). Then \(w_t\) converges to the unique minimum-Euclidean-norm solution of \(Aw=b\).

To prove the claim, take a singular value decomposition restricted to the nonzero singular values:

$$ A=U_r\Sigma_rV_r^\top,\qquad \Sigma_r=\operatorname{diag}(s_1,\ldots,s_r),\qquad s_j>0. $$

The columns of \(U_r\) and \(V_r\) are orthonormal, and \(s_j\leq\|A\|_{\mathrm{op}}\). Consistency means \(b\) lies in the column space of \(A\), so \(b=U_rc\), where \(c=U_r^\top b\).

First, \(w_t\) lies in the span of the columns of \(V_r\) for every \(t\). It is true at \(t=0\), and each update adds a vector in the range of \(A^\top\), which is that span. Write \(w_t=V_rz_t\). Substituting into the update, and using \(A^\top=V_r\Sigma_rU_r^\top\), gives

$$ z_{t+1} =z_t-\eta\Sigma_r(\Sigma_rz_t-c). $$

Consequently, each coordinate obeys

$$ z_{j,t+1}=(1-\eta s_j^2)z_{j,t}+\eta s_jc_j,\qquad z_{j,0}=0. $$

Solving this scalar recurrence yields

$$ z_{j,t}=\frac{c_j}{s_j}\left[1-(1-\eta s_j^2)^t\right]. $$

The step-size assumption gives \(0<\eta s_j^2<2\), so \(|1-\eta s_j^2|<1\). Therefore \(z_{j,t}\to c_j/s_j\) for each \(j\), and

$$ w_t\longrightarrow V_r\Sigma_r^{-1}U_r^\top b. $$

It remains to verify that this limit is the minimum-norm solution, rather than merely some solution. Denote it by \(w_*\). Then \(Aw_*=U_rU_r^\top b=b\), since \(b\) lies in the column space of \(A\). Any other solution \(w\) can be decomposed uniquely as \(w=V_ra+v\), where \(v\) is orthogonal to every column of \(V_r\). Because \(Av=0\), the equation \(Aw=b\) forces \(\Sigma_ra=U_r^\top b\), hence \(a=\Sigma_r^{-1}U_r^\top b\). Orthogonality gives

$$ \|w\|_2^2 =\|a\|_2^2+\|v\|_2^2 \geq \|a\|_2^2 =\|w_*\|_2^2, $$

with equality only when \(v=0\). This proves both minimality and uniqueness, and completes the proof. \(\square\)

What Converges, and What the Step Size Guarantees

The theorem gives convergence of the coefficients, not just a vanishing training loss. In fact, the same coordinate calculation shows that the residual converges to zero. Since \(Aw_t-b=U_r(\Sigma_rz_t-c)\), its \(j\)th coordinate in the \(U_r\) basis is \(-c_j(1-\eta s_j^2)^t\). Define \(q=\max_{1\leq j\leq r}|1-\eta s_j^2|\), which is less than one. Then

$$ \|Aw_t-b\|_2^2 =\sum_{j=1}^r c_j^2|1-\eta s_j^2|^{2t} \leq q^{2t}\|b\|_2^2. $$

The inequality uses \(\sum_j c_j^2=\|b\|_2^2\), which holds because \(b=U_rc\) and \(U_r\) has orthonormal columns. This bound describes convergence for a fixed finite-dimensional system; it does not claim that the rate is uniform over matrices whose nonzero singular values can become arbitrarily small.

The strict step-size condition also matters. If a step size is too large, a coordinate associated with a large singular value can fail to contract. At the boundary \(\eta=2/\|A\|_{\mathrm{op}}^2\), a coordinate at the largest singular value has multiplier \(-1\), so it need not converge. The theorem uses a strict inequality to ensure contraction in every nonzero singular direction.

Why Zero Initialization Selects This Solution

The decisive geometric fact in the proof is that every gradient lies in the row space of \(A\), the span of the vectors seen by the data. Starting at zero keeps the whole sequence in that row space. The minimum-norm solution is precisely the solution in that space: any additional component orthogonal to it leaves \(Aw\) unchanged while increasing the squared norm.

This explains why exact fitting alone is not enough to identify the algorithm's limit. The data specify a set of solutions; the initialization and update determine which member is reached. Here the initialization is zero, and the update never adds a component in the null space of \(A\). These facts, combined with convergence, yield minimum-norm selection.

Common Pitfalls

  • Claiming every interpolator is the limit. The reasoning “the loss reaches zero, so the algorithm has found the minimum-norm solution” skips the selection argument. The correction is to show that the iterates stay in the row space and then establish convergence.
  • Assuming consistency means full row rank. Consistency only means that at least one solution exists. Rows can be dependent, as in the third example; the proof uses the nonzero singular directions and still applies.
  • Ignoring the step size. Convergence does not follow for an arbitrary positive step size. The condition \(0<\eta<2/\|A\|_{\mathrm{op}}^2\) ensures that every nonzero singular direction contracts.
  • Forgetting the loss scaling. The update here is for \(L(w)=\frac12\|Aw-b\|_2^2\). Removing the factor \(1/2\) doubles the gradient, so the same numerical step size does not give the same iteration.
Key takeaway: For a consistent linear system and a stable fixed step size, gradient descent on half squared loss, initialized at zero, converges to the unique interpolator with smallest Euclidean norm. The zero start and the step-size condition are essential parts of this statement.

Check Your Understanding

Use the definitions and argument above to check each point.

  1. Why does consistency imply that \(b\) has no component orthogonal to the column space of \(A\)?
  2. Explain why every gradient-descent iterate from \(w_0=0\) lies in the row space of \(A\).
  3. For a nonzero singular value \(s_j\), what condition on \(\eta\) makes the corresponding scalar iteration contract?
  4. Why does adding a vector in the null space of \(A\) preserve the fitted values but increase the norm unless that vector is zero?
  5. What changes in the step-size condition if the loss is defined as \(\|Aw-b\|_2^2\), without the factor \(1/2\)?
Clinical Biostats