Apple's LensVLM compresses long agent context into images and teaches the model to "zoom"
Apple has proposed LensVLM, a way to store an agent's long context as images rather than text. Code, tool output and action logs are rendered into pictures, and a vision-language model "zooms in" on the regions it needs. The approach builds on DeepSeek-OCR, which compressed text rendered as visual tokens by roughly 10x at about 97% recognition accuracy. The main goal is to keep the small details that an ordinary summary throws away. • Context becomes images, not a short digest. • The model decides for itself which fragment to examine more closely. • There are no independent measurements on long agent tasks yet.
AI-processed from Jiqizhixin (机器之心); edited by Hamidun News
Apple has proposed LensVLM, a scheme in which an agent's accumulated context is stored as a set of images, and a vision-language model "zooms in" on the relevant fragments as it works. The idea rests on DeepSeek-OCR, which rendered text into images and achieved roughly 10x compression at about 97% recognition accuracy. Apple carries this principle over from document recognition to long agent tasks, where context grows with every step. The available excerpt contains no LensVLM benchmarks of its own, so it is too early to judge the results.
The problem: summaries destroy evidence
An agent that works on a task for a long time accumulates everything: code snippets, tool responses, command logs, the history of its own actions. The context window is limited, while cost and latency grow with input length. The standard fix is summarization: old entries are replaced with a short digest.
This technique has a weak spot. An entry that looked like noise at step 20 can turn out to be the key at step 80: a line from a stack trace, a parameter value, a file name. If only the digest remains in memory, there is no way to recover the lost detail. The compression is irreversible.
How LensVLM works
LensVLM changes the storage format itself. Instead of rewriting the history in a shorter form, the system turns it into images that keep the original text in full. The model first sees a compressed representation of the entire context, then can "point a lens" at a specific region and examine it at higher resolution. It resembles the way a person skims a long document and then goes back to the page they need.
According to the description of the approach, the key elements are:
- Context format: code, tool output and interaction records are rendered into images.
- Access mechanism: the model picks a region and enlarges it, rather than reading everything at the same level of detail.
- Target scenario: long-running agent tasks where context grows continuously.
- Foundation: DeepSeek-OCR and its visual compression of text.
- Published accuracy metrics, compression ratio and latency are not given in the available text.
The main difference from summarization is reversibility. The details are not discarded; they are simply represented more coarsely and remain available on request.
What remains in question
Storing text visually has known limitations. Small fonts, dense code and tables become harder to read under heavy compression, and a recognition error in an identifier or a number can cost more than the loss of an entire sentence. In addition, the "zoom in" step requires the model to know what it needs before it has seen it. If it picks the wrong region, the agent will miss the relevant line just as it would after summarization.
Cost is a separate question. Visual tokens save input length, but extra calls to enlarged fragments add requests and latency. The payoff depends on how often the agent actually has to go back to old details.
What to test in practice
Teams building long-lived agents should treat LensVLM as a hypothesis for their own tests, not as a ready-made solution. A sensible plan looks like this:
- Build a set of tasks where the answer depends on a detail from the start of the session, and compare visual storage against summarization and against plain long context.
- Measure errors separately on identifiers, file paths, numbers and code fragments.
- Count total cost: tokens, the number of extra calls and latency, not just the length of the original context.
- Wait for the paper and open results to be published before changing the memory architecture in production.
If the approach holds up in independent measurements, it will give agents a memory from which details can be retrieved. For now it remains a claim from Apple that needs numbers.
Delegate Deep Research, Coding & Workflows to an AI Agent
Deploy autonomous multi-step execution with NomadNet Agent (agent.nomadnet.ai) — automated web research, data synthesis, code generation, and complex task orchestration.
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.