Gowtham Sundar MIRA

MIRA · research notes

Reweighted, or invented?

Qwen3-8B writes solid-state synthesis recipes and physics-based judges grade them. Can RL make the model write a recipe it has never written, or only reweight the ones it already writes? And do the judges know anything about the lab?

Why recipes

One AI model predicted 380,000 new crystals to be stable (Merchant et al. 2023). An autonomous robot lab, trying 58 of them over 17 days, reported making 41 (Szymanski et al. 2023), a count later critiques dispute. The gap between predicting a material and making it is the recipe: which powders, how hot, in what gas. Better batteries, solar cells and catalysts wait on recipes nobody has written yet. So the question is not whether a model can write a recipe. It is whether training can make it find one it has never seen.

Spreads over three ways to supply lithium, measured with the Fisher ruler. Under RL (red), a judge that likes bare oxides bends every path toward that corner, and paths that start on an edge stay on it. SFT (blue) runs straight to its data. Judge and data are illustrative. Drag to turn.

The question

Ask a language model how to make a material and it writes a recipe. Ask it again and it may write a different one. Ask many times and you get a spread of recipes. There are two common ways to fine-tune that spread. SFT trains the model on a fixed set of example recipes. RL lets the model write recipes, scores them with a judge, and pushes it toward the higher-scoring ones. Since RL produced reasoning models (DeepSeek-AI 2025), one camp has found that RL only narrows what a model already does (Yue et al. 2025), and another that long RL expands it (Liu et al. 2025). Recipes are a clean place to test this: there are many valid answers, a robot lab grades them, and novelty is the whole point.

  1. Which kind of fine-tuning can put a recipe into the spread that the model never wrote before, and which can only reweight the recipes already there?
  2. Do the judges we use as rewards know which recipe works better in a real lab?

A cook who only ever makes three kinds of pancakes can get better at choosing between those three. Learning a fourth kind is a different skill. We want to know which kind of training teaches a model a new pancake, and which only helps it choose.

We have a model that writes recipes for making materials, and judges that grade the recipes. We train the model two ways. Then we check two things: did the model learn any recipe it didn’t know before, and does the judges’ grade match what happens when a robot actually cooks the recipe?

For a target formula xx, the policy πθ(y∣x)\pi_\theta(y\mid x) writes a <think> block followed by a JSON recipe yy. Its spread over recipes has a support: the recipes it writes with nonzero probability, which we can only estimate by sampling. Question 1 compares the support after an SFT step and after an on-policy RL step (GDPO) against the starting model’s own resampling floor, and measures exactly how much each step raises the log-probability of recipes the starting model never sampled. Question 2 compares each judge’s ranking of real recipe pairs with robot-lab outcomes, against chance and against the best trivial rule.

The theory predicts a sharp answer. The best RL policy is the starting spread multiplied by erewarde^{\text{reward}}, and zero times anything is zero. SFT’s loss is infinite unless the model covers its data, so it pushes on recipes the model never writes. In the geometry of spreads these are two different kinds of straight line, and only one of them can leave the edge of the map.

What is final

Question 2 has an answer: no judge knows the lab better than a two-line rule.

  • The checker picked the robot’s better route in 17/34 ASTRAL pairs (50.0%); chance is 50%.
  • The ranker failed its pre-registered gate: 21/35 against a bar of 24/35.
  • On 1,915 robot-lab pairs from ARROWS³, the checker’s vote agreed with the lab at 0.616 against 0.583 for the rule “prefer the recipe without carbonates”, a difference of +0.033 with 95% CI [−0.043, +0.112]. The comparator scored 0.474, below chance.
  • Each judge does carry a little information beyond the rule, at most 0.025 bits against the rule’s 0.079; and only the ranker buys real yield when it picks the best of 16 robot-lab recipes, +11.3 yield points [+1.9, +20.6].

The tests, rival explanations and failed predictions are on Does the judge know the lab?.

What is not final yet

Question 1 waits on Phase 20. On 2026-11-16 we found that every SFT model in the project had been trained on examples cut off at 1,024 tokens, before the answer (the bug). Phase 20 retrains them correctly (done; all three passed their training gates) and reruns RL from the corrected model. Its registered predictions, in docs/phases/PHASE20_PREREG.md:

  • P-20-1: SFT adds recipes beyond the starting model’s resampling floor.
  • P-20-2: RL adds none.
  • P-20-3: exactly scored, RL raises recipes it never sampled less than recipes it sampled, and SFT the reverse.
  • P-20-4 and P-20-5: where in the network each change is written, and how many directions it needs.

If P-20-1 and P-20-2 both hold, the answer to question 1 is “SFT installs recipes; RL reweights them.” If either fails, it is reported as failed.

Read in order: Setup says what the model writes and how it is graded. Theory derives why RL and SFT should differ, pictures first. The judges and the audit say what the rewards measure. Experiments and Mechanism hold the registered tests. Methods says how the work was run, including the bug.

How to read this site

Every idea is written once, in labeled layers. The reading mode decides which layers you see.

mode for shows
Paper (default) researchers the exact statement, the hypothesis, the test, rivals, results and the pre-registration verdict
Balanced technical readers from other disciplines Paper, plus intuition, a picture, what the result means and where it sits in the argument
Learner anyone new to this everything, starting from a plain-language version of each idea

Keys: M cycles the modes, 1 2 3 pick one, T switches light and dark, ? lists the keys. Any layer can be linked; a link to a layer your mode hides opens it anyway.

Part I

Setup

1.1The task, the model and the data

A target formula goes in; reasoning and a JSON recipe come out. Qwen3-8B with QLoRA, trained by SFT and by RL, and graded at the end by two robot labs.

Making a material is like baking

Before asking what training does to a model, we need to know what the model is asked to do.

To make a solid material, a chemist picks some starting powders, grinds them together and heats them in a furnace. If the recipe works, the atoms rearrange into the material you wanted. It is like baking: ingredients, amounts, oven temperatures and times. Our model is asked to write that recipe.

The same target can be made by many recipes, and the textbook one is not always the best. For BaLiBO₃, the textbook supplies lithium as a carbonate; a robot lab’s rules picked a two-powder route instead, and it came out much purer. That is what makes recipes a good test: there is no single right answer to memorize, and the best answer can be one the textbook never wrote.

recipe for BaLiBO₃ powders lithium source robot-lab purity
textbook Li₂CO₃ + B₂O₃ + BaO a carbonate 32%
bare oxide Li₂O + B₂O₃ + BaO a bare oxide not tested
rule-picked LiBO₂ + BaO a borate 77%

Purities are ASTRAL’s measurements at each recipe’s best temperature (Chen et al. 2024). Carbonates like Li₂CO₃ are the textbook choice and give off CO₂ as they heat; bare oxides like Li₂O skip that step. Unless a page says otherwise, a recipe means the set of starting powders.

What the model writes

Input: a target formula xx in a closed-book prompt, with no phase-diagram context. Output: a <think> block of reasoning, then a JSON recipe yy: precursors with amounts, and an ordered list of operations (mixing, heating with temperature, duration and atmosphere). A parser turns the JSON into a structured route, and the judges score the route. Completions are capped at 8,192 new tokens.

The model thinks out loud first (“Ba is +2, Li is +1, B is +3… LiBO₂ already holds the Li–B–O unit…”), then writes the recipe in a fixed format a program can read.

The model and the two kinds of fine-tuning

Both SFT and RL are fine-tuning: both change the same adapter weights. They differ in where the training text comes from. SFT reads text it is given. RL reads text it wrote itself, weighted by a judge.

  • Model: Qwen3-8B (Qwen Team 2025), trained through 4-bit QLoRA adapters (Dettmers et al. 2023) with TRL (von Werra et al. 2020).
  • SFT: cross-entropy on a fixed set of completions. Since Phase 20 the loss covers the assistant turn only and nothing is truncated; before Phase 20 it did not (the bug).
  • RL: GDPO, a GRPO variant (Shao et al. 2024), on-policy: for each prompt the current model writes a group of 8 completions, a judge scores each on several channels, and the update pushes toward the completions that scored above the group’s average (how scores become a push). The objective is clipped like PPO’s, with a KL leash of strength β\beta; Phase 12 and E1 ran 300 steps at β=0\beta = 0, no leash.
JRL(θ)=E[1G∑i=1Gmin⁡(πθ(yi)πold(yi)⏟importance ratioA^i⏟advantage, clip⁡(⋅,1±ϵ)⏟trust regionA^i)]−β KL⁡(πθ ∥ πref)⏟leash\begin{aligned} \mathcal J_{\text{RL}}(\theta)=\E\Big[\frac1G\sum_{i=1}^{G}\min\Big(&\underbrace{\tfrac{\pi_\theta(y_i)}{\pi_{\text{old}}(y_i)}}_{\text{importance ratio}}\underbrace{\hat A_i}_{\text{advantage}},\ \underbrace{\operatorname{clip}(\cdot,1\pm\epsilon)}_{\text{trust region}}\hat A_i\Big)\Big]\\ &-\underbrace{\beta\,\KL(\pi_\theta\,\|\,\pi_{\text{ref}})}_{\text{leash}} \end{aligned}LSFT(θ)=−Ey∼q[ln⁡πθ(y)⏟log-likelihood of the data]=KL⁡(q ∥ πθ)+const\mathcal L_{\text{SFT}}(\theta)=-\E_{y\sim q}\big[\underbrace{\ln\pi_\theta(y)}_{\text{log-likelihood of the data}}\big]=\KL(q\,\|\,\pi_\theta)+\text{const}

The models trained in this project have short names (Base, Corpus SFT, RS-SFT, E3, E3c, GDPO-300, Phase 12, E1). Names lists what each one is.

The data

Three kinds of data. Published recipes, which SFT can copy. A robot lab that made 35 materials twice, once the textbook way and once its own way, which tests the model. And a second robot lab that tried many recipes for a few materials and measured how much of each it got, which tests the judges.

  • Literature: 17.6k text-mined synthesis routes (Kononova et al. 2019), every one a recipe that worked, since failures go unpublished. Corpus SFT trained on a cleaned subset (1,217 training examples). A second text-mined set of 80,806 records (Lee et al. 2025) shows chemists’ carbonate habit: a carbonate is chosen 24 times as often as a bare oxide.
  • Base’s own samples: RS-SFT trains on Base’s completions that scored at least 0.9 on the checker (283 training examples); E3 and E3c train on Base’s own checker-valid samples (505 training examples; E3 also favors rare recipes).
  • RL prompts: 6,568 target formulas, disjoint from the SFT data.
  • ASTRAL (Chen et al. 2024), the test: 35 targets made by a robot lab twice, once by the textbook precursor set and once by the set its rules picked, with measured purity. A hit means the model writes the rule-picked set at least once in 32 tries. The rule-picked set was purer for 20 of 35 targets, so a hit means “wrote the unusual recipe”, not “wrote the better one”. A clean subset of 22 targets is the primary read.
  • ARROWS³ (Szymanski et al. 2023), the referee for judges: 4,870 pairs of robot-lab outcomes for three targets (YBCO, LTOPO, NTMO), with measured yields, failures included.
  • Held-out targets: 40 targets used by the Phase 18 to 20 readouts, never trained on by RL.

The two robot-lab datasets matter most. They are the only places where a recipe meets a furnace. Everything else in the project is scored by software.

Next: the validator and how its scores become a push.

1.2The validator, and how a score becomes a push

A deterministic physics checker scores each recipe on ten channels. GDPO turns those scores into a push, one channel at a time, using only differences inside a group of eight.

The validator: a physics oracle

RL needs a judge. Ours is a program, not a person, so every grade can be recomputed exactly.

Picture a kitchen inspector with a checklist. Do the ingredients exist? Do the amounts add up to the dish you said you’d make? Is the oven temperature possible? Would the reaction release energy? The inspector checks each line and writes a score. The inspector never tastes the cake.

The validator checks whether a recipe is physically valid: atoms balance, charges balance, the reaction is downhill in energy, the temperatures are possible. Valid is not the same as good. Two valid recipes can differ a lot in how pure the product comes out, and the checklist has no line for that.

validator.py is deterministic. It uses pymatgen (Ong et al. 2013) and Materials Project phase diagrams (Jain et al. 2013), with a Gibbs-energy correction for finite temperature (Bartel et al. 2018). Each recipe gets ten channel scores in [0,1][0, 1]:

channel checks weight in the aggregate score
target_match the balanced reaction yields the requested target gate
stoichiometry the reaction balances exactly 0.10
amount_accuracy the stated amounts match the solved ratios 0.10
thermodynamic_favorable reaction energy from the computed reaction 0.20
target_stability the target’s energy above the convex hull 0.15
chempot_atmosphere oxygen chemical potential against the stated atmosphere 0.10
charge_neutrality oxidation states balance 0.10
precursors_exist each precursor’s formula is in Materials Project 0.10
operation_order operations come in a sensible order 0.075
temperature_plausible every temperature lies in 100 to 2,000 °C 0.075

The weights combine the channels into one aggregate score, used for example by RS-SFT’s 0.9 filter. GDPO does not use them: there, every channel is its own equal vote (below). The site calls this judge the checker; its page gives each channel’s equation. Two more judges, the ranker and the comparator, are on the judges pages.

How scores become a push

The model writes 8 recipes for the same target. For each line of the checklist, we ask: which of these 8 did better than the others on this line? Recipes that beat their group get pushed up, and recipes that lost get pushed down. If all 8 got the same score on a line, that line can’t tell them apart, so it pushes nothing.

GDPO grades on a curve, separately for each channel. A recipe’s advantage is how far above its group it sits, channel by channel, added up. This keeps one loud channel from drowning the others. It also means a channel only matters when the model sometimes fails it.

For a prompt xx, sample a group of G=8G = 8 completions. Let rikr_{ik} be completion ii‘s score on channel kk. GDPO (TRL’s normalize_then_sum aggregation) z-scores each channel inside the group, then adds the channels as equal votes: weight 1 for every check, 0.2 for a light format check. Four properties follow, and each matters later:

  • Scale-free. Multiplying a channel by 100 changes nothing; only the order of answers inside the group matters.
  • Ties are silent. A channel on which all 8 answers agree contributes exactly 0.
  • Equal votes. Every live channel counts the same, however much it matters chemically.
  • Abstention. A channel that cannot be computed for an answer is left out for that group, never paid as 0.5.
zik=rik−rˉk⏞above or below the groupsk+ϵ⏟the group’s spread on channel k,Ai=∑kwk⏟1 per check, 0.2 for format zikz_{ik} = \frac{\overbrace{r_{ik} - \bar r_k}^{\text{above or below the group}}}{\underbrace{s_k + \epsilon}_{\text{the group's spread on channel } k}}, \qquad A_i = \sum_k \underbrace{w_k}_{1 \text{ per check, } 0.2 \text{ for format}}\, z_{ik}

If every completion in the group has the same score on channel kk, then rik−rˉk=0r_{ik} - \bar r_k = 0 for all ii, so zik=0z_{ik} = 0: the channel adds nothing to any advantage.

One reward channel for a group of 8 completions: raw scores, then z-scores within the group, which become each completion's advantage. Scores are illustrative; try All tie.
One pass/fail check on a group of 8: as the pass rate rises, the chance that all 8 tie, and so push nothing, rises fast. Drag the pass rate or draw groups.

Reward capacity

A channel is live only when the model fails it sometimes. A checklist line the model always passes is a line RL cannot learn from, however important the line is.

Reward capacity is the share of the reward that can produce a push: the average over channels of the within-group variance of the channel’s z-scores. A channel that never varies contributes 0. A channel that varies in every group contributes (G−1)/G=7/8(G-1)/G = 7/8, because z-scores use G−1G - 1 in their denominator and the variance uses GG, so capacity tops out at 87.5% (strength). Capacity is a property of the pair (judge, model): the same checker has different capacity on a model that fails more often.

The project’s capacity numbers for the checker and the ranker were measured on samples from models built on the truncated SFT (Phase 20 findings audit, findings 1 and 32). They return after Phase 20.

This is the first of the five properties of a judge: strength. Next: what a spread is.

Part II

Theory

2.1A spread is an energy landscape

Ask the model many times and you get a spread of recipes. A softmax is a Boltzmann distribution, so the spread reads as energies: likely recipes sit low, rare ones high, and a recipe the model never writes sits at infinity.

Ask again and again

Ask one friend for a pancake recipe and you learn one recipe. Ask a hundred friends and you learn which recipes are common, which are rare, and which nobody mentions. A language model is a hundred friends in one: every time you ask, it can answer differently.

Give every possible recipe its own jar. Each time the model answers, drop a marble in that recipe’s jar. After many answers, tall jars are recipes the model likes, short jars are recipes it writes now and then, and empty jars are recipes it never wrote. The row of jars is the model’s spread.

Base Qwen3-8B asked for BaLiBO₃ 231 times. Each row is one recipe, colored by how it supplies lithium; its length is how often Base wrote it.

The spread is a probability distribution over recipes, and sampling estimates it. A recipe with probability pp shows up about npnp times in nn samples. With 32 samples per target, a recipe needs a probability near 1/32 to be expected even once. The jars we can see are the ones tall enough for our sampling budget.

Let πθ(y∣x)\pi_\theta(y\mid x) be the model’s distribution over completions for target xx, and let ρ(y)\rho(y) map a completion to its recipe: its set of precursors, the definition every readout on this site uses unless it says otherwise. The spread is

px(r)=∑y: ρ(y)=rπθ(y∣x),p_x(r) = \sum_{y:\ \rho(y) = r} \pi_\theta(y\mid x),

and its support is supp⁡px={r:px(r)>0}\supp p_x = \{r : p_x(r) > 0\}. From nn independent samples, recipe rr is seen at least once with probability 1−(1−px(r))n1 - (1 - p_x(r))^n, which is about n px(r)n\,p_x(r) when that is small.

A softmax is a Boltzmann distribution

Now put each recipe on a staircase. Recipes on low steps are easy for the model to reach, so it writes them often. Recipes on high steps are hard to reach. Every step up makes a recipe the same number of times rarer.

Physics already has a name for a spread over states: the Boltzmann distribution. In a warm gas, low energy levels are crowded and each step up holds fewer particles. A language model’s softmax has exactly this form, with the network’s raw score for an answer playing the role of minus its energy. So any spread can be read backwards as a staircase of energies. Energy is measured in nats: one nat higher means e≈2.7e \approx 2.7 times rarer, and 2.3 nats means 10 times rarer.

A softmax over answers with logits zyz_y at temperature τ\tau is a Boltzmann distribution with energies Ey=−zyE_y = -z_y at temperature T=τT = \tau. Conversely every distribution is the Boltzmann distribution of its own energy, Ey=−ln⁡py+cE_y = -\ln p_y + c for any constant cc. Only energy differences are observable: they fix probability ratios, and cc cancels in the partition function.

πθ(y∣x)=exp⁡(zy/τ)Z⏟the model’s softmax⟺py=e−Ey/TZ⏟a Boltzmann distributionEy=−ln⁡py+const⏟read any spread as energies\begin{gathered} \underbrace{\pi_\theta(y\mid x)=\frac{\exp(z_y/\tau)}{Z}}_{\text{the model's softmax}} \quad\Longleftrightarrow\quad \underbrace{p_y=\frac{e^{-E_y/T}}{Z}}_{\text{a Boltzmann distribution}}\\[6pt] \underbrace{E_y=-\ln p_y+\text{const}}_{\text{read any spread as energies}} \end{gathered}py1py2=eEy2−Ey1⏞energy gap in natsZ=∑ye−Ey/T⏟the partition function: shares add to 1\begin{gathered} \frac{p_{y_1}}{p_{y_2}} = e^{\overbrace{E_{y_2} - E_{y_1}}^{\text{energy gap in nats}}}\\[6pt] Z=\underbrace{\textstyle\sum_{y} e^{-E_y/T}}_{\text{the partition function: shares add to } 1} \end{gathered}
Base's BaLiBO₃ spread read as energies: −ln(share), in nats, above the most common recipe. Common recipes sit low; the never-written recipe sits at infinity.

Never written means infinite energy

A recipe the model never writes sits on a step so high it might as well be infinitely high. No amount of asking will reach it.

py=0p_y = 0 exactly when Ey=+∞E_y = +\infty. A softmax never outputs an exact zero, so for a neural model “never written” means an energy so high that no affordable sampling budget reaches it. With nn samples the expected count n e−En\,e^{-E} falls below one once E>ln⁡nE > \ln n: at 32 samples that is about 3.5 nats, and at 30 nats a recipe is about one in 101310^{13}. The support we can measure is the set of recipes below about ln⁡n\ln n.

Every later page uses this picture. RL lowers the energy of rewarded recipes by a finite amount. SFT pours in a new population. The project’s first question is which of the two can bring a recipe down from infinity.

Temperature, precisely. A recipe is a long string of tokens, and sampling temperature divides each token’s logits before that token’s softmax. The sequence’s probability is a product of token probabilities, each renormalized at its own step, and a recipe sums over many token sequences. So token-level temperature reshapes the spread, but it is not exactly E/TE/T at the recipe level. It still cannot make an exact zero nonzero. This matters for the project: some ASTRAL sample sets were drawn at temperature 1.0 and others at 0.9, and every comparison across them is flagged in the bug write-up.

2.2Every spread is a point

Spreads over three recipes fill a triangle. It has two honest kinds of straight line: mixing, straight in probabilities, and tilting, straight in log-probabilities. A tilt that starts on an edge never leaves it.

Every spread is a point

Sort the model’s answers into three families, say by how they supply lithium: a carbonate, a bare oxide, or something else. Three shares that add up to 100% make one dot in a triangle. A dot near a corner means the model almost always picks that family. A dot in the middle means it picks all three equally. A dot on an edge means one family never shows up at all.

Every spread over three choices is one point in a triangle. Drag the point: each share is its distance from the opposite edge, and on an edge one share is 0.

Each share is a coordinate, so a spread is a point in space. Two rules cut that space down: shares can’t be negative, and they must add to one. What is left is a triangle. A real model has one coordinate for every answer it could write, so its spreads live in the same shape in millions of dimensions. Three is the most we can draw, and everything on this page holds in any number of dimensions.

Spreads over nn recipes form the probability simplex Δn−1={p∈Rn:pi≥0, ∑ipi=1}\Delta^{n-1} = \{p \in \R^n : p_i \ge 0,\ \sum_i p_i = 1\}. For a set of recipes SS, the face Δ(S)={p:supp⁡p⊆S}\Delta(S) = \{p : \supp p \subseteq S\} holds the spreads that write only recipes in SS. The triangle’s edges and corners are faces. Changing a spread’s support means moving from one face to another.

p=(p1,p2,p3)∈R3⏟each share is a coordinate→  pi ≥ 0  the positive corner⏟shares can’t be negative→  ∑ipi = 1  Δ2⏟corner ∩ plane = a triangle\begin{aligned} &\underbrace{p=(p_1,p_2,p_3)\in\R^3}_{\text{each share is a coordinate}}\\ \xrightarrow{\;p_i\,\ge\,0\;}\quad&\underbrace{\text{the positive corner}}_{\text{shares can't be negative}}\\ \xrightarrow{\;\sum_i p_i\,=\,1\;}\quad&\underbrace{\Delta^2}_{\text{corner}\,\cap\,\text{plane}\,=\,\text{a triangle}} \end{aligned}

Two kinds of straight line

There are two ways to walk from one spread to another. You can mix: pour in a little of the other spread at a time. Or you can lean: multiply each family’s weight by the same factor again and again, then rescale so the weights add up to one. Mixing walks a straight line across the triangle. Leaning walks a curve.

A spread has two natural sets of coordinates: its probabilities, and its log-probabilities. Each set has its own straight lines. Mixing is straight in probabilities; it is what SFT does when it pours in training data. Leaning is straight in log-probabilities; it is what RL does when it multiplies each recipe’s probability by erewarde^{\text{reward}}. Information geometry treats both as geodesics of the same space, a pair dual to each other (Amari 2016).

The m-geodesic from pp to qq is pt=(1−t) p+t qp_t = (1-t)\,p + t\,q, straight in the mixture coordinates pp. The e-geodesic is ln⁡pt=(1−t)ln⁡p+tln⁡q−ln⁡Zt\ln p_t = (1-t)\ln p + t\ln q - \ln Z_t, straight in the exponential coordinates ln⁡p\ln p up to normalization. An exponential tilt p etR/Ztp\,e^{tR}/Z_t is an e-geodesic through pp in the direction RR. In log coordinates an edge of the triangle sits at ln⁡0=−∞\ln 0 = -\infty.

pt=(1−t) p+t q⏟m-geodesic: straight in p (mixing, SFT)ln⁡pt=(1−t)ln⁡p+tln⁡q−ln⁡Zt⏞rescale to sum to 1⏟e-geodesic: straight in ln⁡p (tilting, RL)\begin{gathered} \underbrace{p_t = (1-t)\,p + t\,q}_{\text{m-geodesic: straight in } p \text{ (mixing, SFT)}}\\[8pt] \underbrace{\ln p_t = (1-t)\ln p + t\ln q - \overbrace{\ln Z_t}^{\text{rescale to sum to } 1}}_{\text{e-geodesic: straight in } \ln p \text{ (tilting, RL)}} \end{gathered}
The two straight lines between the same two spreads: the mixture, straight in probabilities, and the tilt, straight in log-probabilities. Drag P and Q, then press Play.

Edges are walls for a tilt

Start on an edge, a spread that never writes bare oxides. Leaning multiplies the bare-oxide weight, and zero times anything is zero, so the walk never leaves the edge. Mixing pours some bare oxide in as soon as you take the first step.

Before you press Play below, guess: will the tilt curve ever leave the edge?

If p(y)=0p(y) = 0, then on the e-geodesic pt(y)∝p(y)1−t q(y)t=0p_t(y) \propto p(y)^{1-t}\,q(y)^t = 0 for every t<1t < 1: the e-geodesic stays in pp‘s face until it arrives at qq. On the m-geodesic, pt(y)=t q(y)>0p_t(y) = t\,q(y) > 0 for every t>0t > 0 when q(y)>0q(y) > 0: it leaves the face at once. A tilt keeps the support exactly: supp⁡(p etR/Zt)=supp⁡p\supp(p\,e^{tR}/Z_t) = \supp p for every finite tt.

Start on the edge where the bare-oxide share is 0. The mixture leaves the edge at once; the tilt slides along it and never leaves. Press Play, or drag P along the edge.

Two projections

Training is a projection: find the spread the model can reach that is closest to a target spread. “Closest” can be measured in two directions, because KL divergence is not symmetric, and SFT and RL use opposite ones. Each kind of closest point is reached from the target by one of the two kinds of straight line, meeting the reachable set at a right angle.

The m-projection of qq onto a family MM minimizes KL⁡(q ∥ p)\KL(q\,\|\,p) over p∈Mp \in M: SFT’s objective, with qq the data. The e-projection minimizes KL⁡(p ∥ q)\KL(p\,\|\,q) over p∈Mp \in M. The KL-regularized RL objective is an e-projection onto the family of reachable policies, because

Eπ[R]−β KL⁡(π ∥ πref)=−β KL⁡(π ∥ π∗)+βln⁡Z,π∗∝πref eR/β.\E_{\pi}[R] - \beta\,\KL(\pi\,\|\,\pi_{\text{ref}}) = -\beta\,\KL(\pi\,\|\,\pi^*) + \beta\ln Z, \qquad \pi^* \propto \pi_{\text{ref}}\,e^{R/\beta}.

The generalized Pythagorean theorem (Amari 2016): if the m-geodesic from pp to qq meets the e-geodesic from qq to rr at a right angle in the Fisher metric, then KL⁡(p ∥ r)=KL⁡(p ∥ q)+KL⁡(q ∥ r)\KL(p\,\|\,r) = \KL(p\,\|\,q) + \KL(q\,\|\,r). The minimizer of KL⁡(q ∥ p)\KL(q\,\|\,p) over an e-flat family is where an m-geodesic from qq meets the family at a right angle, and the minimizer of KL⁡(p ∥ q)\KL(p\,\|\,q) over an m-flat family is reached by an e-geodesic.

KL⁡(p ∥ r)⏟long side  =  KL⁡(p ∥ q)⏟along the m-geodesic  +  KL⁡(q ∥ r)⏟along the e-geodesicwhen the two geodesics meet at a right angle at q\begin{gathered} \underbrace{\KL(p\,\|\,r)}_{\text{long side}} \;=\; \underbrace{\KL(p\,\|\,q)}_{\text{along the m-geodesic}} \;+\; \underbrace{\KL(q\,\|\,r)}_{\text{along the e-geodesic}}\\[4pt] \text{when the two geodesics meet at a right angle at } q \end{gathered}

Next: measured properly, the triangle is a sphere. Then the two flows that travel these lines: RL tilts and SFT pours.

Online RL’s tendency to land on the KL-closest solution has been described before (Shenfeld et al. 2025). We derived the projection picture independently and use that paper as a check on the math, not as its source.

2.3Measured properly, it is a sphere

The fair distance between two spreads is how many samples it takes to tell them apart. Measured that way, the triangle curls into part of a sphere, and rare recipes turn out to be far from everything.

The Fisher ruler

The triangle hides a trap: its distances are unfair. Moving 10% of the marbles from a full jar to a half-full jar barely changes anything you’d notice. Moving 10% into a nearly empty jar changes a lot. We need a ruler that knows this.

Here is a fair ruler. Two spreads are far apart if a few samples are enough to tell which one you are drawing from, and close if you would need thousands. With that ruler, nudging a common recipe is a short step and nudging a rare one is a long step.

Each sample you draw is a little piece of evidence about which spread produced it. The variance of that evidence is the Fisher information. Small variance means you need many samples to tell two spreads apart, so they are close. Change coordinates by drawing each share at its square root, and this curved ruler becomes ordinary length on a sphere.

Compare pp with p+dpp + dp. One sample yy gives evidence ℓy=ln⁡py+dpypy≈dpypy\ell_y = \ln\frac{p_y + dp_y}{p_y} \approx \frac{dp_y}{p_y} (its log-likelihood ratio). Its variance under pp is the Fisher information, ds2=Ep[ℓ2]=∑ydpy2/pyds^2 = \E_p[\ell^2] = \sum_y dp_y^2/p_y, and about 1/ds21/ds^2 samples are needed to tell the two spreads apart (Wootters 1981). Substituting uy=pyu_y = \sqrt{p_y} gives duy=dpy/(2py)du_y = dp_y/(2\sqrt{p_y}), so ds2=4∑yduy2ds^2 = 4\sum_y du_y^2: ordinary length, scaled by 4, on the set ∑yuy2=∑ypy=1\sum_y u_y^2 = \sum_y p_y = 1, which is the unit sphere. The geodesic distance is d(p,q)=2arccos⁡∑ypyqyd(p, q) = 2\arccos\sum_y\sqrt{p_y q_y}. KL divergence is the same metric to second order: KL⁡(p ∥ p+dp)=12 ds2+O(∣dp∣3)\KL(p\,\|\,p + dp) = \tfrac12\,ds^2 + O(|dp|^3) (Amari 2016).

ℓy≈dpypy⏟evidence from one sample  ⟹  ds2=Ep[ℓ2]=∑ydpy2py⏟Fisher information→  uy = py    ds2=4∑yduy2,∑yuy2=1⏟length on the unit sphere\begin{aligned} \underbrace{\ell_y \approx \frac{dp_y}{p_y}}_{\text{evidence from one sample}} \;&\Longrightarrow\; \underbrace{ds^2 = \E_p[\ell^2] = \sum_y \frac{dp_y^2}{p_y}}_{\text{Fisher information}}\\ &\xrightarrow{\;u_y\,=\,\sqrt{p_y}\;}\; \underbrace{ds^2 = 4\sum_y du_y^2,\quad \sum_y u_y^2 = 1}_{\text{length on the unit sphere}} \end{aligned}d(p,q)  =  2arccos⁡(∑ypy qy⏟overlap of the two spreads)d(p,q) \;=\; 2\arccos\Big(\underbrace{\textstyle\sum_y \sqrt{p_y\,q_y}}_{\text{overlap of the two spreads}}\Big)
Measured with the Fisher ruler, the triangle bends into one-eighth of a sphere: each share p moves to √p. The grid is evenly spaced on the sphere; flatten it and the lines crowd toward the edges. Drag to turn.

Rare recipes are far

On this ball, a rare recipe sits near the rim, and steps near the rim are long. Adding a little to a recipe the model almost never writes is a big move. And RL hardly ever draws rare recipes in the first place, so it has two reasons not to move them.

With two recipes the sphere is a quarter circle and d=2 ∣arcsin⁡p2−arcsin⁡p1∣d = 2\,|\arcsin\sqrt{p_2} - \arcsin\sqrt{p_1}|. Moving a recipe from 1% to 11% costs 0.48; moving one from 50% to 60% costs 0.20. The same ten points are 2.4 times as far near the edge. Putting mass ε\varepsilon on a recipe that had none costs exactly 2arcsin⁡ε2\arcsin\sqrt\varepsilon, finite. But in logit coordinates, where a softmax policy’s parameters live, the same face sits at ln⁡0=−∞\ln 0 = -\infty: infinitely far for any optimizer that moves logits by finite steps.

Two flows

Steepest ascent depends on how you measure steps. Measure them with the Fisher ruler and the two kinds of training become the two kinds of straight line from the last page. RL flows along a tilt and treats edges as walls. SFT flows along a mixture, straight to the data, crossing edges freely.

Natural-gradient ascent on expected reward, π˙=G−1∇πEπ[r]\dot\pi = G^{-1}\nabla_\pi\E_\pi[r] with the Fisher metric G=diag⁡(1/π)G = \operatorname{diag}(1/\pi) on the simplex, is the replicator equation π˙y=πy (ry−rˉ)\dot\pi_y = \pi_y\,(r_y - \bar r) (Amari 1998; Taylor et al. 1978). Its solution is the exponential tilt πt∝π0 etr\pi_t \propto \pi_0\,e^{tr}, so every face is invariant. Natural-gradient descent on the SFT loss gives π˙y=qy−πy\dot\pi_y = q_y - \pi_y, whose solution πt=e−tπ0+(1−e−t) q\pi_t = e^{-t}\pi_0 + (1 - e^{-t})\,q is the mixture path. Both are steepest descent with the same ruler; they differ only in what drives them. The derivations are on RL tilts and SFT pours.

Two flows on the sphere. RL with a judge that likes bare oxides bends toward that corner, and paths that start on an edge stay on it. SFT runs straight to its data. Drag to turn.

Free energy

The RL objective with a KL leash is the physicist’s free energy: average energy minus entropy, at a temperature set by the leash. Its minimum is a Boltzmann spread, which closes the loop with the energy picture. A loose leash means a strong pull from the reward; a tight leash keeps the model near where it started.

Dividing the KL-regularized objective by −β-\beta gives a free energy,

−J(π)β=Eπ[Eref(y)−R(y)/β⏟tilted energy]−H(π)+const,-\frac{J(\pi)}{\beta} = \E_\pi\big[\underbrace{E_{\text{ref}}(y) - R(y)/\beta}_{\text{tilted energy}}\big] - H(\pi) + \text{const},

whose minimizer is the Boltzmann distribution of the tilted energy: π∗∝πref eR/β\pi^* \propto \pi_{\text{ref}}\,e^{R/\beta}. The main runs of this project used β=0\beta = 0, no leash; then training time plays the role of 1/β1/\beta, and the model slides along the same tilt path. All of this is exact for an idealized model in which every recipe’s probability is its own parameter. A network shares weights between recipes, so read it as the lens, not a proof about Qwen3-8B.

Next: the two flows in detail. RL tilts derives the tilt from the RL objective; SFT pours derives the mixture from the SFT loss.

2.4RL tilts the spread

The best leashed RL policy is the starting spread times e to the reward: an exponential tilt. It lowers rewarded energies by a finite amount, so zero stays zero, and in real training a recipe the model never samples gets no direct push.

Where the tilt comes from

If you give a child a sticker every time they pick a certain recipe from a cookbook, they pick it more often. But you can only reward a recipe they actually picked. A recipe they never open never earns a sticker.

RL works the same way. The model writes some recipes, the judge scores them, and the model leans toward the better-scored ones. Every recipe it writes slides up or down a little. A recipe it never writes is never scored, so nothing pulls it up.

Ask what the best possible RL policy looks like, if the model could set every recipe’s probability freely but were kept on a leash to its starting spread. The answer is short: take the starting spread and multiply each recipe by erewarde^{\text{reward}}, then rescale. In energy terms, the reward is subtracted from each recipe’s energy. Subtracting a finite number from infinity still leaves infinity, so an empty jar stays empty.

Treat each recipe’s probability as a free parameter and maximize reward minus a KL leash of strength β\beta toward the starting policy π0\pi_0. The Lagrangian, its stationarity condition and its solution are below; t=1/βt = 1/\beta. This is the Gibbs variational principle, and the same closed form underlies DPO (Levine 2018; Rafailov et al. 2023). The family π0 etr/Z(t)\pi_0\,e^{tr}/Z(t) is an e-geodesic (the geometry). Because a share is multiplied, never added to, 0⋅etr=00 \cdot e^{tr} = 0 for every tt and every rr.

max⁡π Eπ[r]−β KL⁡(π ∥ π0)⏟reward minus leashL=∑yπyry−β∑yπyln⁡πyπ0,y−λ(∑yπy−1)⏟shares add to 10=∂L∂πy=ry−βln⁡πyπ0,y−β−λ⟹ln⁡πy=ln⁡π0,y+ryβ+const\begin{aligned} &\underbrace{\max_\pi\ \E_\pi[r]-\beta\,\KL(\pi\,\|\,\pi_0)}_{\text{reward minus leash}}\\ \mathcal L&=\sum_y\pi_y r_y-\beta\sum_y\pi_y\ln\frac{\pi_y}{\pi_{0,y}}-\underbrace{\lambda\Big(\sum_y\pi_y-1\Big)}_{\text{shares add to } 1}\\ 0=\frac{\partial\mathcal L}{\partial\pi_y}&=r_y-\beta\ln\frac{\pi_y}{\pi_{0,y}}-\beta-\lambda\\ \Longrightarrow\quad\ln\pi_y&=\ln\pi_{0,y}+\frac{r_y}{\beta}+\text{const} \end{aligned}πy∗=1Z(t)  π0,y⏟starting spread  e t ry⏟exponential tilt,t=1β⟺Ey∗=E0,y⏟old energy−t ry⏟a finite drop+ln⁡Z(t)\begin{gathered} \pi^*_y=\frac{1}{Z(t)}\;\underbrace{\pi_{0,y}}_{\text{starting spread}}\;\underbrace{e^{\,t\,r_y}}_{\text{exponential tilt}},\qquad t=\frac1\beta\\[8pt] \Longleftrightarrow\qquad E^*_y=\underbrace{E_{0,y}}_{\text{old energy}}-\underbrace{t\,r_y}_{\text{a finite drop}}+\ln Z(t) \end{gathered}
RL as a tilt of Base's BaLiBO₃ spread: each share is multiplied by e^(t × score), then renormalized. Illustrative scores: +1 bare oxide, −1 carbonate, 0 other, +2 for the never-written recipe. The gray tick marks Base. Press Play.

The same tilt, reached by training

The tilt is not only where leashed RL ends up. It is also the path RL takes, if each step is measured with the Fisher ruler from the sphere. Then every recipe’s log-probability changes at a steady rate set by how much better than average it scores, and the log-odds between two recipes change at a constant rate.

Natural-gradient ascent on expected reward, with the Fisher metric G=diag⁡(1/π)G = \operatorname{diag}(1/\pi), gives the replicator equation; dividing by πy\pi_y and integrating gives a straight line in log-probability, which is the tilt again, now reached by training time tt (Amari 1998).

π˙=G−1∇πEπ[r],G=diag⁡(1/π)⟹π˙y=πy (ry−rˉ)the replicator equation⟹ddtln⁡πy=ry−rˉ(t)⟹ln⁡πy(t)=ln⁡π0,y+t ry−ln⁡Z(t)straight in log-probability\begin{aligned} \dot\pi&=G^{-1}\nabla_\pi\E_\pi[r], \qquad G=\operatorname{diag}(1/\pi)\\ \Longrightarrow\quad\dot\pi_y&=\pi_y\,(r_y-\bar r) &&\text{the replicator equation}\\ \Longrightarrow\quad\tfrac{d}{dt}\ln\pi_y&=r_y-\bar r(t)\\ \Longrightarrow\quad\ln\pi_y(t)&=\ln\pi_{0,y}+t\,r_y-\ln Z(t) &&\text{straight in log-probability} \end{aligned}

What real training sees

Each training step, the model writes 8 answers for one target. The judge scores them, and the answers above the group’s average get nudged up. A recipe that never shows up among the 8 is never scored, so it never moves.

Real training estimates the gradient from the model’s own samples and follows it through shared weights with Adam, which sits between the plain and the natural gradient. In the tabular picture, the plain gradient’s push on recipe yy‘s logit is πyAy\pi_y A_y, with advantage Ay=ry−rˉA_y = r_y - \bar r: proportional to how often yy is written. Under this gradient the log-odds between two recipes move as πaAa−πbAb\pi_a A_a - \pi_b A_b, so the already likely recipe moves faster (“rich get richer”); the natural gradient divides π\pi back out. In a network, logits share parameters, so a sampled recipe’s update also moves recipes that were never sampled. To first order, one step changes the log-probability of any string y′y' by η ⟨∇θln⁡π(y′), g⟩\eta\,\langle\nabla_\theta \ln\pi(y'),\, g\rangle, where g=∑iAi ∇θln⁡π(yi)g = \sum_i A_i\,\nabla_\theta\ln\pi(y_i) is the step’s update from its sampled answers. That inner product, an empirical kernel between strings, is the only route by which RL can reach a recipe it never sampled.

∂J∂zy=πy Ay⏟RL: needs y to be writtenddtln⁡πaπb=πaAa−πbAb⏟plain gradient: rich get richerΔln⁡π(y′)≈η ⟨∇θln⁡π(y′), ∑iAi∇θln⁡π(yi)⟩⏟reach through shared weights: an empirical kernel\begin{gathered} \underbrace{\frac{\partial J}{\partial z_y}=\pi_y\,A_y}_{\text{RL: needs } y \text{ to be written}} \qquad\qquad \underbrace{\frac{d}{dt}\ln\frac{\pi_a}{\pi_b}=\pi_a A_a-\pi_b A_b}_{\text{plain gradient: rich get richer}}\\[10pt] \underbrace{\Delta\ln\pi(y')\approx\eta\,\Big\langle\nabla_\theta\ln\pi(y'),\ \textstyle\sum_i A_i\nabla_\theta\ln\pi(y_i)\Big\rangle}_{\text{reach through shared weights: an empirical kernel}} \end{gathered}

On-policy RL with these judges reweights recipes the model already writes. After RL the model writes no more new recipes than resampling the starting model would produce, and recipes the starting model never sampled gain less log-probability than recipes it did sample.

Phase 20 registers two tests on corrected models: sft-rssft-full trained by RL into E1-full (ranker reward, β=0\beta = 0, 300 steps, the same seed as E1).

  • P-20-2 (RL adds none). E1-full’s new-recipe rate at steps 100, 200 and 300 does not exceed sft-rssft-full’s resampling floor (the floor).
  • P-20-3 (exact reach). Score 671 fixed recipe strings exactly, by teacher forcing, before and after the step. Let Δ\Delta be each string’s change in log-probability, centered within its target. Per target, take the mean Δ\Delta of strings the before-model never sampled minus the mean Δ\Delta of strings it sampled; the statistic is the median over targets, with a 95% CI from a 10,000-draw bootstrap over targets. Prediction: the CI lies entirely below 0 for the RL step, and entirely above 0 for each SFT step.

We train a corrected model with RL, then ask it for recipes many times. If RL only leans, its answers should hold no more never-seen recipes than we get by just asking the starting model again. We also measure, recipe by recipe, how much more likely each one became. If RL only leans, the recipes it tried should gain more than the recipes it never tried.

  1. Prolonged RL expands the boundary. With enough steps, RL adds new solutions (Liu et al. 2025). Our runs stop at 300 steps, so this rival is not tested at its own scale.
  2. Indirect reach. The shared-weight kernel above carries the push from sampled recipes to unsampled ones, so RL raises recipes it never wrote. P-20-3 tests this directly.
  3. A weak judge. The reward varied too little inside groups to move anything. E1 uses the ranker, a judge with more live channels than the checker, to separate this rival from the mechanism.
  4. The KL anchor. The penalty toward the reference model holds RL in place.

The KL anchor was never what held RL in place. In every GDPO run the reference model was Base, not the SFT model: its logits matched a freshly loaded Base to a maximum absolute difference of 0.000000, against 10.05 for the SFT policy. Phase 12 and E1 also ran at β=0\beta = 0, with no KL term at all. Whatever holds the support in place, it is the sampling distribution, not the reference.

Measured on the old models (GDPO from the truncated Corpus SFT, before Phase 20): over 200 targets, pass@16 went from 0.870 to 0.880 after 300 GDPO steps, a paired difference of +1.0 point against a pre-set bar of 5 points, with 188 of 200 targets tied. The gap shrank as kk grew, from +2.4 points at k=1k = 1 to +1.0 point at k=16k = 16 (McNemar pp = 0.77). That is the signature of sharpening, not expansion (Yue et al. 2025). Its starting model never saw an answer during SFT, so the result says what GDPO did from that start and nothing more.

P-20-2 and P-20-3 are registered in docs/phases/PHASE20_PREREG.md (commit 2ac94de) and wait on E1-full. The corrected SFT start, sft-rssft-full, has been trained and has passed its training gates. No new-recipe rate or reach statistic appears here until docs/phases/PHASE20_RESULTS.md reports them.

One thing is settled. The rope that is supposed to tie RL back to the starting model was not what stopped it, because in the main runs there was no rope. Everything else is being measured again on fixed models.

Rival 4 is out: the reference was Base (finding 17), and the decisive runs used β=0\beta = 0. Rivals 1 to 3 stand until Phase 20 reports.

P-20-2: pending. P-20-3: pending. Phase 19 ran an exploratory version of the reach check on the old models; P-20-3 is its registered version.

If P-20-2 and P-20-3 hold, RL here is a tool for choosing, not for discovering. It can make the model prefer the better of the recipes it already writes. A recipe the model has never written has to come from somewhere else: the training data, the prompt, or the sampler.

Before: the sphere and its two flows. Next: what SFT does instead. Which recipes survive a tilt when many are valid is on the judges page.

The tabular derivations are the cleanest case, not the whole story: a transformer’s logits for different recipes share almost all their parameters, which is why reach has to be measured rather than derived. The test scores fixed strings exactly instead of estimating probabilities from samples, because the sample-based estimator used earlier in the project was badly biased for rare recipes and was withdrawn (an instrument we withdrew).

2.5SFT pours in a new population

SFT's loss is infinite unless the model covers every recipe in its data, so SFT pushes a recipe up whether or not the model would ever write it. Measured with the Fisher ruler, SFT is a mixture: it can add recipes, and it can erase them.

SFT pours

If RL can only lean toward recipes the model already writes, how does a model ever learn a recipe it has never written?

You show it. SFT is like handing the model a stack of recipe cards and asking it to copy them. It doesn’t matter whether the model would ever have thought of a recipe on its own: if the recipe is in the stack, the model is pushed toward it. It is like pouring a second bag of marbles into the jars, including jars that were empty. And jars the new bag has no marbles for slowly drain.

SFT minimizes cross-entropy: how surprised the model is by each training recipe. A recipe the model gives zero probability is infinitely surprising, so the loss forbids empty jars wherever the data has marbles. The push SFT gives a recipe depends on how much of it is in the data, not on how often the model writes it. That is the opposite of RL.

SFT minimizes L(θ)=−Ey∼q[ln⁡πθ(y)]=KL⁡(q ∥ πθ)+H(q)\mathcal L(\theta) = -\E_{y\sim q}[\ln \pi_\theta(y)] = \KL(q\,\|\,\pi_\theta) + H(q): a forward KL, infinite if πθ(y)=0\pi_\theta(y) = 0 for any y∈supp⁡qy \in \supp q. The model never has to sample the data’s recipes. For a softmax over answers, the push on recipe yy‘s logit is qy−πyq_y - \pi_y: when πy≈0\pi_y \approx 0 and qy>0q_y > 0, the logit rises at rate qyq_y whether or not the model would sample yy.

L(θ)=KL⁡(q ∥ πθ)⏟= ∞ if πθ(y)=0 for some y ∈ supp⁡q  +  H(q)⏟fixed by the data\mathcal L(\theta)=\underbrace{\KL(q\,\|\,\pi_\theta)}_{=\,\infty \text{ if } \pi_\theta(y)=0 \text{ for some } y\,\in\,\supp q}\;+\;\underbrace{H(q)}_{\text{fixed by the data}}−∂L∂zy=qy−πy⏟SFT: the data’s mass pulls, even at πy ≈ 0∂J∂zy=πy Ay⏟RL: vanishes at πy ≈ 0\underbrace{-\frac{\partial \mathcal L}{\partial z_y}=q_y-\pi_y}_{\text{SFT: the data's mass pulls, even at } \pi_y\,\approx\,0} \qquad\qquad \underbrace{\frac{\partial J}{\partial z_y}=\pi_y\,A_y}_{\text{RL: vanishes at } \pi_y\,\approx\,0}

SFT is a mixture

Measure SFT’s steps with the Fisher ruler, as for RL, and the path is a straight line in probability: the model’s spread is blended with the data’s. Anything in the data appears at once, even if the model never wrote it. Anything missing from the data drains away.

Natural-gradient descent on the SFT loss, with G−1=diag⁡(π)G^{-1} = \operatorname{diag}(\pi) and ∂KL⁡(q ∥ π)/∂πy=−qy/πy\partial\KL(q\,\|\,\pi)/\partial\pi_y = -q_y/\pi_y, cancels the πy\pi_y and leaves a linear equation. Its solution is the m-geodesic from π0\pi_0 toward qq (the geometry), with mixing weight λ=1−e−t\lambda = 1 - e^{-t}. Its support is supp⁡π0∪supp⁡q\supp\pi_0 \cup \supp q for every t>0t > 0, and every recipe outside supp⁡q\supp q decays as e−te^{-t}: SFT creates support, and erases it.

π˙=−G−1∇πKL⁡(q ∥ π),∂KL⁡∂πy=−qyπy⟹π˙y=πy(qyπy−1)=qy−πythe πy cancels⟹π(t)=e−t⏟weight on the start π0+(1−e−t)⏟weight on the data qstraight in probability\begin{aligned} \dot\pi&=-G^{-1}\nabla_\pi\KL(q\,\|\,\pi),\qquad \frac{\partial\KL}{\partial\pi_y}=-\frac{q_y}{\pi_y}\\ \Longrightarrow\quad\dot\pi_y&=\pi_y\Big(\frac{q_y}{\pi_y}-1\Big)=q_y-\pi_y &&\text{the } \pi_y \text{ cancels}\\ \Longrightarrow\quad\pi(t)&=\underbrace{e^{-t}}_{\text{weight on the start}}\,\pi_0+\underbrace{(1-e^{-t})}_{\text{weight on the data}}\,q &&\text{straight in probability} \end{aligned}
SFT as a mixture: a fraction λ of a training spread q is poured into Base's BaLiBO₃ spread. The rule-picked recipe, absent from q, drains; the never-written recipe, present in q, appears. q is illustrative. Press Play or drag λ.
SFT covers every lump of its data, because missing any part is infinitely costly; RL with a leash is penalized only where it puts weight, so it can commit to one lump.

Two forces, side by side

RL: exponential tilt SFT: mixture
objective maximize reward on its own samples maximize likelihood of someone else’s answers
natural-gradient flow π˙=π (r−rˉ)\dot\pi=\pi\,(r-\bar r) π˙=q−π\dot\pi=q-\pi
path π0etr/Z\pi_0e^{tr}/Z, straight in log-probability (1−λ)π0+λq(1-\lambda)\pi_0+\lambda q, straight in probability
moves weight between recipes it already writes yes yes
adds a recipe it never wrote no yes, if it is in the data
erases a recipe no, only makes it rarer yes, if it is missing from the data

SFT adds recipes. After SFT, on targets outside its training set, the model writes recipes absent from the starting model’s reference samples at a rate above the starting model’s own resampling floor.

P-20-1 (SFT adds support). Phase 20 uses the new-support measure of P-18A-2 with the same code (research/phase18_a_transport_exact.py), the same λ, the same floor definition and the same targets. Prediction: the rate above Base’s resampling floor is positive, with the lower end of its CI above 0, for each of sft-rssft-full, sft-e3-full and sft-e3c-full. P-20-3’s SFT half adds the exact version: for Base → sft-e3-full and Base → sft-e3c-full, recipes Base never sampled gain more log-probability than recipes it sampled.

We train three fresh, correctly built SFT models. We ask each for recipes on targets it never trained on and count recipes the starting model didn’t write. Some new recipes show up any time you ask again, so we compare against what we get by asking the starting model a second time.

  1. Self-made data only reweights. RS-SFT, E3 and E3c learn from Base’s own answers, so their training recipes are already in Base’s support on the training targets. SFT on them could act like a tilt. The readouts look for spillover onto other targets, which a tilt cannot produce.
  2. Resampling noise. Fresh samples always contain some recipes the reference set missed. The floor measures exactly this.
  3. The new recipes are junk. SFT could add support by writing broken recipes. The checker pass rate of the new recipes is reported next to the rate.

P-20-1 waits on sft-rssft-full, sft-e3-full and sft-e3c-full (registered in docs/phases/PHASE20_PREREG.md). All three are trained and passed their training gates; their samples and readouts are next. Every earlier number about what SFT did came from models trained on examples cut off before the answer (the bug), so none is shown here.

P-20-1: pending.

If SFT adds recipes and RL does not, order matters. Whatever a model will ever be able to choose between has to be put in before RL starts, and the data used for SFT decides it. RL then decides which of those the model prefers.

Before: RL tilts. This ends the theory. Next: the judges that supply the reward rr, and whether their rr points anywhere useful.

Gradient descent on the weights is neither of the two idealized flows: Adam on shared weights sits somewhere between the plain gradient and the natural gradient, and a recipe’s probability is not its own parameter. The flows say what each objective pushes toward; the readouts say what the network did. This page is also the one the 1,024-token bug hit hardest. The old SFT models trained on the prompt and the first 180 to 550 tokens of reasoning, and almost none ever saw a recipe.

Part III

The judges

3.1Three judges

RL climbs whatever reward it is given, so the judge decides where the model goes. Three judges, three theories of a good recipe, and why a recipe judge has a harder job than a math grader.

Three theories of a good recipe

RL is only as good as its judge. If the judge rewards the wrong thing, the model learns the wrong thing very efficiently.

A checker is an inspector with a checklist: pass or fail on each line. A ranker is a grader who gives points for the qualities chemists say matter. A comparator is a taster who looks at two dishes side by side and says which is better, and by how much.

Each judge is a reward function r(y)r(y), and each encodes a different theory of what makes a recipe good. The checker says a good recipe obeys physical law. The ranker says a good recipe follows a robot lab’s precursor-selection principles. The comparator says goodness only exists relative to another recipe. RL will climb whichever one it is given, so the theory is the target.

checker ranker comparator
question is it physically valid? how good is it? which of two is better?
input → output 1 recipe → several scores in [0,1][0,1] 1 recipe → 1 score in [0,1][0,1] 2 recipes → a margin in [−6,6][-6,6]
validity is the reward gates that multiply gates: both must pass
scale fixed piecewise maps hand-set rails, clipped ranks among the model’s own answers
missing value check left out of the group objective left out, weights renormalized channel dropped for that pair only
can contain loops? no no yes
trained on GDPO run 1 (10 checks), Phase 12 (5 checks) E1, E1-full never; audited only

Heights can always be climbed. Arrows can be climbed only if they add up to zero around every loop: the space of judges makes that precise.

One right answer, or many

In a math problem there is one right answer. Pushing the model onto it is exactly what you want. A material can be made by several good recipes. If the judge crowns one winner, RL piles everything onto it and the other good recipes disappear.

Three ways to reward many valid recipes, run on the same starting spread over 8 recipes: a graded score, a valid-set reward with the natural gradient, and the same reward with the plain gradient. Press Play.

RL with a verifier became famous on math (DeepSeek-AI 2025), where one correct answer earns reward 1 and collapsing onto it costs nothing. Synthesis is different: carbonate, bare-oxide and rule-picked routes can all make the same compound. A recipe judge should reward the valid set, not one winner. Even then, the update rule decides whether diversity survives.

With a graded score, the tilt concentrates on the best recipe the model already writes: πt∝π0etr→δ\pi_t \propto \pi_0 e^{tr} \to \delta on arg⁡max⁡supp⁡π0r\arg\max_{\supp\pi_0} r. With the valid-set reward r=1Vr = \mathbf 1_V, every valid recipe gets the same factor ete^t, so the natural gradient keeps their ratios: π∞=π0(⋅∣V)\pi_\infty = \pi_0(\cdot \mid V). The plain gradient on logits does not. For a,b∈Va, b \in V it gives ddtln⁡πaπb=(πa−πb)(1−rˉ)\frac{d}{dt}\ln\frac{\pi_a}{\pi_b} = (\pi_a - \pi_b)(1 - \bar r): the likelier valid recipe pulls away.

πt∝π0etr  →  δarg⁡max⁡r⏟graded score: one recipe winsr=1V:  π∞=π0( ⋅∣V)⏟valid set, natural gradient: ratios keptddtln⁡πaπb=(πa−πb)(1−rˉ)⏟valid set, plain gradient: rich get richer\begin{gathered} \underbrace{\pi_t\propto\pi_0e^{tr}\;\to\;\delta_{\arg\max r}}_{\text{graded score: one recipe wins}}\\[8pt] \underbrace{r=\mathbf 1_V:\ \ \pi_\infty=\pi_0(\,\cdot\mid V)}_{\text{valid set, natural gradient: ratios kept}}\\[8pt] \underbrace{\tfrac{d}{dt}\ln\tfrac{\pi_a}{\pi_b}=(\pi_a-\pi_b)(1-\bar r)}_{\text{valid set, plain gradient: rich get richer}} \end{gathered}

Next, each judge in turn: the checker, the ranker, the comparator. Then the space of all judges, and the audit that asks whether any of them points the right way.

3.2The checker

Verify, don't rank: each check is a law a working recipe must obey. Its flaw is built in: a law every answer obeys pushes nothing, so the checker goes quiet exactly when the model gets good.

Could this recipe physically work?

The checker is an inspector with a checklist. Do the atoms balance? Do the amounts match? Does the reaction run downhill in energy? Is the furnace gas right? Are the steps in order? Each line is pass or fail, or somewhere in between.

The checker carries the habit of RL with verifiable rewards into chemistry: verify, don’t rank. Each check is a law a working recipe must obey, and the intended effect is to pull the model toward recipes that obey the laws. The flaw is built in. A law every answer obeys gives all 8 answers in a group the same score, and GDPO turns a tie into zero push. So the checker goes quiet exactly when the model gets good.

validator.py computes ten checks (the table). GDPO run 1 trained on all ten. Phase 12 kept five: Balances, Amounts, Downhill, Atmosphere and Step order. The other five were dropped because they could not separate answers inside a group: target stability and target match depend only on the target, so all 8 answers score the same; precursor existence and plausible temperature were almost always passed; charge neutrality was always tied. In GDPO each kept check is one equal vote, plus a format check at weight 0.2. A check that cannot be computed for an answer (no balanced reaction found, no phase diagram) is left out of the group, never paid as 0.5.

Five laws, each turned into a score

check score law
Balances 1 if some ν>0\nu > 0 solves ∑iνiPi→T+∑gμgGg\sum_i \nu_i P_i \to T + \sum_g \mu_g G_g with gases G⊂{CO2,H2O,O2,N2,NH3}G \subset \{\mathrm{CO_2}, \mathrm{H_2O}, \mathrm{O_2}, \mathrm{N_2}, \mathrm{NH_3}\}, else 0 conservation of atoms; a gas may be consumed only if the atmosphere supplies it
Amounts piecewise linear in e=∑i∣ai/κ−νi∣/∑iνie = \sum_i \lvert a_i/\kappa - \nu_i\rvert / \sum_i \nu_i, κ=∑a/∑ν\kappa = \sum a / \sum \nu, with knots at 0.10, 0.30 and 0.75 the stated amounts match the balanced ratios; κ\kappa removes the batch size
Downhill piecewise linear in ΔGrxn(T)\Delta G_{\text{rxn}}(T) per atom, knots at −0.025, +0.025 and +0.150 eV/atom reaction energy from Materials Project, with a Gibbs correction for solids (Bartel et al. 2018) and tabulated values for gases
Atmosphere 1 if the declared gas matches the oxygen chemical-potential window where the target is stable (air if ΔμOlo>−1\Delta\mu_O^{\text{lo}} > -1 eV, inert or reducing if ΔμOhi<−3\Delta\mu_O^{\text{hi}} < -3 eV), else 0 thermodynamic stability under the furnace gas
Step order 1−out-of-order adjacent stepsassessed pairs1 - \dfrac{\text{out-of-order adjacent steps}}{\text{assessed pairs}}; heat, grind, heat counts as a regrind operations in a sensible order
Ai=∑k=15zik⏟five equal votes, each z-scored in the group+0.2 zi(format)⏟a light format checkA_i=\underbrace{\sum_{k=1}^{5} z_{ik}}_{\text{five equal votes, each z-scored in the group}}+\underbrace{0.2\,z_i(\text{format})}_{\text{a light format check}}

A worked example

Two real answers for BaLiBO₃. One uses a bare oxide for lithium, the other a carbonate. Watch which checks disagree.

Both answers balance, use the right amounts, suit air and order their steps correctly, so four of the five votes tie and contribute nothing to the advantage. The whole push between them comes from Downhill: Li₂O starts higher in energy than Li₂CO₃, so the bare-oxide route drops further. The computed reaction-energy gap in favor of the bare oxide is 0.19 to 0.32 eV/atom. That direction is the checker’s, not the lab’s (right physics, wrong construct).

Next: the ranker, built to fix the checker’s silence.

3.3The ranker

Validity becomes a gate and quality becomes a gradient: graded objectives drawn from a robot lab's precursor-selection principles, which never all agree. Temperature is where they fight.

Validity is a gate, quality is a gradient

The ranker first checks that a recipe is valid at all. A recipe that fails is simply out. A valid recipe then gets points for good qualities: few starting powders, a strong push toward the target, a furnace no hotter than needed. The points are averaged into one score.

“The validator checks; the ranker ranks.” Validity stops being a reward and becomes a filter: gates multiply, so passing costs nothing and failing zeroes the score. Quality comes from objectives that are graded, never all satisfied at once, and in tension with each other. The design rule: every objective must be one the model fails at a useful rate, or it is a dead vote. The intended effect is to move the model toward the robot lab’s precursor-selection principles (Chen et al. 2024), plus cooler heating.

core/ranker.py scores a recipe yy as the product of five gates and the weighted mean of the objectives K(y)K(y) that apply to it. Gates: the reaction balances; every powder exists in Materials Project; charge neutrality at least 0.9; the route is readable; every temperature lies in 100 to 2,200 °C. In GDPO each objective fkf_k is its own z-scored vote, and a gate failure sets every objective to missing (left out), never to 0.

r(y)=∏g=151[g(y)]⏟gates: all or nothing  ⋅  ∑k∈K(y)wk∑j∈K(y)wj fk(y)⏟mean of the objectives that apply,wk=17r(y)=\underbrace{\prod_{g=1}^{5}\mathbf 1\big[g(y)\big]}_{\text{gates: all or nothing}}\;\cdot\;\underbrace{\sum_{k\in K(y)}\frac{w_k}{\sum_{j\in K(y)}w_j}\,f_k(y)}_{\text{mean of the objectives that apply}},\qquad w_k=\tfrac17
objective fk(y)f_k(y), clipped to [0,1][0,1] source
n_precursors 1−(n−2)+/21-(n-2)_+/2 ASTRAL principle 1: start from two precursors
precursor_instability mean energy above hull of the powders / 0.05/\,0.05 eV principle 2: high-energy precursors
driving_force_margin −ΔG/0.3-\Delta G/0.3 eV principle 3: the target is the deepest point of the reaction hull
slice_competing_phases 1−Ncomp/41-N_{\text{comp}}/4, two-powder routes only principle 4: few competing phases between the two precursors
temperature_economy (Tlit+150−Tmax⁡)/800(T_{\text{lit}}+150-T_{\max})/800, only if ΔG≤+25\Delta G \le +25 meV/atom cooler, if it still reacts
volatility_risk 1−max⁡el (Tmax⁡−Tvol,el)+/4001-\max_{\text{el}}\,(T_{\max}-T_{\text{vol,el}})_+/400 don’t boil off Li, Na, K, P
decomposition_match 0.5+(Tmax⁡−max⁡iTdec,i)/6100.5+(T_{\max}-\max_i T_{\text{dec},i})/610 heat past carbonate breakdown

ASTRAL’s principle 5, a large inverse hull energy, was removed because it depends only on the target, so it ties every group. Two earlier objectives were deleted: step_economy, which rewarded shortcuts chemists avoid on purpose, and precursor_availability, which rewarded being common in the literature and so penalized ASTRAL’s winners.

Where the objectives fight

The furnace temperature is a tug of war. One objective wants it cooler to save energy. Another wants it hot enough to break down the carbonate. A third caps it before lithium starts to evaporate. The ranker’s favorite temperature is where the three balance.

A recipe’s ranker score as a function of its maximum temperature is a sum of clipped linear ramps with opposite slopes (the other objectives do not depend on temperature), so it is piecewise linear and its maximum sits at a kink, where one ramp reaches its rail or switches on. That makes the ranker’s preferred temperature sensitive to the hand-set scales (150, 400, 610 and 800 K above), which is one reason the comparator replaces scales with ranks.

How often each objective sat on its rail, and how far E1 moved temperature and carbonate use, were measured on models built on the truncated SFT. They return after Phase 20, which reruns E1 from the corrected start.

Next: the comparator, built to fix the ranker’s hand-set scales.

3.4The comparator

Chemists compare recipes, so this judge only compares. Each physical channel becomes a rank among the model's own answers, and a verdict is a sum of rank differences: a projection onto the diagonal of a cube.

Chemists compare recipes

Instead of grading one recipe out of ten, the comparator looks at two recipes side by side and says “this one, because the other one melts first.” It never gives a score on its own, only which of two is better and by how much.

An absolute score needs an arbitrary scale: is 0.7 good? A chemist instead says “A beats B because B melts first.” So the comparator only answers which of two, and by how much. Each of its channels is one physical way a solid-state reaction fails, with a law behind it, and the rules were locked in advance: uniform weights, one design iteration, and the robot lab as the readout, never the calibration.

channel raw value (larger is better) law
C2 unspent driving force mean formation energy per atom of the powders DFT energies
C3 reactive temperature window −(δlow/wlow)2−(δhigh/whigh)2-(\delta_{\text{low}}/w_{\text{low}})^2-(\delta_{\text{high}}/w_{\text{high}})^2, window from half the highest melting point to the first melting or volatility ceiling Tammann’s rule
C4 interface count −n(n−1)/2-n(n-1)/2: every pair of powders is a side-reaction front combinatorics
C5 volatilization −∑elexp⁡ ⁣((Tmax⁡−Tvol)/(Tboil/10.6))-\sum_{\text{el}}\exp\!\big((T_{\max}-T_{\text{vol}})/(T_{\text{boil}}/10.6)\big) Trouton’s rule and Clausius–Clapeyron
C6 decomposition clearance σ((Tmax⁡−max⁡iTdec,i)/40 K)\sigma\big((T_{\max}-\max_i T_{\text{dec},i})/40\ \text{K}\big) the width of a DTA peak
C7 gas evolution −ngas/ntarget-n_{\text{gas}}/n_{\text{target}} from the balanced reaction stoichiometry

C1, a selectivity margin, is diagnostic only: it could be computed on none of ASTRAL’s 35 targets. C8, a diversity term, was specified but never scored.

Step 1: every channel becomes a rank

The channels are in different units: electron volts, kelvin, counts. Rather than choose weights to put them on one scale, replace each raw value by its rank among the model’s own answers. Units vanish, any increasing rescaling of a channel changes nothing, and every channel gets the same spread.

Over the pool, FcF_c is uniform on [0,1][0,1] (the probability integral transform), so every channel carries the same variance. The cost: ranks stretch dense regions, so a tiny raw difference can become a large rank difference, and channels with many ties pile up at the median.

Fc(y)=#{xc<xc(y)}⏞answers it beats+12 #{xc=xc(y)}⏞half the tiesN⏟a pool of 940 of the model’s answers∈[0,1]F_c(y)=\frac{\overbrace{\#\{x_c<x_c(y)\}}^{\text{answers it beats}}+\overbrace{\tfrac12\,\#\{x_c=x_c(y)\}}^{\text{half the ties}}}{\underbrace{N}_{\text{a pool of 940 of the model's answers}}}\in[0,1]

Step 2: a verdict is a projection

Six ranks are six coordinates, so a recipe is a point in a cube. The margin between two recipes is the gap between their shadows on the cube’s long diagonal.

S(y)S(y) is the set of channels computable for yy; a channel that cannot be computed for one recipe of a pair is dropped for that pair. So m(a,b)=−m(b,a)m(a,b) = -m(b,a) and each term lies in [−1,1][-1,1]. If every pair shared the same channel set, the margin would be a difference of heights, and the comparator would be a ranker in disguise. It is not, and the space of judges shows why that matters.

m(a,b)=∑c ∈ S(a)∩S(b)[Fc(a)−Fc(b)]=⟨F(a)−F(b), 1S⟩one shared S:m(a,b)=s(a)−s(b)⏟a difference of heights,s=⟨F,1S⟩\begin{aligned} m(a,b)&=\sum_{c\,\in\,S(a)\cap S(b)}\big[F_c(a)-F_c(b)\big]=\big\langle F(a)-F(b),\ \mathbf 1_S\big\rangle\\ \text{one shared } S:\quad m(a,b)&=\underbrace{s(a)-s(b)}_{\text{a difference of heights}},\qquad s=\langle F,\mathbf 1_S\rangle \end{aligned}

Worked example

How independent the channels were on the starting model’s answers, and how much of the margin each contributed, were measured on samples from a truncated-SFT model. They return after Phase 20.

The comparator was audited and never trained on: it failed its pre-registered gate (the lab audit). Next: the space of all judges, where its arrows meet Hodge theory.

3.5The space of judges: gradient plus curl

A reward is an arrow at the policy. A pairwise judge is a flow on a graph, and Hodge theory splits it into a gradient, which a reward can express, and loops, which no reward can. The comparator's loops come only from channels it drops.

A reward is an arrow

A reward gives every recipe one number. A taster who compares recipes two at a time does not have to agree with any such number. Before asking how much of a taster’s opinion survives being turned into a reward, we need a picture of what a reward does to a model.

At any moment, a reward says which way the model should move: which recipes to write more, which to write less. Draw that as an arrow. A long arrow means the model moves fast. Two rewards whose arrows point the same way teach the same thing.

With the Fisher ruler from the sphere, the arrow a reward draws at a policy has a clean meaning. Its length is the reward’s spread over the model’s own answers: a reward that scores every answer the same draws no arrow. The angle between two rewards’ arrows is their correlation. And how fast any feature of the recipes moves, such as the share of carbonates, is the covariance of that feature with the reward. Evolutionary biologists know that last fact as the Price equation.

The tangent space of the simplex at π\pi, with the Fisher metric, is the space of mean-zero functions with the L2(π)L^2(\pi) inner product (Amari 2016). A reward rr acts through its advantage A=r−Eπ[r]A = r - \E_\pi[r], so shifting rr by a constant changes nothing (Ng et al. 1999), and two rewards are the same judge to RL exactly when their advantages agree. These quantities are what the audit measures: strength is the arrow’s length, direction its shadow on each feature (Price 1970), aim its angle to the lab’s own arrow.

π˙y=πyAy⏟the arrow, A=r−Eπ[r]⟨u,v⟩π=∑yπ˙yu π˙yvπy=Cov⁡π(ru,rv)⏟length2=Var⁡, cos⁡=Corr⁡ddtEπ[φ]=Cov⁡π(r,φ)⏟the Price equation\begin{gathered} \underbrace{\dot\pi_y=\pi_y A_y}_{\text{the arrow, } A=r-\E_\pi[r]}\\[6pt] \langle u,v\rangle_\pi=\sum_y\frac{\dot\pi^u_y\,\dot\pi^v_y}{\pi_y}=\underbrace{\operatorname{Cov}_\pi(r_u,r_v)}_{\text{length}^2=\operatorname{Var},\ \cos=\operatorname{Corr}}\\[6pt] \underbrace{\frac{d}{dt}\E_\pi[\varphi]=\operatorname{Cov}_\pi(r,\varphi)}_{\text{the Price equation}} \end{gathered}

A comparison is a flow on a graph

Draw every recipe as a dot, and for every pair the taster compared, draw an arrow from the loser to the winner, thicker when the win is bigger. If there is a clear order, all arrows lead uphill. But a taster can say A beats B, B beats C and C beats A, like rock, paper, scissors. Those arrows go round in a circle, and no ranking can say who is on top.

Recipes are vertices, compared pairs are edges, and a verdict Yab=−YbaY_{ab} = -Y_{ba} is a flow along its edge. Three operators from discrete calculus describe flows (Lim 2020): the gradient of a height function, the curl around a triangle, and the divergence at a vertex. Heights can never make a loop: going round a triangle, the height differences cancel. A ranker is exactly a gradient flow.

(grad⁡h)ab=ha−hbflows made from heights: the rankers(curl⁡Y)abc=Yab+Ybc+Ycanet gain once round a triangle(div⁡Y)a=∑bYabnet wins of a\begin{aligned} (\operatorname{grad}h)_{ab}&=h_a-h_b &&\text{flows made from heights: the rankers}\\ (\operatorname{curl}Y)_{abc}&=Y_{ab}+Y_{bc}+Y_{ca} &&\text{net gain once round a triangle}\\ (\operatorname{div}Y)_a&=\textstyle\sum_b Y_{ab} &&\text{net wins of } a \end{aligned}curl⁡grad⁡h=(ha−hb)+(hb−hc)+(hc−ha)=0(the discrete ∇×∇h=0)\operatorname{curl}\operatorname{grad}h=(h_a-h_b)+(h_b-h_c)+(h_c-h_a)=0\qquad\text{(the discrete } \nabla\times\nabla h=0\text{)}

The best ranker is an orthogonal projection

Given any set of verdicts, find the heights that explain them best. What is left over has no net wins anywhere, so it is perpendicular to every ranker. Every comparator is a ranker plus a loop, at right angles, and the share of its energy in the loop is how far it is from being a reward.

This is HodgeRank (Jiang et al. 2011). On a complete graph the least-squares heights are the row means of YY, and the residual is pure curl.

With three answers a comparator is a point in 3D. Rankers fill the plane Y_ab + Y_bc + Y_ca = 0; loops fill the line along (1, 1, 1). HodgeRank drops the point onto the plane, and the loop share is sin² of its latitude. Drag to turn.
h∗=arg⁡min⁡h∑a<b(Yab−(ha−hb))2⟹L h∗=div⁡YL the graph Laplacian→  L = nI−11⊤  ha∗=1n∑bYabBorda: the mean margin\begin{aligned} h^*&=\arg\min_h\sum_{a<b}\big(Y_{ab}-(h_a-h_b)\big)^2\\ \Longrightarrow\quad L\,h^*&=\operatorname{div}Y &&L \text{ the graph Laplacian}\\ \xrightarrow{\;L\,=\,nI-\mathbf 1\mathbf 1^\top\;}\quad h^*_a&=\tfrac1n\textstyle\sum_b Y_{ab} &&\text{Borda: the mean margin} \end{aligned}R=Y−grad⁡h∗,div⁡R=0⟹⟨R,grad⁡g⟩=⟨div⁡R, g⟩=0perpendicular to every ranker⟹∥Y∥2=∥grad⁡h∗∥2+∥R∥2Pythagorasloop share=∥R∥2/∥Y∥2\begin{aligned} R=Y-\operatorname{grad}h^*,\quad\operatorname{div}R&=0\\ \Longrightarrow\quad\langle R,\operatorname{grad}g\rangle&=\langle\operatorname{div}R,\,g\rangle=0 &&\text{perpendicular to every ranker}\\ \Longrightarrow\quad\lVert Y\rVert^2&=\lVert\operatorname{grad}h^*\rVert^2+\lVert R\rVert^2 &&\text{Pythagoras}\\ \text{loop share}&=\lVert R\rVert^2/\lVert Y\rVert^2 \end{aligned}

A dropped channel is the only source of loops

The comparator adds rank differences over the channels both recipes share. If every pair shared the same channels, each verdict would be a difference of two heights, and loops would be impossible. Loops can only come from pairs that drop different channels, such as a recipe with no carbonate, for which “decomposition clearance” means nothing.

Lemma. If every pair uses the same channel set SS, then Yab=sa−sbY_{ab} = s_a - s_b with s=∑c∈SFcs = \sum_{c\in S}F_c, so every loop sums to 0. Hence all of the comparator’s curl comes from triangles whose pairs use different channel sets. The checker and the ranker score one recipe at a time, so their curl is 0 by construction.

S(a)={3},S(b)=S(c)={3,6}(a has no carbonate)S(a)=\{3\},\quad S(b)=S(c)=\{3,6\}\qquad\text{(}a\text{ has no carbonate)}m(a,b)+m(b,c)+m(c,a)=[F3(a)−F3(b)+F3(b)−F3(c)+F3(c)−F3(a)]⏟channel 3 is shared by all three pairs: telescopes to 0+[F6(b)−F6(c)]⏟channel 6 is on one edge only: the curl\begin{aligned} &m(a,b)+m(b,c)+m(c,a)\\ &=\underbrace{\big[F_3(a)-F_3(b)+F_3(b)-F_3(c)+F_3(c)-F_3(a)\big]}_{\text{channel 3 is shared by all three pairs: telescopes to } 0}\\ &\quad+\underbrace{\big[F_6(b)-F_6(c)\big]}_{\text{channel 6 is on one edge only: the curl}} \end{aligned}

Averaged over a group, a comparator is a ranker

Here is the fair objection. In training, each answer would be pushed by its average margin against the other answers in its group. Loops cancel in that average. So does the curl matter at all?

In a group of nn answers, answer aa‘s push is its row mean Aa=1n∑bYabA_a = \frac1n\sum_b Y_{ab}. Write Y=grad⁡h+YcurlY = \operatorname{grad}h + Y_{\text{curl}}. A curl flow is divergence-free, so its row sums vanish, and Aa=ha−hˉA_a = h_a - \bar h whatever the loop share is. The objection is right to first order: over many groups, the push is the HodgeRank ranker. What remains different from a ranker: a comparator’s heights depend on who else is in the group; its ruler is a ranking among the model’s own answers, so it moves as the model moves; and its channel set changes from pair to pair. Whether those differences change training was never measured, because the comparator was never trained.

The space of all judges

There are infinitely many judges, and they form a space. What matters is what training can see: two judges that produce the same update are the same judge. Counted that way, rankers are a thin slice of all pairwise judges, and most of the space is loops.

For nn answers to one prompt:

a judge is… space training can’t see what is left n=8n=8
a ranker: a height per answer Rn\R^n shifts r+c1r + c\mathbf 1 Rn/R1\R^n/\R\mathbf 1, the tangent space of policies 7
a checker: kk heights per answer Rn×k\R^{n\times k} per-check shift and scale (GDPO’s z-scores) one ranker per weight vector on Δk−1\Delta^{k-1} 7 per check
a comparator: an arrow per pair Rn(n−1)/2\R^{n(n-1)/2} nothing: every pair counts gradient ⊕\oplus curl 28 = 7 + 21

Gradient flows have dimension n−1n-1 and loops (n−1)(n−2)/2(n-1)(n-2)/2, so rankers are a share 2/n2/n of the space: at n=8n = 8, a random comparator is 75% loop.

A judge is a flow on the sphere

Put the pieces together on the sphere of policies. A ranker’s flow runs straight to its highest answer. A pure loop’s flow goes round and round: nobody ever wins. A comparator mixes the two, and its flow spirals in.

If each answer is trained on its average win (Yp)a(Yp)_a, the policy follows the replicator dynamics p˙a=pa (Yp)a\dot p_a = p_a\,(Yp)_a. The gradient part gives the tilt π0eth\pi_0e^{th}. The curl part conserves KL⁡(uniform ∥ p)\KL(\text{uniform}\,\|\,p), so its orbits close, as in rock, paper, scissors. A mixture of the two spirals toward the winner.

A judge as a flow on the policies over three answers. Slide the loop share: a ranker flows straight to the top answer, a pure loop orbits forever, and a little loop spirals in. Idealized: heights (1, 0.4, 0) and the loop A → B → C → A.

Holes

If some pairs are never compared, the graph has holes, and a flow can circle a hole while looking consistent on every triangle. A test that only checks triangles will miss it.

Fill in every triangle whose three pairs were all compared. The Hodge decomposition then has three orthogonal parts (Lim 2020): a gradient, a local curl that shows up inside compared triangles, and a harmonic flow that is consistent on every triangle yet still gains going round. The dimension of the harmonic part is the first Betti number β1\beta_1, the number of holes. Inside a training group of 8 every triple is compared, so β1=0\beta_1 = 0 and all curl is local. Merging several criteria into one ranking can fail for topological reasons in general (Arrow’s theorem); the comparator’s six channels are a small case of that question, as an analogy, not a measurement.

Y=d0h⏟gradient+d1∗ψ⏟local curl+YH⏟harmonic: one dimension per holeY=\underbrace{d_0h}_{\text{gradient}}+\underbrace{d_1^{*}\psi}_{\text{local curl}}+\underbrace{Y_H}_{\text{harmonic: one dimension per hole}}

What was measured

A usable reward has zero curl. The comparator, which drops channels pair by pair, does not; and if its loops sat where it disagrees with the lab, they would show where to spend robot-lab experiments.

Two registered tests. Phase 17 (Block R, docs/phases/PHASE17_PREREG.md) decomposed the comparator’s margins over a universe of model-written recipes and split triangles by whether their pairs share channel sets. Phase 18B (docs/phases/PHASE18_PREREG.md) built the comparator’s flow on the ARROWS³ YBCO graph, where every edge has a lab verdict, and asked whether an edge’s loop size predicts the comparator’s mistakes: AUC above 0.5 with a CI excluding 0.5, beating a permutation null.

First we checked how much of the taster’s opinion goes round in circles. Then, on recipes a robot lab really tested, we checked whether the circling happens where the taster is wrong.

  1. Scale artifacts. Loops come from miscalibrated channel scales, not from real intransitivity. The lemma above rules this out as a source of curl: only dropped channels make loops.
  2. Real chemistry. Three precursor sets can beat each other in a cycle when channels conflict.
  3. Loops mark errors. Where the comparator circles, it is unsure, and so more often wrong.

On robot-lab data the comparator is wrong consistently, not in loops. On the ARROWS³ YBCO graph (29 recipes, 247 edges with a lab verdict), its loop share is 0.9%. It disagrees with the lab on 48% of edges, and an edge’s loop size does not predict where: AUC 0.48, 95% CI [0.31, 0.62], permutation pp = 0.67. The comparator is almost a pure ranking on this data, and that ranking is about half wrong. Its errors are not cycles, so curl cannot find them.

Rival 3 is out on lab data (18B). Rival 1 is out by the lemma.

The loop share and the triangle split on model-written recipes come from a recipe universe pooled from model samples that include truncated-SFT models (“pooled only” in docs/phases/PHASE20_FINDINGS_AUDIT.md). They return after Phase 20 rebuilds that universe from corrected models.

P-18B-1 (loops predict lab disagreement): failed. Phase 17’s loop-share prediction: verdict withheld with its number, pending Phase 20.

Curl is real and measurable, but it was not where this comparator’s problem lay. The comparator’s problem was aim: it did not know the lab. A judge can be perfectly consistent and still point the wrong way.

Consistency is the third of the five properties of a judge.

On a complete graph the harmonic part vanishes, which is why the decomposition must be computed on the graph actually compared, not inferred from triangle checks. Training on any scalar derived from a comparator, such as each recipe’s win rate, keeps only the gradient part; the loop part is lost silently, and the training curves look normal.

Part IV

Auditing a judge

4.1Five properties of a judge

Five measurements of a judge's arrow, all taken before any training: how strong it is, which way it pushes, whether it loops, whether it points where the lab points, and whether the model can reach what it likes.

Five measurements of the arrow

A bad judge wastes a training run at best, and teaches the wrong thing at worst. These five questions can all be answered before training starts.

  1. Strength: does the judge ever tell the model’s answers apart?
  2. Direction: when the model changes, what else changes with it?
  3. Consistency: does the judge contradict itself, like rock, paper, scissors?
  4. Aim: does the judge agree with a real lab?
  5. Reach: are the judge’s favorite recipes ones the model ever writes?

On the space of judges a reward is an arrow at the model’s current spread. Each property is a different measurement of that arrow: its length, its shadow on each feature of a recipe, its curl, its angle to the lab’s own arrow, and the region it points into. They are independent: a judge can be strong but badly aimed, aimed but full of loops, consistent but out of reach.

geometry estimator page
1 Strength length, sd⁡π(r)\operatorname{sd}_\pi(r) reward capacity below
2 Direction shadow on a feature, Cov⁡π(r,φ)/sd⁡(φ)\operatorname{Cov}_\pi(r,\varphi)/\operatorname{sd}(\varphi) Price differential below
3 Consistency curl, ∥Ycurl∥2/∥Y∥2\lVert Y_{\text{curl}}\rVert^2/\lVert Y\rVert^2 Hodge decomposition the space of judges
4 Aim angle to the lab, measured as I(R;Q∣rule)I(R;Q\mid\text{rule}) information bound, pair agreement the lab audit
5 Reach where it can’t go: its top recipes outside supp⁡π0\supp\pi_0 unreachable share below

Every definition and pass bar was committed before computing (docs/phases/PHASE17_PREREG.md, Block R, commit 790d085). The training outcomes were already known, so the audit was a back-test. Since Phase 17, any new reward runs through it before it trains anything.

Strength

If every answer in a group passes a check, the check can’t say which answer was better, so it pushes nothing. A check is useful only when the model sometimes fails it.

One pass/fail check on a group of 8: as the pass rate rises, the chance that all 8 tie, and so push nothing, rises fast. Drag the pass rate or draw groups.

Under natural-gradient RL, mean reward rises at a rate equal to its variance: Fisher’s fundamental theorem (Fisher 1930), here the statement that a judge with no spread over the model’s answers cannot move it. For a pass/fail check with pass rate pp, a group of 8 ties with probability p8+(1−p)8p^8 + (1-p)^8: 43% of groups at p=90%p = 90\%, 92% at p=99%p = 99\%. With GDPO’s per-check z-scores, strength is measured as capacity: the mean over checks of the within-group variance of the z-scored votes. A group that is not tied has z-variance exactly (n−1)/n=7/8(n-1)/n = 7/8 (z-scores with n−1n - 1 in the denominator, variance with nn), hence a ceiling of 87.5%. The registered pass bar was 40%.

ddtEπ[r]=Var⁡π(r)⏟no spread, no movementPtie=p8+(1−p)8⏟a check every answer passes is silentcapacity=1C∑c=1CVar⁡(zc)⏟≤ 7/8\begin{gathered} \underbrace{\frac{d}{dt}\E_\pi[r]=\operatorname{Var}_\pi(r)}_{\text{no spread, no movement}} \qquad\qquad \underbrace{P_{\text{tie}}=p^8+(1-p)^8}_{\text{a check every answer passes is silent}}\\[8pt] \text{capacity}=\frac1C\sum_{c=1}^{C}\underbrace{\operatorname{Var}(z_c)}_{\le\,7/8} \end{gathered}

Direction

Evolutionary biology has an exact bookkeeping identity for selection: a trait’s average changes by its covariance with fitness. In RL the “fitness” of an answer is its advantage, and the “trait” can be anything we read off a recipe: whether it uses a carbonate, its top temperature, its number of powders. So the push on every feature, including the ones nobody intended, can be read off the starting model’s own answers before training.

AA is the GDPO advantage computed on the starting model’s own answers (Price 1970). The registered test: wherever ∣Sφ∣≥0.1\lvert S_\varphi\rvert \ge 0.1, the sign of SφS_\varphi matches the direction the feature actually moved in at least 75% of cases.

Δ E[φ]  ≈  η Cov⁡π(A,φ)⏟the judge’s pull on feature φSφ=Cov⁡(A,φ)sd⁡(φ)(standardized, with a cluster-bootstrap CI)\begin{gathered} \Delta\,\E[\varphi]\;\approx\;\eta\,\underbrace{\operatorname{Cov}_\pi(A,\varphi)}_{\text{the judge's pull on feature } \varphi}\\[6pt] S_\varphi=\frac{\operatorname{Cov}(A,\varphi)}{\operatorname{sd}(\varphi)}\qquad\text{(standardized, with a cluster-bootstrap CI)} \end{gathered}

Reach

Score every recipe in each target’s universe, and count how many of the judge’s top 10% never appear in the starting model’s reference samples. A tilt cannot reach those (RL tilts). The registered bar was an unreachable share below 50%.

u=∣{y∈top⁡10%(r): countstart(y)=0}∣∣top⁡10%(r)∣u=\frac{\big|\{y\in\operatorname{top}_{10\%}(r):\ \text{count}_{\text{start}}(y)=0\}\big|}{\big|\operatorname{top}_{10\%}(r)\big|}

The report card

Aim is final: no judge beats the best trivial rule on robot-lab outcomes, though each knows a little more than the rule. The lab audit has the numbers. Consistency on lab data is final too: the comparator’s errors there are not loops (the space of judges).

Strength, direction and reach were measured in Phase 17 on samples from models built on the truncated SFT, and consistency on a recipe universe pooled from them (docs/phases/PHASE20_FINDINGS_AUDIT.md, finding 34). Those cells of the card stay empty until Phase 20.

Next: aim, in full.

4.2Does the judge know the lab?

Three judges against two robot labs. None beats the two-line rule 'prefer the recipe without carbonates', and the checker agrees with the robot exactly at chance. Each knows a little more than the rule, and the ranker alone buys real yield under best-of-n.

Aim: agreement with the lab

A cooking judge who only checks that a recipe is written correctly cannot tell a great cake from a dry one. Before we train a model to please our judge, we should check whether pleasing the judge means anything in a real kitchen.

Robot labs have already cooked pairs of recipes for the same material and measured which came out better. We show each pair to our judge and ask it to pick. A judge that picks right about half the time is flipping a coin. We also try a silly rule, “pick the recipe without carbonate powders”, because a good judge should at least beat that.

RL with a verifier works where the verifier can rank, and this test asks whether ours can. Chance is not the right bar on its own. One trivial rule is known to carry real signal in this chemistry: avoid carbonates. A judge earns its keep only if it knows more than that rule.

A judge agrees on a pair (a,b)(a, b) when the sign of its score difference matches the sign of the measured outcome difference. Datasets:

  • ASTRAL (Chen et al. 2024): 35 targets, each made by a robot lab twice, once from a textbook precursor set and once from a set its rules picked, with measured phase purity. Every textbook set has exactly 3 precursors and every rule-picked set exactly 2, by ASTRAL’s own selection principle. The rule-picked set was purer for 20 of 35 targets.
  • ARROWS³ (Szymanski et al. 2023): 4,870 outcome pairs with measured yields, failures included. The primary endpoint is YBCO pairs whose yields differ by at least 5 wt%: 1,915 pairs.

Baselines: chance (0.5), and the carbonate-free rule, which prefers the recipe without a carbonate precursor. Differences carry 95% bootstrap CIs.

None of the three judges ranks real lab outcomes better than the best trivial baseline. The checker, the reward most of the project trained on, agrees with the robot at chance.

agreement=1∣P∣∑(a,b)∈P1[sign⁡(J(a)−J(b))⏟judge’s pick=sign⁡(Q(a)−Q(b))⏟lab’s winner]\text{agreement} = \frac{1}{|P|}\sum_{(a,b)\in P} \mathbf 1\Big[\underbrace{\operatorname{sign}\big(J(a) - J(b)\big)}_{\text{judge's pick}} = \underbrace{\operatorname{sign}\big(Q(a) - Q(b)\big)}_{\text{lab's winner}}\Big]agreementjudge−agreementcarbonate-free rule⏟what the judge knows beyond the rulewith a 95% CI that must exclude 0\underbrace{\text{agreement}_{\text{judge}} - \text{agreement}_{\text{carbonate-free rule}}}_{\text{what the judge knows beyond the rule}} \quad \text{with a 95\% CI that must exclude } 0
Each judge's agreement with robot-lab outcomes, against chance and the carbonate-free rule. Switch to the second view for the differences and their 95% CIs.

Each gate was registered before scoring:

  • Ranker on ASTRAL: clear 24/35 agreement.
  • Comparator on ASTRAL (Phase 13): discriminate between ASTRAL’s pairs; if not, Phase 14, which would have trained on it, does not launch.
  • Checker and comparator on ARROWS³ (Phase 15): beat the best trivial baseline on YBCO with a CI that excludes zero; LTOPO and NTMO as secondary replications.

The checker’s ASTRAL agreement comes from scoring the 70 published ASTRAL routes with the unmodified validator, each at its own best temperature.

For each judge, we wrote down the passing grade before looking at any result. Then we showed it the robot’s recipe pairs and counted how often it picked the winner.

  1. The datasets are too small or too narrow. ASTRAL has 35 pairs and no molar ratios, so some ranker channels cannot be computed on it.
  2. The judge measures something real that the lab does not reward. A thermodynamic channel could be computed correctly and still not decide which recipe works.
  3. The comparator’s channels are fine and only its gates are wrong.
  4. Agreement is too blunt. A judge could know something about the lab that sign agreement on all pairs hides. The information test below asks this directly.

Checker on ASTRAL. It picked the robot’s better route in 17/34 pairs (50.0%); Spearman correlation with measured purity 0.228 (pp = 0.058, not significant), over 70 routes.

Ranker on ASTRAL. 21/35 (60.0%) against the registered 24/35: failed. Spearman 0.133, weaker than the checker’s 0.228. 3 of 8 channels could not be computed on any ASTRAL pair, so the gate tested a ranker running on about half its channels.

Comparator on ASTRAL. It preferred the rule-picked set on 35/35 pairs: its sign never varied. Because the textbook set always has 3 precursors and the rule-picked set 2, any channel that reads precursor count is a function of the label. Its agreement therefore equals the dataset’s base rate, 20/35 (57.1%): zero demonstrated power. The first iteration’s apparent signal came from one channel whose robust scale was 2.085e-5, inflating it about 50,000 times.

ARROWS³, YBCO, 1,915 pairs. The checker’s vote agreed at 0.616 against 0.583 for the carbonate-free rule: a difference of +0.033, CI [−0.043, +0.112]. The comparator agreed at 0.474, below chance and below every baseline: −0.109 against the rule, CI [−0.226, +0.007]. The rule itself beats chance, +0.083, CI [+0.010, +0.154]. LTOPO and NTMO replicate the failure, underpowered (nn = 67 to 77).

Inside the checker. Its best single channel, thermodynamic_favorable, agrees 71.1% alone but is 88% redundant with the carbonate-free rule. Holding carbonate status fixed, it agrees at 0.522, CI [0.495, 0.557]: chance.

Inside the comparator. Gates decided 943 pairs at 0.445 agreement, below chance; its scored channels decided 704 pairs at 0.513.

The checker picked the better recipe half the time: a coin flip. The ranker did a little better than a coin but missed the passing grade we set. The comparator always picked the same kind of recipe on one dataset, so it was not judging at all, and on the other dataset it did worse than a coin. Our silly carbonate rule beat chance. No judge beat the silly rule.

  • “Too small” is out for ARROWS³: with 1,915 YBCO pairs, the checker’s advantage over the rule has 95% CI [−0.043, +0.112], which rules out a gain of more than about 0.11. It stands only for ASTRAL.
  • “Only the comparator’s scales are wrong” is out: the second iteration fixed the scale, and ASTRAL’s 3-against-2 structure still left it no power.
  • “Only the gates are wrong” is not supported: on the pairs its scored channels decided, the comparator reached 0.513, barely above chance.
  • “A real thermodynamic signal the lab ignores” stands, and it explains the carbonate shift (below).
  • “Agreement is too blunt” is half right: each judge does carry a little information beyond the rule (below), too little to matter for training.

Ranker gate: failed as registered. Comparator gate (Phase 13): not cleared, so Phase 14 did not launch. ARROWS³ gates (Phase 15): neither judge beats the baseline. Every external judge evaluation this project ran failed to clear a baseline-matched bar with a CI that excludes zero.

RL against these judges optimizes validity, not quality. A model can get better at pleasing them without getting any better at making materials. That limits what any RL result in this project can mean: “the reward went up” is evidence that the model learned the checklist, nothing more.

Aim is the fourth of the five properties. It also changes how to read the experiments: hits on ASTRAL are counted against the lab’s picks, never against a judge’s.

Information beyond the rule

A coin-flip score can hide a little knowledge. Maybe the judge is right more often on the hard pairs, where the carbonate rule has nothing to say. So we measured how much the judge’s pick tells you about the lab’s answer once you already know the rule’s pick.

Training on a judge can never teach the model more about the lab than the judge itself knows. That is the data-processing inequality: the lab’s verdict, the judge’s verdict and the training update form a chain, and information can only leak along it. So the information a judge carries about the lab, beyond the carbonate rule, is an upper bound on what training on it could ever learn about the lab.

Let QQ be which recipe of a pair the lab found better, and RR which one the judge prefers. Training on RR forms a Markov chain Q→R→Q \to R \to update, so by the data-processing inequality no update can carry more information about QQ than RR does. Because the carbonate rule already carries some, the quantity that matters is the conditional mutual information I(R;Q∣rule)I(R;Q\mid\text{rule}), estimated by plug-in with 10,000 bootstrap resamples and checked against a 2,000-permutation null, since plug-in mutual information is biased upward. Mutual information ignores sign, so sign agreement on the pairs the rule cannot decide is reported next to it.

Q  →  R  →  update⟹I(update; Q)  ≤  I(R; Q)I(R; Q∣rule)⏟what the judge knows beyond the carbonate rule\begin{gathered} Q\;\to\;R\;\to\;\text{update} \quad\Longrightarrow\quad I(\text{update};\,Q)\;\le\;I(R;\,Q)\\[6pt] \underbrace{I(R;\,Q\mid\text{rule})}_{\text{what the judge knows beyond the carbonate rule}} \end{gathered}
Information about the lab: the carbonate rule in bits, and each judge beyond the rule, with 95% CIs (log scale). The second view: sign agreement on the 1,112 pairs the rule cannot decide.

On the 1,915 YBCO pairs, the carbonate rule carries 0.079 bits about the lab’s verdict, 95% CI [0.019, 0.189]. Beyond the rule, the 5-check checker carries 0.025 bits [0.006, 0.085], the ranker 0.008 [0.003, 0.055] and the comparator 0.013 [0.001, 0.067]: each above a 2,000-permutation null, and each a third or less of what the rule alone knows. On the 1,112 pairs the rule cannot decide, only the 5-check checker agrees with the lab above chance, at 0.584 [0.517, 0.648]; the 10-check checker reaches 0.532 [0.463, 0.596], the ranker 0.523 [0.444, 0.601] and the comparator 0.462 [0.361, 0.565].

R-f registered that each judge’s information beyond the rule would have a CI including zero (docs/phases/PHASE17_PREREG.md, Block R). Failed for all three: each knows a little, measurably.

Best-of-n: a free preview of RL

Before training on a judge, you can simulate what climbing it buys. Draw nn recipes the robot lab actually ran, let the judge pick its favorite, and look up the real yield. Picking the best of nn moves a distribution by a bounded amount, so the curve shows what each judge buys per unit of movement.

For each target, draw nn recipes from the pool the robot lab ran, let the judge pick one, and record the pick’s measured yield; 2,000 draws per nn per target, nn from 1 to 16. Best-of-nn selection moves a distribution by at most the bound below (Beirami et al. 2024), so yield against that bound shows what each judge buys per nat of movement, a free preview of training on it. The comparator has no per-recipe score, so it picks by counting pairwise wins within the draw.

KL⁡(πbest-of-n ∥ π)  ≤  log⁡n−n−1n\KL\big(\pi_{\text{best-of-}n}\,\|\,\pi\big)\;\le\;\log n-\frac{n-1}{n}
Best-of-n on ARROWS³ recipes: the mean measured yield of the judge's pick as n grows, with 95% CIs. Under each n, how far best-of-n moves the distribution.

Registered test: best-of-16 minus best-of-1, in measured yield points, averaged over the three ARROWS³ targets. The ranker climbs, +11.3 [+1.9, +20.6]. The comparator does not, +2.7 [−5.7, +13.9], and neither does the checker, −0.1 [−5.1, +4.3]: it rises, then falls, the shape of over-optimization.

Made to admit doubt

A judge forced to answer every pair will guess. Conformal prediction lets it answer “A”, “B” or “not sure”, with a guarantee on how often it is right (Angelopoulos et al. 2023). How often a judge still commits, at a fixed guarantee, measures how much it really knows.

At a 90% coverage guarantee on YBCO pairs (the answer set contains the lab’s winner 90% of the time, and “not sure” always does), the checker commits to a single answer on 9% of pairs, the ranker on 30% and the comparator on 0%. P-18H-1 registered that each would commit on at most 20% (docs/phases/PHASE18_PREREG.md): it held for the checker and the comparator and failed for the ranker.

Does a judge read the recipe, or how it is written?

Phase 18D rewrote the same 200 routes in equivalent ways and checked whether each judge’s score changed by more than 10−310^{-3}. Writing temperatures in kelvin changed the checker’s score on 10 of 200 routes, the ranker’s on 190 of 200 and the comparator’s on 190 of 190: the parser drops the unit, so 1073 K is read as 1073 °C. Writing hours as minutes, splitting a hold into two identical halves, or adding a zero-length hold changed nothing in any judge. That is not a pass. “720 min” is read as 720 hours and still nothing changes, because no check of any judge reads duration: a heating schedule is a function of time, and the judges never see it. Listing the precursors in another order changed the comparator on 154 of 190 routes, traced to floating-point round-off in C7 crossing a rank step.

Right physics, wrong construct

The checker’s thermodynamic channel is not broken. It computes a real reaction energy correctly, and that energy favors bare oxides over carbonates. Real chemists, and real robot labs, overwhelmingly use carbonates anyway, for reasons the checker has no channel for: handling, kinetics, how a reaction actually nucleates.

thermodynamic_favorable uses a Gibbs-corrected reaction energy (Bartel descriptor (Bartel et al. 2018) plus tabulated gas thermochemistry, CO₂ entropy included). It favors bare alkali oxides over carbonates, and the preference survives the finite-temperature correction. Across 80,806 text-mined records (Lee et al. 2025), chemists chose a carbonate for 60.0% of 13,849 lithium, sodium and potassium sources and a bare oxide for 2.46%, about 24 times as often, with no significant difference in reported impurity rates between the two. The channel is correctly computed and measures the wrong construct.

The database is not chemistry

precursors_exist asks whether a formula is in Materials Project, a database of computed structures, not a registry of real chemicals. On ARROWS³’s YBCO data, every failure of this gate traces to one precursor, Y₂(CO₃)₃, which is absent from Materials Project. It appears in 16/47 (34%) of YBCO’s real precursor sets and performs comparably to the alternatives: at 900 °C, 66.2% (n = 16) against 62.1% (n = 31) for other yttrium sources. All 29 other distinct precursor formulas parse and are present.

The gradeability flap (finding 8): for up to 60% of fractional-composition targets, different samples for the same target were graded by different sets of channels, so the reward for one target changed meaning from sample to sample. Later runs filter to targets with a stable channel set.

Part V

The experiments

5.1The experiments

Seven training steps, each read the same way: new recipes against a resampling floor, exact reach, where the change is written, how many directions it needs, and lab hits. Phase 20 reruns the steps the bug touched.

Seven steps

To compare SFT and RL fairly, read every training step the same way, with the same rulers.

Each experiment takes a model before training and the same model after. We ask both for recipes and compare. Seven before-and-after pairs, four made by SFT and three by RL, all measured with the same five rulers.

The step table (docs/phases/PHASE17_PREREG.md):

step before → after force trained on
S1 Base → Corpus SFT mixture 1,217 published recipes
S2 Base → RS-SFT mixture Base’s answers with checker score ≥ 0.9, 283 targets
S3 Base → E3 mixture 505 of Base’s valid answers, rare ones favored
S4 Base → E3c mixture 505 of Base’s valid answers
S5 Corpus SFT → GDPO-300 tilt the 10-check checker
S6 RS-SFT → Phase 12 tilt the 5-check checker, β=0\beta = 0
S7 RS-SFT → E1 tilt the ranker, β=0\beta = 0

All are QLoRA adapters on Qwen3-8B; every RL step is GDPO, 300 steps, 8 answers per target. S1 to S4 were trained by the truncated SFT path; S5 to S7 start from it. Phase 20 rebuilds S2 to S4 and S7 as sft-rssft-full, sft-e3-full, sft-e3c-full and E1-full, sampled with vLLM at temperature 0.9, top-p 0.95, up to 8,192 new tokens, seed 42, on the 35 ASTRAL targets and the held-out list.

The resampling floor

Ask the same model twice and the second batch of answers will contain a few recipes the first batch missed, just by luck. So “new recipes” only count if a trained model finds more of them than the untrained model finds by being asked again.

For a step p→p′p \to p', draw a reference set from pp and a test set of nn samples per target from p′p'. The new-recipe rate is the share of test samples whose recipe is absent from the reference set. The floor is the same quantity with the test set drawn from pp itself: what resampling alone produces. A step adds support only if its rate exceeds the floor with a CI that excludes zero. Bootstraps cluster by target.

Five readouts

  1. New recipes against the floor (P-20-1, P-20-2).
  2. Exact reach: log-probability change of fixed recipe strings, sampled against unsampled (P-20-3, RL tilts).
  3. Location: the depth by which half the step’s effect is written (P-20-4, mechanism).
  4. Dimension: how much of the effect its top 4 directions carry (P-20-5).
  5. ASTRAL hits: on how many of the 35 targets the model writes ASTRAL’s rule-picked precursor set at least once in 32 tries (the metric of findings 18 and 22). Measured, with no prediction.

Hits are compared target by target with McNemar’s exact test, which counts only targets that changed. If dd targets change and all change the same way, the two-sided pp is 2⋅2−d2\cdot2^{-d}, so fewer than 6 changed targets can never reach p<0.05p < 0.05, however lopsided. With 35 targets and 32 samples each, a hit comparison between two RL checkpoints is underpowered by design, which is why the support readouts, not hits, carry the registered predictions.

SFT steps add recipes above the floor; RL steps do not (P-20-1, P-20-2).

P-20-1: for each of sft-rssft-full, sft-e3-full and sft-e3c-full, the rate above Base’s floor is positive with the CI’s lower end above 0. P-20-2: E1-full at steps 100, 200 and 300 does not exceed sft-rssft-full’s floor. Analyses run only after the pre-registration commit exists, and every analysis script checks for it.

Train fresh models the right way, ask each one for recipes, and count the new ones against the “just ask again” baseline.

  1. RL adds support given more steps than 300 (Liu et al. 2025).
  2. SFT on self-generated data only reweights, like RL.
  3. Both steps add only resampling noise.

P-20-1 and P-20-2 are registered in docs/phases/PHASE20_PREREG.md. The step table’s new-recipe rates, hits and carbonate shares for S1 to S7 were measured on the old models and are not shown; Phase 20 reports which of them are confirmed, changed or reversed.

The design keeps the comparison honest in two ways: every step is read with the same rulers, and every ruler is calibrated against the starting model itself, not against a number chosen afterwards.

The theory for these predictions: RL tilts, SFT pours. The judges whose rewards S5 to S7 used: three judges.

An instrument we withdrew

In Phase 17, three results agreed on a striking headline: RL had reached recipes a pure tilt could not. All three rested on the same estimate of how likely each rare recipe was. We checked that estimate before publishing, found it badly wrong in exactly the range the headline needed, and withdrew the headline.

The shared estimator computed a recipe’s marginal probability from K=8K = 8 sampled reasoning traces. A tail-calibration check found it biased low by orders of magnitude in its lowest-probability decade, the range the headline depended on. A split-trace control, which fits the same regression from two independent halves of the traces so that regressor and outcome no longer share noise, removed most of the effect. A literal recount, using raw sample counts and no probability estimate, gave a narrower result than the original claim. The withdrawn headline is recorded as withdrawn (finding 34), and Phase 19 and 20 replaced the estimator with exact teacher-forced scoring of fixed strings.

Finding 34’s numbers come from truncated-SFT models and are not shown. The point here is the method: a result is only as good as its weakest shared instrument, so the instrument is tested before the result is told.

Part VI

Mechanism

6.1Where in the network the change is written

Patch one model's activations into another, layer by layer, to find how deep each training step writes its change and how many directions it needs.

Location: how deep is the change?

Two models give different answers. Somewhere inside the network, their computations part ways. We want to know where, and whether SFT and RL change the network in different places.

Imagine two copies of a long assembly line, one before training and one after. Swap the first few stations of the “before” line for the “after” stations and see how much of the difference in the final product appears. Keep swapping more stations until half the difference shows up. That station number is how deep the change is written.

If RL only re-weights recipes the model already writes, a light touch near the output might be enough: the knowledge is there, only the final preference changes. If SFT installs new recipes, it might need to change earlier computation too. Location is how we check.

The method is adapter swapping. For a step before → after and a depth LL, build a hybrid model with the after-model’s LoRA adapter in blocks 0..L0..L and the before-model’s adapter above (for an SFT step from Base, “before” means no adapter). Score a fixed set of recipe strings exactly, by teacher forcing, with the before-model, the after-model and the hybrid. R(L)R(L) is the share of the step’s change in log-probability that the hybrid reproduces, pooled over targets; L50L_{50} and L80L_{80} are the first depths where it reaches 0.5 and 0.8. Qwen3-8B has 36 blocks, scanned at even depths. The reverse hybrid (before-adapter below, after-adapter above) is the check, and residual-stream activation patching is run as exploratory comparison.

RL writes its change later in the network than SFT does.

Rs(L)=1−∑x,y(Δshybrid(y)−Δs(y))2∑x,yΔs(y)2Δs(y)=ℓafter(y)−ℓbefore(y)⏟the step’s change in a string’s log-probability\begin{gathered} R_s(L)=1-\frac{\sum_{x,y}\big(\Delta^{\text{hybrid}}_s(y)-\Delta_s(y)\big)^2}{\sum_{x,y}\Delta_s(y)^2}\\[6pt] \underbrace{\Delta_s(y)=\ell_{\text{after}}(y)-\ell_{\text{before}}(y)}_{\text{the step's change in a string's log-probability}} \end{gathered}L50=min⁡{L: Rs(L)⏟share reproduced by the after-adapter in blocks 0..L≥0.5}L_{50}=\min\big\{L:\ \underbrace{R_s(L)}_{\text{share reproduced by the after-adapter in blocks } 0..L}\ge 0.5\big\}

P-20-4 (location). L50L_{50} for sft-rssft-full → E1-full@300 is greater than L50L_{50} for Base → sft-e3-full and greater than L50L_{50} for Base → sft-e3c-full, with Phase 19’s Block E code unchanged. Both orderings must hold.

We find the “halfway station” for the RL step and for two SFT steps. The prediction is that RL’s halfway station comes later than both SFT ones.

  1. No difference in depth. Both methods write wherever the adapter can reach; location reflects the data, not the method.
  2. The truncated SFT made SFT look shallow. The old SFT models trained on prompt and reasoning text only, so where they wrote their change says little about SFT on answers. Phase 20 removes this rival or confirms it.

Phase 19 measured location on the old models: RL steps wrote later than SFT steps in all four registered orderings, while the registered “last quarter of the network” prediction failed for both RL steps. Those models carry the truncation bug, so their numbers are not shown. P-20-4 is the registered rerun (docs/phases/PHASE20_PREREG.md).

Dimension: how many directions?

A change can be spread across many directions in activation space or packed into a few. If you can recover most of a step’s effect by moving activations along only four directions, the step is low-dimensional.

Take L∗=L80L^* = L_{80} from the location scan (or the last block if there is none). On half the probe targets, collect the after-minus-before activation differences δ=hafter−hbefore\delta = h_{\text{after}} - h_{\text{before}} at L∗L^*, at every position of the teacher-forced sequence, and find their top kk principal directions. On the other half, run the before-model with hbefore+Pkδh_{\text{before}} + P_k\delta patched in, where PkP_k projects onto those kk directions. R(k)R(k) is the share of the step’s change in the answer string’s log-probability this reproduces, with the same recovery formula, for kk from 1 to 64; 20 random kk-dimensional subspaces give the null. Fitting the directions on one half and testing on the other keeps the measurement honest.

P-20-5 (dimension). R(4)R(4) for each SFT step (Base → sft-e3-full, Base → sft-e3c-full) is greater than R(4)R(4) for sft-rssft-full → E1-full@300, with the Phase 19 F1 code unchanged and L∗L^* from Phase 20’s Block E. This registers the direction Phase 19 measured exploratorily.

P-20-5 waits on the Phase 20 models. Phase 19’s exploratory measurement used the truncated models and is not shown.

Weight geometry

Phase 18C measured the LoRA updates themselves: how much of each update lies in the top 64 singular directions of the base weights, and the update’s effective rank. Phase 20 repeats it for the new adapters, as a measurement with no prediction.

Phase 18C’s numbers describe the old adapters. Phase 20 reports the new ones.

If P-20-4 and P-20-5 hold, the two kinds of fine-tuning leave different fingerprints inside the network, not only in what it writes: SFT reaches deeper, and its change is carried by fewer directions. If they fail on the corrected models, the Phase 19 pattern was a product of training on truncated examples.

Related work measured RL’s weight changes directly under full-parameter training and found them off the base model’s principal directions, with the spectrum preserved, while SFT’s changes targeted principal weights (Zhu et al. 2025). LoRA changes the question: an adapter’s update is a low-rank product whose input matrix moves little in any training, so weight geometry under QLoRA has to be measured, not borrowed.

Location and dimension are readouts 3 and 4 of the experiments. Exact reach, readout 2, is on RL tilts.

Part VII

Methods

7.1How the research was run

Predictions committed before data, instruments tested before results, exploratory work labeled, stopping rules obeyed, and failed predictions reported in the words they were registered in.

Predictions before data

Before each experiment, we wrote down what we expected to see and saved it where it could not be quietly changed. Only then did we look at the results. That way, we can’t fool ourselves by deciding afterwards what we “meant” to test.

Each phase from 17 on has a pre-registration file (docs/phases/PHASE*_PREREG.md) committed to git before any analysis it governs. Every analysis script checks that the registration’s file version is committed before it computes a registered number, and every results file records the registration commit (prereg_commit). Results are tagged [C] when confirmatory (registered) and [E] when exploratory (decided after the commit). An [E] result can motivate the next registration, as Phase 19’s exploratory reach check became P-20-3, but it never counts as a confirmation.

Failed predictions are reported as failed

A research record that contains only successes is not believable. These failed as registered and are reported that way:

  • The hardening probe (finding 9): making the model’s variation matter to the score was predicted to raise reward capacity. It did not, and it falsified the diagnosis behind it.
  • The ranker’s ASTRAL gate (finding 19): failed its registered bar.
  • E3 against E3c (finding 31): the rarity filter was predicted to add recipes. It added nothing measurable.
  • “RL is written in the last quarter of the network” (Phase 19, P-19E-2): failed for both RL steps.

Instruments are tested before results

  • Calibration checks. The sample-based probability estimator behind three Phase 17 results was checked against its own tail before publication, failed, and the headline was withdrawn (an instrument we withdrew).
  • Structural checks. The comparator’s first ASTRAL score looked informative until we noticed that a judge that always prefers “predicted” scores perfectly on that metric (finding 23).
  • Training gates. Since Phase 20, every SFT run must pass a masking test, a memory test and a tokens-per-example check (the bug).

Stopping rules are obeyed

  • Phase 13’s comparator did not clear its gate, so Phase 14, which would have trained on it, was not launched.
  • Phase 12 was read once, at its registered checkpoint 300, and not resumed toward 600, so that one registered read could not become two reads with the chance to pick the better.
  • Phase 12 used β=0\beta = 0 after the KL estimator blew up, instead of patching the estimator mid-run: one change, made between runs, recorded with its reason.

New files only

Results files are never overwritten; reruns write new files. The rule exists because one overwrite happened: a rebuild replaced a tracked ASTRAL sample file in October 2026 and had to be restored from git. Long jobs run in tmux, log to file, and send a phone notification when they finish or fail. Pre-registrations and results are committed by hand.

The clearest test of these habits is the 1,024-token bug: how it hid, what it broke, and what now catches it.

7.2The 1,024-token bug

From May to November 2026, every SFT model trained on reasoning traces saw only the prompt and the start of its reasoning, never an answer. How it hid, what it broke, what it did not, and the gates that now catch it.

What happened

Every SFT result in this project rested on one assumption: that the model was trained on whole examples. On 2026-11-16 we found it was not.

Imagine teaching someone to cook by showing them recipe cards, but a photocopier cuts every card off after the first few lines. They read the title and the first steps, and never the end where the dish comes together. They would still learn something, just not what we thought we were teaching. That is what happened to every SFT model here.

experiments/sft.py passed max_length=1024 to TRL’s SFT trainer, which truncates from the end (truncation_mode=keep_start). The value was set on 2026-05-17 from an audit of an early dataset with no reasoning traces, whose 99th-percentile length was 858 tokens. Every later dataset has <think> traces: median lengths of 4,825 tokens (Corpus SFT), 5,468 (RS-SFT) and 5,843 (E3, E3c), and a maximum of 14,648. So each run trained on the prompt plus the first ~550 (Corpus SFT) or ~180 (RS-SFT, E3, E3c) reasoning tokens. The loss also covered the prompt, about 82% of all trained tokens for RS-SFT, E3 and E3c. 0 of 1,217 Corpus SFT examples, 0 of 283 RS-SFT examples and 2 of 505 E3/E3c examples reached their answer.

One median training example per dataset. Red: what the old trainer kept and put in the loss. Switch to 'After the fix' for the corrected loss.
prompt tokens1,024⏟share of the loss spent on the prompt≈8471,024≈0.8(RS-SFT median example)1,024−847⏟reasoning tokens kept≈180  ≪  4,621⏟assistant tokens in the example\begin{gathered} \underbrace{\frac{\text{prompt tokens}}{1{,}024}}_{\text{share of the loss spent on the prompt}} \approx \frac{847}{1{,}024} \approx 0.8 \qquad\text{(RS-SFT median example)}\\[8pt] \underbrace{1{,}024 - 847}_{\text{reasoning tokens kept}} \approx 180 \;\ll\; \underbrace{4{,}621}_{\text{assistant tokens in the example}} \end{gathered}

Why it hid

Three things kept it quiet for six months.

  1. A stale comment. The 1,024 was right for the data it was chosen for, and the comment explaining it stayed true about that data. Nobody re-audited it when reasoning traces made the examples five times longer.
  2. A silent trainer. TRL truncates without warning, and its default max_length is also 1,024, so the setting looked ordinary.
  3. Plausible results. The loss went down, the models still produced parseable JSON, and their recipes changed in interesting ways. Every symptom had a story.

What it broke, and what it did not

Affected: every claim about what SFT does (findings 1–5, 9–16, 18, 24–26, 28, 31, 32, 34, and Phase 18 and 19 steps S1–S4), and every RL run that started from a truncated SFT model (findings 1, 2, 4–7, 11, 12, 16, 20–22, 24–26, 28, 30, 33, 34 and steps S5–S7).

Unaffected: RL itself was not truncated (TRL’s GRPO trainer has no prompt cap, and its completion cap of 8,192 equals the sampling cap). The self-generated SFT data are fine. Findings 8, 17, 19, 23, 27 and 29, about the validator, the comparator, the KL reference and the external lab data, use no truncated model and stand as they are (the lab audit).

Everything the judges taught us still holds, because the judges never touched the cut-off models. Everything about what SFT does, and every comparison between SFT and RL, has to be measured again.

A second issue, found in the same audit

Seven ASTRAL sample sets (Base, Corpus SFT, GDPO-300, RS-SFT, format-only SFT, Phase 12 at step 300 and E1 at step 300) were drawn with Hugging Face generation at temperature 1.0; every other ASTRAL set came from vLLM at 0.9. Comparisons inside either group are consistent. Comparisons that cross them (findings 30, 31’s hit comparison, 33, 34’s Price and reachability checks, Phase 18A and 18E) are listed in docs/phases/PHASE20_FINDINGS_AUDIT.md, and Phase 20 resamples four of the temperature-1.0 models at 0.9 to recompute them.

The gates that now catch it

  • Gate T (masking). For every row of every training and validation file, the tokens in the loss must equal the assistant turn exactly: nothing from the prompt, nothing cut. It runs as a regression test (tests/test_sft_masking.py). It passed for all four datasets on 2026-11-17, after one recorded decision about two capped completions (below).
  • Gate M (memory). One optimizer step on each dataset’s single longest example must fit in memory, with no truncation and no dropped examples. Peak memory was 12.1 GiB for RS-SFT, E3 and E3c, and 14.3 GiB for Corpus SFT’s 14,648-token example, on a 32 GiB RTX 5090.
  • Gate R (after each run). The trainer’s logged tokens per example must be within 5% of the dataset’s mean full length, prompt included; this is the check that would have caught the bug on day one. And 64 completions on 8 held-out targets must parse at least 70% of the time.

All three corrected SFT models passed Gate R. Logged tokens per example matched the dataset’s mean full length to within +0.10% (sft-rssft-full), −0.44% (sft-e3-full) and +0.04% (sft-e3c-full), where the truncated runs had trained on 1,024 tokens of examples five times longer. Their parse rates were 100%, 98.4% and 100%.

Each gate tests the thing that failed, not a proxy for it. Gate T compares the exact tokens in the loss to the exact tokens we meant to train on. Gate R compares what the trainer says it saw to what the data contains.

The bug did not change the judge results, and it may or may not change the SFT story. What it changed for certain is what the project is allowed to claim until Phase 20 reports, which is why every SFT number on this site is a pending block.

Two capped completions. Gate T’s first run failed on 4 rows: the same two completions (CaFe₃O(PO₄)₃ and CsLuP₂O₇), each in both E3 and E3c. Each is a Base sample that hit the 8,192-token cap without closing </think>, so its JSON answer sits inside unfinished reasoning. Decision, recorded before any Phase 20 training: train on them as sampled, with no inserted end-of-turn token, because the model never stopped. They were neither dropped nor edited.

Back to how the research was run. The registered reruns are on the experiments page.

Appendix

Reference

A.1Limits and names

What this project cannot claim, and what each model name means.

Limits

  • One model, one run per setting. Every result is for Qwen3-8B trained through QLoRA adapters, with one training run per setting and one seed. Full fine-tuning, other model sizes and run-to-run variation are untested.
  • Idealized pictures. The tilt and mixture derivations treat every recipe’s probability as its own parameter. A network shares weights between recipes; the derivations say what each objective pushes toward, and the exact-reach test measures what the network did.
  • Short RL. RL runs stop at 300 steps. Whether thousands of steps add recipes (Liu et al. 2025) is not tested here.
  • Small lab sets. ASTRAL has 35 targets and gives precursor species without molar ratios, so several ranker channels cannot be computed on it. ARROWS³ is large, but covers three targets, mostly YBCO.
  • “Held out” is relative. The 40 held-out targets were never used for RL, but 34 of them appear in the RL starting model’s SFT training data.
  • Validity, not quality. Every reward used for training checks validity. No reward in this project measures what the lab measures, so no RL result here can be read as better chemistry.
  • A database is not a chemistry registry. precursors_exist checks Materials Project, which omits real, working precursors such as Y₂(CO₃)₃.
  • Support is estimated. “Never written” means not seen within a sampling budget. Exact teacher-forced scoring of fixed strings (P-20-3) is the one readout that does not depend on sampling.
  • Pending. Every claim about what SFT does waits on Phase 20 (the bug).

Names

name what it is
Base Qwen3-8B with no adapter
Corpus SFT SFT on the literature corpus (1,217 examples); the RL start for GDPO-300
RS-SFT SFT on Base’s own completions that scored at least 0.9 on the checker (283 examples)
E3 SFT on Base’s own checker-valid samples, favoring rare recipes (505 examples)
E3c as E3, without the rarity preference (505 examples)
format-only SFT a short SFT run meant to teach only the output format
GDPO-300 RL from Corpus SFT with the checker reward, 300 steps
Phase 12 RL from RS-SFT with five checker channels, β=0\beta = 0, read at step 300
E1 RL from RS-SFT with the ranker reward, β=0\beta = 0, 300 steps
*-full the Phase 20 retrains: loss on the assistant turn only, nothing truncated (sft-rssft-full, sft-e3-full, sft-e3c-full, E1-full)
S1–S7 the seven training steps (the experiments)
checker, ranker, comparator the three judges (the judges)
[C], [E] confirmatory (registered) and exploratory results
spread the model’s probabilities over recipes for one target
support the recipes with any probability
nat the unit of energy; one nat higher is e≈2.7e \approx 2.7 times rarer
exponential tilt p∝p0 etrp \propto p_0\,e^{tr}: what RL does to a spread
mixture (1−λ) p0+λq(1-\lambda)\,p_0 + \lambda q: what SFT does to a spread
textbook, rule-picked ASTRAL’s two precursor sets for each target
hit the rule-picked set written at least once in 32 tries
resampling floor the new-recipe rate the starting model produces when simply sampled again
capacity mean within-group variance of a judge’s z-scored votes, 0 to 87.5%

A.2Sources

Papers, datasets and software the site cites. The project's code, pre-registrations and results are in the MIRA repository.

Project records

The code, every pre-registration, every results file and the findings audit are in github.com/SundarGowtham/MIRA. The documents this site cites most:

  • CLAUDE.md: the numbered findings.
  • docs/phases/PHASE20_PREREG.md: the registered predictions P-20-1 to P-20-5.
  • docs/phases/PHASE20_FINDINGS_AUDIT.md: which findings the SFT bug affects.
  • docs/phases/PHASE20_RESULTS.md: Phase 20 results as they arrive.

References

  1. Amari 1998 Amari, Shun-ichi. Natural gradient works efficiently in learning. Neural Computation, 10, 1998.
  2. Amari 2016 Amari, Shun-ichi. Information Geometry and Its Applications. Springer, 2016.
  3. Angelopoulos et al. 2023 Angelopoulos, Anastasios N. and Bates, Stephen. Conformal Prediction: A Gentle Introduction. Foundations and Trends in Machine Learning, 16, 2023.
  4. Bartel et al. 2018 Bartel, Christopher J. and others. Physical descriptor for the Gibbs energy of inorganic crystalline solids and temperature-dependent materials chemistry. Nature Communications, 9, 2018.
  5. Beirami et al. 2024 Beirami, Ahmad and others. Theoretical guarantees on the best-of-n alignment policy. arXiv, 2024. arXiv:2401.01879
  6. Chen et al. 2024 Chen, Jiadong and Cross, Samuel R. and others. Navigating phase diagram complexity to guide robotic inorganic materials synthesis. Nature Synthesis, 2024. arXiv:2304.00743
  7. DeepSeek-AI 2025 DeepSeek-AI, The. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv, 2025. arXiv:2501.12948
  8. Dettmers et al. 2023 Dettmers, Tim and Pagnoni, Artidoro and Holtzman, Ari and Zettlemoyer, Luke. QLoRA: Efficient Finetuning of Quantized LLMs. arXiv, 2023. arXiv:2305.14314
  9. Fisher 1930 Fisher, Ronald A.. The Genetical Theory of Natural Selection. Clarendon Press, 1930.
  10. Jain et al. 2013 Jain, Anubhav and others. The Materials Project: A materials genome approach to accelerating materials innovation. APL Materials, 1, 2013.
  11. Jiang et al. 2011 Jiang, Xiaoye and Lim, Lek-Heng and Yao, Yuan and Ye, Yinyu. Statistical ranking and combinatorial Hodge theory. Mathematical Programming, 127, 2011.
  12. Kononova et al. 2019 Kononova, Olga and others. Text-mined dataset of inorganic materials synthesis recipes. Scientific Data, 6, 2019.
  13. Lee et al. 2025 Lee and others. Text-mined solid-state synthesis records (80,806 records). Scientific Data, 12 (article 1969), 2025.
  14. Levine 2018 Levine, Sergey. Reinforcement Learning and Control as Probabilistic Inference: Tutorial and Review. arXiv, 2018. arXiv:1805.00909
  15. Lim 2020 Lim, Lek-Heng. Hodge Laplacians on graphs. SIAM Review, 62, 2020.
  16. Liu et al. 2025 Liu, Mingjie and others. ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models. arXiv, 2025. arXiv:2505.24864
  17. Merchant et al. 2023 Merchant, Amil and others. Scaling deep learning for materials discovery. Nature, 624, 2023.
  18. Ng et al. 1999 Ng, Andrew Y. and Harada, Daishi and Russell, Stuart. Policy invariance under reward transformations: Theory and application to reward shaping. ICML, 1999.
  19. Ong et al. 2013 Ong, Shyue Ping and others. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68, 2013.
  20. Price 1970 Price, George R.. Selection and covariance. Nature, 227, 1970.
  21. Qwen Team 2025 Qwen Team, The. Qwen3 Technical Report. arXiv, 2025. arXiv:2505.09388
  22. Rafailov et al. 2023 Rafailov, Rafael and others. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. arXiv, 2023. arXiv:2305.18290
  23. Shao et al. 2024 Shao, Zhihong and others. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv, 2024. arXiv:2402.03300
  24. Shenfeld et al. 2025 Shenfeld, Idan and Pari, Jyothish and Agrawal, Pulkit. RL's Razor: Why Online Reinforcement Learning Forgets Less. arXiv, 2025.
  25. Szymanski et al. 2023 Szymanski, Nathan J. and Nevatia, Pragnay and Bartel, Christopher J. and Zeng, Yan and Ceder, Gerbrand. Autonomous and dynamic precursor selection for solid-state materials synthesis. Nature Communications, 14, 2023.
  26. Szymanski et al. 2023 Szymanski, Nathan J. and others. An autonomous laboratory for the accelerated synthesis of novel materials. Nature, 624, 2023.
  27. Taylor et al. 1978 Taylor, Peter D. and Jonker, Leo B.. Evolutionarily stable strategies and game dynamics. Mathematical Biosciences, 40, 1978.
  28. von Werra et al. 2020 von Werra, Leandro and others. TRL: Transformer Reinforcement Learning. GitHub, 2020. link
  29. Wootters 1981 Wootters, William K.. Statistical distance and Hilbert space. Physical Review D, 23, 1981.
  30. Yu et al. 2025 Yu, Qiying and others. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. arXiv, 2025. arXiv:2503.14476
  31. Yue et al. 2025 Yue, Yang and others. Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?. arXiv, 2025. arXiv:2504.13837
  32. Zhu et al. 2025 Zhu and others. The Path Not Taken: RLVR Provably Learns Off the Principals. arXiv, 2025. arXiv:2511.08567

Keyboard shortcuts

MNext reading mode: Paper, Balanced, Learner
1 2 3Paper, Balanced, Learner
TSwitch between light and dark
L DLight, dark
[ ]Previous, next chapter
?Show this list

Paper shows the terse result. Balanced adds intuition and meaning. Learner adds a from-zero explanation of every idea. The same page, more or fewer layers.