24  Linear Algebra

Vectors represent data and parameters, while matrices represent the linear maps used throughout a network. We begin with the geometry of vectors, dot products, projections, and matrix transformations. We then study two matrix decompositions used repeatedly in deep learning. Eigendecompositions support stability analysis, PCA, and the analysis of loss curvature; singular value decompositions support low-rank approximation, conditioning, and parameter-efficient fine-tuning.

The three parts answer progressively more specific questions:

Object Question Principal tool
Vectors and subspaces Which directions agree, and what information does a map preserve or discard? Angles, projections, range, and null space
Repeated square maps Which directions evolve independently under iteration? Eigenvalues and eigenvectors
An arbitrary rectangular map Which input directions are amplified most, and how well can the map be approximated at low rank? Singular values and left/right singular vectors

The eigendecomposition requires a square matrix and may lack a complete eigenbasis. The SVD uses separate input and output bases and exists for every finite matrix; this distinction organizes the chapter.

Resources and Further Reading

The references below develop the geometry, decompositions, and numerical methods used in this chapter. Most are freely accessible online.

Books

Courses and video lectures

Tutorials, notes, and visual introductions