We compare a MEGABYTE-style byte-patch Transformer with a 64-byte sliding local decoder (local64) to a matched byte-level 8k BPE decoder (BPE-8k) under identical raw bytes, document order, and approximately matched bytes per optimizer step: 350M parameters and 10 billion training bytes. Under matched-span document sliding (identical scored byte ranges), BPE-8k leads with relative gaps of -5.2%, -4.9%, -9.3% and -6.1% in bits per byte (overall, text, code, math; paired bootstrap). Downstream, CharBench equal fine-tuning favors local64 (53.7% vs 40.0%), fact200 favors BPE-8k (16.5% vs 7.0%), and PIQA (raw and length-normalized) and ARC-Easy length-normalized favor BPE-8k after Holm correction at alpha = 0.05; remaining tasks are ties. Evaluation pitfalls that changed conclusions include context-length extrapolation past the BPE training context, bits per token reported as bits per byte, and inconsistent byte denominators. Unlike controlled tokenizer studies that vary the subword tokenizer under a fixed token budget, or FLOP-controlled byte-model scaling studies, we hold the raw bytes, their order and the optimizer recipe fixed and ask whether a fixed-patch byte model can replace the tokenizer at all. Limits: one size, one seed, one 8k vocabulary fixed before the runs, and a known difference in embedding initialization between the twins.
raw bytes, byte order, optimizer recipe, bytes/step; scored byte spans
one pair, 350M
Table 1: Positioning against the closest prior studies (as described in each paper’s abstract). “Held fixed” is the main control in each design.
Figure 1: local64 at 350M ( D=1024 ). Bytes are grouped into non-overlapping patches of length 4, encoded independently, mixed by a causal global Transformer, then decoded by a two-layer sliding-window byte module. Shapes are for a 2048-byte sequence. BPE-8k is a standard decoder-only RoPE Transformer over an 8k vocabulary (not shown).
Figure 2: Conditioning delay. The global state ht is computed causally from patches 0,…,t and conditions the bytes of patch t+1 (dashed arrows); patch 0 receives a zero vector. Inside a patch the decoder additionally sees the preceding raw bytes through the one-byte input shift and its 64-byte window.
Module
local64
BPE-8k
Total
351.3 M
335.6 M
Non-embedding
350.8 M
327.4 M
Global / backbone (26 × RoPE)
327.4 M
327.4 M
Local decoder / BPE embed (tied)
19.4 M
8.2 M
Patch encoder
4.5 M
—
Table 2: Parameter counts by module at 350M (from the released parameter/FLOPs meta file).
local64
BPE-8k
Params (total)
351.3 M
335.6 M
Params (non-emb.)
350.8 M
327.4 M
Layers / width / heads
26/1024/16
26/1024/16
Bytes trained
1010
1010
Train sequence
2048 B
512 tok
B/step (approx.)
65,536
114k→66k
Table 3: Training configuration at 350M / 1010 bytes / real_v3. Train FLOPs/byte for BPE-8k uses seq =512 (ratio BPE/ local64 0.983 ; Appendix G ).
Domain
local64
BPE-8k
Δ[95%]
Rel. %
overall
0.9634
0.9155
−0.0479[−0.0506,−0.0453]
−5.2
text
0.9907
0.9448
−0.0459[−0.0486,−0.0434]
−4.9
code
0.6563
0.6003
−0.0560[−0.0683,−0.0439]
−9.3
math
1.1023
1.0388
−0.0635[−0.0749,−0.0530]
−6.1
Table 4: 350M @ 10B matched-span BPB (primary). Positive Δ means local64 is better. Relative gap =(BPB\textscBPE−8k−BPB\textsclocal64)/BPB\textscBPE−8k .
Figure 3: Left: overall matched-span BPB vs bytes seen. Right: gap BPB\textscBPE−8k−BPB\textsclocal64 , from −0.113 at 2B to −0.048 at 10B. The 10B gap equals Table 4 overall Δ . Intermediate checkpoints are not annealed.
Task
local64
BPE-8k
HellaSwag raw
0.2846[0.2759 – 0.2935]
0.2846[0.2759 – 0.2935]
HellaSwag len-norm
0.3030[0.2941 – 0.3121]
0.3005[0.2916 – 0.3096]
PIQA raw
0.5887[0.5660 – 0.6110]
0.6143[0.5918 – 0.6362]
PIQA len-norm
0.5756[0.5529 – 0.5980]
0.6034[0.5808 – 0.6255]
ARC-Easy raw
0.4456[0.4053 – 0.4866]
0.4895[0.4486 – 0.5304]
ARC-Easy len-norm
0.3281[0.2908 – 0.3677]
0.3842[0.3452 – 0.4248]
Table 5: Downstream accuracy (350M @ 10B) with Wilson intervals. Bold: Holm-significant at α=0.05 across all ten McNemar tests.
Test
praw
pHolm
Winner
0.05
0.01
HellaSwag raw
1.000
1.000
—
no
no
HellaSwag len-norm
0.483
1.000
—
no
no
PIQA raw
0.0056
0.034
BPE-8k
yes
no
PIQA len-norm
0.0020
0.014
BPE-8k
yes
no
ARC-Easy raw
0.068
0.339
—
no
no
ARC-Easy len-norm
0.0016
0.013
BPE-8k
yes
no
Table 6: McNemar exact p and Holm-adjusted p across ten tests. Bold winners in Table 5 have pHolm<0.05 .
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Domain
shared cap Δ[95%]
own ctx Δ[95%]
overall
−0.0400[−0.0437,−0.0359]
−0.0378[−0.0417,−0.0336]
text
−0.0456[−0.0484,−0.0431]
−0.0445[−0.0472,−0.0421]
code
+0.0147[−0.0034,+0.0308]
+0.0243[+0.0056,+0.0409]
math
−0.0531[−0.0626,−0.0461]
−0.0481[−0.0595,−0.0404]
Appendix
Table 7: Alternate 350M context protocols (not primary). Matched-span numbers are in Table 4 .
Domain
shared BPE-8k
shared local64
own BPE-8k
own local64
matched
text
1525
1548
1671
1756
1671
code
900
1630
900
1866
900
math
1468
1618
1538
1856
1538
Appendix
Table 8: Mean effective context bytes (real_v3 val). Matched span is identical for both models.
Domain
local64
BPE-8k
Δ[95%]
overall
1.0011
0.9774
−0.0237[−0.0271,−0.0203]
text
1.0291
0.9845
−0.0446[−0.0461,−0.0432]
code
0.6692
0.8433
+0.1741[+0.1566,+0.1925]
math
1.1745
1.1111
−0.0634[−0.0699,−0.0572]
Appendix
Table 9: Uncapped fixed 2048-byte windows at 350M @ 10B. Not comparable: BPE beyond trained length on code/math.
Domain
mean
p50
max
>512 ?
text
531
518
966
yes
code
1154
1163
1604
yes
math
645
617
1100
yes
Appendix
Table 10: BPE-8k tokens per full 2048-byte window on real_v3 val (trailing partial windows excluded).
Model
Module
Parameters
local64
26 RoPE blocks (global)
327,395,328
local64
local decoder (total)
19,425,536
local64
2 sliding-window blocks
16,799,744
local64
fuse (2D→D)
2,098,176
local64
head (D→256)
262,400
local64
byte embedding
262,144
Appendix
Table 11: Parameters by module at 350M (counts from the released meta file).
Domain
local64 s0
old BPE s0
packed-512 control
overall
1.2131
1.2254
1.0721
text
1.2580
1.2672
1.1153
code
0.7732
0.8095
0.6531
math
1.3243
1.3403
1.1710
Appendix
Table 12: 120M matched-span BPB on real_v3 val (seed 0): local64, old BPE, and packed-512 BPE control. Source: control_120m_bpe_packed512_eval.json .