反转多向量视觉文档索引
研究论文 · 2026/10/08
主流的多向量视觉文档检索器将每页存储为约一千个补丁向量,通常存放在第三方运营的向量数据库中。由于无人能从向量中读取页面,该索引常被视为比页面本身敏感度更低。然而,由于索引按光栅顺序为每个补丁保留一个向量,且每个向量由预训练用于阅读文档的视觉语言模型计算得出,我们假设运行或入侵存储的人仅凭索引就能重现页面。我们将反转视为条件文档图像生成,并从向量中推断攻击所需的信息:编码器、页面形状以及对于乱序向量的顺序。在ViDoRe v3基准上,从原始索引反转的页面恢复了47%的单词和45%的敏感标记。作为查询对存储索引使用时,它们有98.4%的概率将源页面排在第一。我们测试了两种廉价保护措施:标记池化和乱序,两者都将单词召回率降至约8%。一个恢复乱序索引顺序的模型将源页面排第一的比例从3.8%提升至93.5%,而反转池化索引仍待解决。为测试泛化性,我们将相同的攻击原样应用于另一个多向量检索器:其反转页面仍有70.2%的概率将源页面排第一,尽管其单词召回率低于最近邻基线。因此,多向量视觉文档检索器易通过其存储索引被反转,应像保护其编码的文档一样保护索引。
该研究揭示了多向量视觉文档检索器的一个严重安全漏洞:存储的索引可被反转以重现原始文档内容,挑战了索引比文档敏感度低的常见假设,并评估了现有保护措施的局限性,对文档检索系统的安全设计具有重要启示。
Prevailing multi-vector visual document retrievers store each page as about a thousand patch vectors, often in vector databases run by a third party. Since no one can read a page from its vectors, this index is easily treated as less sensitive than the page. However, because the index keeps one vector per patch in raster order, and each vector is computed by a vision-language model pre-trained to read documents, we hypothesize that whoever runs or breaches the store can reproduce a page from its index alone. We frame inversion as conditional document image generation and infer from the vectors what the attack needs: the encoder, the page shape and, for shuffled vectors, their order. On the ViDoRe v3 benchmark, pages inverted from raw indices recover 47% of the words and 45% of the sensitive tokens. Used as queries against the stored indices, they rank their source page first 98.4% of the time. We test two cheap protections, token pooling and shuffling, which both cut word recall to about 8%. A model that restores the order of a shuffled index raises the share of source pages ranked first from 3.8% to 93.5%, while inverting a pooled index remains open. To test generalisation, we apply the same attack unchanged to another multi-vector retriever: its inverted pages still rank their source page first 70.2% of the time, though its word recall stays below a nearest-neighbour baseline. Multi-vector visual document retrievers are therefore vulnerable to inversion through their stored index, which should be protected like the documents it encodes.