arXiv cs.CL· Hyunsik Kim·· 2 天前AI 评分22
字节顺序如何影响多语言边界预测:UTF-16 编码方案 UBE 将字素边界错误降至 0.06%
The Right Byte First: How UTF-16 Helps Multilingual Boundary Prediction
AI 导读
一种名为 Universal Byte-Level Encoding(UBE)的编码方案将三字节 UTF-8 码点改写为两个 UTF-16 字节(低字节在前),使首个符号携带 8 个低位码点位以区分字素延续与下一字母。
正文 · 原文
Abstract:Many hierarchical byte-level language models group bytes into patches using a learned boundary predictor whose view of the next codepoint depends on encoding and lookahead. In UTF-8, codepoints of many scripts take three bytes: 8 of 24 bits mark length and continuation, and the first byte carries only 4 high codepoint bits. After the same left context, a mark extending a grapheme cluster and a letter starting the next can thus share their first byte. Universal Byte-Level Encoding (UBE) keeps one- and two-byte UTF-8 encodings but writes these codepoints as two UTF-16 bytes, low byte first, so its first symbol carries 8 low codepoint bits that can distinguish such continuations. We train small causal predictors on matched FineWeb-2 text and evaluate on FLORES-200 under UTF-8, UBE, and UBE's same-length big-endian variant. At one-symbol lookahead, balanced grapheme-boundary error at codepoint boundaries across 17 languages in 13 Brahmic scripts is 8.76% with UTF-8, 8.62% with the big-endian variant, and 0.06% with UBE. When the target instead retains a parent tokenizer's subword cuts at grapheme boundaries, UBE lowers the mean error relative to UTF-8 at the same lookahead by 72.91% in Korean, 35.29% in Chinese, and 67.32-99.55% in eight more scripts. In the seven of them whose main Unicode block fits on one 256-codepoint page, the big-endian variant stays within 3.0% of UTF-8, so the gain follows byte order, not length. In Korean and Chinese, UBE's mean error falls below UTF-8's final mean error after only 25% and 37.5% of training. Which byte comes first thus affects how much lookahead a byte-level boundary predictor needs.
| Comments: | 32 pages, 5 figures, 29 tables |
| Subjects: | Computation and Language (cs.CL); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.22071 [cs.CL] |
| (or arXiv:2610.22071v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.22071 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Hyunsik Kim [view email]
[v1]
Thu, 15 Oct 2026 15:31:04 UTC (335 KB)
来源:arXiv cs.CL · arxiv.org