Group-Invariant Statistics Determine Embedding Geometry: Harmonic Analysis of Representations from Bach to the Night Sky
Organizations: Stanford University · University of California, Santa Barbara
Abstract
The representations that language models learn for concepts such as months, weekdays, and places display consistent geometric structure: circles and saddle-shaped "Pringle" manifolds. Recent work traced these structures to in word co-occurrence statistics, deriving the observed Fourier geometry when co-occurrence depends only on distance on an abelian lattice of concepts. We demonstrate that more general notions of symmetry lead to equally structured predictions. Considering symmetries defined by arbitrary finite groups, compact groups, and homogeneous spaces, we prove that whenever the co-occurrence statistics of a word family are invariant under a group , the learned word embeddings consist of matrix elements of the irreducible representations (irreps) of . Circles and Pringles arise when is cyclic, in which case the irreps are Fourier modes. We verify the irrep structure in three experimental settings. (i) The cyclic group : for the months of the year we recover the known circular geometry. (ii) A dihedral group acting on the major and minor triads: we unify two classical observations -- that transposition and chord inversion form a group () acting on chords (music theory), which that the well-known "circle of fifths" emerges in learned chord embeddings (machine learning). (iii) We explain and reproduce a recently discovered spherical representation of celestial objects in large language models (LLMs) as a spherical-harmonic embedding derived from our theory. Our results demonstrate that the geometry of learned representations is often a consequence of the statistical symmetry of underlying data.
Figures & tables
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Params | Indep. | Invariance assumed on over the triads |
|---|---|---|---|
| Statistical invariance under . | |||
| Statistical invariance under only transposition of . | |||
| Invariance under a “transposition” that moves along both majors and minors as in the circular order seen in Figure 3 B. This hypothesis predicts embeddings where the major and minor circles are perfectly inter-spaced. | |||
| Statistical invariance under the classic group of music theory | |||
| Statistical invariance under transposition, but separately for both majors and minors. (let be sequential major chord indices while correspond to minors) E.g., and but in general we have ) Major and minor cross terms of are set to one constant. This hypothesis essentially assumes independent circular structures in majors and minors. | |||
| latent | Majors are identified with their relative minors (music theory term, this identification looked reasonable from Figure 3 B), and invariance under transposition is assumed. This hypothesis corresponds to the embeddings forming a single circle with majors on top of minors. |
| Model | layer | canon 2 (top-3) | degree sequence | ||
|---|---|---|---|---|---|
| Qwen3-235B | 90 | 0.581 | 0.928 | 0.94 | |
| Mistral-Large-123B | 72 | 0.490 | 0.905 | 0.91 | |
| GLM-4.5-Air | 46 | 0.484 | 0.904 | 0.91 | |
| Qwen3-32B | 62 | 0.440 | 0.865 | 0.87 | |
| Llama-3.3-70B | 63 | 0.395 | 0.898 | 0.91 | |
| Mixtral-8x22B | 56 | 0.238 | 0.836 | 0.84 | 1 1 1 2 1 2 2 4 |
| Book | Author, year | ment. | ( ) | coher. ( ) | ( ) | kernel corr |
|---|---|---|---|---|---|---|
| Round the Year with the Stars | Olcott, 1912 | 361 | +0.45 (0.00) | 30 (8.8) | +1.98 (0.00) | +0.86 |
| A Field Book of the Stars | Olcott, 1907 | 345 | +0.34 (0.00) | 46 (14.3) | +1.69 (0.00) | +0.85 |
| Astronomy for Young Australians | Bonwick, 1866 | 116 | +0.26 (0.01) † | 46 (9.6) | +1.16 (0.01) | +0.74 † |
| Astronomy with an Opera-Glass | Serviss, 1888 | 364 | +0.22 (0.00) | 33 (7.4) | +0.86 (0.03) | +0.75 |
| Half-Hours with the Telescope | Proctor, 1868 | 101 | +0.14 (0.15) † | 25 (3.5) | +0.34 (0.08) | +0.50 † |
| Recreations in Astronomy | Warren, 1879 | 158 | +0.11 (0.12) † | 18 (3.8) | +0.19 (0.17) | +0.61 † |