LensVLM: A Neural Network for Reading Text in Compressed Images
Apple ML Research has published LensVLM, a framework for vision-language models (VLMs) that tackles a key problem: when an image is heavily compressed, characters become too small to read. LensVLM teaches the model to scan the image selectively, paying more attention to the regions that matter. This opens a path to processing long documents through the visual channel, without text tokenization.
AI-processed from Apple ML Research; edited by Hamidun News
Apple researchers have developed LensVLM, a neural network that learns to reliably read text in heavily compressed images, addressing the problem of processing long documents through the visual channel.
Why text as an image is promising
Modern vision-language models (VLMs) can take in text not through tokenization but directly, as a rendered image: they literally "see" what is written. This differs fundamentally from how traditional language models work.
In the classic approach, each character or subword becomes a numerical token, and a long document produces a long sequence. That strains memory and limits the context window. VLM visual encoders work differently: they always produce a fixed number of tokens from an image, regardless of how much text it contains.
This suggests a tempting idea: by lowering the rendering resolution, you can fit more text into the same "token budget." Resolution becomes a flexible dial for the degree of compression. For books, PDF reports and other long documents, this approach is potentially far more economical than standard tokenization.
Why does high compression break accuracy?
Under aggressive compression, VLM accuracy drops sharply. The cause is mechanical: characters in the image shrink below the effective resolution of the visual encoder. Letters blur together and become indistinguishable, and the model loses the ability to read the text, even though it technically "sees" the image.
The result is an unwelcome trade-off: the higher the compression, the more text fits into the context, but the worse the model understands it. This barrier has so far limited the practical use of the visual approach for long documents.
How does LensVLM solve the problem?
Apple ML Research's key idea is a mechanism called selective context expansion. Instead of processing the whole image uniformly, the model learns to scan it adaptively, giving extra attention to regions with dense or small text.
The name LensVLM alludes to the optical lens: just as a lens focuses on a particular detail and ignores the rest, the model "sharpens focus" on critical fragments. As a result, overall compression stays high, while local resolution increases only where it is truly needed.
The framework has two complementary components:
- Inference framework — defines how the model examines the image at inference time: when and by how much to increase attention to a specific region
- Post-training recipe — adapts existing VLMs to work with compressed text representations, without training from scratch
This makes LensVLM practical: it can be built into existing models without developing a new architecture from scratch.
What this means
LensVLM shows that the visual channel can become a full alternative to tokenization for long documents. If the approach proves scalable, it may change how VLMs handle books, PDF files and other documents: fewer tokens, a wider context, higher reading accuracy.
Can a neural network read text in compressed images?
Yes, LensVLM is trained specifically to do this. It perceives text as a rendered image and can reliably recognize it even under heavy compression.
- Oct 29, 2026Claude Code Edits Video From a Transcript: How the video-use Skill With 30 000 Stars Works
- Oct 29, 2026Stanford AI tool verifies part of Signal's code in half a day for under $500, versus five months of expert work
- Oct 29, 2026Liquid AI releases LFM3: six multimodal 2B models with a 256K context window
- Oct 29, 20268B iOS agent beats Gemini-3.5-Flash on UINavBench and matches Gemini-3.1-Pro
Key Questions Answered
Why does high compression break accuracy?
Under aggressive compression, VLM accuracy drops sharply. The cause is mechanical: characters in the image shrink below the effective resolution of the visual encoder. Letters blur together and become indistinguishable, and the model loses the ability to read the text, even though it technically "sees" the image. The result is an unwelcome trade-off: the higher the compression, the more text fits into the context, but the worse the model understands it. This barrier has so far limited the practical use of the visual approach for long documents.
How does LensVLM solve the problem?
Apple ML Research's key idea is a mechanism called selective context expansion. Instead of processing the whole image uniformly, the model learns to scan it adaptively, giving extra attention to regions with dense or small text. The name LensVLM alludes to the optical lens: just as a lens focuses on a particular detail and ignores the rest, the model "sharpens focus" on critical fragments. As a result, overall compression stays high, while local resolution increases only where it is truly needed. The framework has two complementary components: Inference framework — defines
Can a neural network read text in compressed images?
Yes, LensVLM is trained specifically to do this. It perceives text as a rendered image and can reliably recognize it even under heavy compression.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.