MATH · IN · MODELS

Manifolds

background definitionintermediate

A topological space in which every point has a neighbourhood homeomorphic to ℝⁿ. LLM activations concentrate on lower-dimensional manifolds rather than filling the ambient space uniformly.

Definition

A manifold of dimension nn is a topological space MM in which every point pMp \in M has an open neighbourhood homeomorphic to an open ball in Rn\mathbb{R}^n. A pair (neighbourhood, homeomorphism) is a chart; a collection of charts covering MM is an atlas. A Riemannian manifold additionally carries a smoothly varying inner product gpg_p on each tangent space TpMT_pM, which lets lengths, angles, and geodesics be measured intrinsically.

The activation space of a network is Rd\mathbb{R}^d, but the set of activations a network actually produces need not fill Rd\mathbb{R}^d — it can concentrate on a lower-dimensional manifold MRdM \subset \mathbb{R}^d.

Intuition

Earth is a 2-dimensional manifold: locally, around any point, it looks like a flat plane (a city map is a chart), yet globally it is a sphere — no single flat map can cover it without distortion or seams. A manifold is exactly this local-flat/global-curved compromise, made precise.

Properties

The classification question for a manifold found in activation space is: what is its curvature, and is it open or closed? These two questions separate the shapes this map catalogues:

TypeCurvatureTopologydim\dim (typical)H1H_1
Circle0closed, periodic1Z\mathbb{Z}
Torus0closed, periodic, product of two circles2Z2\mathbb{Z}^2
Sphere+1+1closed, simply connectednn00
Hyperbolic Manifold1-1opennn00
Affine Subspace0open, flatkk00
1D continuum manifold0 (extrinsic ripples)open, non-periodic100
Paraboloid (circular × pinched continuum)varies (circle radius depends on axial coordinate)open (in axial coordinate) × closed (circular factor)2Z\mathbb{Z} (from the circular factor, away from any pinch point)

Curvature and topology are logically independent axes — flat and closed (T2T^2), flat and open (affine), positively curved and closed (SnS^n), negatively curved and open (hyperbolic) all occur. First homology H1H_1 (the free abelian group of independent non-contractible loops) is what discriminates a closed periodic manifold from an open one, and a circle from a torus.

A related but distinct question, orthogonal to the curvature/topology table above, is not “what shape is the manifold at one layer” but “how does the manifold’s own dimensionality change across depth” — see Intrinsic-dimension profile across depth for the expansion-then-compression trajectory found so far in every self-supervised transformer studied.

A separate, non-Riemannian family of shapes catalogued here is built from bounded convex pieces rather than curvature: Polytope (Simplex) for a single categorical concept’s convex hull, and Minkowski Sum of Tile Polytopes (Minkowski Representation Hypothesis) for a whole layer’s activation space as the vector sum of many such tile-local convex hulls.

A further distinction, orthogonal to both tables above, is between a manifold as a static description of where activations sit and a manifold as a dynamical claim about a recurrent network’s own update rule — see Line Attractor for a 1D manifold of fixed points with stability properties, not just a traced-out curve, and Limit cycle (stable periodic attractor) for its closed-orbit sibling: a contractive periodic attractor a network’s dynamics settle into and recover to, rather than a static loop traced by activations across inputs.

A chart only guarantees local homeomorphism to Rn\mathbb{R}^n — it says nothing about global shape. This is precisely why a manifold can be “locally boring” (looks flat close-up) yet globally have any of the topologies in the table above.

A fourth distinction, orthogonal to all of the above, is between a manifold as a description of where activations sit and a manifold pinched at a finite set of singular points where several senses of the same symbol are glued together — see Pinched Manifold (Singular Quotient) for Jakubowski, Gasić & Zibrowius (2020)‘s word-embedding singularity/polysemy measure, a genuine shape claim (not a measurement) with persistent homology used only as the detection instrument.

A related but separate question about decodability rather than shape: a world-state can be reliably recovered from activations by a nonlinear probe without being linearly separable in that basis — see Nonlinear World-Model Decodability for Li, Hopkins, Bau, Viégas, Pfister & Wattenberg (2023)‘s original Othello-GPT board-state finding (later reframed as linear by Nanda et al. 2023, already in this map) and its cross-architecture Procrustes-alignment convergence follow-up, Yuan & Søgaard (2025) — the latter now classified as evidence for Platonic Representation Hypothesis rather than a manifolds shape claim, since its central result is cross-model geometric convergence, not a single model’s shape.

A fifth, non-Riemannian question is not about a static shape at all but about a labeled, attribute-indexed deformation field on the embedding — see Attribute-Induced Embedding Folding for Leroy, Mastropietro, Nurisso & Vaccarino (2025)‘s multiscale face-recognition finding, where invariance to an attribute is achieved by nonlinearly folding the space along that attribute’s direction rather than by a fixed curvature or shape.

A related but distinct question, orthogonal to the tables above, is not “what shape is the manifold” but “how curved is it” — extrinsic principal curvature (MAPC, via local-PCA fitting) vs. intrinsic graph-Ricci curvature (Ollivier/Forman) are different, non-interchangeable quantities, tracked as a depth/training profile rather than a named shape. See Curvature profile of the representation manifold for both, including Kaufman & Azencot (2023)‘s MAPC-vs-generalization finding and Hehl, von Renesse & Weber (2025)‘s Ricci-flow-like contraction/reversal finding.

A third, similarly orthogonal question is not “what shape” or “how curved” but “what topological features (holes, loops, connected components) persist” in the activation point-cloud — a computed persistent-homology/Betti profile, not a named shape. See Persistent-homology / Betti profile across depth, including Gardinazzi et al. (2024)‘s layer-pruning application, Magai & Ayzenberg (2022)‘s joint topology/dimension-vs-generalization finding, and Kendiukhov (2026)‘s large-scale cross-model biological-foundation-model audit.

Key papers

  • Karczewski, Heinonen, Pouplin, Hauberg & Garg (2026). The Spacetime of Diffusion Models: An Information Geometry Perspective. arXiv:2505.17517, ICLR 2026 Oral — proposes a distinct kind of diffusion-model geometry from either of the Jacobian-pullback approaches above: a Fisher-Rao information metric built directly on the exponential family of denoising distributions {p(x0xt,t)}\{p(x_0|x_t,t)\}, proving the standard Riemannian pullback metric collapses to trivial Euclidean interpolation whenever latent and data space share dimension. See Diffusion Spacetime Information Geometry for the full construction and its validation on a real EDM2 ImageNet-512 model and a custom molecular (Alanine Dipeptide) diffusion model.
  • Saito & Matsubara (2025). Image Interpolation with Score-based Riemannian Metrics of Diffusion Models. arXiv:2504.20288 — derives a genuine Riemannian metric (Gxt=JxtJxtG_{x_t}=J_{x_t}^\top J_{x_t}) directly from a real diffusion model’s own score-function Jacobian, rather than pulling back an assumed linear latent metric (contrast Linear Direction‘s entry for Park et al. 2023); uses the metric’s geodesics to guide image interpolation in real Stable Diffusion, outperforming Lerp/Slerp/NAO baselines on CLIP-IQA reality/noisiness while matching the best reconstruction error, and replicates the same construction on a small custom diffusion model trained on MNIST. See a-riemannian-metric-derived-directly-from-stable-diffusions-own-score-function-jacobian-not-pulled-back-from-any-assumed-linear-latent-and-geodesic-guided-interpolation-outperforms-lerp-slerp-baselines.

Exercises

Base

  1. Is a circle S1S^1 a manifold? If so, of what dimension, and what does a chart around a point look like?
Solution

Yes, S1S^1 is a 1-dimensional manifold. Around any point pS1p \in S^1, a small arc is homeomorphic to an open interval (ε,ε)R1(-\varepsilon,\varepsilon) \subset \mathbb{R}^1 (e.g. via the angle coordinate θ\theta restricted to that arc). No single chart covers all of S1S^1 (the circle is compact, an open interval is not), so at least two overlapping charts are needed for a full atlas.

  1. Give an example of two manifolds with the same dimension and curvature 00 but different topology.
Solution

An affine plane R2\mathbb{R}^2 (Affine Subspace) and a torus T2T^2 (Torus) are both 2-dimensional and flat (zero Gaussian curvature everywhere), but R2\mathbb{R}^2 is open and simply connected (H1=0H_1 = 0) while T2T^2 is closed with H1=Z2H_1 = \mathbb{Z}^2. Curvature alone does not determine topology.

Middle

  1. Show that a manifold’s dimension is a well-defined, chart-independent quantity — i.e. that two charts around the same point must agree on nn.
Solution

Suppose ϕ1:URn1\phi_1 : U \to \mathbb{R}^{n_1} and ϕ2:URn2\phi_2 : U \to \mathbb{R}^{n_2} are two charts on overlapping open neighbourhoods of pp. The transition map ϕ2ϕ11\phi_2 \circ \phi_1^{-1} is a homeomorphism between open subsets of Rn1\mathbb{R}^{n_1} and Rn2\mathbb{R}^{n_2}. Invariance of domain (a theorem of algebraic topology) states that a homeomorphism between open subsets of Rn1\mathbb{R}^{n_1} and Rn2\mathbb{R}^{n_2} can only exist if n1=n2n_1 = n_2. Hence dimension is well defined.

  1. A network’s post-LayerNorm activations satisfy x^=const\|\hat{x}\| = \text{const} for every input. What manifold do they lie on, and what is its dimension as a subset of Rd\mathbb{R}^d?
Solution

They lie on a sphere Sd1RdS^{d-1} \subset \mathbb{R}^d (a level set of the norm), which is a manifold of dimension d1d-1 — one less than the ambient space, since the norm constraint removes exactly one degree of freedom. See Sphere.

Pro

  1. Two manifolds M1,M2M_1, M_2 have H1(M1)=ZH_1(M_1) = \mathbb{Z} and H1(M2)=Z2H_1(M_2) = \mathbb{Z}^2. Can M1M_1 and M2M_2 be homeomorphic? Justify using a general topological fact, not just these two examples.
Solution

No. Homology groups are topological invariants: if M1M2M_1 \cong M_2 (homeomorphic), then Hk(M1)Hk(M2)H_k(M_1) \cong H_k(M_2) for every kk, since homology is a functor from topological spaces (and continuous maps) to abelian groups, and a homeomorphism is invertible, so it induces an isomorphism on homology. Z≇Z2\mathbb{Z} \not\cong \mathbb{Z}^2 as abelian groups (e.g. Z2\mathbb{Z}^2 has rank 2, Z\mathbb{Z} has rank 1), so M1≇M2M_1 \not\cong M_2.

  1. A researcher claims to have found a manifold in activation space with positive curvature at every sampled point but reports H10H_1 \neq 0. Is this possible for a closed 2-dimensional manifold? Use the Gauss–Bonnet theorem to justify your answer.
Solution

Not for a closed, connected, orientable 2-manifold with curvature bounded strictly away from 00 (in fact strictly positive everywhere), if the surface is required to be compact without boundary: Gauss–Bonnet gives MKdA=2πχ(M)\iint_M K \, dA = 2\pi\chi(M), where χ(M)=22g\chi(M) = 2 - 2g for a genus-gg orientable closed surface. Strictly positive curvature everywhere forces MKdA>0\iint_M K\,dA > 0, hence χ(M)>0\chi(M) > 0, which forces g=0g = 0 (a topological sphere). A sphere has H1=0H_1 = 0. So strictly-positive curvature everywhere and H10H_1 \neq 0 (genus 1\geq 1, e.g. a torus) are incompatible for such a surface — the reported combination would indicate either a measurement error, a non-closed/non-orientable surface, or curvature that is not strictly positive at every point (only on average, or with sign changes not captured by a coarse sample).

Found in (0 observations · 0 families)

No observations confirm this structure yet.