# From Tokens to Bytes I & II: Scaling Hierarchical Networks

- **ID:** 1450
- **Kind:** model
- **URL:** https://x.com/_albertgu/status/2115502110578290900
- **Authors:** Albert Gu (CMU assistant professor, Cartesia chief scientist) + Cartesia research team
- **Venue:** Cartesia blog
- **Published:** 2026
- **Source:** x
- **Language:** en
- **Access:** free
- **Added:** 2026-10-28
- **Verified:** 2026-10-28
- **Page:** https://papers.projxon.ai/entries/1450

## Summary

Cartesia's improved hierarchical networks (H-Nets), end-to-end byte-level language models that replace fixed BPE tokenization with learned, recursive, data-dependent dynamic chunking inside the model (encoder → learned chunking → main network over coarse chunks → dechunking + residual → decoder). Part 1, controlled 1-stage scaling ladder (same Transformer backbone, outer networks FLOP/parameter-matched to embedding/unembedding; Muon optimizer, WSD schedule; data 70% English / 20% code / 5% math / 5% multilingual by bytes; in-corpus BPE retrained as baseline, itself worth ~1.1x vs off-the-shelf): H-Nets show 1.3x compute multiplier on validation loss, rising to 2x on code and up to 5x on out-of-domain code, summarized as up to 3–5x efficiency gains. Part 1, larger 2-stage H-Net vs SmolLM3-3B (HF, 11.1T tokens total across 8T/2T/1T phases, Llama-3 tokenizer): outer stages are Mamba-2 layers + sliding-window attention, main network a 40-layer Transformer with SmolLM3's per-layer shape, compression ~7.6 bytes/chunk vs ~4.5 bytes/Llama-3-token; models compute-matched within 2% FLOPs/byte (H-Net 3.67B params vs SmolLM3 3.08B; outer stages 43% of H-Net FLOPs vs 8% embedding/head for the baseline); the H-Net reaches SmolLM3's final average benchmark score after ~1T tokens vs ~11T, i.e. ~10x less data and (per-byte-matched) compute. Qualitative: learned chunks are context-dependent and semantically coherent across languages and code, including in-context tokenization — boundaries evolve during inference as concepts recur (new words, repeated formats, recurring motifs). Part 2, loss-to-loss laws: H-Net's compute advantage grows from pretraining loss to downstream (1.3x on diverse mixture → 2x downstream; 2x on code → 5x on out-of-domain languages); input encodings can produce 2–4x downstream compute effects. Pretokenization analysis (same regex lineage as #126: GPT-2, cl100k, o200k, DeepSeek): BPE without pretokenization (BPE-NP) is ~5x worse than BPE on compute-to-loss but better on loss-to-loss, and suffers the prompt-boundary/marginalization problem (canonical tokenization only, no sum over segmentations); adding pretokenization back buys 1.5x compute-to-loss and 1.3x loss-to-loss, ~1.9x combined on compute-to-downstream. Beyond language: ongoing H-Net results previewed in biology and vision as a general raw-data architecture.

## Research notes

- License: no license terms stated (company blog series; improved architecture not released) — flag at insert

## Similar entries

- [Byte Latent Transformer: Patches Scale Better Than Tokens](https://papers.projxon.ai/entries/554) (paper, #554)
- [EvaByte: Efficient Byte-level Language Models at Scale](https://papers.projxon.ai/entries/1098) (post, #1098)
- [How Much Is an AI Token Worth? Scaling Laws for Wild AI-Generated Web Text](https://papers.projxon.ai/entries/835) (paper, #835)
- [Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation](https://papers.projxon.ai/entries/519) (paper, #519)
- [When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis](https://papers.projxon.ai/entries/802) (paper, #802)
- [Agentic RL: Token-In, Token-Out Done Right (TITO)](https://papers.projxon.ai/entries/978) (post, #978)
