A vector space over is a set of vectors closed under addition and scalar multiplication. is the canonical example.
Core definitions:
- Linear combination:
- Span: the set of all linear combinations of a set of vectors
- Linear independence: no vector in the set can be written as a linear combination of the others
- Basis: a linearly independent set that spans the entire space
- Dimension: the number of vectors in any basis (unique for a given space)
Subspaces are vector spaces living inside a larger space. The most important ones:
- Column space — what outputs can produce → range of the transformation
- Null space — what inputs annihilates → see Rank and Null Space
- Row space — span of the rows of
Why this matters for ML:
- A neural network layer maps between vector spaces:
- Embeddings live in learned vector spaces where directions encode meaning
- Principal Component Analysis (PCA) finds the best low-dimensional basis for the data
- Rank of a weight matrix = dimension of its column space → if rank-deficient, the layer has redundant capacity (LoRA exploits this)
See also: Rank and Null Space, Linear Transformations, Orthogonality and Projections