The Maths You Actually NeedLesson 16 of 76

Module 2 · Matrices, and what a layer really does

Rank, and why a huge matrix can be two small ones

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 7 of 9 in this chapter

This chapter’s goalMultiply two matrices by hand and predict the output shape of any chain of layers, explain what the rank of a weight matrix costs and buys, and use singular values to justify replacing a 4096x4096 matrix with two thin ones and to state what that replacement gives up.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
One 4096 by 4096 layer, dense and factoredDense 4096 by 409616.8Two thin matrices, rank 640.52Two thin matrices, rank 160.13Two thin matrices, rank 80.07millions of parametersA rank-8 factorisation holds 65,536 numbers against 16,777,216: 256 times fewer, and the reason afine-tune of a large model fits on one consumer card. It buys that by assuming the change the taskneeds is low rank, which is a claim about the task and not a theorem.
A rank-8 factorisation holds 65,536 numbers against 16,777,216: 256 times fewer, and the reason a fine-tune of a large model fits on one consumer card. It buys that by assuming the change the task needs is low rank, which is a claim about the task and not a theorem.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Counting what is actually there

A matrix has a number of rows and a number of columns. It also has a rank: the number of linearly independent rows, which always equals the number of linearly independent columns. Rank counts how many different directions the matrix contains, as opposed to how many it is written with.

Text
A = [ 1  2  3 ]      row 2 = 2 x row 1
    [ 2  4  6 ]      row 3 = 3 x row 1
    [ 3  6  9 ]      rank = 1

Three rows, one independent direction. This 3×3 matrix, nine numbers, carries the information of one 3-vector.

Because rank 1 means every row is a multiple of one row, such a matrix can be written as an outer product:

Text
A = [1, 2, 3]^T  x  [1, 2, 3]      3 + 3 = 6 numbers instead of 9

That saving is trivial at 3×3. It is not trivial at 4096×4096.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Rank, and why a huge matrix can be two small ones’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/rank-and-low-rank (Accessed: 29 November 2026).