Explore the research collection
8 entries · Follow this search
- Post
Agentic RL: Token-In, Token-Out Done Right (TITO)
Interactive HF Space article (qgallouedec/tito) arguing multi-turn agentic RL silently breaks when decode→parse→re-tokenize drifts tokens so gradients hit sequences the policy never sampled. Fix: keep a token buffer; never re-encode decoded samples; tokenize tool deltas via prefix-preserving chat-template property. Surveys 18/19 open families as prefix-preserving for tool messages; documents Qwen3 Jinja one-line fix and GLM stop-token placement pitfalls. Alternative is per-family renderers libraries.
- Paper
Charformer: Fast Character Transformers via Gradient-based Subword Tokenization
GBST scores candidate byte n-gram blocks (max width 4) position-wise and mixes them, then mean-pools (ds=2–3). Charformer is a T5-style encoder-decoder on the 256-byte vocab. CharformerSBase (134M, deep encoder): English GLUE avg 83.6 vs T5-Base 84.3 / Byte-T5 81.5; Civil Comments 83.0 vs T5 81.2; IMDb 94.4 vs T5 94.2. Multilingual long-PT: TyDiQA-GoldP 81.2/71.3 vs mT5-Base 80.8/70.0, 28% faster with ~3× fewer params. ICLR 2022 camera-ready. Implementation https://github.com/google-research/google-research/tree/master/charformer.
- Paper
SuperBPE: Space Travel for Language Models
Two-stage BPE curriculum: subwords first, then merge across whitespace. At vocab 200k, encodes a fixed text with up to 33% fewer tokens than BPE. 8B transformers trained from scratch at matched params/vocab/FLOPs (~330B tokens): SuperBPE (t=180k) beats BPE on 25/30 tasks, +4.0% absolute average and +8.2% on MMLU, with 27% less inference compute. Superwords often match multi-word expressions. COLM 2025 camera-ready. No official code on abs.
- Paper
Byte Latent Transformer: Patches Scale Better Than Tokens
BLT maps bytes to variable patches via next-byte entropy, then a light local encoder, a large latent Transformer, and a local decoder. First flop-controlled byte-level scaling study to 8B / 4T bytes: matches Llama 3 at equal train FLOPs and can cut inference FLOPs ~50% with patch size 6–8. For a fixed inference budget, growing patch size and model size together beats BPE. Robustness: noisy HellaSwag 64.3 vs Llama 3 56.9; CUTE 54.1 vs 27.5. Code https://github.com/facebookresearch/blt.
- Paper
Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation
Trains a 1.7B LLaMA-3 byte LM on FineWeb-Edu UTF-8 and injects one subword effect at a time. Biggest gains: 4× isoFLOP sample throughput (chunk-4 embeddings) and subword boundary priors/inductive biases (end-boundaries leak future bytes; start-boundaries remain useful when removed at val). Embedding-table scaling, subword-distance RoPE, per-subword CE, and next-subword MTP are weak or harmful at this scale. Interventions often run 50k steps then revert. No official code on abs.
- Paper
Tokenization: A Survey for Modern NLP
The most comprehensive survey of tokenization for modern language models, assembled by 32 tokenizer researchers over ~8 months. Argues tokenization is a wildly understudied area of language modeling despite its effects across all of NLP. Covers every aspect: algorithms, evaluations, multilinguality, encodings, theory, trade-offs and pitfalls of tokenizer choice, and what tokenizers could be replaced with (latent or visual tokenization). Adjacent topics: constrained generation, token healing, tokenizer security concerns. Includes a beginner-friendly nod to Karpathy's "Let's build the GPT Tokenizer" video. Every section comes with questions for prospective researchers and practitioners; readers are invited to report missing papers and join a tokenizer-research Discord.
- Paper
LLaVA-OneVision-2: Towards Next-Generation Perceptual Intelligence
The most capable LLaVA-OneVision vision-language model to date. Built on a native OneVision-Encoder with Windowed Attention; codec-stream tokenization treats compressed video as a continuous bit-cost stream where bit-cost dynamics set adaptive temporal groups and motion-residual cues select salient spatial evidence; a shared 3D RoPE unifies codec canvases, sampled frames, and images. Training stack: ~8M re-captioned video samples for pretraining, 4M-sample spatial corpus for fine-tuning. Introduces JumpScore, a temporal-localization benchmark for fine-grained grounding in high-frequency, densely repeated motion.
- Code
Combinatorial BPE Tokenizer (factored variation/prefix/core/suffix embeddings)
Combinatorial BPE (SwayStar123, MIT repo; intro X 2026-09-23, scaled update 2026-09-25) factors each token into (variation, prefix, core, suffix) and embeds as the sum of four tables so capitalization, leading whitespace/punctuation, and trailing punctuation (plus Simplified/Traditional Chinese) share one core. On a single 32k-budget tokenizer and 8-layer GPT (42–45M, RoPE/SwiGLU/QK-norm/Muon) trained 22.5k steps×16k tokens on 6 Wikipedia langs + 5 code langs, README reports ~32% fewer tokens overall (22–25% NL, 42–50% code) and ~3.7% lower bits-per-byte vs GPT-2-style BPE (tweet chart: 4.1%), better on every source; gains strongest on code. Author notes flop-match vs data-match caveats; small-scale / one-seed / preliminary.