Rafhael Oliveira · IA

The minimum was off the list: the day I measured my own search by energy

Two sentences from LeCun's talk became a ruler. One failed my code, the other confirmed what he argues — and a third measurement showed that the routine metric would have seen neither.

2 min read· chapter: 21 min· Experiment in progress · chapter updated on 12 Sept 2026

Landed here from LinkedIn? This is chapter 16 of the experiment Antivision · Latent Rehearsal. It reads on its own; if you want the beginning, it is chapter 00.

For weeks I said my system picked the next word by "searching for the lowest energy". I went and measured it. In 96 tests, it never found the lowest energy once. The method was this: take the 8 most likely candidates and reorder them by energy. It looks like a search. Except the 8 candidates come from the very network I was trying to correct — if the true minimum sits outside that list, the search can never find it. I computed the exact minimum over all 16,392 options in the vocabulary, one by one, and compared. The result has two ends and both are uncomfortable. At the default setting, the list hits the minimum 100% of the time — but only because the energy had become, almost entirely, the network's own probability. When I give the objective a voice, the list misses the minimum 100% of the time. Either there is no rudder, or the rudder was never on the list.

The three points

  1. The search by energy was not searching. With the network's 8 candidates, the true minimum was left out in 70% of positions on the world model's energy, and in 100% of them once the objective had weight. Not even 128 candidates push coverage past half.
  2. There is no such thing as THE answer, and now there is a number: 12.9 different actions land within 5% of the minimum. Picking one is sampling, not inference — exactly what the talk means by calling this a relation rather than a function.
  3. The model with the BEST validation loss is the one with the shallowest energy landscape: the energy of an arbitrary point in space comes out about four times cheaper there than in the regularized model, across all 18 repeated measures. The three collapse measures I logged at every evaluation gave no warning at all.

From the chapter, the beginning

The lecture makes two claims about energy that can be checked with a ruler: that inference is a search for the minimum, and that training an energy-based model means keeping the landscape from going flat. We measured both on our model. The first one caught us where it hurts: there is a setting in which what we called a search by energy did not find the minimum in a single one of the 96 positions tested — and another in which it always finds it, but only because the energy had become the policy itself.

From the energy-based models part of the lecture, two claims are checkable and had never been checked here.

The first is about inference. "Inference by optimization, not by forward propagation." Given an x, the compatible y are the ones that minimize the energy; finding them is a search, not a forward pass. And he insists on what that implies: "there's no single y for a given x — it's a relation, not a function", and therefore "you can give me multiple answers".

The second is about training. "To train an energy-based model you have to prevent collapse. The collapse problem would be manifested by the energy function being flat everywhere." And the two ways out: the contrastive one, "you generate points outside the region of data and you push the energy up"; and the regularized one, which he prefers, "minimizing the volume of space that can take low energy".

Keep reading chapter 16 →Ler em portuguêsThe PDFs by e-mail →
What the chapter covers · 11 sections · 21 min
  1. The two sentences
  2. The set you search in
  3. Dependency energy: the policy misses the minimum in 70% of positions
  4. Task energy: it depends entirely on the guardrail weight
  5. A relation, not a function: how many answers tie
  6. The fix, and what it costs
  7. Is the landscape flat?
  8. The volume of low energy
  9. Rows and columns: does the taxonomy hold?
  10. The volume, measured again
  11. What changes in the project
All chapters of the experiment · Antivision · Latent Rehearsal
  1. 00 · Antivision: an ELLM, a language model that rehearses in latent space before speaking
  2. 01 · The custom tokenizer: why 16 thousand tokens suit this corpus better than 50 thousand, and what the whole table shows
  3. 02 · Two architectures, one file: the fair duel between 2019 and what came after
  4. 03 · The geometry of the embedding: training starts with a perfect space and ruins it
  5. 04 · The lineage of collapse: five answers from computer vision, each measured on text
  6. 05 · The rudder and the world model: three versions of the same question, each measured against the last
  7. 06 · Method and mistakes: the rules of a legitimate comparison and the catalogue of our own errors
  8. 07 · Scale and budget: what it costs to reach GPT-3, and why VRAM is almost never the limit
  9. 08 · The workbench: serve, x-ray and train from the browser
  10. 09 · The hierarchical architecture: the whole project aligned to the four patterns of the world model
  11. 10 · What JEPA is, according to LeCun: two talks read concept by concept, and where each one applies
  12. 11 · Memory and horizon: two claims from LeCun that became experiments, and both hold for text
  13. 12 · Learned costs and inference modes: the three searches and the two sources of energy, measured
  14. 13 · The corrections from LeCun's talks: failure, passage, flag, measurement
  15. 14 · Consulted memory: a bank of abstract states read by attention
  16. 15 · What it costs and what it delivers: us, GPT-1 and GPT-2 on the only ruler valid across tokenizers
  17. 16 · The minimum was off the list: the day I measured my own search by energy
  18. 17 · ELLM: the right name for a language model that predicts in latent space and decides by energy
  19. 18 · Searching better does not fix the energy: three searches, the same text
  20. 19 · The inversion that did not repeat: the world model's cost appears once the ruler stops swinging
  21. 20 · What changed on 17/09: two new chapters and two corrections

Before this: the GPT-2 course

Rafhael Oliveira
Rafhael Oliveira

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 →