Rate-Utility Frontiers for Language Encodings: Comparing Tokens, Bytes, and Pixels Under Controlled Linguistic Content

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

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

Method

Compare encodings by passing parallel sentences through a shared, variable-width bottleneck to trace rate–utility frontiers.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.