Antivision: an ELLM, a language model that rehearses in latent space before speaking
What we are building, why it is not a copy of GPT-2, and what this project's own contribution is.
An LLM picks the next token and finds out afterwards where it ended up. We built one that imagines first: an ELLM. The name says what the system does: antever, to foresee. Before emitting a token, the model rolls each candidate a few steps forward in latent space, without decoding, measures the energy of each imagined future, and only then decides. The token stops being the decision and becomes the output. We call the concept Latent Rehearsal. The underlying ideas are Yann LeCun's. Applying it to text is our part. Seven of the rows in the main table are negative results, and they are there with the same prominence as the positive results.
The three points
- Three pillars: an encoder that represents, a world model that predicts the next state given the token, and an energy that chooses among imagined futures.
- Two names, two things: Antivision is the structure. Latent Rehearsal is the concept it realises.
- What is LeCun's and what is ours, stated plainly: JEPA, energy, anti-collapse and hierarchy are his. Bringing that back to text and keeping the autoregressive head as a decoder is our part, and the chapters measure whether it works.
From the chapter, the beginning
What we are building, why it is not a copy of GPT-2, and what this project's own contribution is — with what has already been measured, including what went wrong.
The previous course took apart models that already existed. This one builds one. The difference is not size — our model is smaller than any of those. The difference is that here every decision was measured, and several follow paths the field found after 2019, on the foundation GPT-2 left.
What it builds has a name: an ELLM, energy-based latent predictive language model — a language model that predicts in latent space and decides by energy. It keeps the token head of an ordinary language model and adds two pieces: a predictor that imagines the next state before writing, and an energy that chooses among those futures. Chapter 17 explains each part of the name and what has already been measured for each one.
The name says what the system does: antever, to foresee. An ordinary language model picks the next token and finds out afterwards where it ended up. Ours, before choosing, imagines where each candidate would take it — in latent space, without decoding — and chooses by the energy of that imagined future. The piece that does this is an action-conditioned world model: given the current state and a candidate token, it predicts the next state. In the code it is called mundo (world); the earlier version, which only predicted the direction without knowing the action, is called compass (compass) and stays in the repository as a control.
What the chapter covers · 6 sections · 13 min
- What this project is
- The three pillars
- What has already been measured
- The map of chapters
- How to reproduce, from scratch
- What this project is not
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 →