Beyond Perplexity: UTF-8 Validity in Byte-aware Language Models
- lab CatalyzeX
- lab DagsHub
- lab GotitPub
- lab Hugging Face
- lab ScienceCast
- lab alphaXiv
- lab arXiv
- lab arXivLabs
A 355-million-parameter language model trained on 80 billion tokens requires roughly twice as much data to produce structurally valid UTF-8 output as it does to stabilize its perplexity, according to a new study that isolates byte-level generation reliability from standard language-modeling performance [1]. The work, posted to arXiv on 12 June 2026, examines how training scale affects a model’s ability to emit well-formed UTF-8 byte sequences — a distinct capability that the authors argue is not captured by perplexity alone [1][2]. Using a balanced multilingual corpus spanning English, Japanese, Korean, and Chinese, the researchers found that perplexity plateaued after 2.1 billion tokens, while UTF-8 structural validity did not converge until 4.2 billion tokens [1][2]. Byte-level tokenization has gained traction because it avoids out-of-vocabulary errors with only 256 initial vocabulary entries and imposes no language-specific segmentation rules [5]. However, formal work has shown that any byte-level vocabulary smaller than the full Unicode space either encounters inputs it cannot represent or can generate sequences that are not well-formed UTF-8 [3][4]. Theorem 2 of one such analysis states that “any language model’s vocabulary that contains byte tokens ill-formed in UTF-8 can generate token sequences that are ill-formed in UTF-8” [4]. The practical consequence is that downstream applications assuming valid UTF-8 input can break when a model emits malformed bytes [3][4]. To disentangle structural validity from linguistic quality, the new study introduces evaluation protocols that test UTF-8 well-formedness independently [1][2]. In context-free generation, rare characters achieved higher structural validity than common characters, a pattern the authors attribute to over-specialization of frequent character representations [1][2]. Alternative tokenization strategies have been proposed to mitigate such failures. One approach, SCRIPT-BPE, uses Unicode script and category properties as initial tokens and enforces character-boundary constraints during Byte Pair Encoding merges, which the authors report eliminates tokens that mix full and partial characters [6]. Another line of work repurposes C0 control bytes as special tokens while keeping the vocabulary strictly within the 0–255 byte range, enabling zero-copy views and a fixed 256 × d embedding matrix [5]. The researchers behind the new study conclude that reliable UTF-8 generation is a distinct capability that requires evaluation beyond perplexity, and they recommend that implementers test language-model systems on non-ASCII inputs and ensure graceful handling of ill-formed sequences [1][2][4].
research-papermodel-releaseinfrastructure
Background sources we checked (10)
- arxiv.org ↗ Byte-level tokenization enables language models to handle any Unicode input, but models can generate invalid UTF-8 sequences when encountering rare or unseen characters. We investigate the relationship between training scale and UTF-8 generation reliability with a 355M parameter …
- openreview.net ↗ Subword tokenization segments input text according to a pre-defined vocabu lary to feed it into a language model; the language model, in turn, generates a sequence made from this same vocabulary. The members of the vocabulary can be built of code points or bytes. Using code point…
- arxiv.org ↗ UTF-8 [...] the vocabulary and sequences of them are not guaranteed to be valid UTF8. Sequences that are not valid UTF-8 break code that assumes its input [...] to be valid UTF-8. Applications [...] models must account [...] breakage thereby introduced. In this paper, we formali…
- arxiv.org ↗ 2021 [...] table. Most byte- [...] ., 2025) implement [...] never leave the [...] 0–255 [...] s UTF-8 byte [...] by repurposed C0 control bytes. This enables [...] lead to dis par [...] (Forout [...] in model costs and perfor mance (Petrov et al., 2023; Ahia et al., 2023; Lesci e…
- arxiv.org ↗ Byte Pair Encoding (BPE) tokenizers, widely used in Large Language Models, face challenges in multilingual settings, including penalization of non-Western scripts and the creation of tokens with partial UTF-8 sequences. Pretokenization, often reliant on complex regular expression…
- arxiv.org ↗ CatalyzeX Code Finder for Papers (What is CatalyzeX?) [...] DagsHub Toggle [...] DagsHub (What is DagsHub?)…
- arxiv.org ↗ CatalyzeX Code Finder for Papers (What is CatalyzeX?) [...] DagsHub Toggle [...] DagsHub (What is DagsHub?)…
- arxiv.org ↗ CatalyzeX Code Finder for Papers (What is CatalyzeX?) [...] DagsHub Toggle [...] DagsHub (What is DagsHub?)…
- en.wikipedia.org ↗ Sustainable Development Goals (abbr. SDGs) were adopted in 2015 by all United Nations (UN) members for the 2030 Agenda for Sustainable Development. The aim of the 17 global goals is "peace and prosperity for people and the planet", tackling climate change, and working to preserv…
- en.wikipedia.org ↗ In molecular biology, a transcription factor (TF) (or sequence-specific DNA-binding factor) is a protein that controls the rate of transcription of genetic information from DNA to messenger RNA, by binding to DNA sequences. Specificity can be due to sequence motifs, or epigenetic…
Sources
- export.arxiv.org — Beyond Perplexity: UTF-8 Validity in Byte-aware Language Models ↗