Overcoming Vocabulary Constraints with Pixel-level Fallback
By: Jonas F. Lotz , Hendra Setiawan , Stephan Peitz and more
Potential Business Impact:
Helps computers understand any language, even new ones.
Subword tokenization requires balancing computational efficiency and vocabulary coverage, which often leads to suboptimal performance on languages and scripts not prioritized during training. We propose to augment pretrained language models with a vocabulary-free encoder that generates input embeddings from text rendered as pixels. Through experiments on English-centric language models, we demonstrate that our approach substantially improves machine translation performance and facilitates effective cross-lingual transfer, outperforming tokenizer-based methods. Furthermore, we find that pixel-based representations outperform byte-level approaches and standard vocabulary expansion. Our approach enhances the multilingual capabilities of monolingual language models without extensive retraining and reduces decoding latency via input compression.
Similar Papers
Uncertainty in Semantic Language Modeling with PIXELS
Computation and Language
Helps computers understand text better, even with errors.
Enhancing Robustness of Autoregressive Language Models against Orthographic Attacks via Pixel-based Approach
Computation and Language
Makes computers understand messy writing, even foreign words.
Parallel Tokenizers: Rethinking Vocabulary Design for Cross-Lingual Transfer
Computation and Language
Helps computers understand many languages better.