Skip to content

From the lab

Part 2 of 4

Three chains of thought, one merge

What happened when the debate became parallel lanes inside one model, and how replays that would not reproduce turned into a paper about the KV cache.

Alexander Boesgaard Lorup, Openhagen5 min read

The society in the last post talked in turns. Turns are slow, and the most useful thing SRA did turned out not to be the conversation itself. So I tried a different shape. What if the model thought along several independent lines at once, inside one sequence, and then had to reconcile them?

Lanes and a merge

Multi chain of thought, or multi-CoT, gives the model three private chains of thought, written one after another in the same output. Each lane sees the problem and its own work, and nothing of the other two. Then comes a merge, which reads all three lanes and derives the answer again: where they agree it checks the decisive step, and where they disagree it has to work out which one is right. Last comes a short answer block that sees only the problem and the merge.

In my notes I called the merge the harvester. Three lanes produce a crop of attempts, and often at least one of them has the right answer; the merge's job is to harvest it. Self-consistency, the standard way to spend extra compute, samples several answers and takes a majority vote. A vote can only count. A merge can read why the lanes disagree.

The budget is fixed: each lane gets at most 768 tokens, the merge 512 and the answer 64.

The problem

the question, as given

Lane 1

sees the problem and itself

at most 768 tokens

Lane 2

sees the problem and itself

at most 768 tokens

Lane 3

sees the problem and itself

at most 768 tokens

Merge

reads all three lanes

at most 512 tokens

Answer

reads the problem and the merge

at most 64 tokens

Figure 1 The layout of one multi-CoT pass. Three lanes see only the problem and themselves; the merge reads all three; the answer reads only the problem and the merge.

It worked, on one model, at one size

We trained this on Qwen 2.5 at 7B, starting from the SRA checkpoint, and tested it on the same 498 problems as before.1 The best checkpoint solved 281.

The fair comparison is self-consistency at a matched token budget. Multi-CoT used about 1,685 tokens per problem, between a majority vote over three samples (1,496 tokens) and one over four (1,995). At that budget the voting curve sits at about 245.5 problems, so the merge solved about 35 more. Paired against the actual three and four sample votes, the gaps are +41 [+19, +63] and +39 [+17, +61], and on the 400 problems with no verbatim copy in our training data they are +27 and +29. Even a vote over five samples, at 2,494 tokens, solved 257.

Figure 2 Problems solved against tokens per problem. Majority votes over one to five samples of the same base model, and the best multi-CoT checkpoint.

Two caveats belong next to that chart. The 281 is the best of 21 checkpoints scored on the same problems; the median was 269. And the gain over voting is mostly mathematics: on hard MATH it was clear, on GPQA Diamond smaller and not significant, and on MMLU there was none.

The substrate surprise

The result that changed how I saw the whole project came from a control. We ran the same multi-CoT training from the raw Qwen model instead of the SRA checkpoint, with the same data, recipe and number of steps. At step 2,560 the model that started from SRA solved 279 problems and the one that started raw solved 194: a gap of 85, with a 95% interval of [+60, +110].

The raw start did worse than doing nothing. It finished 40 problems below the untrained model with an ordinary chain of thought prompt. Training lanes into a model from scratch hurt it; training them into a model that had already learned the society's structure helped. The comparison bundles more than one difference, since the run from SRA also inherited trained role tokens, so it shows that the SRA pipeline as a whole carries the load, without saying which part.

Where it stopped

The recipe did not carry over cleanly. At 14B, also Qwen 2.5, the best checkpoint on the training curve solved 307 against 303 for a five sample vote, a difference of +4 [−17, +25]. On a model family from another developer, the best learned version we could rescore fell 85 problems below that model's own single answers. Within one family at one size, the lanes beat voting at matched compute. Beyond that, they did not.

Replays that would not reproduce

To find where the 14B model lost answers it had found, we did what many analyses do. Take a finished trace, cut it where the merge begins, rebuild the model's state from those exact tokens, and continue from there. If the merge kept failing on replayed contexts in which a lane was right, the merge was the bottleneck.

The replays did not reproduce the original runs. Same tokens, same model, same settings, greedy decoding, and the continuation still drifted somewhere after the merge began. Repeating a run gave exactly the same output every time. Replaying it from its own tokens gave a different one.

I could not leave that alone, and it became our second paper. We studied it on 200 GPQA Main questions with a 14B multi branch model derived from Qwen 2.5:

  • A live run reaches the merge by building its key/value cache one token at a time. A replay rebuilds the same cache in one pass over the same tokens. In bfloat16 the two caches are not bit identical, and the continuations differ on 166 of 200 problems, the final answer on 49, and correctness on 20.
  • Accuracy barely moves: 93 against 95 correct, a difference of one point with a 95% interval of [−3.5, +5.5]. Problems flip in both directions and cancel out. Accuracy alone would have hidden all of it.
  • Holding the 200 token prefixes fixed and switching to 32 bit floats, the decoded disagreement disappears: 0 of 200.
  • The decisive test was a transplant. We swapped the whole key/value cache, all 48 layers, between the two constructions and kept everything else. Every divergent continuation followed the cache it was given: 24 of 24 on the first checkpoint, and 43 of 43 in a replication on a later checkpoint, chosen without looking at outcomes.

Continuation differs

bfloat16166/200
32 bit floats0/200

Final answer differs

bfloat1649/200
32 bit floats0/200

Correctness differs

bfloat1620/200
32 bit floats0/200
Figure 3 The same 200 fixed prefixes, continued from a live cache and from a replayed one. In bfloat16 the continuations part ways; in 32 bit floats none of them did.

Small numerical differences in the cache tip a close call between two tokens somewhere downstream, a median of 88 tokens after the boundary, and from there the model is on a different path. So an exact token replay can be perfectly repeatable and still not be the state the model was in. The analysis that had blamed the merge rested on such replays, so it no longer described what the model did end to end. Part of the barrier I had been chasing came from how we were looking.

The rule we took away: whenever a replayed prefix stands in for a state the model actually reached, in stage probes, counterfactual credit or distillation from intermediate states, check it against the live state first, and say which level you compare: the cache, the continuation, the answer or its correctness.

What I took from it

Two things. A structure a model is trained under can carry the load even when it shows no gain on its own: SRA tied chain of thought, and the lanes that beat voting were built on it. And instruments matter as much as models. Both papers in this part of the series are about measuring the thing you think you are measuring.

Footnotes

  1. The set has 198 GPQA Diamond, 150 hard MATH and 150 MMLU problems. Of the 498, 98 appear word for word in the training data of the SRA lineage; none appear in the multi-CoT training set. Every system here is scored by the same scorer. ↩