Multilingual Pretraining for Pixel Language Models

Ilker Kesen, Jonas F. Lotz, Ingo Ziegler, Phillip Rust, Desmond Elliott

TL;DR

PIXEL-M4 demonstrates that multilingual pretraining significantly enhances the performance of pixel-based language models, which "read" text as images rather than tokens. By training on just four visually diverse scripts (Latin, Devanagari, Han, and Cyrillic), the model achieves superior cross-lingual transfer, even to entirely unseen writing systems like Arabic and Armenian.

What Problem Does This Paper Address?

Most modern Large Language Models (LLMs) rely on sub-word tokenization, which creates a "vocabulary bottleneck." When a model encounters a new language or script, it often lacks the necessary embeddings, leading to poor performance or a reliance on inefficient byte-level fallbacks.

Pixel-based models (like the original PIXEL) bypass this by rendering text into images and processing them with a Vision Transformer. While these models are inherently "open-vocabulary," previous research focused almost exclusively on English-only pretraining. This paper investigates whether pretraining on a diverse set of scripts allows these models to better capture universal linguistic features and generalize to novel writing systems.

Methods

The authors introduce PIXEL-M4, a multilingual version of the PIXEL architecture.

  • Architecture: It uses a Masked Autoencoder (MAE) based on a Vision Transformer (ViT). The model renders text into 16x16 pixel patches (typically two characters per patch) and learns to reconstruct masked patches.
  • Pretraining Strategy: Unlike the English-only baseline (PIXEL-BIGRAMS), PIXEL-M4 is pretrained on equal amounts of four visually and linguistically diverse scripts: English (Latin), Hindi (Devanagari), Ukrainian (Cyrillic), and Simplified Chinese (Han).
  • Training Volume: The model was trained for 1 million steps with a batch size of 256, observing approximately 135 billion image patches—the same total volume as the baseline, but with an order-of-magnitude more unique samples.

Datasets

  • Pretraining: Subsets of the mC4 corpus for the four target languages.
  • Evaluation:
    • SIB-200: A benchmark for topic classification across 200+ languages.
  • Universal Dependencies (UD) v2.10: Used for token-level syntactic dependency parsing.
  • NER Benchmarks: Includes Universal NER (UNER), Naamapadam (for Indic languages), and KLUE (for Korean).
  • LINSPECTOR: A multilingual word-level probing benchmark used to analyze hidden representations.

Key Insights and Ideas

  • Visual Similarity as a Bridge: Pixel models leverage visual features to transfer knowledge. Training on one script (e.g., Cyrillic) provides a massive boost to related scripts (e.g., Russian, Bulgarian) because they share visual substructures.
  • Generalization to Unseen Scripts: One of the most striking findings is that PIXEL-M4 outperforms the English baseline even on scripts it never saw during pretraining, such as Arabic, Hebrew, and Armenian. This suggests that diverse multilingual pretraining helps the model learn more robust, script-agnostic visual-linguistic features.
  • Layer Specialization: Analysis of the model's hidden states reveals a clear progression: earlier layers focus on visual script-level grouping, while deeper layers shift toward a shared semantic space where translations of the same sentence cluster together regardless of the script used.
  • Superior Data Efficiency: In low-resource scenarios, PIXEL-M4 learns significantly faster than its monolingual counterpart.
Figure 2: Data-efficient learning experiments on the Naamapadam NER benchmark showing the mean test F1 score as a function of training set size in log scale for four Brahmic languages. In each experiment, PIXEL-M4 consistently outperforms PIXEL-BIGRAMS, with the largest relative gains under the smallest data regimes.

Key Results

PIXEL-M4 shows consistent improvements across all non-Latin scripts without sacrificing performance on Latin-script languages.

  • Text Classification: PIXEL-M4 achieved massive gains over the baseline in its pretraining languages: Hindi (+46.0 F1), Ukrainian (+36.1 F1), and Chinese (+27.0 F1). It also saw a +26.9 F1 boost in Korean, a script not seen during pretraining.
  • Dependency Parsing: The model outperformed the English-only baseline in almost all non-Latin languages and even beat character-level multilingual models like CANINE-S on nearly every language tested.
  • Overall Performance: As shown in Figure 1, PIXEL-M4 provides a substantial performance floor lift for Arabic, Brahmic, CJK, and Cyrillic scripts compared to PIXEL-BIGRAMS.
Figure 1: Average performance across tasks compar- ing PIXEL-M4 and PIXEL-BIGRAMS grouped by scripts: Arabic, Brahmic, Chinese-Japanese-Korean, Cyrillic, Latin, and others. Both models share the same architec- ture and hyperparameters, but PIXEL-M4 is pretrained in four visually and linguistically diverse languages: En- glish, Hindi, Ukrainian and Simplified Chinese. PIXEL- M4 performs better in almost all non-Latin script lan- guages without sacrificing Latin-script performance.

Limitations and Future Work

  • Sequence Length: Rendering text as bigrams can lead to very long sequences if characters don't fit neatly into patches, increasing computational costs.
  • Generative Capabilities: Like its predecessors, PIXEL-M4 is an encoder-only model and cannot generate text.
  • Pretraining Scale: Due to compute constraints, the model was only trained on four scripts. The authors suggest that scaling up to more languages and larger model capacities is a key next step.
  • High-Resource Gap: While PIXEL-M4 excels in low-resource and cross-script transfer, it still sometimes lags behind specialized monolingual BERT models in high-resource, same-script settings where specific "world knowledge" is encoded in token embeddings.

Summary updated

BibTeX
@misc{kesen2025multilingual,
  author = {Ilker Kesen and Jonas F. Lotz and Ingo Ziegler and Phillip Rust and Desmond Elliott},
  title = {{Multilingual Pretraining for Pixel Language Models}},
  year = {2025},
  eprint = {2505.21265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21265},
}
Figure