arXiv:2504.02132cs.CLcs.CR2025-04被引 8

一张恶意图片就能破坏视觉文档生成系统,引发误导或服务瘫痪。

One Pic is All it Takes: Poisoning Visual Document Retrieval Augmented Generation with a Single Image

  • 用单张伪造图片污染视觉知识库,实现精准误导或广泛干扰。
  • 白盒与黑盒攻击下均能成功,通用攻击对任意查询都有效。
  • 揭示视觉文档生成系统的安全缺陷,适合关注AI安全的研究者。

检索增强生成(RAG)通过事实知识库抑制大语言模型的幻觉问题。尽管PDF文档是重要知识源,但传统文本RAG难以捕捉其丰富的多模态信息。相比之下,视觉文档RAG(VD-RAG)使用文档页面截图作为知识库,已实现领先性能。然而,引入图像模态后,攻击者可通过向知识库注入恶意文档制造新攻击路径。本文揭示了VD-RAG在检索和生成环节均易受投毒攻击。我们定义两类攻击目标:一是针对特定查询的定向攻击,传播虚假信息;二是通用攻击,使任意用户查询均导致系统响应异常,造成拒绝服务。在白盒与黑盒假设下,均仅需注入一张对抗性图像即可实现。实验基于两个视觉文档数据集,采用多种先进检索器(嵌入模型)与生成器(视觉语言模型),验证了在定向与通用攻击下系统的脆弱性,但在通用攻击中表现出对黑盒攻击的鲁棒性。

原文摘要 · Abstract (English)

Retrieval-augmented generation (RAG) is instrumental for inhibiting hallucinations in large language models (LLMs) through the use of a factual knowledge base (KB). Although PDF documents are prominent sources of knowledge, text-based RAG pipelines are ineffective at capturing their rich multi-modal information. In contrast, visual document RAG (VD-RAG) uses screenshots of document pages as the KB, which has been shown to achieve state-of-the-art results. However, by introducing the image modality, VD-RAG introduces new attack vectors for adversaries to disrupt the system by injecting malicious documents into the KB. In this paper, we demonstrate the vulnerability of VD-RAG to poisoning attacks targeting both retrieval and generation. We define two attack objectives and demonstrate that both can be realized by injecting only a single adversarial image into the KB. Firstly, we introduce a targeted attack against one or a group of queries with the goal of spreading targeted disinformation. Secondly, we present a universal attack that, for any potential user query, influences the response to cause a denial-of-service in the VD-RAG system. We investigate the two attack objectives under both white-box and black-box assumptions, employing a multi-objective gradient-based optimization approach as well as prompting state-of-the-art generative models. Using two visual document datasets, a diverse set of state-of-the-art retrievers (embedding models) and generators (vision language models), we show VD-RAG is vulnerable to poisoning attacks in both the targeted and universal settings, yet demonstrating robustness to black-box attacks in the universal setting.

AI安全投毒攻击视觉生成RAG

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。