StreamEmbed: Real-Time Indexing from Pixels for Screenshot Retrieval
Dayoon Ko, Yichuan Wang, Soyeong Jeong, Joseph E. Gonzalez, Gunhee Kim, Sewon Min
arXiv:2611.18516v1Imagine trying to search your computer’s past the way you search the web. You want to ask, “Which paper had those pink and blue Pareto curves?” or “Where was that dialog box I saw last week?” The obvious source of memory is your screen history, because screenshots capture everything: text, layout, colors, icons, selected states, and whatever else is actually visible. That makes screen history a powerful kind of personal memory for both people and local AI agents. But there’s a hard systems problem hiding underneath that idea. A screen history is not a static archive you can index overnight. It arrives continuously, screenshot by screenshot, while the computer is still being used. So if you want this memory to stay searchable in real time, you have to encode and index each screenshot as it appears, on-device, without slowing everything else down. Existing approaches sit at an awkward trade-off. OCR-based indexing is fast, and that’s why many tools use it, but OCR throws away a lot of what matters visually. It can mix together text from different windows, lose layout, and miss purely visual state like which option is selected. Full visual embedding preserves that information, but it’s slow enough that it can become impractical for continuous use. The paper reports that a full screenshot embedding takes about 2.33 seconds on an M2 Pro GPU, which is far too costly if screenshots keep arriving every few seconds. So the paper’s central question is simple but important: do we really need to recompute a visual representation from scratch for every screenshot? The key observation is that screen content is highly redundant. Unlike natural video, where most pixels change from frame to frame, screens often change incrementally. A user types a few characters, scrolls a little, moves the cursor, or opens a menu, while most of the screen stays the same. The authors measure this redundancy and find that a large fraction of the visual blocks that become tokens are either repeats of neighboring blocks within a screenshot or unchanged from the previous screenshot. That observation leads to StreamEmbed, a system for incremental visual embedding. The basic idea is to treat screenshots as a stream rather than isolated images. Instead of re-encoding everything, StreamEmbed only computes what is new. To understand the method, it helps to know the usual structure of a vision-language embedding model. A screenshot is first split into small patches by a vision encoder. Those patch features become visual tokens, and then a language model processes the tokens together with a fixed text prompt to produce the final embedding. In a standard pipeline, all of that work is repeated from scratch for every screenshot. StreamEmbed reduces that cost in two complementary ways. First, it uses spatial token pruning. Within a single screenshot, many neighboring blocks are identical or nearly identical, especially in blank panels, margins, and other uniform areas. StreamEmbed compares each block with its left and upper neighbors, and if a block repeats a neighbor within a small pixel threshold, it drops that block before the vision encoder ever sees it. That means the dropped content does not consume computation in either the vision encoder or the language model. To avoid over-pruning large uniform regions too aggressively, it also keeps one block per region in a regular grid, so the representation still preserves the overall structure of the screen. Second, it uses temporal key-value reuse. Across screenshots, many blocks do not change at all. For those unchanged blocks, StreamEmbed reuses cached attention keys and values from the previous screenshot instead of recomputing them. This matters because the vision encoder and language model both rely on self-attention, and attention is expensive. If a block is unchanged, and the blocks it attends to are also unchanged, then its previous computation can be reused exactly. When that condition is not perfectly true, StreamEmbed uses periodic refresh to keep the approximation under control. These two tricks are meant to work together. Spatial pruning removes redundancy inside each screenshot; temporal reuse removes redundancy across screenshots. Combined, they cut the amount of computation per screenshot substantially compared with encoding the entire screenshot every time. There is one more piece: a small learned adapter. Pruning and reuse make the input cheaper, but they also risk shifting the resulting embedding away from what a full screenshot encoder would have produced. The adapter is there to compensate for that. In other words, it helps StreamEmbed stay faithful to the original full-screenshot embedding while still benefiting from the computational savings. A major contribution of the paper is also the evaluation setup, because there was no suitable benchmark for this exact problem. The authors build ScreenMemEval, or SME. It contains 10,426 questions over 184 hours of screen histories from two human users and one computer-use agent. The histories are organized into task recordings, and each question is linked to the screenshots that answer it. Two of the histories come from Windows users in a public computer-use dataset, and the third comes from an Ubuntu agent performing tasks from a benchmark environment. This matters because it gives the paper a realistic setting: long-running, mixed-screen, real activity rather than toy screenshots. The evaluation metric is retrieval accuracy. For each question, the system retrieves the most similar screenshots in the index, and the question counts as correctly answered if at least one screenshot from each relevant task recording is retrieved. The paper also measures indexing latency, because in this setting latency is not just a convenience metric; it determines whether the system can keep up with the incoming stream at all. On the experimental side, StreamEmbed is built on top of Qwen3-VL-Embedding-2B. The main comparison is against baselines using the same backbone and similar fine-tuning, including an OCR-based text index and a full screenshot index. The authors evaluate both accuracy and latency, and they also study what happens when you reduce input resolution or use a smaller encoder, since those are common ways to speed up retrieval systems. The headline result is that StreamEmbed sets a new accuracy-latency Pareto frontier on SME. In plain terms, for a given latency budget, it is more accurate than the alternatives; and for a given accuracy target, it is faster. The paper reports that on an M2 Pro GPU, StreamEmbed can encode up to 3.7 times faster than full-screenshot encoding while retaining over 98 percent of its accuracy. Compared with OCR-based indexing at similar latency, it improves accuracy by up to 6.3 Recall@10 points. That is an important result because it shows the system is not just faster than full visual encoding; it also beats the fast but lossy OCR route. The paper also notes that the two acceleration strategies are largely complementary. Spatial pruning alone reduces computation by a substantial amount, temporal reuse reduces it further, and together they reduce per-screenshot computation by more than either method alone. When the authors compare methods under matched latency, StreamEmbed remains more accurate than the baselines across the board, with gains that can reach 11.4 points in some of the reduced-resolution or smaller-encoder settings. Memory use is another important result. The authors show that binary codes for the embeddings can reduce storage without hurting accuracy on SME. With this setup, an index for a simulated five years of screenshots fits in under 1 GB of RAM, and search takes under a tenth of a second. The abstract also highlights a smaller figure: a simulated year of screenshots fits in just 0.13 GB of RAM. The broader point is that the index itself is not the bottleneck; with the right representation, very large screen histories can be stored efficiently. What does all this actually show? First, screen histories really are redundant enough to exploit. That’s the empirical basis for the whole method. Second, you do not necessarily need to pay the full cost of recomputing a visual embedding for every screenshot. If most of the screen is unchanged, then incremental computation can preserve retrieval quality while saving a lot of time. Third, OCR is not a free lunch: it is fast, but the lost visual information shows up in retrieval accuracy. There are also some clear limitations and open questions. StreamEmbed is evaluated on a specific kind of screen-history retrieval benchmark, so its behavior on other interfaces, other screen resolutions, or more visually dynamic workloads may differ. The method depends on pixel-level redundancy, so if a screen changes in ways that are subtle to humans but not easy to capture with simple block comparisons, performance could vary. The temporal reuse step is exact only under certain conditions and otherwise approximate, which is why periodic refresh is needed. And although the system is designed for local use, it still depends on a reasonably capable GPU-class device for the reported results. Still, the main takeaway is strong: if your goal is to build a private, local, searchable memory of what happened on a screen, you do not have to treat every screenshot as a brand-new image. StreamEmbed shows that the stream itself contains structure you can exploit. That makes real-time visual indexing much more practical, and it points toward a future where local assistants can remember not just what was typed, but what was actually seen.
Also spotted that day
Previous daily papers