LearnQuestion bank

Define linear independence and matrix rank. If a fine-tuning update to a d×d weight matrix is constrained to rank r, how many parameters does it use, and what does that constraint assume about the update?

ResearchTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Vectors are independent if no non-trivial combination gives zero.
  • Rank = dimension of column space = number of nonzero singular values.
  • ΔW = BA with B (d×r) and A (r×d) uses 2dr parameters instead of d².
  • Constraint assumes the useful update lives in a low-dimensional subspace.
  • Initialising B = 0 starts training from the base model; scaling factor α/r is applied.
  • Trade-off: expressivity vs memory and serving cost.

In full

Vectors are linearly independent if no non-trivial combination of them sums to zero; equivalently, the only coefficients c with sum c_i v_i = 0 are all zero. The rank of a matrix is the dimension of its column space, equivalently the number of nonzero singular values. If a fine-tuning update ΔW is constrained to rank r, it can be written as ΔW = BA with B (d×r) and A (r×d), so it stores 2dr parameters rather than d².

d = 4096, r = 16 low-rank update: 2 × 4096 × 16 = 131,072 parameters full update: 4096 × 4096 = 16,777,216 parameters ratio: 131,072 / 16,777,216 = 0.0078 ≈ 0.78%

This assumes the useful change to the weights lives in a low-dimensional subspace rather than requiring a full-rank d×d update. Initialising B = 0 makes ΔW = 0 at the start, so training begins from the base model, and a scaling factor such as α/r is typically applied to control the update magnitude. The trade-off is reduced memory and serving overhead versus lower expressivity: it works well when the task needs a low-rank correction, but may miss updates that require higher-rank structure.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Vectors are independent if no non-trivial combination gives zero. Rank = dimension of the column space = number of non-zero singular values.
  • ΔW = BA with B (d×r) and A (r×d) uses 2dr parameters instead of d².
  • The constraint assumes the useful update lives in a low-dimensional subspace.
  • Initialising B = 0 means training starts from the base model. A scaling factor (α/r) is applied.
  • Trade-off: expressivity vs memory and serving cost.

Common mistakes

  • Equating rank with the number of non-zero entries.
  • Getting the parameter count wrong.