TL;DR
Rendering long text into images and feeding it to a Vision-Language Model (VLM) can slash token counts by up to 20x, but this shortcut unpredictably boosts performance on some tasks while wrecking it on others. By framing this visual encoding process through the mathematics of measure transport, the authors uncover exactly what information gets lost inside image patches—and when that loss actually hurts. This yields a smart, label-free router that knows before running inference whether your prompt should be read as text or looked at as an image.
What Problem Does This Paper Address?
Processing massive documents with Large Language Models (LLMs) is computationally expensive because every word gets chopped into subword tokens. Enter Visual Text Compression (VTC): instead of feeding raw text to an LLM, you render the text onto a page image and let a VLM read it. Because a single visual patch can hold many characters, VTC shrinks sequence lengths by 3–20x.
Here is the catch: nobody knew when VTC was safe to use. On multi-hop QA tasks like HotpotQA, the visual path dramatically outperforms raw text; on summarization or logical reasoning, performance collapses. Crucially, the compression ratio tells you nothing about whether the model will succeed or fail. Without a principled way to measure task-relevant information loss, VTC remained a gamble rather than a reliable engineering tool.
Methods
Instead of treating the Vision Transformer (ViT) encoder as a black-box compressor, the authors model it using measure transport—specifically, as a "push-forward map" that takes fine-grained text tokens localized on a page and rearranges them into coarser visual patch tokens.
Because true optimal transport distances (like Wasserstein distance) require ground-truth task labels to know which word differences matter, the authors build an operational, label-free proxy cost $C(x)$ that decomposes visual distortion into two intuitive failure modes:
- Precision Cost (Within-patch smoothing): Merging nearby characters into one patch blurs fine lexical details (like "2023" vs. "2024"). They estimate this from the task specification's sensitivity to exact tokens ($W$).
- Coverage Cost (Cross-patch fragmentation): Scattering long-range evidence across 2D patches and pages breaks linear reading order. They estimate this using BM25 relevance dispersion ($L$), discounted by how redundant the text is via gzip compression ($\text{TRR}$).
Using this cost, they introduce two mechanisms:
- Transport Efficiency ($\text{TE}$) Routing: They combine surviving information ($1 + \gamma - C(x)$, where $\gamma$ is a bonus for structured layouts like tables) with the Visual Compression Ratio ($\text{VCR}$). If $\text{TE}(x)$ clears a fixed threshold $\tau$, the input goes to the VLM; otherwise, it stays with the text-only LLM.
- Localized Foveation: For inputs routed to the visual path, the system calculates transport cost per image patch. Just like the human eye focusing on dense text, it selectively crops and re-encodes high-cost "hotspot" patches at higher resolution, provided the information recovered justifies the extra tokens.
Datasets
The authors evaluate their framework across an existing suite of 24 diverse NLP benchmarks (no new datasets are introduced, though independent synthetic probes are used to calibrate model-specific scalar weights). The suite spans:
- Multi-hop & Extractive QA: HotpotQA, MuSiQue, 2WikiMHQA, QASPER, MultiFieldQA, CoQA, ReCoRD, DROP.
- Reading Comprehension & Reasoning: QuALITY, RACE-H, DREAM, LogiQA, BoolQ, SciFact, ContractNLI.
- Classification: Yahoo Answers, DBpedia, IMDB, Yelp.
- Summarization: CNN/DM, XSum, GovReport, BillSum, QMSum.
Key Insights and Ideas
- Compression ratio is an efficiency stat, not a quality predictor: Saving 68% of tokens on CNN/DM causes summarization scores to tank, while saving 45% on HotpotQA nearly triples the F1 score. What matters is how visual geometry interacts with task structure.
- Two distinct visual bottlenecks: Decomposing the transport cost reveals why tasks fail. Long-document summarization suffers heavily from cross-patch fragmentation (coverage cost), while sentiment and multiple-choice tasks suffer from within-patch blurring (precision cost).
- Visual rendering isn't purely lossy: On structured inputs (lists, layouts) or tasks benefiting from spatial grouping, rendering text as an image preserves 2D relationships that flat 1D token sequences strip away, allowing VLMs to beat text-only LLMs.
- Zooming in helps, but can't fix global fragmentation: Foveation repairs localized blurry details cheaply, but when evidence is scattered across an entire document, local high-res crops cannot replace routing the prompt back to a text LLM.
Key Results
Evaluated on the matched Qwen3-4B backbone (comparing text-only LLM vs. VLM):
- Naive VTC trades accuracy for tokens: Running everything through the VLM cuts input tokens by 29.0%, but drops the average score across all 24 datasets by 1.5 points (44.4 vs. 45.9).
- Label-free routing gets the best of both worlds: Using a single fixed threshold ($\tau = 1.28$), the routing rule matches the post-hoc per-dataset oracle on 17/24 benchmarks (70.8%). It boosts the macro-average score from 45.9 to 47.4 (+3.3% relative) while cutting average tokens by 10.3%.
- Matches supervised predictors without labels: In leave-one-dataset-out cross-validation, the zero-label transport rule ties the best 5-feature supervised logistic regression classifier (70.8% accuracy).
- Foveation is token-thrifty: Adding foveation lifts pure VLM scores from 44.4 to 44.8 for less than 3% extra tokens, concentrating gains (+0.7 points) on visual-friendly benchmarks.
Limitations and Future Work
- Headroom to the Oracle: While Decision-routed beats the pure LLM by +1.5 points, a post-hoc Oracle router achieves +4.3 points. The remaining 2.8-point gap happens on borderline datasets where the coarse proxy underestimates structural gains or losses.
- Proxy Approximation: The authors explicitly note that $C(x)$ is an engineering operationalization inspired by measure transport, not an exact numerical solution to a Wasserstein distance.
- Finer-grained routing: Currently, features like precision sensitivity ($W$) rely heavily on task-level specifications. Incorporating finer sample-level structural probes is highlighted as a promising way to close the remaining gap to the oracle.
Summary updated