The geometry of the embedding: training starts with a perfect space and ruins it
Four instruments to see how, a measurement error that almost slipped through, and the remedy that costs.
Landed here from LinkedIn? This is chapter 03 of the experiment Antivision · Latent Rehearsal. It reads on its own; if you want the beginning, it is chapter 00.
We tried semantic search with RoBERTa. Every similarity came out above 0.99. Sentences on opposite subjects looked identical. At the time we diagnosed it as anisotropy and moved on. Here the question became another: is that a RoBERTa defect, or does it happen to any model? We measured on ours. The space starts perfectly isotropic and training creates the cone. It is no defect of any specific model: it is what happens when you train embeddings with softmax and weight tying. RoPE, RMSNorm and SwiGLU change nothing. It has had a name in the literature since 2019, and four instruments to see it, none of which is enough alone.
The three points
- Anisotropy, effective rank, decorrelation and probes: each instrument has a blind spot. One alone misleads.
- The finding: the cone is created by training with softmax and weight tying. It has a name: representation degeneration problem (Gao et al., 2019).
- The simple remedy is a cosine regulariser. It exists because a semantic search failed, and it is the base of every later run.
From the chapter, the beginning
Training starts with a perfect space and ruins it. Four instruments to see how — and why none of them alone is enough.
In the previous course, we tried semantic search with RoBERTa's embeddings. It failed in a specific way: every similarity came out above +0.99. Sentences about completely different subjects looked identical.
At the time we diagnosed it as anisotropy and moved on. Here the question became a different one: is this a defect of RoBERTa, or does it happen with any model? We measured it on ours.
What the chapter covers · 5 sections · 7 min
- The discovery that motivated the project
- Four instruments, four blind spots
- A measurement error that almost slipped through
- The simple remedy, and what it costs
- Why this matters for the final goal
All chapters of the experiment · Antivision · Latent Rehearsal
- 00 · Antivision: an ELLM, a language model that rehearses in latent space before speaking
- 01 · The custom tokenizer: why 16 thousand tokens suit this corpus better than 50 thousand, and what the whole table shows
- 02 · Two architectures, one file: the fair duel between 2019 and what came after
- 03 · The geometry of the embedding: training starts with a perfect space and ruins it
- 04 · The lineage of collapse: five answers from computer vision, each measured on text
- 05 · The rudder and the world model: three versions of the same question, each measured against the last
- 06 · Method and mistakes: the rules of a legitimate comparison and the catalogue of our own errors
- 07 · Scale and budget: what it costs to reach GPT-3, and why VRAM is almost never the limit
- 08 · The workbench: serve, x-ray and train from the browser
- 09 · The hierarchical architecture: the whole project aligned to the four patterns of the world model
- 10 · What JEPA is, according to LeCun: two talks read concept by concept, and where each one applies
- 11 · Memory and horizon: two claims from LeCun that became experiments, and both hold for text
- 12 · Learned costs and inference modes: the three searches and the two sources of energy, measured
- 13 · The corrections from LeCun's talks: failure, passage, flag, measurement
- 14 · Consulted memory: a bank of abstract states read by attention
- 15 · What it costs and what it delivers: us, GPT-1 and GPT-2 on the only ruler valid across tokenizers
- 16 · The minimum was off the list: the day I measured my own search by energy
- 17 · ELLM: the right name for a language model that predicts in latent space and decides by energy
- 18 · Searching better does not fix the energy: three searches, the same text
- 19 · The inversion that did not repeat: the world model's cost appears once the ruler stops swinging
- 20 · What changed on 17/09: two new chapters and two corrections

Writes the GPT-2 course and runs the Antivision experiment, measuring every run before publishing the number. The LinkedIn posts start here and end in the chapters.
Follow on LinkedIn →