MATH · IN · MODELS
structures / Manifolds / Affine Subspace

Affine Subspace

OBJECTgeometric-objectsubsetaffineK:zeromanifoldbeginnerhow it's classified →

Linear subspace with an offset: A = x₀ + V. Flat, open manifold of zero curvature. Unlike a linear subspace, need not pass through the origin.

Replicationcomputed from the corpus — never hand-assigned
6 papers · no shared authors5 architecture classes · across papers2 domains · across papers10 model families · across papers
Filled = two or more values reported by papers that share no author — replication. Outlined = two or more values, but all from a single study — breadth, not replication. Grey = a single value. Derived from paper authorship and each model's architecture class, domain and family; it updates itself when a paper is added.

Definition

An affine subspace A=x0+V={x0+v:vV}A = x_0 + V = \{x_0 + v : v \in V\}, where VRdV \subseteq \mathbb{R}^d is a linear subspace and x0Rdx_0 \in \mathbb{R}^d is a fixed offset. dimA:=dimV\dim A := \dim V.

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 x0x_0 carries no special status — any point of AA could serve as the “basepoint,” since A=x1+VA = x_1 + V for any x1Ax_1 \in A.

Properties

  • Contains the origin iff x0Vx_0 \in V. A linear subspace always contains 0\mathbf{0}; an affine subspace contains 0\mathbf{0} only in the special case x0Vx_0 \in V (equivalently, A=VA=V).
  • Not closed under addition in general. If a1,a2Aa_1,a_2 \in A then a1+a2=2x0+(v1+v2)Aa_1+a_2 = 2x_0 + (v_1+v_2) \notin A unless x0Vx_0 \in V — an affine subspace is closed under affine combinations (iciai\sum_i c_i a_i with ici=1\sum_i c_i = 1), not arbitrary linear combinations.
  • Flat, zero curvature, open (non-compact) unless V={0}V=\{0\}. As a translate of a linear subspace, AA inherits VV‘s flat Euclidean geometry exactly.
  • Basepoint-independence. For any x1Ax_1 \in A, A=x1+VA = x_1 + V — the decomposition A=x0+VA = x_0+V is not unique in x0x_0 (any point of AA works), only VV (the direction of AA) is an invariant of AA itself.
  • Parallel affine subspaces. Two affine subspaces x0+Vx_0+V and x1+Vx_1+V with the same VV but different offsets are parallel and disjoint whenever x1x0Vx_1 - x_0 \notin V; they partition Rd\mathbb{R}^d into disjoint parallel copies of VV when VV has codimension 1\geq 1.
  • Correspondence with biased linear probes. A linear probe with bias, {x:wx+b=0}\{x : w^\top x + b = 0\}, is exactly an affine hyperplane: the set {x:wx=b}\{x : w^\top x = -b\}, which is x0+Vx_0 + V for V=wV = w^\perp (the linear hyperplane through the origin orthogonal to ww) and any particular solution x0x_0 of wx0=bw^\top x_0 = -b.

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

  1. Is A={(1,t):tR}R2A = \{(1,t) : t \in \mathbb{R}\} \subset \mathbb{R}^2 a linear subspace? Is it an affine subspace? If so, identify x0x_0 and VV.
Solution

Not a linear subspace (it doesn’t contain (0,0)(0,0), and e.g. (1,0)+(1,1)=(2,1)A(1,0)+(1,1)=(2,1)\notin A). It is an affine subspace: A=(1,0)+{(0,t):tR}A = (1,0) + \{(0,t):t\in\mathbb{R}\}, so x0=(1,0)x_0=(1,0) and V={(0,t):tR}=span{(0,1)}V = \{(0,t):t\in\mathbb{R}\} = \text{span}\{(0,1)\}, a 1-dimensional linear subspace.

  1. For the affine subspace AA from Exercise 1, is (1,5)(1,5) a valid alternative choice of basepoint — i.e. does A=(1,5)+VA = (1,5)+V for the same VV?
Solution

Yes. (1,5)A(1,5) \in A (take t=5t=5), and (1,5)+V={(1,5+t):tR}={(1,s):sR}=A(1,5)+V = \{(1,5+t):t\in\mathbb{R}\} = \{(1,s):s\in\mathbb{R}\} = A, matching the original set exactly — any point of AA is a valid basepoint.

Middle

  1. Prove that an affine subspace A=x0+VA=x_0+V is closed under affine combinations: if a1,,akAa_1,\ldots,a_k \in A and c1,,ckRc_1,\ldots,c_k \in \mathbb{R} with ici=1\sum_i c_i = 1, then iciaiA\sum_i c_i a_i \in A.
Solution

Write ai=x0+via_i = x_0+v_i for viVv_i \in V. Then iciai=ici(x0+vi)=(ici)x0+icivi=x0+icivi\sum_i c_i a_i = \sum_i c_i(x_0+v_i) = \big(\sum_i c_i\big) x_0 + \sum_i c_i v_i = x_0 + \sum_i c_i v_i (using ici=1\sum_i c_i=1). Since VV is a linear subspace and each viVv_i \in V, iciviV\sum_i c_i v_i \in V (closed under arbitrary linear combinations, including negative cic_i). So iciai=x0+(something in V)A\sum_i c_i a_i = x_0 + (\text{something in } V) \in A.

  1. Two affine subspaces A1=x0+VA_1 = x_0+V and A2=x1+VA_2=x_1+V share the same direction VV but x1x0Vx_1-x_0 \notin V. Prove A1A2=A_1 \cap A_2 = \emptyset.
Solution

Suppose zA1A2z \in A_1\cap A_2. Then z=x0+v0=x1+v1z = x_0+v_0 = x_1+v_1 for some v0,v1Vv_0,v_1\in V, so x1x0=v0v1Vx_1-x_0 = v_0-v_1 \in V (since VV is closed under subtraction). This contradicts the assumption x1x0Vx_1-x_0\notin V. Hence no such zz exists, i.e. A1A2=A_1\cap A_2=\emptyset.

Pro

  1. Show that a linear probe’s decision boundary {x:wx+b=0}\{x : w^\top x+b=0\} (for w0w\neq 0) is an affine subspace of dimension d1d-1 (a hyperplane), by exhibiting explicit x0x_0 and VV.
Solution

Take V={v:wv=0}=wV = \{v : w^\top v = 0\} = w^\perp, the linear hyperplane orthogonal to ww (dimension d1d-1, since it’s the kernel of the nonzero linear functional w()w^\top(\cdot), rank-nullity gives dimV=d1\dim V = d - 1). Take any particular solution x0x_0 with wx0=bw^\top x_0 = -b — e.g. x0=bw2wx_0 = -\frac{b}{\|w\|^2} w (check: wx0=bw2w2=bw^\top x_0 = -\frac{b}{\|w\|^2}\|w\|^2 = -b ✓.) Then for any xx with wx=bw^\top x = -b: w(xx0)=b(b)=0w^\top(x-x_0) = -b-(-b) = 0, so xx0Vx - x_0 \in V, i.e. x=x0+vx = x_0+v for some vVv\in V. Conversely any x0+vx_0+v (with vVv\in V) satisfies w(x0+v)=b+0=bw^\top(x_0+v) = -b+0=-b. So {x:wx=b}=x0+V\{x:w^\top x=-b\} = x_0+V, an affine subspace of dimension d1d-1.

  1. Let A=x0+VA = x_0+V with dimV=k\dim V = k. Prove that the set of valid basepoints for AA (i.e. {x1Rd:A=x1+V}\{x_1 \in \mathbb{R}^d : A = x_1+V\}) is exactly AA itself — not a larger or smaller set.
Solution

(\subseteq) If A=x1+VA = x_1+V, then in particular x1=x1+0x1+V=Ax_1 = x_1+0 \in x_1+V = A (since 0V0\in V), so x1Ax_1\in A. (\supseteq) Conversely, suppose x1A=x0+Vx_1 \in A = x_0+V, so x1=x0+v1x_1 = x_0+v_1 for some v1Vv_1\in V. Then x1+V=x0+v1+V=x0+Vx_1+V = x_0+v_1+V = x_0+V (since v1+V=Vv_1+V=V: adding a fixed element of a linear subspace to the whole subspace just permutes it back to itself, as VV is closed under addition and v1V-v_1\in V too) =A=A. So every x1Ax_1\in A is a valid basepoint, and by the first direction, only points of AA are. Hence the set of valid basepoints is exactly AA.

Found in (6 observations · 8 families)

Llama

Do Sparse Autoencoders Capture Concept Manifolds? (2026)measured

Open-ended scalar concepts trace affine 1D lines

Details

Bhalla et al. find simple open-ended scalar concepts (temperature, age) trace flat open 1D lines in Llama-3.1-8B's layer-19 residual stream, via PCA across sampled prompt values [bhalla-etal-2026] Causal steering along interpolated points between binned centroids is validated only for temperature, color, and day-of-week (e.g. freezing to cold to warm to hot), producing smooth monotonic output shifts [bhalla-etal-2026] Age and years show the same open 1D structure by PCA but were not steered, so their causal load-bearing status is not established here [bhalla-etal-2026] Formality, sentence length, and a synthetic political-bias score show similar roughly-1D structure with PCA evidence only [bhalla-etal-2026]

models: Llama-3.1-8B · method: PCA, Activation Steering (Addition)
Language Models Represent Space and Time (2024), Symmetry in Language Statistics Shapes the Geometry of Model Representations (2026)measured

Geographic coordinates are represented on a flat affine plane

Details

Latitude and longitude are linearly decodable from a flat 2D affine plane in the residual stream, unlike the cyclic circle used for calendar time in the same models [gurnee-tegmark-2024] Karkada et al. independently derive the same flat-plane geometry analytically as the D=2 open-boundary case of translation-symmetry theory, confirmed in word embeddings and Gemma 2 2B for US cities [karkada-etal-2026] A later analysis fits a spherical rather than flat geometry to the same data, kept as a separate observation since the two disagree on curvature [karkada-etal-2026]

models: Llama-2-7B, Llama-2-13B, Llama-2-70B · method: Linear probing, PCA, Spectral analysis of the co-occurrence/PMI matrix, Analytical derivation
Refusal in LLMs is an Affine Function (2024)measured

Refusal is better described as an affine function than a direction

Details

Marshall et al. generalize the linear direction-ablation account of refusal to an affine one, treating the projection coefficient as an affine function with a nonzero offset derived from the harmless-class mean rather than the origin [marshall-etal-2024] They argue purely linear methods give no guarantee the resulting vector lands in a meaningful location [marshall-etal-2024] Directional ablation alone breaks a non-transformer RWKV (Eagle) model into incoherent output, while their Affine Concept Editing (ACE), combining ablation with offset-based activation addition, fixes it [marshall-etal-2024] This contests the single-direction account and offers an alternative to the concept-cone account of the same phenomenon [marshall-etal-2024]

models: Llama-3-8B-Instruct, Llama-3-70B-Instruct · method: Difference-in-means direction, Causal interventions (steering)
Do Sparse Autoencoders Capture Concept Manifolds? (2026)measured

SAEs dilute continuous manifolds rather than compactly capturing them

Details

Bhalla et al. formalize manifold capture (a small fixed group of decoder atoms spanning the manifold, consistently reselected by the encoder) and identify three regimes: compact capture, tiling/shattering, and intermediate dilution [bhalla-etal-2026] Training five SAE architectures on Llama-3.1-8B layer-19 activations, variance explained by a restricted atom group plateaus well beyond each manifold's ambient dimension, so none achieve compact capture [bhalla-etal-2026] Features behave like overlapping population-code tuning curves that redundantly tile the manifold, placing all tested SAEs in the dilution regime [bhalla-etal-2026] Ising-coactivation analysis on SAE codes recovers known manifolds (temperature, colors, political bias) unsupervised and surfaces a new epistemic-uncertainty manifold [bhalla-etal-2026]

models: Llama-3.1-8B · method: Sparse Autoencoders (SAE), Manifold capture theory (subspace capture / tiling / dilution), Ising coactivation analysis, PCA

Pythia

Language Models Represent Space and Time (2024), Symmetry in Language Statistics Shapes the Geometry of Model Representations (2026)measured

Geographic coordinates are represented on a flat affine plane

Details

Latitude and longitude are linearly decodable from a flat 2D affine plane in the residual stream, unlike the cyclic circle used for calendar time in the same models [gurnee-tegmark-2024] Karkada et al. independently derive the same flat-plane geometry analytically as the D=2 open-boundary case of translation-symmetry theory, confirmed in word embeddings and Gemma 2 2B for US cities [karkada-etal-2026] A later analysis fits a spherical rather than flat geometry to the same data, kept as a separate observation since the two disagree on curvature [karkada-etal-2026]

models: Pythia-6.9B · method: Linear probing, PCA, Spectral analysis of the co-occurrence/PMI matrix, Analytical derivation

Gemma

Language Models Represent Space and Time (2024), Symmetry in Language Statistics Shapes the Geometry of Model Representations (2026)measured

Geographic coordinates are represented on a flat affine plane

Details

Latitude and longitude are linearly decodable from a flat 2D affine plane in the residual stream, unlike the cyclic circle used for calendar time in the same models [gurnee-tegmark-2024] Karkada et al. independently derive the same flat-plane geometry analytically as the D=2 open-boundary case of translation-symmetry theory, confirmed in word embeddings and Gemma 2 2B for US cities [karkada-etal-2026] A later analysis fits a spherical rather than flat geometry to the same data, kept as a separate observation since the two disagree on curvature [karkada-etal-2026]

models: Gemma-2-2B, EmbeddingGemma · method: Linear probing, PCA, Spectral analysis of the co-occurrence/PMI matrix, Analytical derivation

word2vec

Language Models Represent Space and Time (2024), Symmetry in Language Statistics Shapes the Geometry of Model Representations (2026)measured

Geographic coordinates are represented on a flat affine plane

Details

Latitude and longitude are linearly decodable from a flat 2D affine plane in the residual stream, unlike the cyclic circle used for calendar time in the same models [gurnee-tegmark-2024] Karkada et al. independently derive the same flat-plane geometry analytically as the D=2 open-boundary case of translation-symmetry theory, confirmed in word embeddings and Gemma 2 2B for US cities [karkada-etal-2026] A later analysis fits a spherical rather than flat geometry to the same data, kept as a separate observation since the two disagree on curvature [karkada-etal-2026]

models: word2vec (trained on Wikipedia) · method: Linear probing, PCA, Spectral analysis of the co-occurrence/PMI matrix, Analytical derivation

DeBERTa

More than Correlation: Do Large Language Models Learn Causal Representations of Space? (2023)measured

Geographic representations are causally used for prediction, not just decodable

Details

Chen et al. extend the linear-geography finding to DeBERTa-v2-xxlarge and GPT-Neo-1.3B, where non-linear probes substantially outperform linear ones (unlike Gurnee & Tegmark) and a Haversine-based GeoDist loss yields probes whose predicted maps better resemble true geography [chen-etal-2023] RSA on country-level activation distances correlates modestly with real distance (Kendall tau 0.20-0.21), flagged by the authors as suggestive not conclusive [chen-etal-2023] Probe-gradient perturbation establishes causality: sharpening a city's alignment with its true coordinates improves country classification while gradient ascent degrades it, and cross-city perturbation shifts logits toward the target country [chen-etal-2023] Applied to GPT-Neo's own next-token prediction, gradient ascent causes a large drop in country-token accuracy and descent a small significant improvement, so the language-modeling objective itself depends on the spatial representation [chen-etal-2023] Scope: the models are smaller and older (both under 2B), which may limit how strongly the causal finding generalizes to frontier scale [chen-etal-2023]

models: DeBERTa-v2-xxlarge · method: Representational Similarity Analysis (RSA), Linear probing, Mlp probing, Probe-Gradient Perturbation

GPT-Neo

More than Correlation: Do Large Language Models Learn Causal Representations of Space? (2023)measured

Geographic representations are causally used for prediction, not just decodable

Details

Chen et al. extend the linear-geography finding to DeBERTa-v2-xxlarge and GPT-Neo-1.3B, where non-linear probes substantially outperform linear ones (unlike Gurnee & Tegmark) and a Haversine-based GeoDist loss yields probes whose predicted maps better resemble true geography [chen-etal-2023] RSA on country-level activation distances correlates modestly with real distance (Kendall tau 0.20-0.21), flagged by the authors as suggestive not conclusive [chen-etal-2023] Probe-gradient perturbation establishes causality: sharpening a city's alignment with its true coordinates improves country classification while gradient ascent degrades it, and cross-city perturbation shifts logits toward the target country [chen-etal-2023] Applied to GPT-Neo's own next-token prediction, gradient ascent causes a large drop in country-token accuracy and descent a small significant improvement, so the language-modeling objective itself depends on the spatial representation [chen-etal-2023] Scope: the models are smaller and older (both under 2B), which may limit how strongly the causal finding generalizes to frontier scale [chen-etal-2023]

models: GPT-Neo-1.3B · method: Representational Similarity Analysis (RSA), Linear probing, Mlp probing, Probe-Gradient Perturbation

RWKV

Refusal in LLMs is an Affine Function (2024)measured

Refusal is better described as an affine function than a direction

Details

Marshall et al. generalize the linear direction-ablation account of refusal to an affine one, treating the projection coefficient as an affine function with a nonzero offset derived from the harmless-class mean rather than the origin [marshall-etal-2024] They argue purely linear methods give no guarantee the resulting vector lands in a meaningful location [marshall-etal-2024] Directional ablation alone breaks a non-transformer RWKV (Eagle) model into incoherent output, while their Affine Concept Editing (ACE), combining ablation with offset-based activation addition, fixes it [marshall-etal-2024] This contests the single-direction account and offers an alternative to the concept-cone account of the same phenomenon [marshall-etal-2024]

models: Hermes Eagle RWKV v5 (7B) · method: Difference-in-means direction, Causal interventions (steering)

StyleGAN

Do Not Escape From the Manifold: Discovering the Local Coordinates on the Latent Space of GANs (2021)measured

StyleGAN2's W space is globally warped; local bases avoid traversal collapse

Details

Choi et al. compute a Local Basis at each W-space point via SVD of the noise-to-W Jacobian, giving local principal-variation directions rather than one global set (as in GANSpace or SeFa) [choi-etal-2021-local-basis-gan-manifold] Grassmannian distance between top-k Local Basis subspaces shows nearby points are far more similar than random points, themselves distinct from a random-subspace null, so W space is globally warped rather than flat/affine [choi-etal-2021-local-basis-gan-manifold] Traversing along the Local Basis keeps FID low under strong perturbation while global methods' FID rises sharply (image collapse), a measured causal effect of respecting local geometry [choi-etal-2021-local-basis-gan-manifold]

models: StyleGAN2 (trained on FFHQ, 1024x1024) · method: Jacobian spectral direction analysis, Subspace-angle alignment, Causal interventions (steering)