Skip to content
Glacius
Linear algebraConcept reference

Approximation error

Truncated-SVD Frobenius error is the square root of the sum of squared discarded singular values.

On this page 9 sections
  1. Overview
  2. Compression trades information for a smaller representation
  3. Using only the largest discarded scale gives a different norm
  4. An error budget compares against the norm, not its square
  5. A closer look
  6. Key takeaway
  7. Further questions
  8. Sources & further reading
  9. Concept connections

01Compression trades information for a smaller representation#

Compression trades information for a smaller representation. After keeping kk SVD components, the error matrix is AAkA-A_k. Its Frobenius norm measures the combined size of all omitted entries. We can compute this error directly from discarded singular values without reconstructing every entry.

SVD components are perpendicular under the matrix version of a dot product. Their squared sizes therefore add like perpendicular vector lengths. This is why discarded scales are squared, summed, and square-rooted. Adding their lengths would treat them as if they all pointed in the same direction.

A truncated SVD leaves behind the discarded singular components. Its Frobenius error combines all of their squared scales, then takes a square root.

AAkF=i>kσi2\begin{aligned} &\|A-A_k\|_F\\ &=\sqrt{\sum_{i>k}\sigma_i^2} \end{aligned}

For singular values (10,4,3)(10,4,3), keeping the largest one discards 4 and 3. Their squares total 25, giving error 5.

Singular values 10, 4, 3. Rank 1 keeps 10; discarded 4 and 3 give Frobenius error sqrt(16+9)=5.Singular values 10, 4, 3. Rank 1 keeps 10; discarded 4 and 3 give Frobenius error sqrt(16+9)=5.
Figure 1Singular values 10, 4, 3. Rank 1 keeps 10; discarded 4 and 3 give Frobenius error sqrt(16+9)=5.
Link to this figure ↗Download SVGDownload PNG

For the complete ordered scales (10,4,3)(10,4,3) and rank 1, cross out the retained 10. The remaining scales are 4 and 3. Compute 42=164^2=16, 32=93^2=9, total 2525, then 25=5\sqrt{25}=5. The retained scale tells us which part was kept; it contributes nothing to the remaining error.

Check your reasoning

Complete singular values (12,8,6)(12,8,6). Keep the largest 11. Give Frobenius error.

Show answer and explanation
10

Discarded squares total 100100; error 1010.

02Using only the largest discarded scale gives a different norm#

Using only the largest discarded scale gives a different norm. If discarded values are 4 and 3, Frobenius error is 5, not 4 or 7. Kept scales do not enter this error sum.

Check your reasoning

Complete singular values (13,12,5)(13,12,5). Keep the largest 11. Claimed Frobenius error 1212. Repair.

  1. A12
  2. B169
  3. C13
Show answer and explanation
13

122+52=13\sqrt{12^2+5^2}=13.

03An error budget compares against the norm, not its square#

An error budget compares against the norm, not its square. For scales (11,4,3)(11,4,3) and rank 1, the error is 5. That meets a budget of at most 5, including equality.

If a budget allows error at most 5, the error 5 passes. If the budget is 4, it fails. Keeping a second component from scales (10,4,3)(10,4,3) leaves only 3, so the error becomes 3. Raising rank cannot increase this discarded-square error, although it uses more storage.

Check your reasoning

Complete singular values (20,12,5)(20,12,5). Keep the largest 11. Is Frobenius error at most 1212?

  1. AYes: error 12.
  2. BNo: error 13.
  3. CNo: error 169.
Show answer and explanation
No: error 13.

122+52=13\sqrt{12^2+5^2}=13.

04A closer look#

For a compressed measurement matrix, this gives a numerical way to compare storage choices. It controls aggregate reconstruction error in the specified norm. It does not promise that a visually important edge or a feature useful to a classifier survives.

Key takeaway

Discard the kept scales from the error calculation. Square every remaining scale, add them, and take the square root.

  • Compute truncated-SVD Frobenius error from discarded singular values.

Further questions

Does retaining more components increase this error?
No. Retaining another component removes its nonnegative squared scale from the error sum. Keeping all nonzero components gives zero error.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Approximation error.” Math behind ML. /learn/la-svd-error