Rate-Utility Frontiers for Language Encodings: Comparing Tokens, Bytes, and Pixels Under Controlled Linguistic Content
Summary
A study by Ingo Ziegler, Martin Krebs, and Desmond Elliott rigorously compares language encodings—subword tokens, raw bytes, and rendered pixels—across thirteen languages and five scripts. Unlike prior work, this research controls for linguistic content using the SIB-200 parallel dataset and fixes downstream capacity via a shared bottleneck with widths from 1 to 256. The findings reveal no universally superior encoding; pixels excel at surface form preservation, bytes are most reliable for cross-lingual sentence alignment (especially in same-script contexts), and tokens perform best for topic classification. These utility differences are not solely due to input sequence length, and training FLOPs vary significantly, with pixels often being the cheapest and bytes the most expensive. Model sizes varied between 5.6M and 13.8M parameters.
Key takeaway
For Machine Learning Engineers selecting input encodings for multilingual language models, you should move beyond default tokenization and consider the specific task requirements. If your application involves visual text or surface form preservation, pixels are a computationally efficient choice. For cross-lingual retrieval, especially within similar scripts, bytes offer superior alignment. However, for general semantic prediction tasks like topic classification, tokens remain the most robust option. Align your encoding strategy with the utility, language mix, and system capacity.
Key insights
Optimal text encoding is task-dependent, varying with language mix and available capacity, not a fixed choice.
Principles
- Encoding utility is task-specific.
- Source rate does not solely determine performance.
- Fixed input length disadvantages some languages.
Method
Compare encodings by passing parallel sentences through a shared, variable-width bottleneck to trace rate–utility frontiers.
In practice
- Use pixels for visual text processing and OCR.
- Employ bytes for cross-lingual retrieval in same-script settings.
- Tokens are effective for encoder-style semantic prediction.
Topics
- Language Encodings
- Subword Tokenization
- Byte Encodings
- Pixel Encodings
- Multilingual NLP
- Rate-Utility Frontiers
- Transformer Models
Code references
Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.