Definition
An affine subspace , where is a linear subspace and is a fixed offset. .
Intuition
A line through the origin is a linear subspace; slide it sideways so it no longer touches the origin, and it becomes an affine subspace of the same dimension. The offset carries no special status — any point of could serve as the “basepoint,” since for any .
Properties
- Contains the origin iff . A linear subspace always contains ; an affine subspace contains only in the special case (equivalently, ).
- Not closed under addition in general. If then unless — an affine subspace is closed under affine combinations ( with ), not arbitrary linear combinations.
- Flat, zero curvature, open (non-compact) unless . As a translate of a linear subspace, inherits ‘s flat Euclidean geometry exactly.
- Basepoint-independence. For any , — the decomposition is not unique in (any point of works), only (the direction of ) is an invariant of itself.
- Parallel affine subspaces. Two affine subspaces and with the same but different offsets are parallel and disjoint whenever ; they partition into disjoint parallel copies of when has codimension .
- Correspondence with biased linear probes. A linear probe with bias, , is exactly an affine hyperplane: the set , which is for (the linear hyperplane through the origin orthogonal to ) and any particular solution of .
Caveat: a latent space can look locally affine at every point while still being globally warped
Choi, Lee, Yoon, Park, Hwang & Kang (2021) study StyleGAN2’s
intermediate W latent space, where prior work (GANSpace, SeFa) implicitly
treats a single globally-fit direction set as valid everywhere — the
working assumption behind fitting one affine chart to the whole space.
Computing a genuinely local tangent-direction basis at each point
(Jacobian-SVD of the generator’s partial map, “Local Basis”) and
comparing these local bases across different points via a Grassmannian
manifold distance, they find nearby points’ local bases agree closely
but distant points’ diverge significantly more than chance — i.e. the
space’s local linear structure is real at each point, but does not
compose into one consistent global affine subspace. This is why global
methods degrade (measured by rising FID and visible “image collapse”)
under large perturbations while following the local basis instead does
not: the traversal direction that is locally optimal changes as you
move, exactly as it would on a genuinely curved manifold rather than a
flat affine one. See stylegan2-w-space-is-globally-warped-local- jacobian-subspaces-diverge-with-grassmannian-distance-and-following- them-avoids-traversal-collapse.
Exercises
Base
- Is a linear subspace? Is it an affine subspace? If so, identify and .
Solution
Not a linear subspace (it doesn’t contain , and e.g. ). It is an affine subspace: , so and , a 1-dimensional linear subspace.
- For the affine subspace from Exercise 1, is a valid alternative choice of basepoint — i.e. does for the same ?
Solution
Yes. (take ), and , matching the original set exactly — any point of is a valid basepoint.
Middle
- Prove that an affine subspace is closed under affine combinations: if and with , then .
Solution
Write for . Then (using ). Since is a linear subspace and each , (closed under arbitrary linear combinations, including negative ). So .
- Two affine subspaces and share the same direction but . Prove .
Solution
Suppose . Then for some , so (since is closed under subtraction). This contradicts the assumption . Hence no such exists, i.e. .
Pro
- Show that a linear probe’s decision boundary (for ) is an affine subspace of dimension (a hyperplane), by exhibiting explicit and .
Solution
Take , the linear hyperplane orthogonal to (dimension , since it’s the kernel of the nonzero linear functional , rank-nullity gives ). Take any particular solution with — e.g. (check: ✓.) Then for any with : , so , i.e. for some . Conversely any (with ) satisfies . So , an affine subspace of dimension .
- Let with . Prove that the set of valid basepoints for (i.e. ) is exactly itself — not a larger or smaller set.
Solution
() If , then in particular (since ), so . () Conversely, suppose , so for some . Then (since : adding a fixed element of a linear subspace to the whole subspace just permutes it back to itself, as is closed under addition and too) . So every is a valid basepoint, and by the first direction, only points of are. Hence the set of valid basepoints is exactly .