StreamEmbed:用于截图检索的像素级实时索引
StreamEmbed: Real-Time Indexing from Pixels for Screenshot Retrieval
AI总结:
StreamEmbed是利用像素冗余的增量视觉嵌入系统,通过空间令牌剪枝与时间KV复用实现快速编码,在ScreenMemEval基准上比全截图编码快3.7倍且不损失准确率,为本地视觉助手奠定基础。
摘要:
屏幕历史可作为人类和智能体可搜索的视觉记忆,但与离线语料库不同,它必须在每一张截图到达时进行编码和索引。基于OCR的索引速度快,但会丢失视觉信息;而视觉编码则需要超过两秒。然而屏幕是逐步变化的:大多数像素在单张截图内以及不同截图之间重复出现。这引发了一个问题:视觉编码器是否需要为每一张新截图从头重新计算其表示?我们提出了StreamEmbed,这是一个利用这种冗余性的增量视觉嵌入系统。它仅受像素差异引导,结合了空间令牌剪枝(跳过重复相邻块的块)和时间KV复用(为跨截图未改变的块复用缓存的键和值)。一个小型的学习适配器用于补偿剪枝和复用,以保持与全截图嵌入的保真度。在ScreenMemEval(我们的基准,包含10426个问题,基于两名人类和一个计算机使用智能体的184小时屏幕历史)上,StreamEmbed在M2 Pro GPU上设置了新的准确率-延迟帕累托前沿:它的编码速度比全截图编码快达3.7倍,且不牺牲准确率;在匹配延迟下,它比基于OCR的索引的准确率提高了达6.3个Recall@10点。一个内存高效的向量索引可在0.13 GB RAM中存储模拟一年的截图。这些结果共同使屏幕历史以其原生视觉形式的实时索引成为可能,为完全本地的视觉助手奠定了基础。
英文摘要:
Screen history can serve as searchable visual memory for people and agents, but unlike an offline corpus, it must be encoded and indexed as each screenshot arrives. OCR-based indexing is fast but loses visual information; visual encoding takes over two seconds. Yet screens change incrementally: most pixels repeat within and across screenshots. This raises a question: do visual encoders need to recompute their representations from scratch for every new screenshot? We present StreamEmbed, a system for incremental visual embedding that exploits this redundancy. Guided solely by pixel differences, it combines spatial token pruning, which skips blocks that repeat a neighbor, with temporal KV reuse, which reuses cached keys and values for blocks unchanged across screenshots. A small learned adapter compensates for pruning and reuse to preserve fidelity to full-screenshot embeddings. On ScreenMemEval, our benchmark of 10,426 questions over 184 hours of screen histories from two humans and a computer-use agent, StreamEmbed sets a new accuracy-latency Pareto frontier on an M2 Pro GPU: it encodes up to 3.7x faster than full-screenshot encoding without sacrificing accuracy and improves accuracy over OCR-based indexing by up to 6.3 Recall@10 points at matched latency. A memory-efficient vector index stores a simulated year of screenshots in 0.13 GB of RAM. Together, these results make real-time indexing of screen history in its native visual form practical, laying a foundation for fully local visual assistants.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。