arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.28344cs.IRcs.AIcs.CLcs.CVcs.LG
收藏

PIXELRAG:网页截图在检索增强生成中优于文本

PIXELRAG: Web Screenshots Beat Text for Retrieval-Augmented Generation

Yichuan Wang, Zhifei Li, Zirui Wang, Paul Teiletche, Lesheng Jin, Matei Zaharia, Joseph E. Gonzalez, Sewon Min

AI总结:

提出PixelRAG方法,以网页截图替代文本进行检索和阅读,利用视觉嵌入模型和对比学习,在30M截图库上实现端到端RAG,在多项任务中优于文本基线,准确率提升最高18.1%,并通过图像压缩降低3倍token成本。

摘要:

用检索到的网页文本增强大语言模型(LLM)已成为主导范式,然而网页本质上并非文本:现有系统依赖复杂的解析管道来线性化HTML,并丢弃布局、视觉结构和格式。我们提出PixelRAG,一种新的检索增强方法,以网页的原生视觉形式表示网站,并完全在像素空间中进行检索和阅读,从而实现消除文本抽象的端到端架构。据我们所知,PixelRAG是首个以这种形式对整个维基百科语料库进行操作的管道,通过高效的视觉检索索引扩展到3000万张截图图像的数据存储。基于现有的视觉嵌入模型(即Qwen3-VL-Embedding),PixelRAG进一步在截图数据上微调该模型,使用精心策划的对比训练数据。检索到的截图随后直接作为像素输入馈送到VLM,无需中间文本转换。PixelRAG在无检索和基于文本的RAG基线上持续取得更好表现,最令人惊讶的是在广泛研究的文本中心任务(如NQ和SimpleQA)上也是如此。它还在多模态开放域问答(如MMSearch)、嘈杂新闻语料库基准(如LiveVQA)和智能体基准(如MoNaCo)上取得了强劲提升,准确率比基于文本的基线最高提高18.1%。最后,像素表示通过图像压缩为RAG提供了新的效率杠杆,在较低分辨率下实现高达3倍的token成本降低,同时保持准确性。我们的结果挑战了网页检索中文本表示的必要性,表明网页RAG可以直接以网页的原生视觉形式运行,同时提高性能和效率。

英文摘要:

Augmenting large language models (LLMs) with retrieved web text has become a dominant paradigm, yet the web is not natively textual: existing systems depend on complex parsing pipelines that linearize HTML and discard layout, visual structure, and formatting. We introduce PixelRAG, a new retrieval-augmented method that represents websites in their native visual form and performs retrieval and reading entirely in pixel space, enabling an end-to-end architecture that eliminates text abstraction. PixelRAG is, to our knowledge, the first pipeline to operate over a full Wikipedia corpus in this form, scaling to a datastore of 30 million screenshot images with an efficient visual retrieval index. Built on an existing visual embedding model (i.e., Qwen3-VL-Embedding), PixelRAG further fine-tunes this model on screenshot data with carefully curated contrastive training data. Retrieved screenshots are then fed directly as pixel inputs to a VLM, without intermediate text conversion. PixelRAG consistently outperforms both no-retrieval and text-based RAG baselines, most surprisingly on widely studied text-centric tasks such as NQ and SimpleQA. It also achieves strong gains on multimodal open-domain QA (e.g., MMSearch), benchmarks over noisy news corpora (e.g., LiveVQA), and agentic benchmarks (e.g., MoNaCo), improving accuracy by up to 18.1% over text-based baselines. Finally, pixel representations enable a new efficiency lever for RAG through image compression, achieving up to 3x token cost reduction at lower resolutions while maintaining accuracy. Our results challenge the necessity of text representations in web retrieval, suggesting that web RAG can operate directly in the web's native visual form while improving both performance and efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑