arXiv Machine Learning

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."

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 Computation and Language
1d ago

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.

By Liwei Zhang, ZhiMing Tong, Mochen Guan, Linzhe Li
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
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
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 AI
Nov 11

PolyRoute: A Twelve-Language and Code-Mixed Benchmark for Typed-Decision Routing, with Baselines and a Leaderboard

PolyRoute is a benchmark for typed-decision routing that includes 322 native-language messages across 12 languages and 9 writing systems, 156 code-mixed or romanised messages, and 967 optional native training rows. The dataset is annotated by LLMs (Qwen3.8-27B and gemma4-31b) and evaluates a three-way department-routing decision protocol. Leaderboard results show multilingual models outperform English-only baselines, with the best fine-tuned system achieving 96.6% accuracy.

By Mohammed Nayeem Khan, Sarun Kumar K S
arXiv Computation and Language
Nov 11

When does text encoding matter for language modeling?

The paper investigates how different text encodings affect byte-level language model performance, comparing UTF‑8 with various Unicode‑based, language‑specific, and custom encodings. It introduces Aether, a hybrid scheme that uses script‑specific encodings with UTF‑8 fallbacks, and evaluates it on four orthographically diverse languages. Results show that compressive encodings help information‑dense scripts like Chinese and Korean, while scripts with less information per character such as Georgian and Tamil are largely unaffected, suggesting encoding should be chosen per language rather than universally.

By Eugene Jang, Catherine Arnett, Terra Blevins
arXiv Computation and Language
Oct 28

No Tokenizer, Still a Gap: Cross-Lingual Fairness of Homoglyph and Invisible-Character Watermarking

The paper investigates whether edit‑based watermarking techniques—homoglyph substitution and invisible‑character insertion—avoid the cross‑lingual fairness gaps seen with generation‑time watermarks that depend on tokenizers. Across 40 languages in 24 scripts, the authors measure watermark capacity per character, its resilience to routine processing and targeted removal, and the detector effort required. Results show that script choice explains most of the capacity variation, with lower‑resourced languages using scripts that offer fewer homoglyphs, and that ordinary copy‑paste operations further widen the gap by stripping invisible characters.

By Alexander Nemecek, Yuqiao Xu, Joseph Falkenburg, Erman Ayday
Hugging Face Trending Papers
Nov 10

PolyRoute: A Twelve-Language and Code-Mixed Benchmark for Typed-Decision Routing, with Baselines and a Leaderboard

PolyRoute is a benchmark that evaluates typed‑decision routing models across 12 languages and code‑mixed text, providing 322 native‑language messages, 156 code‑mixed or romanised messages, and 967 optional native training rows. The dataset includes a three‑way routing protocol with labels generated by Qwen3.8‑27B and verified by gemma4‑31b, achieving high agreement (97.2%) and low character‑level similarity to training data. A leaderboard of 13 systems shows performance ranging from 61.2% for an English‑root checkpoint to 96.6% for the best fine‑tuned multilingual model, with TF‑IDF logistic regression achieving 91.9%. whyItMatters":"The benchmark offers a standardized, multilingual yardstick for assessing typed‑decision routing models, enabling direct comparison across languages and code‑mixed contexts."

arXiv AI
Sep 24

Hard Negatives Reveal What Easy Negatives Hide: Cross-Lingual Harmfulness Representations Degrade with Resource Tier Under Hard Negatives

The study investigates how safety alignment in large language models, trained mainly in English, transfers to other languages. While models show near-perfect harmfulness detection (AUROC > 0.98) using unrelated harmless prompts (easy negatives), performance drops sharply in low‑resource languages when using surface‑similar benign prompts (hard negatives). This degradation persists across multiple languages and models, indicating that easy‑negative evaluation alone cannot confirm cross‑lingual harmfulness representation quality.

By Paras Balani, Subhrakanta Panda