A matrix stretches three perpendicular directions by , and , and you may keep only one independent output direction. Keeping the stretch by seems sensible, but a competing rank-one matrix may use entirely different directions, and “best” means nothing until the error has a size. This lesson fixes two ways to measure that size, the spectral norm and the Frobenius norm, and proves the Eckart-Young theorem. Cutting the singular value decomposition after terms gives a best approximation of rank at most in both norms, with the errors read off from the discarded singular values. The lesson also settles when that best approximation is the only one.
Key terms
Spectral norm
Definition Let be or , let , and give both and the Euclidean norm . The spectral norm, or operator -norm, of is
The maximum exists because the unit sphere of is closed and bounded and is continuous. It gives for every . For unitary matrices and (orthogonal when ),
because keeps the length of every output and maps the unit sphere onto itself. With a singular value decomposition this gives , the largest singular value. Indeed, for a unit vector the output has squared length , with equality at . When is an approximation error , its spectral norm is the error in the worst input direction.
In plain words Feed the matrix every unit vector and record the longest output. As an error measure it reports the worst direction and ignores how the error is spread over the others.
Example Take
The orthonormal vectors and , written as columns, satisfy and . A unit vector has and
with equality at . So , although no entry exceeds and each column has length .
Frobenius norm
Definition The Frobenius norm of is the nonnegative number with
It is also unchanged by unitary factors, for unitary and of sizes and . Multiplying on the left by keeps the length of every column, and multiplying on the right by keeps the length of every row. With a singular value decomposition this gives , where . Taking with orthonormal columns shows that
for every orthonormal basis of , since the vectors are the columns of . The two norms compare as , because at most singular values are nonzero and none exceeds .
In plain words Square the absolute value of every entry, add, and take the root, exactly as if the matrix were one long vector. As an error measure it adds up the squared error over a full set of perpendicular input directions instead of reporting only the worst one.
Example For the same with rows and , the entries give , which equals . The orthonormal inputs and have squared outputs and , and the standard basis has squared outputs and , the squared column lengths. Both totals are . Here is smaller than .
Truncated SVD
Definition Let have a full singular value decomposition , with unitary and , columns and , and singular values , where , so that for . For , the truncated SVD of at rank is
with . In matrix form , where and keep the first columns of and and . Equivalently , which projects every column of orthogonally onto the span of . Its rank is , so at most . The discarded part is
which equals where keeps only the diagonal entries . By unitary invariance, for ,
The matrix is built from one chosen decomposition. When , or when , every singular value decomposition of gives the same . A tie is the case where the choice matters.
In plain words Write as a sum of rank-one layers, strongest first, and keep the first layers. The error is the sum of the layers you dropped, and its size in either norm comes straight from the dropped singular values.
Example The real matrix
has orthogonal columns, since , so . Its singular values are and , with , , and , and completes . The rank-one truncation and its error are
The error has a single nonzero column, of length , so its spectral and Frobenius norms both equal .
Best low-rank approximation
Definition Let , let be an integer, and fix a norm on , here the spectral or the Frobenius norm. A best approximation of of rank at most is a matrix with and
for every with . The constraint is rank at most , not exactly , so competitors of smaller rank count. For the competitors do not form a subspace, so the projection theorem for subspaces does not apply. With , for instance, has rank while both summands have rank . Two cases are settled at once. If , the only competitor is the zero matrix and the error is . If , then is admissible with error , and it is the only best approximation, because a zero error forces . The real question is the range .
In plain words Among all matrices that use at most independent output directions, find one as close to as possible. How close depends on how closeness is measured, so the norm is part of the question.
Example Let and . The competitor leaves the error , of spectral norm and Frobenius norm . The competitor leaves , of spectral norm and Frobenius norm . The theorem below shows that no rank-one matrix at all does better than these two numbers. With the matrix leaves , of norm in both senses. For the two norms give different values, and , so an error is meaningless until its norm is named.
Eckart-Young theorem
Definition Let , where is or , with a full singular value decomposition in the notation above, and let . Then every with satisfies
and the truncated SVD attains both bounds. So is a best approximation of rank at most in both norms, with minimum errors and . For the matrix itself is admissible.
For the spectral bound, rank-nullity gives , and the span of has dimension . The two dimensions add to more than , so the subspaces share a unit vector , where . Since and with orthonormal ,
For the Frobenius bound, let be the orthogonal projector onto the column space of , of rank . Since , the error splits as , and the columns of the two parts lie in perpendicular subspaces. Hence
Set for , and for . Each lies between and , and . Since , unitary invariance gives , the energy captured by . For let be the weight missing from the first positions. Then . Using for and for ,
Subtracting from gives the bound. For the only competitor is , and the bound holds with equality. Neither argument assumes that shares singular vectors with , so the theorem compares with every admissible matrix.
In plain words No matrix of rank at most gets closer to than its own first singular layers, whichever of the two norms you use. The smallest possible error is the largest discarded singular value in the spectral norm and the root of the sum of all discarded squares in the Frobenius norm.
Example Return to with and try the rank-one competitor with rows , and . Its kernel is the plane , which meets the span of and in the line through the unit vector . There and , so
and as the proof promises. In fact and , so loses to in both norms.
Nonuniqueness for repeated singular values
Definition Keep the notation of the theorem and let , so that . In the Frobenius norm the answer depends on the gap at the cut.
- If , then is the only best approximation of rank at most . For an optimal , the inequalities in the proof above must all be equalities. This forces and , so and every with equals . Then lie in the image of , which has dimension at most , so and .
- If , the best approximation is not unique. Swapping the pairs and gives another singular value decomposition of , whose truncation differs from by and has the same error. Rotating the two pairs together by any angle gives infinitely many more.
In the spectral norm the best approximation is never unique in this range, even with a strict gap. The bound only controls the worst direction, so a competitor may change the retained part as long as that does not make the worst direction worse. For instance, lowering to in gives a different matrix of rank at most , whose error still has largest singular value . The theorem therefore guarantees the minimum error and one matrix that attains it, and any claim of uniqueness must name its norm and its hypothesis on the singular values.
In plain words A tie at the cut leaves a free choice of which directions to keep, and every choice is equally good. The spectral norm is looser still, because it only checks the worst direction.
Example Let and , with a strict gap . For every real the matrix leaves the error , whose spectral norm is . That equals the minimum for every between and , so the spectral norm has infinitely many best approximations, while the squared Frobenius error is minimal only at . For a tie, take and . For every unit vector the rank-one matrix leaves the error , the projector onto the line perpendicular to , whose spectral and Frobenius norms are both . Every line gives a best approximation, in both norms.
Check yourself
- A real matrix has singular values , and . For , find the smallest possible values of and over all with .
Show the answer
By the Eckart-Young theorem the minimum spectral error is the first discarded singular value and the minimum Frobenius error is the root of the sum of the discarded squares. For the errors are and . For they are and . For the rank of is , so is allowed and both errors are .
- Let be the real matrix with rows and . Find a best rank-one approximation and its errors in both norms. A student keeps the first row and replaces the second by zeros, which also gives a rank-one matrix. How large is that error?
Show the answer
The matrix is symmetric with eigenvalues and on the orthonormal vectors and , so is a singular value decomposition with and . The truncation is
and the error has spectral and Frobenius norm . Because , this is the only best rank-one approximation in the Frobenius norm. The student’s matrix leaves the error with rows and , a rank-one matrix whose spectral and Frobenius norms both equal . Here keeping a row ignores the singular directions and loses far more.
- Let and for real . For which is a best rank-one approximation in the spectral norm, and for which in the Frobenius norm?
Show the answer
The error is . Its spectral norm is , and the minimum over all rank-one matrices is , so is optimal in the spectral norm exactly when . Its squared Frobenius norm is , and the minimum is , reached only at . So is a best approximation in the spectral norm with Frobenius error , which is not optimal. The strict gap makes the Frobenius answer unique but not the spectral one.