SOPHIA XT
Sign in
Research · the study before XE5

Perfect labels
broke our router.

The paper is called XE4-S: Dense Composition after a Routing Collapse. Its first result is a failure. A stage trained on oracle routing labels scored 0.3322 when the labels were supplied and 0.4774 when it had to trust its own router. It had never seen its router make a mistake, so the first real ones were expensive.

Trained again with the router in the loop, the gap closed to −0.0008. Most of the damage sat at the start of a turn: 85% of routing errors fall in the first three tokens.

Figure 1 Where the tokens go Illustrative
0.3322
loss with oracle routes
0.4774
loss self-routed
The strands and twelve lanes are drawn to show the shape of the failure. The study routed a bank of 31 specialists. The loss figures are the study's.
0.3322loss with oracle routes
0.4774loss self-routed
−0.0008gap with the router in the loop
85%of routing errors in the first three tokens
Where the errors are

The first three tokens
decide the lane.

A turn opens before the request is clear. At token one the router has seen a verb at most, and the specialist it picks shapes everything after. Training on perfect labels hides this, because the labels never get the first tokens wrong.

Putting the router in the loop makes the stage train on its own early mistakes. That was enough to remove the gap.

Figure 2 Routing errors by token position after a turn opens Illustrative
123456789101112Takethedentistoffthecalendar,cheers.85% in tokens 1 to 3
The 85% total for tokens one to three is the study's. The split inside and beyond those three positions is drawn for illustration.
01 · The failure the paper starts from

Selection got harder
as the bank grew.

The earlier line packaged each capability as a rank-16 LoRA delta of about 16.7 MiB over a frozen pretrained base, shipped as an .ncn file with a capability capsule, a scope and exclusion list, a validation set and a provenance record. A pooled query embedding was scored against the capsules in closed form, and the highest scorers became the active set. This is the architecture behind Mnema V1.

The ship gate was 85% top-1 route accuracy. At two specialists the router cleared it: 18 of 20 combined across bases, both misroutes low-margin confusions. At three and above, over capsules from similar domains, accuracy fell to 23.3% and never recovered past 46.7%. The code capsule was absorbed by the architecture capsule and sat at 0% from five specialists onward.

N = 3the point where closed-form selection broke, and stayed broken however the mechanism was varied.
Figure 3 Top-1 route accuracy on 30 held-out prompts, by number of specialists
0255075100ship gate, 85%offline, same capsules: about 82% out to N = 48100%N = 223.3%N = 336.7%N = 436.7%N = 546.7%N = 6
The dashed amber line is what the same cosine signal reaches offline on the same capsules, about 82% out to N = 48, against a random floor falling from 12.5% to 2.1%. The roughly thirty-point gap between that ceiling and deployment routing near 47% is the finding: the geometry holds and the deployment projection does not.
Section 7.1 · Three attempts to fix the router
InterventionWhat it didOutcome
Mean-centre the capsulesTripled decision marginsAccuracy essentially flat. N = 6 rose only from 46.7% to 50.0%, so the failure is a query-to-capsule representation mismatch, not a geometry problem.
Enlarge one specialist's corpus237 examples to 4,361N = 6 went down, from 53.3% to 46.7%, and two capsule cosines collided at 0.926. A single mean-vector capsule gets more diffuse as its corpus broadens.
Replace closed form with a learned routerThe NCN v2 routerWorse. All 30 prompts across all six specialists went to one node, mutual information exactly 0.0 bits. Abandoned.

Four mechanisms were tried in that line without isolating a cause: cosine-to-mean, GSVD, a learned router and shrinkage-LDA. A hierarchical gate that descends a topology region before selecting inside it is specified and untested.

02 · What changed

Two differences,
both load bearing.

A mixture of experts computes w = gate(x). XE4-S computes w = compose(x, m), where m summarises where a beam descent through a runtime-written memory of user facts ended. The rest of the stack is kept.

It never selects

All 31 specialists receive non-zero weight and their outputs are summed. There is no active set to choose, so no top-k and no load-balancing loss anywhere in the work. As N grows the router is not solving a harder discrimination, because it is not discriminating.

It does not learn to route from geometry

One uint8 per token, aligned with the token stream and written when the corpus is built. The same bytes mask the loss that trains specialist i and supervise the composer that weights it. The assignment is fixed in the data, so nothing has to recover it from embedding geometry.

03 · The result

At 31 specialists
nothing collapsed.

The composer routes 18 of 19 task shapes correctly in distribution. Twelve of the 31 are knowledge specialists that were never trained, because that run had no knowledge corpus, and the composer gives all twelve exactly 0.000 weight, mean and max, on every probe. Nothing asks it to. There is no dead attractor and nothing absorbing a neighbour's mass.

That is about fifteen times the specialist count at which the earlier architecture stopped working. It measures a different quantity from Figure 3: top-1 selection over a sparse active set there, against whether a dense composer that selects nothing puts its mass on the right specialist here. What transfers is the direction of the curve, not the axis.

What the comparison does not establishThe two systems are not a controlled head-to-head. NCN routed LoRA deltas over frozen pretrained bases, selected by geometry, on 30 prompts over two to six similar-domain specialists. XE4-S trains a bank from scratch and its routing is supervised. The two mechanism changes are the candidate reasons. Which is responsible has not been established, and the experiment that would settle it, supervised routing against geometric selection on one bank, has not been run.
Prior art, as the paper states itCorpus-label routing of this kind is not new. DEMix assigned every token to an expert by domain label and mixed densely at inference in 2021. The paper claims the per-token granularity, the dual use of one channel as both partition and regression target, and the setting of assistant behaviour rather than document domain.
04 · The other half

The knowledge axis collapsed
in exactly the old pattern.

A companion run with a knowledge corpus routed 12 of 12 knowledge branches to one specialist, know:Home. One destination for every input is the zero-bit failure of the earlier router in different notation.

The cause came from arithmetic. The batch sampler walked a sequential cursor from block zero. Stage E runs 2,500 steps, half on knowledge at batch 24, so its knowledge stream consumes 30,000 blocks of 512 tokens, 15.4M tokens, starting at block zero. The corpus is laid out branch by branch and Home holds blocks 0 through 34,921. The stream never left Home. Eleven of twelve labels were never shown.

Measured against the real corpus over the 1,250 steps the stage uses, a sequential cursor shows 1 of 12 labels with Home at 100.00%. Random block draws show 12 of 12 with Home at 9.00%, and after the fix every branch appears in proportion to its size, from Person at 3.10% to Nature at 9.42%.

Section 7.4 · After the sampler fix
MeasureBeforeAfter
Branches routed to their own specialist1 of 123 of 12
Mean mass on own specialistnot reported0.111 (uniform 0.032)
Cost of composing against the best single specialist−0.3093 nats−0.1923 nats
Where the collapse sitsknow:Homeknow:Society

The collapse moved and did not disperse. The cause here was data exposure, not routing machinery, and it was isolated.

One parallel cuts against both architectures. The obvious remedy made things worse in each: a corpus nearly twenty times larger dropped N = 6 accuracy, and three attempts to train the composer harder are the record on the XE4-S side.

05 · Evaluation

The model
does not work yet.

178 held-out probes, tool-choice exact match, greedy decoding. The dense baseline is a 17M monolith trained on the same 700,000 sessions with an 8,192-entry BPE, so content is matched and tokenizers are not.

ModelAccuracyNote
mono1, dense monolith, 17M82.6%Wilson interval 76 to 87
clm2, predecessor60.1%different tokenizer, memory inert
XE4-S, memory path off57.9%103 of 178
XE4-S, memory path live57.3%102 of 178, interval 50 to 64
XE4-S, after the read fix36.5%the fix that made it worse

Making the memory path live moved the score by one probe. Validation loss composed against ablated is 0.3898 against 0.4055, the cleaner statement of what memory contributes.

The deficit is one failure mode. XE4-S emits no call at all on 50 probes and the wrong tool on 25. The baseline emits no call on 0 and the wrong tool on 31. On wrong-tool confusions XE4-S is ahead. The entire deficit is failing to act.

Four causes were tested and rejected: not the tokenizer, not the prompt format, not the frozen trunk, not dilution by the abstaining tail. What is left is where the composer puts its mass. On the 128 probes it gets right, 0.883 of the mixture sits on specialists that would open a call. On the 50 it fails, 0.285.

The training corpus is template-generated, the specialists fit it closely, and what they learned was the templates. Four of the five remaining failures are things the data never required: copying, consulting memory, the hard frames, and saying more than a template does. The fifth, 4.6 tok/s serving, is a verified 11.5× speed-up that nothing imported.

So the next corpus is built so the easy strategy fails, and it is not simply larger. Nothing gets claimed before it replicates. The ordering result is the cautionary case: four seeds and a mean of −0.93, quoted for months as +5.3.

Two of our own claims came off the tableTruncation is free, and the ordering result, did not survive replication. The paper retracts both in section 8 and lists four bugs of one class: state that is not a fixed-shape buffer, silently out of step with what it indexes. Limits: a 512-token window, no multi-turn run on a trained checkpoint, and accuracy figures that are tool-choice match, not usability.

Figures 1 and 2 are Illustrative. Every table and number is from the paper.