Skip to content

Study: Multi-vector visual document indexes can be inverted to recover page contentInverting Multi-Vector Visual Document Indices

Hugging Face Daily Papers· arXiv:2610.09920· Zhuchenyang Liu, Yao Zhang, Yu Xiao·Indexed by this site · 2026-10-08· Originally publishedSelected AttacksSelectedAttention39

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

For multi-vector visual retrievers, the paper reconstructs pages with zero side information, achieving 98.4% top-1 re-identification on the original index, and shuffled order can be recovered.

Threat modelZero side information attack: the attacker only has access to the multi-vector index stored in the vector database, with no page size, source, or metadata; the goal is to reconstruct the original page image; tests three storage configurations: original, hierarchical token pooling, and random permutation shuffling.

Questions
Multi-vector visual document retrievers encode pages into about a thousand patch vectors and store them in a third-party vector database; the paper studies whether an attacker with zero side information can reconstruct the original document pages containing clear text from the stored vector index alone.
Methods
Models multi-vector inversion as conditional document image generation, using a dual-stream MMDiT flow matching model to reconstruct pages from vectors; recovers page shape through vector periodicity, and uses a Transformer position model without positional encodings to recover the raster order of shuffled vectors.
Experiments and results
On ViDoRe v3 against EA, inverting the original index reconstructs 47.4% of words and 45.0% of sensitive tokens, with re-identification top-1 at 98.4%; token pooling reduces word recall to about 8%; after shuffling, the position model restores re-identification top-1 from 3.8% to 93.5%.
Limitations and future work
The authors note that attacks were tested only on the ColPali-style retriever family based on the Qwen base model; private encoders are outside the scope of the study. Defenses such as additive noise, quantization, and encrypted retrieval were not evaluated. The evaluation covers 2 tested encoders, EA and EB, and a 2,000-page evaluation subset across 8 domains of ViDoRe v3.
Experimental setupTomoro-ColQwen3-8B、ColQwen3.5-4.5B et al. · ViDoRe v3、VisRAG training corpora et al. · word recall、NED et al.
Evaluated models
Tomoro-ColQwen3-8BColQwen3.5-4.5BTomoroAI/tomoro-colqwen3-embed-4bvultr/VultronRetrieverCore-Qwen3.5-4.5BwebAI-Official/webAI-ColVec1.1-4bwebAI-Official/webAI-ColVec1.1-8bvidore/colpali-v1.2vidore/colpali-v1.3vidore/colqwen2-v1.0nomic-ai/colnomic-embed-multimodal-7bvidore/colSmol-256Mvidore/colSmol-500MVAGOsolutions/SauerkrautLM-ColLFM2-450M-v0.1
Benchmarks
ViDoRe v3VisRAG training corporaColPali training setvdr-multilingual-trainVDR-MEGA-2
Metrics
word recallNEDsensitive-token recalltop-1top-5MRRmedian rank
AI summaryand selection rationaleThe researchers propose an inversion attack against multi-vector visual document retrieval indexes, reconstructing page images from stored vectors alone under zero side information. The attack is implemented as a conditional flow matching inverter, which first identifies the encoder among 13 public retrievers, then infers the page shape from the index, and uses a position model to recover the order of shuffled vectors. On the 2,000-page evaluation set of ViDoRe v3, pages inverted from the original index recover 47% of words and 45% of sensitive tokens, and rank the source page first in 98.4% of cases; under an independently judged encoder, this proportion is 97.7%. Among two cheap defenses, token pooling reduces word recall to about 8% and inversion is unsuccessful; shuffling also reduces it to about 8%, but the position model can raise re-identification from 3.8% to 93.5%. When the same attack is transferred unchanged to another retriever, ColQwen3.5-4.5B, the source page ranks first in 70.2% of cases.

The researchers propose an inversion attack against multi-vector visual document retrieval indexes, reconstructing page images from stored vectors alone under zero side information. The attack is implemented as a conditional flow matching inverter, which first identifies the encoder among 13 public retrievers, then infers the page shape from the index, and uses a position model to recover the order of shuffled vectors. On the 2,000-page evaluation set of ViDoRe v3, pages inverted from the original index recover 47% of words and 45% of sensitive tokens, and rank the source page first in 98.4% of cases; under an independently judged encoder, this proportion is 97.7%. Among two cheap defenses, token pooling reduces word recall to about 8% and inversion is unsuccessful; shuffling also reduces it to about 8%, but the position model can raise re-identification from 3.8% to 93.5%. When the same attack is transferred unchanged to another retriever, ColQwen3.5-4.5B, the source page ranks first in 70.2% of cases.

Why it was selectedThe paper provides concrete success rates for inverting multi-vector visual document indexes and the failure boundaries of two cheap defenses; teams operating vector databases can use this to reassess the sensitivity level of their indexes.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Evaluates whether a third-party-hosted multi-vector index alone can be inverted to reconstruct clear document pages under zero side information.

    The problem this paper attempts to solve is: under zero side information, can an attacker, relying solely on the multi-vector index stored in a vector database, fully invert and reconstruct the original document image containing clear text and layout.

    • Scenario and importance: Multi-visual document retrievers (such as the ColPali series) input document pages directly as images, use a vision-language model (VLM) to encode them into approximately 1,000 patch vectors (stored in raster order), and host the index in a third-party vector database. Since humans cannot directly read text from vectors, this index is easily treated as insensitive data.
    • Limitations of existing defenses and inversion research: Text embedding inversion has been studied extensively, but it cannot be directly transferred to visual document indexes containing two-dimensional layout and image text; low-cost processing schemes for visual retrieval compression, such as hierarchical token pooling and shuffling vector order, have not been systematically evaluated for their effectiveness in defending against inversion attacks.
    • Core observations and hypotheses: The authors propose three hypotheses: first, the index preserves the page's geometric layout (each 32×32 pixel patch corresponds to one vector stored in raster order); second, each vector is produced by a globally context-aware VLM, containing both local patch and full-page global information; third, the VLM has seen tens of millions of OCR samples and PDF layouts during pretraining, so its vector representations have the potential to reconstruct pages.
    • Proposed method: The paper proposes an inversion generation framework based on conditional flow matching, combined with encoder structural fingerprint identification, vector periodicity-based page shape inference, and a Transformer-based vector position recovery model, to achieve page inversion under zero side information.
    • Threat model:
      • Attacker's goal: Reconstruct the original document page images from the stored multi-vector index, steal document content text and sensitive tokens, and achieve document re-identification.
      • Attacker's knowledge: Has a public candidate pool of models (including the target encoder E) and public document training data; does not know which specific encoder generated the stored index, has no access to page dimensions, source, metadata, or any target library pages, i.e., requires zero side information.
      • Attacker's capabilities: The attacker observes all stored vectors T(C) in the target repository. The paper tests three storage configurations T: raw sequence Tr(C), hierarchical token pooling Tp(C) (pooling factor f ∈ {3, 9}), and random permutation shuffling Ts(C). The attacker knows the storage configuration type T but not the specific permutation π.
      • Victim system: A visual multi-vector late interaction-based document retrieval system and vector storage database.
  2. What related research exists?

    Covers text and image feature inversion, multi-vector retrieval compression, and RAG system privacy, positioned on visual index inversion.

    The related work covered by the paper mainly falls into the following four categories:

    • Embedding inversion attacks:

      • Song and Raghunathan (2020): Inverted text embeddings, recovering 50%–70% of words in sentences.
      • Morris et al. (2023a): Achieved 92% exact text recovery for 32-token inputs. Subsequent work further relaxed assumptions, requiring only a proxy encoder, a few leaked pairs, or query access (Huang et al., 2024; Chen et al., 2025; Kim et al., 2026).
      • Kugler et al. (2024): Decoded contextual word vectors into vocabulary words; Morris et al. (2023b) recovered prompt words from the language model's next-word distribution.
      • Mahendran and Vedaldi (2014); Dosovitskiy and Brox (2016); Zhang et al. (2024): Inverted natural image features via optimization, deconvolutional networks, and diffusion priors, respectively; Xiu and Zhang (2025) decoded multimodal features into descriptive text. The authors note that natural image generation models struggle to render clear text without layout planning and OCR supervision, whereas the inverter in this paper requires neither layout planning nor OCR supervision.
    • Multi-vector retrieval and its compression techniques:

      • Khattab and Zaharia (2020): Proposed the ColBERT late interaction retrieval mechanism.
      • Faysse et al. (2025): Proposed ColPali, extending late interaction to document page images.
      • Clavié et al. (2024); Ma et al. (2025): Proposed hierarchical token pooling or merging strategies to reduce the storage overhead of multi-vector retrieval. The authors note that none of these works investigated what information compressed vectors still leak.
    • Privacy issues in retrieval-augmented systems (Privacy of RAG):

      • Zeng et al. (2024): Prompted the generation model through the manipulation interface until it leaked the retrieval database.
      • Naseh et al. (2025): Inferred whether a document is in the database (membership inference) from answers to 30 natural queries.
      • He et al. (2025): Hid the original query text from the database provider at the interface layer. The authors note that inversion of the visual late interaction storage index itself had not been studied before.
    • Baseline methods and benchmarks:

      • Baseline methods: Null model (inversion generation with the condition vector removed), kNN baseline (retrieving the public training set page with the highest late interaction similarity to the target index), and VAE reconstruction upper bound (original page passed through VAE encoding and decoding).
      • Benchmark used: ViDoRe v3 evaluation benchmark (public subsets of 8 specialized domains).
    • Positioning of this paper: The authors extend the known input leakage risk in the text embedding domain to visual multi-vector retrieval indexes, constructing an end-to-end visual document inversion attack pipeline under no side information.

  3. How does the paper address this problem?

    Based on MMDiT flow matching, combined with encoder fingerprint matching, periodic shape inference, and Hungarian algorithm rearrangement.

    The attack framework is overall based on a conditional flow matching inverter, composed of four stages in series: encoder identification, page shape recovery, vector position recovery, and latent-space image generation.

    Conditional Flow Matching Inverter Design

    • Latent-space generation architecture: The inverter follows the design of Qwen-Image's dual-stream multimodal diffusion Transformer (MMDiT), containing 16 blocks with 337.1M parameters. It uses a pretrained frozen Qwen-Image VAE (spatial downsampling factor 8, 16 channels) and builds a flow matching model on the latent space based on a rectified-flow path.
    • Training objective: Let x0 denote the page VAE latent variable, x1 ∼ 𝒩(0, I), with t sampled from a logit-normal distribution, xt = t x0 + (1−t) x1. The inverter vθ minimizes only the mean squared error:

    L = 𝔼 |vθ(xt, t, C) − (x0 − x1)|2 The authors state that no perceptual or adversarial auxiliary losses are used, to avoid introducing additional priors that would fabricate text not present in the index.

    • Ordered and set inverters: The ordered inverter assigns two-dimensional rotary position embeddings (2D RoPE) to the conditional flow; the set inverter omits conditional flow position embeddings, is permutation-invariant, and is used to handle pooled indexes or shuffled indexes without a position model.
    • Classifier-free guidance sampling: During training, the condition is dropped with 10% probability and replaced with a learnable null token. At inference, 50-step Euler integration sampling is used with a guidance scale of γ = 4.

    Identifying the Encoder (Step 0)

    • Structural tests: Check whether the stored vectors' dimensions, unit norms, and vector counts conform to the output rules of public processors, filtering the candidate pool.
    • Reference-cloud nearest-neighbor matching: The remaining candidate encoders each encode a 2,000-page public reference set Re. The attacker retrieves the nearest reference pages by cosine similarity of mean-pooled vectors, reorders by maximum cosine similarity between patches, and selects the candidate encoder with the highest similarity.

    Recovering Page Shape (Step 1)

    • Periodicity analysis of the raw index: Because vectors are arranged in raster order, patch vectors in adjacent rows of the same column have high similarity. Let s(w) denote the average cosine similarity between vectors at interval w; the row width nw is estimated as the factor maximizing s(w):

    n̂w = argmaxW ∈ 𝒲 s(W) where 𝒲 is a factor of N with an aspect ratio within the [0.12, 8.0] window set by the public training set.

    • Set classifier for pooled indexes: For pooled indexes without an obvious period, a permutation-invariant set classifier (0.3M parameters) composed of a two-layer GELU MLP is trained to classify and predict over constrained candidate shapes.

    Recovering the Permutation of the Shuffled Index (Step 2)

    • Position prediction model: A 6-layer Transformer encoder without position embeddings (19.35M parameters) is built, using whole-page patch vectors as context to directly predict the normalized row and column coordinates of each vector, with the aspect ratio regressed by a leading token.
    • Bipartite matching reordering: The Hungarian algorithm is used to perform one-to-one matching between predicted coordinates and the nh × nw grid slots, restoring the reordered vectors as input to the ordered inverter for sampling.
  4. What experiments did the paper conduct?

    Tested on ViDoRe v3 with original index, pooling, and shuffle defenses; original index re-identification reaches 98.4%.

    Experimental Setup

    • Encoders under test: The main test model EA is Tomoro-ColQwen3-8B (320 dimensions, one vector per patch); the generalization test model EB is ColQwen3.5-4.5B (320 dimensions).
    • Datasets and scale:
      • Training sets: VisRAG training set, ColPali training set, vdr-multilingual-train, and VDR-MEGA-2; after deduplication, the EA training set totals 682,818 pages and the EB training set totals 346,770 pages.
      • Evaluation sets: 19,252 pages from 8 public domains of ViDoRe v3 serve as the retrieval corpus, and the fixed evaluation subset is 2,000 pages uniformly sampled at 250 pages per domain (covering 11 page shapes). Text metrics are evaluated on the 1,927 pages with reference word count ≥ 20.
    • Storage configurations and baselines: Storage configurations include raw, hierarchical token pooling (pooled × 3, × 9), and shuffled. Comparison baselines include the null model, the kNN baseline, and the VAE reconstruction upper bound.
    • Evaluation metrics: Word recall (Word rec.), character-level edit distance (NED), sensitive token recall (Sens. rec., based on regex identification of numbers, capitalized words, and abbreviations), re-identification top-1, top-5, MRR, median rank (med. rank), and independent evaluation model assessment (indep., scored cross-modally by another encoder).
    • Judge and sampling method: OCR uses PaddleOCR; re-identification directly uses late-interaction score retrieval; sampling is fixed to a single random seed, 50-step Euler integration, γ = 4. Each model is trained once.

    Main Results

    For the main test model EA, the inversion results on the 2,000-page fixed evaluation set (1,927 pages for text metrics) are shown in the table below (according to Table 1):

    Swipe horizontally to read the table

    Method / storage configurationIndex typeWord rec. ↑NED ↓Sens. rec. ↑top-1 ↑top-5 ↑MRR ↑med. rank ↓indep. ↑
    Null model–0.0010.9580.0080.0000.0000.0018,161–
    kNN baselineraw0.2340.8580.1460.1990.4380.3207–
    Ours (Ours, raw)raw0.4740.2920.4500.9840.9950.98910.977
    Ours (Ours, pooled × 3)pooled × 30.0760.8580.0440.0110.0350.0294960.005
    Ours (Ours, pooled × 9)pooled × 90.0810.8790.0540.0050.0240.0187240.003
    Ours (w/o position model)shuffled0.0840.8420.0480.0380.1040.0762030.011
    Ours (w/ position model)shuffled0.2310.9250.2120.9350.9780.95510.877
    VAE reconstruction–0.9560.0280.9651.0001.0001.00010.996
    • Inversion performance on raw index: The authors report that inversion of the raw index achieves a word recall of 47.4%, a sensitive token recall of 45.0%, and re-identification top-1 of 98.4% (97.7% under the independent evaluation model), far above the kNN and null model baselines.
    • Effect of pooling protection: Token pooling reduces word recall to 7.6% (× 3) and 8.1% (× 9), and re-identification top-1 to 1.1% and 0.5%; the authors state that the method in this paper cannot effectively invert pooled indexes.
    • Shuffling protection and position recovery: Without the position model, the shuffled index has a word recall of 8.4% and top-1 of 3.8%; after introducing the position model for reordering, top-1 recovers to 93.5% (87.7% under the independent model), and sensitive token recall recovers to 21.2%, but word recall (23.1%) is on par with the kNN baseline.

    Evaluation of Defenses and the Position Model

    • What was tested: The coordinate recovery capability and inversion performance of the position model (P2) and the per-vector probe (P1) under shuffled indexes, as well as under Gaussian noise.
    • Results: On EA, P2 has a row MAE of 1.82 and a column MAE of 4.49, with a proportion of 0.197 falling into slots ≤ 1; P1 has a row MAE of 4.60 and a column MAE of 7.77 (according to the table on page 25). After P2 reordering, word recall reaches 0.231, higher than P1's 0.134 and random permutation's 0.021 (according to Figure 16).
    • Authors' interpretation: Position errors cause entire rows or text blocks to be vertically misplaced, reversing reading order (NED rises to 0.925), but semantics and sensitive information are still largely retained.

    Model Generalization Test (for EB)

    • What was tested: Transferring the attack method unchanged to ColQwen3.5-4.5B (EB).
    • Results: Under the inferred shape, re-identification top-1 for the raw index reaches 70.2% (60.5% under the independent evaluation model EA), but word recall is only 7.9%, below the kNN baseline's 22.3% (according to Table 2). With the shuffled index combined with the position model, top-1 is 11.2% (according to Table 2).
    • Authors' interpretation: The attack remains feasible for re-identification, but content leakage did not transfer effectively; the EA control inverter trained on the same data reaches 55.5% word recall and 98.9% top-1, indicating that the source of the difference lies in the encoder itself, but it cannot be determined whether it is caused by input resolution or the number of vectors.

    Other Ablations and Analyses

    • Encoder identification accuracy: The reference-cloud test maintains 100% accuracy across 26,000 single-page decisions over 13 candidate encoders (Table 4).
    • Page shape recovery accuracy: The periodic method recovers the original index shape of EA with 99.2% accuracy, and the set classifier reaches 99.1% and 95.7% under × 3 and × 9 pooling, respectively (page 6 and Section 6.1).
    • True-shape comparison ablation: On the EA raw index, providing the true shape versus the inferred shape changes word recall from 0.474 to 0.476 and top-1 from 0.984 to 0.986 (Table 8).
    • Classifier-free guidance scale γ: On the EA raw index, increasing γ from 1 to 4 raises word recall from 0.305 to 0.475, entering a plateau between 4 and 8 (table on page 26).
    • Retrieval utility cost: On ViDoRe v3, × 3 and × 9 pooling reduce average nDCG@10 by 0.8% and 2.2%, respectively (table on page 28).

    Negative Results and Failure Cases

    • Failure to invert pooled indexes: For pooled indexes, all inversion metrics fall below the kNN baseline, and document content could not be successfully inverted nor effective re-identification achieved.
    • Misalignment failure: After reordering the shuffled index, although text such as headings and lists is recovered, paragraphs and entire rows are vertically misaligned, causing NED to approach the upper limit of 1.00 (Figure 19).
    • Re-identification not ranked first: In the EA raw index, 32 pages (1.6%) are not ranked first, mainly concentrated in industrial manuals (industrial) and French financial documents (finance_fr) (Section M). Another 17 pages (0.8%) have incorrect shape inference.
  5. What are some points that can be further explored?

    The encoder is limited to Qwen-based ColPali models; private models and encryption defenses were not tested, and pooling inversion remains unsolved.

    Limitations and Future Directions Noted by the Authors

    • Single encoder family under test: The attacked encoders all come from a single model family, all being ColPali-style late-interaction retrievers based on the Qwen backbone, and were tested on only one model family (Section 8).
    • Private encoders not studied: Encoder identification was evaluated only in a library built from 13 public encoders; apart from the marked out-of-library encoders, repositories generated by private encoders were not studied, and inverting such indexes is beyond the scope of this paper (Section 8).
    • Conservative experimental setup: The validation loss of the ordered inverter is still decreasing at 100k steps with no sign of fitting, and larger models or longer training may increase the leakage level; training hyperparameters and components were not tuned for specific encoders and may be suboptimal (Section 8).
    • Evaluation metric limitations: OCR-based metrics use the OCR transcription of the original page as the reference, and the transcription itself may contain errors; sensitive tokens rely on regex heuristics, and no human study was conducted to confirm whether readers agree on their sensitivity (Section 8).
    • Difficulty distinguishing generated authenticity: It is impossible to verify which parts of the inverted page are correct; drawing multiple samples for the same index and keeping content common to them may help distinguish high-confidence leakage from fabricated content, which the authors leave for future work (Section 8).
    • Pooled inversion and exploration of broader defenses: No attempt was made to recover the positions of pooled vectors, and the conclusion that pooling resists inversion applies only to the methods attempted in this paper (Section 8); the authors propose future directions such as soft position prediction, differentiable matching assignment, and larger-capacity models (Appendix N); defenses such as additive noise, quantization, keyed random projection, encrypted retrieval, and access control were not evaluated (Section 8).

    Experimental Coverage

    • Number of models under test: The experiments specifically test 2 attacked models (EA: Tomoro-ColQwen3-8B and EB: ColQwen3.5-4.5B), and the encoder identification pool contains 13 public retrieval models.
    • Evaluation datasets and scale: Evaluation covers 8 professional domains of the ViDoRe v3 benchmark, with a fixed evaluation subset of 2,000 pages, and text metrics computed on the 1,927 pages with reference word count ≥ 20.
    • Defenses and storage configurations: Three storage configurations were tested: raw storage, hierarchical token pooling (factors 3 and 9), and random shuffling; the paper does not test defenses such as additive noise, quantization, or feature encryption.
    • Experimental repeatability: Inversion sampling uses a single random noise seed, and each model is trained once; the paper does not report the variance of sampling across multiple random seeds.
    • Human evaluation: All evaluation metrics are based on PaddleOCR rule-based transcription and late-interaction computation, and include no human review or human agreement experiments.
  6. Summarize the main content of the paper

    Reveals inversion risk in multi-vector document indexes, with 98.4% re-identification on the original index and the shuffling defense can be broken.

    This paper studies the index security of multi-vector visual document retrievers, demonstrating that with only the multi-vector index stored in a third-party vector database, under zero side information, it is possible to invert and recover the original document images with clear text and layout.

    • Core problem and threat: Multi-vector visual retrievers typically split each document page into approximately 1,000 patch vectors stored in a vector database. Since vectors are not directly readable, they are often assumed to be low-sensitivity data; the paper explores whether an attacker can reconstruct the original document without any document metadata, page dimensions, or auxiliary side information.
    • Core method design: The attack framework includes four stages: first, identify the specific public encoder that generated the index via vector dimensions and nearest-neighbor matching against a public reference set (100% accuracy across 13 classes); second, infer the page grid dimensions using periodic similarity of adjacent patch vectors in the same column (99.2% accuracy); for shuffled indexes, use a 6-layer Transformer position model combined with the Hungarian algorithm to reorder vectors; finally, use an MMDiT dual-stream flow matching model conditioned on the stored index to generate page images in latent space.
    • Main experimental results:
      • On the 2,000-page test set from ViDoRe v3 for Tomoro-ColQwen3-8B, raw index inversion reconstructs 47.4% of words and 45.0% of sensitive tokens, achieving 98.4% re-identification top-1 accuracy in a 19,252-page document corpus (97.7% under independent model scoring).
      • Hierarchical token pooling reduces word recall to 7.6% (× 3) and 8.1% (× 9), and re-identification top-1 drops to 1.1% and 0.5%, indicating the proposed inversion method cannot break pooling protection.
      • Shuffling vector order reduces word recall to 8.4% and top-1 to 3.8% without a position model; but after position model recovery, re-identification top-1 recovers to 93.5% and sensitive token recall to 21.2%.
      • On a second retriever, ColQwen3.5-4.5B, raw index inversion re-identification top-1 reaches 70.2%, but word recall is 7.9%.
    • Authors' conclusions and recommendations: The authors argue that shuffling vector order is not a reliable defense, as most re-identification risk can be recovered; stored multi-vector visual indexes pose a serious input leakage risk and should be protected with strict security measures as if they were original documents.
Read originalhuggingface.co