Text or Pixels? It Takes Half: On the Token Efficiency of Visual Text Inputs in Multimodal LLMs
Yanhong Li, Zixuan Lan, Jiawei Zhou
TL;DR
This work investigates whether feeding an image of long text to multimodal LLMs can dramatically reduce input tokens without sacrificing performance. By rendering long passages as single images and processing them through a frozen vision encoder, the approach yields a fixed small set of visual tokens that replace large text spans, achieving a compression ratio ρ ≈ m/k. Across RULER long-context retrieval and CNN/DailyMail document summarization, the method maintains near-baseline accuracy while cutting decoder tokens by roughly 38–58% and, for larger models, delivering substantial end-to-end speedups. The technique, implemented via the ConTexImage pipeline, is model- and task-agnostic, requires no fine-tuning, and offers a practical, orthogonal path to scale long-context reasoning in LLMs.
Abstract
Large language models (LLMs) and their multimodal variants can now process visual inputs, including images of text. This raises an intriguing question: can we compress textual inputs by feeding them as images to reduce token usage while preserving performance? In this paper, we show that visual text representations are a practical and surprisingly effective form of input compression for decoder LLMs. We exploit the idea of rendering long text inputs as a single image and provide it directly to the model. This leads to dramatically reduced number of decoder tokens required, offering a new form of input compression. Through experiments on two distinct benchmarks RULER (long-context retrieval) and CNN/DailyMail (document summarization) we demonstrate that this text-as-image method yields substantial token savings (often nearly half) without degrading task performance.
