Abstract: Pixel language models operate directly on images of rendered text, eliminating the need for a fixed vocabulary. While these models have demonstrated strong capabilities for downstream cross-lingual transfer, multilingual pretraining remains underexplored. We introduce PIXEL-M4, a model pretrained on four visually and linguistically diverse languages: English, Hindi, Ukrainian, and Simplified Chinese. Multilingual evaluations on semantic and syntactic tasks show that PIXEL-M4 outperforms an English-only counterpart on non-Latin scripts. Word-level probing analyses confirm that PIXEL-M4 captures rich linguistic features, even in languages not seen during pretraining. Furthermore, an analysis of its hidden representations shows that multilingual pretraining yields a semantic embedding space closely aligned across the languages used for pretraining. This work demonstrates that multilingual pretraining substantially enhances the capability of pixel language models to effectively support a diverse set of languages.
Introduction
Most modern language models rely on sub-word tokenization, which breaks text into a fixed vocabulary of strings. This approach often struggles with "out-of-vocabulary" words and frequently fails for low-resource languages or those with complex writing systems. Pixel Language Models (PLMs) offer a radical alternative by rendering text into images and processing raw pixels, making them inherently vocabulary-free. However, most PLMs have been pretrained almost exclusively on English. PIXEL-M4 addresses this "multilingual gap" by investigating whether pretraining on a visually diverse set of scripts can unlock superior performance across global languages.
Methodology
PIXEL-M4 is based on the PIXEL architecture, a Masked Autoencoder Vision Transformer. The model renders text into 16x16 pixel patches (roughly two characters per patch) and uses a Masked Patch Reconstruction objective, masking 25% of patches during pretraining. Unlike previous models, PIXEL-M4 is trained on four visually and grammatically distinct scripts from the mC4 dataset: English (Latin), Hindi (Devanagari), Ukrainian (Cyrillic), and Simplified Chinese (Han).
Key Results and Insights
PIXEL-M4 demonstrates significant performance gains, particularly in non-Latin scripts. On the SIB-200 classification task, it outperformed the English-only PIXEL-BIGRAMS baseline by +46.0 F1 points in Hindi and +36.1 in Ukrainian.
Script Transfer and Robustness
Training on one script provides a "script transfer" advantage for related writing systems. For instance, pretraining on Hindi improved performance on Bengali (Brahmic), as the model learned to recognize shared visual sub-structures. Remarkably, PIXEL-M4 also showed robustness to scripts never seen during pretraining, such as Arabic or Armenian, suggesting that learning to process any complex visual language improves general feature extraction capabilities.
Data Efficiency
In low-resource scenarios, PIXEL-M4 exhibits much steeper learning curves than its monolingual predecessors. As illustrated in the case of Hindi, the model achieves high performance even with a limited number of training examples, maintaining a consistent lead over the baseline.
Visual-to-Semantic Evolution
Internal analysis reveals a "visual-to-semantic shift" across the model's layers. Early layers cluster text based on visual similarity (what the script looks like), while deeper layers begin to cluster text based on semantic meaning, regardless of the script used. This alignment effectively creates a shared "interlingua" through pixels alone.
Conclusion and Future Work
While PIXEL-M4 marks a significant step forward, it remains an encoder-only model and cannot currently generate text. Additionally, rendering text into patches increases sequence length, which can be computationally intensive. Future work will focus on scaling to more languages and larger parameters. Nonetheless, PIXEL-M4 proves that multilingual pretraining is essential for unlocking the full potential of pixel-based language modeling across diverse writing systems.
Summary updated