arXiv Computation and Language

How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms

The paper investigates how many times byte‑level BPE tokens have been exposed during pretraining of large language models. By tokenizing 540 MB of public corpora across 40 domains and 33 languages, the authors estimate that single‑byte tokens comprise 13–36% of tokens, while genuine UTF‑8 fallback bytes (0x80–0xFF) appear only 0.15–0.27% of the time, roughly 2 billion occurrences per trillion pretraining tokens. A second, independent method compares embedding and output‑matrix row norms to infer exposure, confirming that high‑frequency legal bytes have larger norms while the 13 invalid UTF‑8 bytes remain at initialization; the two estimates agree within a factor of four for the Qwen3.8 model.

arXiv Machine Learning
Oct 16

The Right Byte First: How UTF-16 Helps Multilingual Boundary Prediction

The paper investigates how the order of bytes in UTF-16 encoding influences the performance of byte‑level language models that predict grapheme boundaries. By converting UTF‑8 codepoints into two UTF‑16 bytes with the low byte first (Universal Byte‑Level Encoding, UBE), the authors show that the first symbol contains more low‑order codepoint bits, enabling a boundary predictor to distinguish continuations more accurately. Experiments on FineWeb‑2 and FLORES‑200 across 17 languages demonstrate that UBE reduces grapheme‑boundary error from 8.76% (UTF‑8) to 0.06% with only one‑symbol lookahead, and yields substantial error reductions in Korean, Chinese, and other scripts. whyItMatters:"The study reveals that the byte order in UTF‑16 encoding directly affects how much lookahead a byte‑level boundary predictor needs, offering a simple yet powerful way to improve multilingual boundary prediction in language models."

By Hyunsik Kim
arXiv Machine Learning
Oct 3

Universal Byte-Level Encoding: UTF-8/UTF-16 Routing to Reduce Cross-Script Token-Budget Disparities

The paper introduces Universal Byte-Level Encoding (UBE), a dual‑alphabet tokenizer that routes 3‑4‑byte UTF‑8 characters through UTF‑16 while keeping 1‑2‑byte characters on the UTF‑8 path. This design lowers the worst‑case token‑budget disparity for high‑premium scripts without increasing costs for efficient English spans, and it preserves standard BPE merges and exact decoding. In extensive Unicode audits and multilingual language‑model experiments, UBE matches or improves token‑count efficiency and context usability compared to traditional byte‑pair encoding.

By Hyunsik Kim, Youngmoon Jung
arXiv Machine Learning
Nov 11

One Byte, One Token: Byteifying a 27B Hybrid-Attention LLM with Self-Generated Data

The paper reports converting a 27‑billion‑parameter subword language model (Qwen3.8‑27B) into a pure byte‑level model by reducing its vocabulary to 384 tokens and retraining on self‑generated byte‑level data. The resulting byte model retains most of the original performance on benchmarks such as MATH‑500, HumanEval+, and MMLU‑Pro, while achieving superior results on character‑level Chinese tasks but suffering from slower throughput and reduced knowledge lookup for Chinese characters. The study also identifies and remedies four failure modes specific to byte‑level modeling.

By Liwei Zhang, ZhiMing Tong
Hugging Face Trending Papers
Nov 10

One Byte, One Token: Byteifying a 27B Hybrid-Attention LLM with Self-Generated Data

The paper explores converting a 27B subword language model (Qwen3.8-27B) into a pure byte‑level model by shrinking its vocabulary to 384 byte symbols and retraining on self‑generated byte‑level data. The resulting model retains most of the original performance on benchmarks such as MATH‑500 and HumanEval+, while improving character‑level tasks in Chinese but losing some knowledge about Chinese characters. The conversion incurs a throughput penalty, producing fewer tokens per step and slower prefill performance, and the authors identify and address four failure modes specific to byte‑level modeling.

arXiv Machine Learning
Aug 19

TokEval: A Tokenizer Evaluation Suite

TokEval is a tokenizer evaluation suite that introduces metrics beyond traditional fertility and compression rate, capturing linguistically and structurally meaningful properties such as UTF‑8 character boundary integrity and digit place‑value alignment for mathematics. The authors validate these metrics by pretraining language models with varied tokenizers and measuring downstream performance on bits‑per‑byte and benchmarks covering linguistic understanding, mathematical reasoning, and code generation. Their results show that information‑theoretic metrics predict language modeling performance, while structure‑sensitive metrics correlate with task accuracy, suggesting TokEval can guide tokenizer selection more principledly.

By Clara Meister
arXiv Computation and Language
1d ago

Compute Optimal Tokenization

arXiv:2605.01188v3 Announce Type: replace Abstract: Scaling laws enable the optimal selection of data amount and language model size, yet the impact of the data unit, the token, on this relationship...

By Tomasz Limisiewicz, Artidoro Pagnoni, Srini Iyer, Mike Lewis, Sachin Mehta, Alisa Liu, Margaret Li, Gargi Ghosh, Luke Zettlemoyer
arXiv Machine Learning
Aug 28

Vowel Signs Are Not Letters: A Pre-tokenization Ceiling on Multilingual Tokenizer Fertility

The paper shows that HuggingFace’s ByteLevel pre‑tokenizer, which treats a word as a sequence of Unicode letters, splits abugida scripts at every vowel sign, creating a training‑free lower bound on tokenizer fertility. Across 26 languages, all 17 abugidas exhibit increased token counts (up to 9×), while Latin, Cyrillic, Hangul, and Han remain unchanged. The authors demonstrate that correcting the character class reduces Nepali token counts, improves model performance, and that this issue is widespread in popular HuggingFace models.

By Sajal Regmi, Siddhartha Pudasaini, Chetan Phakami Pun
arXiv AI
Jul 17

In-Place Tokenizer Expansion for Pre-trained LLMs

arXiv:2607. 15232v1 Announce Type: cross Abstract: A tokenizer fixed at the start of pre-training allocates vocabulary in proportion to the pre-training corpus, reflecting the deployment priorities at that time.

By Jimmy T. H. Smith, Tarek Dakhran, Alberto Cabrera, Simon S. Lee, Paul Pak, Aditya Tadimeti, Tim Seyde, Maxime Labonne, Alexander Amini, Mathias Lechner
arXiv AI
Sep 17

Objective vs. Search: Decomposing What Makes a Good Tokeniser

The paper introduces two new tokenisation algorithms—BottomUpLL and TopDownComp—to systematically explore the 2x2 design space defined by optimisation objective (compression vs. log‑likelihood) and search procedure (bottom‑up merging vs. top‑down pruning). Experiments across model sizes, vocabularies, and domains show that the search procedure, rather than the objective, consistently yields lower bits‑per‑byte, while no clear pattern emerges on the BLiMP benchmark. These findings clarify how tokeniser design choices influence language‑model performance and provide guidance for constructing tokenisers more principledly.

By Ahmetcan Yavuz, Clara Meister, Tiago Pimentel
arXiv Machine Learning
Jul 28

BHARATI: Morphology-Aware Tokenizers for Classical Indian Languages with Subword Fertility Analysis

arXiv:2607. 23319v1 Announce Type: cross Abstract: Standard subword tokenization algorithms such as Byte-Pair Encoding (BPE) and SentencePiece are trained predominantly on modern language corpora and produce inefficient segmentations when applied to classical Indian languages.

By Poornima Kumaresan, Pavithra Muruganantham, Lakshmi Rajendran, Santhosh Sivasubramani
arXiv Machine Learning
Sep 14

Breaking the Token Ceiling: Distilling Smaller, Stronger Byte Models

The paper investigates whether small models distilled from larger ones behave similarly when using byte versus token tokenization. It introduces two methods—Marginalize‑It (approximate) and End‑Of‑Token (exact)—to convert token logits to byte logits, and conducts a large‑scale study on decoder‑only dense transformers ranging from 1 billion to 1 trillion bytes of data. Results show that while token‑based models excel early, byte‑based models eventually surpass them with more compute, achieving higher performance ceilings, greater data efficiency, and lower logit storage costs.

By Kalyani Marathe, Artidoro Pagnoni, Tomasz Limisiewicz, Margaret Li, Mike Lewis, Luke Zettlemoyer, Srinivasan Iyer