Cartesia H-Net: Byte-Level Scaling Laws vs BPE (3-5x)
Cartesia has published a two-part research series, “From Tokens to Bytes,” arguing that the last hand-designed piece of the language-model pipeline — tokenization — should be learned instead. The headline number travels fast: hierarchical networks (H-Nets) deliver 3-5x compute efficiency over BPE tokenizers by reading raw bytes and chunking them dynamically, with no new data and no new compute budget. For a field now crowded with open source AI models, the claim matters because it is framed as a drop-in replacement for a component every production LLM already uses.
The nuance is where the real story lives. The “3-5x” figure comes from harder subdomains like out-of-distribution code. On a carefully controlled, in-domain validation comparison, the gain is a more modest but still meaningful 1.28x. Understanding that gap — and why Cartesia spends two full posts setting up the experiment — is what separates a useful signal from a press-release number.
Why tokenization is the last hand-designed bottleneck
A language model does not read text directly. It consumes a sequence of tokens from a fixed vocabulary. The most common way to build that vocabulary is Byte Pair Encoding (BPE): start from the 256 raw byte values, then repeatedly merge the most frequent adjacent pair on a training corpus until the vocabulary reaches a target size. Llama-3.2 uses a 128k-token vocabulary built this way. On Cartesia’s data mix, each BPE token covers about 4.57 bytes, which compresses a text sequence dramatically and lets the model attend to fewer positions per unit of text.
That compression is the problem and the opportunity at once. BPE is fixed after training; the merges never change based on context. It is, as Cartesia puts it, one of the last parts of the pipeline that is designed by hand rather than learned. A byte-level model — one token per UTF-8 byte — is maximally flexible but produces sequences so long they are prohibitively expensive for standard attention. Tokenization exists to bridge that gap, and it does so with a static, context-blind rule.
What an H-Net actually is
An H-Net replaces the three-step tokenization → LM → detokenization pipeline with a single end-to-end model. It has a U-Net-like hierarchical shape with three parts:
- Encoder networks (E) that progressively compress the raw byte sequence.
- A main network (M) that does the heavy lifting on the compressed representation.
- Decoder networks (D) that reconstruct the original resolution.
The key mechanism is dynamic chunking (DC). Instead of a fixed merge table, the model learns content- and context-dependent segmentation jointly with everything else. A 1-stage H-Net can be read as “a standard language model with learned tokenization”: the inner network operates over chunks (playing the role of tokens), while the outer encoder/decoder pair does the job of a dynamic tokenizer, packing bytes into chunks and unpacking them back.
Because the model is fully end-to-end, the hierarchy can be iterated. A 2-stage H-Net makes the main network itself an H-Net, so chunking happens at multiple levels of abstraction — characters to words, words to clauses — with each stage operating on progressively shorter sequences. That lets more parameters and compute concentrate on higher-level meaning.
The scaling-ladder experiment, step by step
The reason the results are credible is the experimental care. Cartesia first built a modern LLM scaling ladder using a BPE Transformer, reproducing literature results. They then converted each rung of that ladder to a byte-level H-Net as a drop-in replacement, matching everything they could:
- The inner network is the exact same Transformer architecture as the BPE baseline.
- The outer encoder/decoder is FLOP- and parameter-matched to the embedding and unembedding layers it replaces.
- The compression ratio is matched to BPE’s 4.57 bytes-per-token using a strong auxiliary loss.
- Batch size and learning rate transfer directly from the BPE run.
They even trained a BPE tokenizer specifically on their own corpus, rather than using an off-the-shelf one, which removed a common unfairness in these comparisons. The result: at every model size, the H-Net achieved lower loss than the matched BPE Transformer. Dynamic tokenization beat the static tokenizer out of the box.
What H-Net scaling laws mean for LLM benchmarks 2026
Fitting compute-to-loss power laws to both ladders gives the efficiency number everyone cites: the H-Net is 1.28x more compute-efficient than the BPE Transformer in-domain — it reaches the same validation loss with less compute. That is the honest, controlled headline. The gains grow on harder material: roughly 2x on code, 2x on out-of-distribution evaluation, and up to 5x on out-of-domain code. The in-corpus BPE tokenizer they trained also showed the H-Net would be even further ahead of a standard off-the-shelf tokenizer.
The second post introduces a sharper framework that splits “efficiency” into two laws. Compute-to-loss measures how much compute it takes to reach a given pretraining loss. Loss-to-loss measures how well a pretraining strength (measured in bits-per-byte) transfers to downstream benchmarks like OLMES. These pull in opposite directions:
- BPE is nearly 5x more compute-efficient than a raw byte model, because compressing bytes by 6.03x lets you spend 6x more parameters on the same FLOPs.
- Byte-level models have much better loss-to-loss transfer — they “understand the data” better, in Cartesia’s framing, because their representation is never warped by a fixed tokenizer.
H-Nets land in the middle and win both ways. On compute-to-loss they match BPE; on loss-to-loss they match the byte model, which is 1.61x better than BPE. Those two advantages stack to a 2.06x compute multiplier on the combined compute-to-OLMES metric. The paper adds supporting evidence from other modalities: on autoregressive DNA modeling, an H-Net shows a 6-7x compute gain, and on Chinese and code — languages with weak tokenization heuristics — it shows nearly 4x data-efficiency improvement.
How H-Net stacks against BPE, byte, and BLT
The second post’s comparison table is the clearest summary. Multipliers are expressed relative to H-Net (higher = worse):
| Method | Compute-to-loss | Loss-to-loss | Compute-to-OLMES |
|---|---|---|---|
| H-Net | 1x | 1x | 1x |
| BLT-like | 1.40x | 1.32x | 1.84x |
| BPE | 1.28x | 1.61x | 2.06x |
| BPE (no pretokenization) | 1.89x | 2.02x | 3.82x |
| Byte | 9.19x | 1.05x | 9.60x |
The byte row is the interesting one: nearly 10x worse on compute but essentially tied on loss-to-loss. That is the exact tension H-Net resolves. Meta’s Byte Latent Transformer (BLT) is the closest existing competitor, and it sits between BPE and H-Net on every axis. H-Net is, so far, the only method without hand-crafted priors that scales better than BPE.
At the largest scale Cartesia trained, the 2-stage H-Net reached 3.67B parameters against 3.08B for the BPE baseline — the extra going mostly to encoders/decoders and four extra main-stage layers. That model outperformed a matched open-source baseline with roughly 10x less compute and data, and a byte-level 2-stage H-Net overtook a strong tokenized Transformer’s perplexity after just 30B training bytes, then matched a token-based Transformer of twice its size on downstream evals.
Who should care about H-Net
ML infrastructure engineers and pretraining teams are the obvious audience. A 1.28-2x compute multiplier, if it reproduces, is the difference between a 100k GPU-hour budget and a 70k one, and it compounds on every future run.
Multilingual and code model teams should watch closest. The gains are largest precisely where BPE is weakest — Chinese, code, and other domains where tokenization heuristics are poor. If you build models for non-English markets or code-heavy workloads, byte-level hierarchical architectures attack your biggest tokenization tax directly.
Researchers exploring tokenizer-free models get a clean, reproducible baseline. The dynamic-chunking paper (arXiv 2507.07955) is unusually careful about FLOP- and data-matching, which makes it a useful reference point rather than another cherry-picked claim.
Who should NOT rush to adopt it
Teams shipping product on a deadline should wait. H-Net is a research direction, not a drop-in library. There is no widespread open-source implementation, no inference-serving story yet, and the training recipes are complex. The efficiency wins are measured at pretraining scale, not something you bolt onto an existing checkpoint.
Anyone reading only the “3-5x” headline should recalibrate to 1.28x in-domain and understand the gap. The 3-5x figure is real but comes from code and out-of-distribution settings, and the honest controlled comparison is lower.
What changes if these results reproduce
If independent teams confirm the 1.28x in-domain and 2x code multipliers, the implications ripple beyond Cartesia. Tokenizer design stops being a settled preprocessing step and becomes an active research axis with pretraining-scale leverage. Expect byte-level and hierarchical variants to show up as ablations in every serious open-source model report, the same way compute-optimal scaling curves became standard after Chinchilla.
There is also a strategic angle for smaller labs. The strongest result in the paper is that a byte-level 2-stage H-Net matches a token-based Transformer of twice its size. If you are compute-constrained — and most teams are — “spend compute on learning to chunk instead of on a bigger model” is a compelling trade. The catch is that this leverage requires training from scratch; you cannot bolt dynamic chunking onto an existing BPE checkpoint. That makes it a greenfield decision, which is exactly why the replication question matters before anyone commits a large budget.
How to follow along
The cleanest entry point is the arXiv paper (2507.07955), “Dynamic Chunking for End-to-End Hierarchical Sequence Modeling,” which formalizes the dynamic-chunking mechanism and the FLOP- and data-matching protocol. The two blog posts cover the same ground with more engineering detail, especially around the scaling-ladder construction and the compute-to-loss versus loss-to-loss split. As of this writing there is no official open-source H-Net codebase or model release, so hands-on replication means building from the paper’s description or waiting for a community implementation. The posts are explicitly labeled as the first two parts of an ongoing series, so keep an eye on Cartesia’s next release.
Limitations and caveats
The most important caveat is that these results have not been independently replicated at scale. A third-party analysis of the FLOPs methodology points out that Cartesia’s baseline FLOPs-per-byte calculation may be off by up to roughly 2% depending on how layer counts are matched — small, but enough to matter when you are quoting multipliers like 1.28x. The paper itself acknowledges it did not run formal scaling-law sweeps over many model sizes due to resource constraints, instead using losses during the constant-learning-rate phase as a scaling proxy.
There is also a real tension the paper is honest about. Byte-level models genuinely understand data better, but compression is what makes compute tractable. H-Net’s answer — dynamic chunking at multiple stages — is elegant, but it adds architectural complexity (43% of FLOPs go to the outer encoder/decoder in the 2-stage model) and new training dynamics, including stage-specific learning-rate modulation. That complexity is a cost the marketing numbers do not show.
Finally, the headline efficiency applies to pretraining. Whether H-Net’s advantages survive at inference time — where byte-level decoding can reintroduce long-sequence costs — is an open question the posts touch on only lightly.
The through-line of both Cartesia posts is worth sitting with: the way you process bytes can swing downstream evaluation efficiency by 2-4x, and the quality of your tokenization seems strongly correlated with how well your model understands its data. If that holds up, “just use BPE” stops being a safe default, and tokenizer design becomes a first-class research lever again.