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

*Hyunsik Kim, Youngmoon Jung*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152902) · [OpenReview](https://openreview.net/forum?id=PYtjaNdYaM) · [Open on the map](../papers.html#p152902)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Attention Optimization and Retrieval](../pgroup/693.md) · Type: new method · Keywords: byte-level tokenization, script token budget, multilingual LLMs, encoding routing, BPE efficiency

Areas: [Multilingual](../areas/multilingual.md) › Cross-Lingual Methods › Cross-Lingual Representation

## Summary
Universal Byte-Level Encoding (UBE) is a dual-alphabet tokenizer that routes characters to UTF-8 or UTF-6 based on their UTF-8 byte length to reduce token-budget disparities across scripts.

## Explained to a 5-year-old
Some writing systems need more bytes to store each character, which makes them cost more tokens. The new method looks at each character and picks a better encoding (either one that uses fewer bytes or another). This makes all languages use about the same number of tokens. It helps computers understand many languages without using too much memory. It also lets them process text faster.

## Explained to a 5-year-old, longer
When we write text, each character is stored using a certain number of bytes. Some scripts, like Chinese, need three or four bytes per character, while others, like English, need only one. Because tokenizers work on bytes, characters that need more bytes become more expensive in terms of tokens. This can shrink the amount of text we can fit into a model’s memory. The new idea is to decide, for each character, which encoding to use. If a character already uses one or two bytes, we keep it in the original encoding. If it uses three or four bytes, we switch it to a different encoding that uses fewer bytes for that character. By doing this, all scripts end up using roughly the same number of tokens. The system still uses the usual BPE merging rules, so it works with existing language models. Tests show that this balancing act reduces the token budget gap between scripts and even helps English a little. As a result, models can see more text at once and answer questions faster, all without breaking the rule that the text must be perfectly recoverable.

## For a technical reader
The paper observes that byte-level tokenizers based on BPE incur higher token costs for scripts whose characters occupy more bytes in UTF-8, reducing effective context length. It proposes a routing scheme that selects an encoding per character based on its byte length, keeping low-byte characters on one path and higher-byte characters on another. This preserves the standard BPE merge process and guarantees exact round-trip decoding. Empirical evaluations show reduced token-budget disparity across scripts and modest gains for English, leading to longer usable context and faster prompt processing. The approach is simple to integrate and maintains compatibility with existing tokenizers.

## Problem
Tokenizers that operate on bytes can assign higher token costs to scripts whose characters require more bytes in the underlying encoding, leading to larger token budgets and reduced usable context for those scripts.

## Method
The approach selects an encoding per character based on its byte length, keeping low-byte characters on one encoding path and routing higher-byte characters through another, while preserving standard BPE merges and exact decoding.

## Results
UBE reduces token counts for high-premium scripts and modestly lowers English token counts, yielding more usable context and faster prompt processing.

## Contributions
A deterministic per-character encoding routing that balances token costs across scripts while preserving exact decoding and BPE merges, and empirical validation on tokenization and language model tasks.

## Practical relevance
The method enables more efficient use of token budgets in multilingual LLMs, allowing longer context and faster processing.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152902)
