Explore the research collection
3 entries · Follow this search
- Model
From Tokens to Bytes I & II: Scaling Hierarchical Networks
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.
- Model
CLM-v0.1-8B (Contrastive-LM reference projection head)
Reference CLM head checkpoint CLM_v0.1-8B.pt on Hugging Face (Apache-2.0). Empty model card at first catalog; siblings: CLM_v0.1-8B.pt, README.md. Hub usedStorage ≈75.6 MB. Created 2026-09-21. Architecture from Notion/README: MLP 4096→1536→1536→512 (GELU, LayerNorm), output dim 512, ~20M params; pairs with frozen Qwen3-8B last-token L2-normalized embeddings. Downloaded by clm-serve / download_head.sh. Checkpoint: state_head/action_head, logit_scale, cfg. Parent 1434.
- Model
Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making
CLM (Contrastive Language Model) is a System One decision model: separate state and action encoders trained with bidirectional InfoNCE so each state is pulled toward the ground-truth action and pushed from others; at deploy time candidates are scored by cosine similarity of L2-normalized embeddings and softmaxed into typed answers (Noul/Choice/Score) or ranked for best-of-N. Released CLM-8B uses a frozen Qwen3-8B backbone (hidden 4096, last-token pooling, L2 norm) plus a trainable MLP projection head 4096→1536→1536→512 (GELU+LayerNorm; ~20M params, output dim 512); only the head is trained; LLM embeddings can be precomputed. Full Nemotron DQA pretrain ~1 hour on one RTX 4090. Dual-encoder disaggregation caches state and action embeddings independently (authors contrast with Jev state-only caching). Action-caching example (Super Mario): 4 action embeddings precomputed; per-step cost drops from 5 forwards to 1 (~4×). Zero-shot blog table (CLM vs Jev latency / success): T-Rex 16.5 vs 149.8 ms (5/5 both); BFCL V4 tool calling 76.8 vs 125.5 ms (95.2% vs 99.2%); WikiRacing 79.8 vs 225 ms (26/30 vs 30/30); Super Mario 33.5 vs 132.6 ms (5/5 both) — up to ~9× faster, roughly on-par accuracy. Latency microbench (200-token state, RTX 4090, 15 tok/candidate): at 1024 candidates CLM ~44 ms vs Jev ~579 ms (~13×) vs constrained decoding Qwen3-8B ~4.3 s (~97×); candidate-length sweep (5 cands) CLM stays ~36 ms through 2048 tok while CD goes to 3.4 s and Jev to 333 ms (~9× / ~95×). Agentic verifier (38 DeepSWE / 30 Terminal-Bench 2.1 held-out; Opus 5 / Fable 5 candidates; H100): DeepSWE CLM 81.6% vs Jev 71.1% vs Pass@1 73.7% (79 vs 449 ms, 5.7×); Terminal-Bench 2.1 CLM 87.6% vs Jev 83.1% vs Pass@1 84.0% (32 vs 131 ms, 4.1×) — Jev below Pass@1 on both. Data recipe: pretrain ~60M Nemotron DQA → midtrain ~30M Gemini 2.5 Flash-Lite hard negatives → posttrain ~1M ADP + Endless-Terminals + LiteCoder-Terminal-SFT (40% Nemotron replay / 60% agentic). Hard-neg study (~100K held-out, 1 gold+10 HN): pretrain 52.1% → two-stage 69.2% vs HN-from-scratch peak 62.4%. Replay keeps HN top-1 ~68.5% vs 56.2% agentic-only. Scaling fits (test InfoNCE): L≈(C/7.34e13)^-0.144; (D/2.12e9)^-0.117; (N/3.60e5)^-0.061; (N_enc/4.18e9)^-0.172; optimal head N*∝D^1.02 (~310 tokens/param). Posted 2026-09-23 Notion blog; Jacky Kwok† project lead; Stanford + NVIDIA Research. Roadmap: multimodal CLM-35B early next month; vision; more data/scaling. Contact jackykwok@stanford.edu.