Explainer ·
Why AI models put the months on a circle: symmetry and the shape of what models learn
Inside language models the twelve months sit on a circle, much as twelve dinner guests who mostly chat with their neighbors would end up at a round table. Celestial objects sit on something like a sphere, and in models trained on chord sequences, Bach's chords line up along the circle of fifths. A recent preprint argues that none of this is a coincidence: when the statistics of how words appear together have a symmetry, the mathematics of that symmetry dictates the shape of what is learned.
The paper is an arXiv preprint and has not been peer reviewed. Liam Storan and Andreas Tolias of Stanford and Nina Miolane of UC Santa Barbara posted it on September 30, 2026.
The first half of the explanation uses plain pictures. The second gives the math core for technical readers: group invariance, the idea that the statistics stay the same under a set of symmetries, and harmonic analysis, which breaks a pattern into the basic waves that fit those symmetries.
The first half of this page needs no mathematics. The second half, "The math core", is for readers who know some linear algebra.
The round table
Imagine twelve guests who arrive at a dinner, and you only know how often each pair chats. January chats with February and December a lot, with March and November a bit less, and with July hardly at all, and every month behaves the same way relative to its neighbors. If you have to seat them so that people who chat a lot sit close together, there is one natural answer: a round table. The pattern of who talks to whom is the same if everyone shifts one seat over, and the only arrangement that respects that shift is a circle.
Language models face a similar task. They learn a position in a high-dimensional space for every word, called an embedding, so that words used in similar contexts sit near each other. Earlier work found that, measured in ordinary text, January and February appear together about as often as November and December, and that explains why models put the months on a circle. This paper asks the general question: what happens with other kinds of symmetry?
Three examples, three symmetries
- Months: shifting around a clock. The symmetry is "move every month forward by one", repeated twelve times to get back where you started. Its basic patterns are waves around a circle, like the notes a circular drum skin can play, and the embeddings come out as circles at several frequencies at once. In the paper's test on a 17-million-word Wikipedia sample, the predicted shapes matched the learned ones closely (a similarity score of 0.96 out of 1, against 0.35 when the month labels are shuffled).
- Bach's chords: transposing and flipping. Music theorists have long known that moving a chord up or down by a fixed interval (transposition), or flipping it upside down (inversion), are symmetries that together form a group. The authors measured how often chords follow each other in 371 Bach chorales and found these statistics nearly unchanged by those symmetries. The theory then predicts the leading shape of the chord embeddings: the circle of fifths, the familiar ring of keys musicians learn. The predicted and learned positions matched at 0.98, and the same structure appeared inside ChordBERT, a small language model trained on chord sequences.
- Stars: turning the sky. For celestial objects, how often two names appear together in astronomy writing depends roughly on how far apart they are in the sky, and that does not change if you rotate the whole sky. The basic patterns of rotations of a sphere are spherical harmonics, the same patterns used to describe Earth's gravity field or the vibrations of a soap bubble. An earlier 2026 study had reported that a large language model stores celestial objects on a sphere. Reanalyzing its data, this paper argues that the structure is better described as spherical harmonics in order of increasing detail, in five of the seven models examined.
Why it matters
The shapes found inside AI models often get described as if the model discovered something deep about the world. This paper offers a plainer account for at least some of them: the shape comes from a symmetry in the data, and once you know the symmetry you can predict the shape in advance. That turns a curiosity into something testable. It also gives interpretability researchers, who try to read what models have learned, a tool: look for the symmetry in the statistics first.
The math core
Let L be a family of words and M* a normalized co-occurrence matrix on L, in the paper (P_xy - P_x P_y) / ((P_xy + P_x P_y)/2), where P_xy is the probability that x and y co-occur and P_x, P_y are the marginal probabilities. The analysis rests on a premise from earlier work by Karkada and coauthors on quadratic word-embedding models: the top-r principal components of the learned embeddings are, approximately, the top positive eigenvectors of M* (after centering), scaled by the square roots of their eigenvalues. So the geometry of the embedding is the spectral geometry of M*.
Now suppose a group G acts on L and M* is invariant: M*(g·x, g·y) = M*(x, y) for all g. If L is a G-torsor (words correspond one to one with group elements), M* is a convolution operator on G, so it commutes with the regular representation. By the Peter-Weyl theorem, or for a finite group just Maschke's and Schur's lemmas, the regular representation splits into irreducible representations ρ, each appearing d_ρ times, and an operator commuting with the action acts on each isotypic block through a d_ρ by d_ρ matrix, the group Fourier coefficient Ĉ(ρ) of the kernel. The eigenvectors are therefore matrix coefficients g ↦ sqrt(d_ρ / n) [ρ(g) u]_a, with eigenvalues those of Ĉ(ρ). Theorem 4.1 of the paper states this: the top-r embedding coordinates of a word g are sqrt(λ d_ρ / n) ρ(g)_(as), sorted by eigenvalue, up to an orthogonal transformation.
For a cyclic group Z_n the irreducible representations are the Fourier modes, so each pair of coordinates is (cos 2πkm/n, sin 2πkm/n) times sqrt(Ĉ(k)): circles, one per frequency, with radii set by the Fourier transform of the kernel. Stacking two frequencies gives the saddle-shaped "Pringle" seen in earlier work. For the 24 major and minor triads, transposition and inversion form the dihedral group D_12 acting simply transitively, and the leading two-dimensional irreducible representation, which the paper labels E_5, is the circle of fifths. For points on the sphere S^2 = SO(3)/SO(2) with a kernel depending only on angular distance, the Funk-Hecke theorem diagonalizes M* by spherical harmonics, with eigenvalue c_ℓ = ½ ∫ C(t) P_ℓ(t) dt from the Legendre expansion of the kernel; Theorem 4.2 gives coordinates sqrt(c_ℓ) Y_ℓ^m(p_x). The paper also treats compact groups and general homogeneous spaces in its appendices.
What the paper measured, and its limits
| Setting | Group | Data | Fit reported |
|---|---|---|---|
| Months | Z_12 | text8 Wikipedia sample, 17 million tokens | Per-month cosine 0.96 for the first 4 components (shuffled null 0.35) |
| Chords | D_12 (transposition and inversion) | 371 Bach chorales, about 24,000 chord tokens; ChordBERT | Invariance explains R^2 = 0.822 of co-occurrence; per-chord cosine 0.98 on the leading plane |
| Stars | SO(3) on the sphere | Mistral Large 2 activations (188 objects, from an earlier study); four astronomy books, 131,000 tokens | Degree-1 cosine 0.92 in the model; 0.55 from the books (null 0.22) |
The authors are explicit about scope. The theory needs a family of words whose statistics are at least approximately invariant under some group, "a strong structural property that many word families will simply not have"; months, chords and celestial objects were chosen because they have it. The theorems are about trained word embeddings in a quadratic model, and applying them to the internal activations of a large language model "rests on an empirical premise". The months result reproduces a known one with group theory in place of Fourier analysis; the chord and star results are the new tests. The paper's AI-use statement says generative AI tools helped formulate claims, supply ingredients of proofs, write code and interpret results, and that the authors reviewed all AI-assisted work.
For a broader view of how to read a claim like this, How AI math results are published explains preprints, refereeing and machine checking.
Short answers
Why do language models represent months as a circle?
Because in text, how often two months appear together depends mostly on how far apart they are around the year. That statistic is unchanged by shifting every month forward, and the patterns that respect such a shift are waves around a circle, so the learned embeddings form circles.
What is group-invariant statistics?
Co-occurrence statistics that stay the same when a group of symmetries is applied to the words, such as shifting months, transposing chords or rotating the sky.
Do AI models really learn the circle of fifths?
In this preprint, chord embeddings learned from Bach's chorales, and a small chord language model, show the circle of fifths as their leading two-dimensional shape, as the theory predicts from the transposition and inversion symmetry of the chord statistics.
Is the paper peer reviewed?
No. It is an arXiv preprint, version 1, posted September 30, 2026.
Did this make sense?
Was this helpful?
Get updates by email
Occasional email, only on the topics you pick. Confirm by email; unsubscribe anytime.