Exea LabsBlog
日本語Japanese version

Day 18 ·

ExeaLM recalls 12% more of a long document at every size. Its TONN layer carries a fact from one window to the next.

Bits per byte turned into exact answers: recall, the next line of code, and a planted pass key, at three sizes and on 8,192-token documents.

Date
2026-11-27
Read
6 min read
Topics
NAIRR LLM, Architecture, Scaling
By
The Exea team
+12%

more recall targets exactly right than our Qwen3.5-style build at 0.5B (0.282 against 0.252, 2 seeds; +14% at 0.1B, +12% at 0.25B)

0.281

pass keys found one window back by ExeaLM at 0.25B (3 seeds), against 0.094 with attention in place of its TONN layer and 0 for the Qwen3.5-style build

0.86

pass keys found in the window being read at 0.5B, against 0.19 for the Qwen3.5-style build (2 seeds)

Every comparison so far has been in : how surprised a model is by held-out text. ExeaLM leads our Qwen3.5-style build on every held-out set. Its lead is larger on long documents than on short windows (the post before this one). A research or code assistant is judged on exact answers, not on surprise. This post tests whether the long-document lead becomes exact answers. It also tests which part of ExeaLM carries it.

01Three tasks, scored as exact match

Every finished model of the study read the first 4,096 tokens of held-out documents, 64 per set, as a of eight 512-token windows. A target counts as an when the model's top guess is right at every one of its tokens, given the text before it. That is what greedy decoding would write for that span.

  • Recall (all nine prose and code sets, 11,614 targets): a six-token run seen earlier in the document. The first two tokens are the cue and the last four the target. The run was last seen before the previous window, so neither the window being read nor the attention's carried keys and values hold it.
  • Code next line (four code sets, 12,092 targets): a line that uses an identifier last seen before the previous window, the next-line task of RepoBench with the far context in the same file.
  • Pass key (64 trials at each depth): "The pass key is 48213. Remember it." planted in held-out Wikipedia text, with "What is the pass key? The pass key is" in the last window, as in RULER.

02ExeaLM is ahead on every task at every size

Exact-match rates, read as a stream, mean over seeds:

RecallCode next linePass key, same windowPass key, one window back
0.1B, 111 tokens per parameter (2 seeds)
ExeaLM0.2680.0420.6480.078
Qwen3.5-style build0.2350.0380.0470.000
0.25B (3 seeds; plain Llama 1 seed)
ExeaLM0.2410.0350.7660.281
Qwen3.5-style build0.2150.0320.0160.000
Plain Llama0.1340.0190.0000.000
0.5B (2 seeds)
ExeaLM0.2820.0450.8590.266
Qwen3.5-style build0.2520.0420.1880.000
Plain Llama0.1860.0270.0000.000

Every target was scored by both models, so we tested each difference target by target (McNemar's test, seeds pooled). ExeaLM recalls 13.9%, 11.9% and 11.7% more targets than the Qwen3.5-style build at 0.1B, 0.25B and 0.5B, with p below 1e-40 at each size. It completes 10.2%, 8.5% and 6.5% more lines of code (p = 2e-5, 3e-5 and 0.002). It finds the pass key in the window it is reading 0.65, 0.77 and 0.86 of the time, against 0.05, 0.02 and 0.19 (p below 1e-16).

The recall lead stays at 12% to 14% from 0.1B to 0.5B. ExeaLM's lead on short windows read alone shrinks over the same range, from 2.8% to 0.6% in bits per byte. The long-memory lead is the one that holds as the models grow.

03What the TONN layer adds

The study also trains ExeaLM with attention in place of its single layer, with the same streams and recipe. On recall and code next line the two are even (within 1.3%, p = 0.15 and 1.0 at 0.25B). The pass key is not. One window back, ExeaLM finds it 0.281 of the time against 0.094 (0.25B, 3 seeds; 38 trials only ExeaLM gets against 2, p = 3e-8). In the window being read, as a stream, it is 0.766 against 0.635 (p = 6e-4).

Read window by window alone, with no state carried, the two are close (0.677 against 0.609, p = 0.10). What the TONN layer adds is carried from one window to the next, which is the job it was built for. On plain text the attention-only model is even with ExeaLM (results, section 24). The TONN layer stays in the 9B because the library search, the board and the weight edits are TONN circuits. An attention layer cannot hold them (decisions, 27 November).

04Twice as long a document gives the same answer

On 8,192-token documents (16 windows, 48 documents a set, 32 pass-key trials at each depth) the picture repeats with three times the targets. ExeaLM recalls 11.0%, 13.9% and 10.6% more than the Qwen3.5-style build at 0.1B, 0.25B and 0.5B (p below 1e-50 at each size). It completes 8.5%, 7.5% and 2.8% more lines of code (p = 6e-6, 6e-8 and 0.03). One window back, it finds the pass key 0.09, 0.25 and 0.28 of the time, against 0 for the Qwen3.5-style build. Against attention in its place, recall and code are even again. The pass key one window back is 0.250 against 0.052 at 0.25B.

05Nothing reaches two windows back

No model finds the pass key two or more windows back: 0 of 64 at every depth, every model, every size. The library shows the same edge. We put a library entry one or two windows before its question for the 0.1B models (one seed, 1,195 held-out questions). One window back, every model keeps about 90% of what the entry gives in the question's own window. Two windows back, none keeps anything. Every model then scores worse than with no entry. Exact retrieval from far back is not solved at these sizes, so passages the model must use go in the question's window or the one before it.

06At 3B, the lead is not there yet

We froze the 3B pair at step 16,000 of 45,688, before ExeaLM's stream phase, which starts near step 36,550. Neither model had trained on streams. Read as a stream, ExeaLM recalls 0.281 against 0.286 for the Qwen3.5-style build and completes 0.046 lines of code against 0.048: even. It still leads on the pass key in the window it reads, 0.48 against 0.17. At the smaller sizes the recall lead came with the stream phase, so this check comes too early to settle it. The finished pair does that, around midnight on 29 November.

07What this does not show

  • These are exact matches under teacher forcing: the model sees the true text up to each target. They match what greedy decoding would write for the span, not what a model writes freely over a long answer.
  • The Qwen3.5-style build and the plain Llama never train on streams in this study (decisions, 25 November), so they gain little from the carried state. The plain Llama does worse streamed than alone. The attention-only model trains on streams as ExeaLM does, which makes it the fair test of the TONN layer.
  • Code exact-match rates are low at these sizes, 3% to 5%. The differences are significant, but these are small models.
  • Two to three seeds per size, one seed for the attention-only model at 0.1B and for the plain Llama at 0.25B.
  • The largest finished models are 0.5B. The 3B check above is a checkpoint a third of the way through training.

08Next

The 3B pair finishes around midnight on 29 November. The same three tasks then run on the finished pair, with the stream phase behind ExeaLM. The next post has the other half of the day's work: how ExeaLM and its library compare with released models, Qwen3.5-9B among them.

09

Who did the work

Avneh Bhatia@AvnehSBhatia
Set the claims these tests check, and decided that the 9B keeps its TONN layer for the memory circuits it holds.
Jasraj Tulsi@jaztulsi
Wrote training across processes with PyTorch DDP (PR #68), which trained every 0.5B and 3B model in this post on four GPUs.
10

Sources