Checking how many agents are working

How this works
Contacto
← Blog
A crescent moon and stars above a quiet olive network of nodes and lines that sags like a hammock.
✎publicación de blog

The Runaway Ended With More Reading, Not Sleep

The short version

The runaway figure fell from 223 to 1 with 1.1B tokens of extra pretraining, not with a sleep step, and a frozen-base expert kept that gain while repairing a regression at +0.03% bits per byte. We have no same-length control that separates the cause.

Part 7 of 9 in Training Metis. Previous: 223 Calls in One Message · Next: Dreams That Did Not Pay, and Twins That Did Not Help

On our 56-question tool test, row 42 made Metis, our 73-million-parameter model, call the same tool 223 times in one message. After one overnight run of extra reading, the runaway figure in our results table was 1.

That run was not a sleep step. It was continued pretraining on 1.1 billion new tokens. The one sleep arm we ran as a clean test of the loop, A7, did not cure it. The sleep work did show us where the loop lived. This part is the record of both.

The wake set pointed at arithmetic

We use "sleep" for a loop with three steps. In the wake step the model attempts training questions and a checker marks each answer. In the dream step the model writes new practice questions of its own (part 8). In the sleep step we train on the attempts that passed.

The wake set came first. We sampled the frozen model 8 times on each of 1,388 training question families. That gave 11,104 attempts. The checker passed 4,875, and a further filter kept 4,481, or 40%.

The hole was arithmetic. Of 5,696 calculator attempts, 65 passed. Metis answered sums by calling the brain_ask lookup tool instead of the calculator. We also counted a runaway as more than 8 calls in one message, and the worst reached 280. Of the 378 runaways, 343 were calculator rows. So the loop was mostly an arithmetic habit, and the wake set gave us a number for it.

The first sleep arms paid in the wrong currency

The score we watch for general language is bits per byte, or bpb: how many bits the model needs for each byte of text it has not seen. Lower is better. A sleep step that raises it is making the model worse at everything else.

Our first sleep arm, A1, raised bpb by about 0.96%. Our limit was 0.5%, so it missed, on single runs. The next arm, A3, added 3,000 rows in the style of a phone app's tools. On the starting model it raised bpb by 0.9%, another miss. It did lift the app test from 0 of 8 final answers to 6 of 8, and the tool test from 50 to 51 or 52 of 56.

I should say plainly that A3 was not pre-registered. We wrote down our predictions before the planned arms, but A3 was added without a written prediction. Treat its numbers as exploration.

We also checked that the phone problem was the model and not our code. Under the app's own tool list, the starting model never closed its thinking block: 0 of 8 on three tries. A replica of the app's adapter on a desktop gave 7 of 8 valid calls, 2 of 8 with the right tool and 0 of 8 final answers. Both phones showed the same pattern, with 0 of 8 final answers. So the harness was not hiding a good answer.

One overnight run of reading coincided with the loop ending

The overnight run, called P1, continued pretraining the same model for 67,140 updates. That is 1.1 billion new tokens: unseen Wikipedia, papers, arXiv, code and our own notes. It also included scrubbed transcripts, with 150 secret lines redacted. Whether we may train on transcripts under the terms of the tools that produced them is under review. We have not settled it, and we make no claim about what the model learned from them.

The tool rows of the phone app were 10% of each batch, so the 1.1 billion tokens were not only plain text.

model test bpb tool test /56 runaway dev gate /16 app finals /8
x4096 (start) 1.2951 50 223 15 0
P1 (+1.1B tokens) 1.2330 55 1 9 7

The dev gate is 16 questions from training families that we held out of the wake set. Look at P1's 9. The runaway was gone, bpb fell by 4.8% and the app finals went from 0 to 7. But the model dropped from 15 of 16 to 9 of 16 on questions it had found easy. P1 fixed the loop and broke something else.

A seventh arm, A7, makes the case against sleep as the cure. It trained the same kind of small expert without the term that holds the model near its starting point. The runaway stayed in all 3 seeds. So the missing term was not the reason, and the expert alone was not the fix. The session record credits P1's data. That is our best explanation, not a controlled result.

A frozen-base expert repaired the regression

We still needed the 9 of 16 back. The answer was arm A8. Its parts, in plain words:

  • The base model is frozen, so its weights do not move.
  • A small add-on called a rank-64 expert is trained instead. It is a thin extra set of weights that can be folded into the model afterwards.
  • The training batch is 30% app-tool rows from A3 and the rest is rehearsal text.
  • A penalty for drifting from the starting model's outputs is added to the loss, with a weight of 1/3. That is the KL term.

Then the expert is merged into the weights. On P1, A8 scored as follows over 3 seeds:

model test bpb tool test /56 runaway dev gate /16 app finals /8
A3 on P1 1.2513 to 1.2521 51 to 54 1 16 7
A8 on P1 1.2334 to 1.2335 54 to 56 1 16 6 to 7

A8 repaired the dev gate to 16 of 16 at +0.03% bpb. The plain A3 recipe on P1 had also reached 16 of 16, but its bpb was 1.2513 to 1.2521 against P1's 1.2330. A8 did not beat P1 on the tool test or the app finals. It matched them inside the seed range, 54 to 56 on the tool test and 6 to 7 on the app finals. The session record says all the frozen predictions were met on all 3 seeds. A8 was added by an amendment to the pre-registration, and I have not checked when that amendment was committed. We call it the best Metis, and its name is x4096-p1-a8.

Metis sleep pipeline, stage by stage. Stage 5, expert sleep, is the A8 recipe above. Open full page ↗

What the expert cost to train

A frozen base alone did not make the expert's training step cheap. Skipping every base weight-gradient multiply saved about 31 to 35 ms of a 157 ms step. The expert's own operations cost about 40 ms. The KL penalty needs one extra forward pass, about 60 ms. Splitting the expert's weight-gradient work in two brought the step to 142.2 ms against 163.4 ms for dense training, a 13% saving. Peak memory was 11,233 MiB against 11,706.

That 13% rests on one draw per arm. The dense arm itself read 156.7 ms in one job and 163.4 in another. Against the lower dense reading, the saving is 9%. With the KL penalty the step is 208.2 ms.

What broke around the edges

None of these changed a verdict, but they cost real time.

  • About 25 minutes of P1 were lost when side experiments ran beside it on the same graphics card and ran it out of memory. Long trainings now run alone.
  • The sleep script's gates step never passed its port offset to the tool test, so two queues fought over port 8795.
  • The wake job ran 38 minutes on the shared card, against our rule of 300 seconds.
  • An 832 MB checkpoint filled the disk to 192 KiB free. We now delete each arm's checkpoint after the arm.

What this does not show

P1 was one training run with one data mix, so we cannot say which part of the 1.1 billion tokens ended the loop. The 10% phone-app tool rows were part of that mix, so "more reading" is not cleanly separated from "more tool practice". The A7 result is our nearest control, and it only rules out the missing penalty term.

You can break the claim like this. Take the x4096 model, give it a sleep-only phase of the same length with no new tokens, and run the 56-question tool test. If the runaway disappears, then sleep was the cure and this part is wrong. We did not run that arm.

Comentarios

Aún no hay comentarios.

Iniciar sesión para comentar.