TensorX
返回文献探索

Paper · arXiv 2311.00522

Text Rendering Strategies for Pixel Language Models

Jonas F. Lotz, Elizabeth Salesky, Phillip Rust, Desmond Elliott

11 upvotesNovember 1, 2023arXiv 预印本
AI 摘要

Character bigram rendering improves performance in pixel-based language models, enabling more compact models while maintaining equivalent performance across sentence, token, and multilingual tasks.

pixel-based language modelstext renderersinput patchescharacter bigram renderingsentence-level taskstoken-level tasksmultilingual taskspatch embedding spacetokenization-based language models

Abstract

Pixel-based language models process text rendered as images, which allows them to handle any script, making them a promising approach to open vocabulary language modelling. However, recent approaches use text renderers that produce a large set of almost-equivalent input patches, which may prove sub-optimal for downstream tasks, due to redundancy in the input representations. In this paper, we investigate four approaches to rendering text in the PIXEL model (Rust et al., 2023), and find that simple character bigram rendering brings improved performance on sentence-level tasks without compromising performance on token-level or multilingual tasks. This new rendering strategy also makes it possible to train a more compact model with only 22M parameters that performs on par with the original 86M parameter model. Our analyses show that character bigram rendering leads to a consistently better model but with an anisotropic patch embedding space, driven by a patch frequency bias, highlighting the connections between image patch- and tokenization-based language models.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Text Rendering Strategies for Pixel Language Models | TensorX