We ask how much of a transformer's backbone the Chorus N-gram module replaces. Chorus adds hashed tables of token bigrams and trigrams to its input and attention. We train models of 16M to 349M parameters on 1.34 billion tokens of Polish printed before 1918 and find the size of a plain model with the same held-out loss. A separate learning-rate search for each kind of model cuts Chorus's gain at 47M by about a third. With tables about as large as the backbone, Chorus then matches a plain model 1.34 times its size at 16M and 1.16 to 1.20 times from 107M to 349M. With these tables, each added parameter replaces at most 0.31 backbone parameters. Chorus trains slower than a plain model of its size and faster than one of the same loss. On a fact quiz the two differ about as much as two seeds of one model. The results rest on one corpus, one 8,000-token vocabulary and a fifth of an epoch.
Figures & tables
Name
Parameters
Without embedding
Layers
Width
Heads (KV)
16M
15,668,608
12,596,608
8
384
6 (2)
47M
47,105,088
42,497,088
12
576
9 (3)
107M
106,859,264
100,715,264
16
768
12 (4)
204M
204,368,320
196,688,320
20
960
15 (5)
349M
349,069,440
339,853,440
24
1152
18 (6)
550M
550,399,808
539,647,808
28
1344
21 (7)
Table 1: Backbone sizes. Parameters counts every parameter of the plain model, including the tied embedding of 8,000× width. The size axis of every result uses this count, except where Section 4.2 reads it without the embedding. 550M is trained as a plain model only.
Peak Muon learning rate (AdamW in proportion)
Size
Model
0.0075
0.015
0.03
0.06
0.12
0.24
0.48
16M
plain
3.6606
3.6071
3.5820
3.5685
3.5573
3.5496
3.5512
16M
Chorus 1.09
3.5280
3.4997
3.4892
3.4803
3.4792
3.4791
3.4869
16M
gain
0.133
0.107
0.093
0.088
0.078
0.071
0.064
47M
plain
3.3633
3.3301
3.3128
3.2946
3.2869
3.2831
3.2946
47M
Chorus 1.09
3.2715
3.2531
3.2437
3.2368
3.2337
3.2410
3.2575
Table 2: Held-out loss in nats per token of plain models and of Chorus with equal-size tables at each Muon learning rate, with Chorus’s gain at each rate in italics. Bold: the best measured rate, the lowest loss after the tie rule of Section 3.4 . Chorus 1.09: Chorus with equal-size tables. ⋅ : not run; larger models were run at fewer rates, chosen from the best rates at the smaller sizes. Cells with more than one seed (Table 8 ) give the average. Seeds of one configuration differ by 0.0002 to 0.0088 nats.
Figure 2: Multiplier of equal-size tables against backbone size. Squares: each model at its best measured backbone rate (Section 3.4 ), with the tables’ rate of 0.0015 (Table 7 ). Triangles: the same backbone rates with a tables’ rate of 0.0005, mostly one seed (Appendix C ). Circles: Chorus and the plain models at the base rate; the open circle is read beyond the largest plain model at that rate.
Straight
Fitted
Without
Window
Replaced
Size
lines
curve
embedding
resampling (95%)
per added
16M
× 1.34
× 1.30
× 1.38
1.336 to 1.342
0.31
47M
× 1.29
× 1.27
× 1.31
1.290 to 1.296
0.27
107M
× 1.20
× 1.19
× 1.21
1.199 to 1.207
0.19
204M
× 1.18
× 1.18
× 1.19
1.179 to 1.188
0.17
349M
× 1.16
× 1.15
× 1.16
1.153 to 1.163
0.14
Table 3: Multiplier of equal-size tables at the best measured rates in three readings, the range of the straight-line reading over 2,000 resamples of the held-out windows (2.5th to 97.5th percentile, the same windows for every model, losses averaged over seeds as in Table 7 (at 16M over seeds 1337 and 2), without the seed spread), and the backbone parameters replaced per added parameter.
Tokens per parameter
Gain (nats)
Multiplier
Size
Half
Full
Double
Half
Full
Double
Half
Full
Double
16M
43
85
171
0.070
0.070
0.073
× 1.38
× 1.34
× 1.33
47M
14
28
57
0.051
0.051
0.052
× 1.34
× 1.30
× 1.28
107M
6.3
13
25
0.031
0.030
⋅
× 1.25
× 1.21
⋅
204M
3.3
6.5
⋅
0.026
0.023
⋅
× 1.24
× 1.19
⋅
349M
1.9
3.8
⋅
0.022
0.018
⋅
× 1.20 †
× 1.17
⋅
Table 4: Chorus with equal-size tables at half, the full and twice the training budget, each model at its best measured rate at the full budget, seed 1337, and at 16M also seed 2, so the full-budget multipliers can differ from Table 3 by a few hundredths. Each multiplier is read on the plain models of the same budget. Tokens per parameter count the plain model’s parameters. The 47M full runs saved no state at step 2,297, so the 47M half runs train from step 0; at 16M a plain half run from step 0 reaches 3.6248 nats against 3.6271 for the resumed one. † : read beyond the largest plain model of that budget. ⋅ : not run.
Quiz score
Known only by
Size
Chorus
Plain
Equal-loss plain
Zeroed Chorus
Chorus
Plain
p
16M
0.089
0.076
0.089
0.054
25
17
0.28
47M
0.146
0.123
0.135
0.060
32
18
0.06
107M
0.211
0.161
0.180
0.045
58
12
<0.001
204M
0.218
0.230
0.231
0.054
40
48
0.46
349M
0.240
0.233
0.245
0.067
47
42
0.67
Table 5: Fact quiz at the best measured rates: share of the 688 scored questions whose right answer the model scores highest. Equal-loss plain: a plain model of the Chorus model’s equivalent size, its score interpolated. Zeroed Chorus: with its N-gram tables set to zero. Known only by: among the questions that exactly one of the two models knows (seed 1337 of each), how many only the Chorus model knows and how many only the plain model of its size knows. p : the chance of a split at least this uneven if both models were equally good (two-sided sign test).
Throughput
FLOPs per token
tokens/s
Chorus relative to
Chorus relative to
Size
Model
Card
Chorus
Plain
plain
equal-loss plain
plain
equal-loss plain
16M
Chorus 0.275
RTX 3080
250k
288k
0.87
1.07
0.98
16M
Chorus 1.09
RTX 5090
767k
893k
0.86
1.11
1.07
0.81
16M
Chorus 4.35
RTX 3080
247k
288k
0.86
1.07
0.66
16M
Chorus 21.7
RTX 5090
748k
893k
0.84
1.52
1.07
0.56
Table 6: Training cost of Chorus models. Throughput: tokens per second of the Chorus model and of the plain model of its size on the same card type (medians over the runs of each configuration). Chorus relative to: the Chorus model’s value divided by that of the plain model of its size (plain) and by that of a plain model of the same loss (equal-loss plain), interpolated between the measured sizes; above 1 means faster or more FLOPs. Throughput against equal-loss plain on RTX 5090 cards only. Training FLOPs counted as in Section 3.5 . Blank: the equivalent size lies outside the measured plain sizes, or no RTX 5090 run.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Size
Model
Muon rate
Seeds
Loss
Gain
Equivalent size
Multiplier
Quiz
Zeroed quiz
Each model at its best measured rate
16M
plain
0.24
5
3.5496
0.076
16M
fixed part only
0.12
1
3.5273
0.0223
17M
× 1.10
0.086
⋅
16M
Chorus 0.275
0.12
1
3.5284
0.0212
17M
× 1.09
0.087
0.077
16M
Chorus 1.09
0.24
5
3.4791
0.0705
21M
× 1.34
0.089
0.054
16M
Chorus 4.35
0.12
1
3.4285
0.1211
26M
× 1.65
0.093
0.051
Appendix
Table 7: Equivalent size and multiplier of Chorus models and of the fixed part only, averaged over seeds (the quiz over the seeds it was run for). Upper block: the plain model and Chorus 1.09 at their best measured rates, the other table sizes and the fixed part only at the Muon rate given. Lower block: every model at the base rate. Chorus models are labelled by their added ratio. Muon rate: the backbone’s Muon learning rate. Gain: the plain model’s loss minus the model’s loss, in nats. † : read beyond the largest plain model. ‡ : best rate at the edge of the searched range. Quiz: share of the 688 scored questions whose right answer the model scores highest. Zeroed quiz: the same model with its N-gram tables set to zero. ⋅ : not measured.
Size
Model
Muon rate
Seed
Parameters
Loss
Bits/byte
Quiz
Zeroed
Tokens/s
Micro
Card
16M
plain
0.0075
1337
15.7M
3.6606
1.5760
0.054
⋅
287k
16
RTX 3080
16M
plain
0.015
1337
15.7M
3.6071
1.5531
0.071
⋅
286k
16
RTX 3080
16M
plain
0.03
1337
15.7M
3.5820
1.5421
0.064
⋅
288k
16
RTX 3080
16M
plain
0.06
1337
15.7M
3.5685
1.5364
0.081
⋅
288k
16
RTX 3080
16M
plain
0.12
2
15.7M
3.5595
1.5326
⋅
⋅
895k
16
RTX 5090
16M
plain
0.12
1337
15.7M
3.5550
1.5306
0.077
⋅
894k
16
RTX 5090
Appendix
Table 8: Every run of the rate search and of the table sizes. Muon rate: the backbone’s Muon learning rate at its peak (AdamW in proportion). Chorus r : added ratio r . Parameters: all of the model’s, Chorus’s tables included. Loss: held-out nats per token. Quiz: share of the 688 scored questions known; zeroed: with the N-gram tables set to zero. Tokens/s: training throughput (Section 3.5 ). Micro: micro-batch in sequences, the rest of the 256 per step made up by accumulation. ⋅ : not measured.
Table
Bits
Loss change
Quiz
Table size
47M, Chorus 1.09
32 (trained)
0.148
47M, Chorus 1.09
8
+0.0000
0.148
48 MB (bf16 95 MB)
47M, Chorus 1.09
4
+0.0021
0.148
25 MB (bf16 95 MB)
47M, Chorus 1.09
3
+0.0122
0.144
19 MB (bf16 95 MB)
47M, Chorus 1.09
2
+0.1864
0.103
13 MB (bf16 95 MB)
47M, Chorus 4.35
32 (trained)
0.154
Appendix
Table 9: Chorus tables of three 47M models trained at the base rate (added ratios 1.09 and 4.35 from seed 1337, 21.7 from seed 2), stored at lower precision after training: change in held-out loss on 1,024 windows spread over the held-out split against the trained tables, quiz score and table size.
Gain (nats)
Multiplier
Size
All windows
No shared 50
No shared 13
All windows
No shared 50
No shared 13
16M
0.070
0.068
0.063
× 1.34
× 1.33
× 1.31
47M
0.049
0.046
0.043
× 1.29
× 1.28
× 1.26
107M
0.029
0.026
0.022
× 1.20
× 1.18
× 1.16
204M
0.023
0.019
0.015
× 1.18
× 1.16
× 1.12
349M
0.017
0.014
0.011
× 1.16
× 1.13
× 1.10
Appendix
Table 10: Chorus’s gain with equal-size tables and its multiplier at the best measured rates, over all 8,192 held-out windows and over the windows that share no 50-token or no 13-token sequence with the training split; the plain models are read on the same windows, losses averaged over seeds as in Table 7 (at 16M over seeds 1337 and 2).
Group
Opening (translation)
Answer
Candidates
Capitals
Stolicą Francyi jest (The capital of France is)
Paryż (Paris)
54
Rivers
Kraków leży nad (Kraków lies on the)
Wisłą (Vistula)
48
Authors
Autor dzieła „Pan Tadeusz” zwał się (The author of the work Pan Tadeusz was called)
Mickiewicz
72
Dates
Jan Sobieski pobił Turków pod Wiedniem w roku (Jan Sobieski defeated the Turks at Vienna in the year)
1683
70
Persons
Ostatnim królem polskim był Stanisław August (The last Polish king was Stanisław August)
Poniatowski
49
Scripture and antiquity
Patryarcha, który zbudował arkę przed potopem, zwał się (The patriarch who built the ark before the flood was called)
Noe (Noah)
47
Appendix
Table 11: One question from each group of the fact quiz, in the spelling of the period ( Francyi , Patryarcha , ośm ). Candidates: the answers of the group, all scored as continuations of the opening. The nature and everyday group has no candidate list and is left out of the score.
Work
What it does
SCONE ( Yu et al., 2025 )
embeddings of frequent N-grams computed by a separate model and cached
Byte Latent Transformer ( Pagnoni et al., 2025 )
hashed N-gram embeddings added to byte embeddings
N-gram embeddings against experts ( Liu et al., 2026 )
N-gram tables compared with more experts at a fixed total
Tensorizing Engram (TN-gram) ( Zhou et al., 2026 ) , FactorEngram ( Yang et al., 2026a )
factorised N-gram tables
Low-bit N-gram embeddings ( Chung and Du, 2026b )
N-gram tables stored in four bits
Product keys ( Lample et al., 2019 ) , memory layers ( Berges et al., 2025 ) , UltraMem ( Huang et al., 2025b )
large sparse memories read by learned keys
Appendix
Table 12: Further work on token-indexed and N-gram memories.
Language models can gain capacity at little computational cost from n-gram embedding tables: large tables of learned vectors for short sequences of consecutive tokens, which are looked up and added to the model's input or to its intermediate layers. Recent designs commonly use a separate n-gram embedding table for each layer, which makes the tables costly in memory and prevents layers from sharing what they learn. However, a single shared table gives every layer the same embedding, leaves no room for layer-wise preferences, and performs poorly in practice. We propose Chorus, in which one set of n-gram embedding tables serves the whole network and every layer reads it in its own way. Each layer maps the refined embedding through its own projection layer, after rescaling its components by factors computed from its current hidden state. Chorus matches the quality of existing n-gram methods with 87% smaller tables: with 1.2B table parameters it predicts text better than FactorEngram and DeepSeek's Engram do with 9.6B. It outperforms Engram, TN-gram and FactorEngram in every setting where we compared them, across table sizes from 20M to 9.6B parameters. We also show that the recently proposed memory-efficient optimizer Ember works well with Chorus, saving 99.2% of table-optimizer memory compared with AdamW without degrading training performance. These results enable further scaling of n-gram embedding tables along the table-size axis by reducing memory use and allowing shared knowledge to be reused across layers.
Looped transformers reuse a shared block of layers to increase computational depth without increasing the number of trainable parameters. They are trained with backpropagation through time (BPTT). To save training compute, BPTT is often truncated to the last few loops, but truncation yields biased gradients that may weaken the benefit of looping. In this work, we study the value of truncation in looped transformer training in a systematic way: we jointly vary model size, training tokens, and forward and backward loop counts across nearly 600 training runs and fit a unified scaling law that captures the effects of looping and truncation through effective parameters. Despite the training-compute savings of truncation, our fitted law favors full BPTT when forward and backward loop counts are jointly optimized. In matched-compute runs, full BPTT through fewer loops consistently outperforms truncated settings of the same compute. The law further shows that at fixed model size, the compute-optimal loop count and training-token budget both grow with compute. When model size is also free, the law identifies two fully trained loops as the best looped setting. Experimentally, this setting achieves lower validation loss than the compute-optimal non-looped model with about 27% fewer non-embedding parameters and only 8% more training compute.
Xuyuan Xiong, Siyu Chen, Zihan Shao +5
MMLab, The University of Hong Kong · Yale University
Tokenizer-free language models remove the inductive bias of fixed tokenizers by modeling text directly as bytes, but the resulting longer sequences substantially increase computation and eliminate explicit text abstractions. We ask whether this additional computation can be useful, and whether standard Transformers can learn the abstractions that tokenization provides. We study these questions on Transformers without specialized tokenization-related architectures. With token-superposition training and hash embeddings, byte Transformers consistently outperform subword Transformers as model size scales. We further find that byte Transformers build local text abstractions as external tokenizers: a set of segmentation-like positions are used to collect local context representations, and restricting up to 25% of intermediate layers to these local representations preserves downstream performance. Finally, these learned structures induce highly non-uniform generation difficulty, with uncertainty concentrated near local structure boundaries; exploiting them for speculative decoding yields 3.4× more accepted tokens than in subword Transformers.
Jie Wang, Shiwei Luo, Qi Zhang +1
School of Computer Science, East China Normal University, Shanghai, China · School of Computer Science, Fudan University, Shanghai, China