Manuscript Offprint
arXiv:2609.02486ViSAR: Training-Free Adaptive- Retrieval for Visual Document Question Answering
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Document Visual Question Answering (DocVQA) often leverages Retrieval-Augmented Generation (RAG), where late-interaction encoders are commonly used to identify document pages relevant to a user query, before answer generation by a Large Vision-Language Model (LVLM). Existing approaches typically retrieve a fixed top- number of pages regardless of query complexity, which increases LVLM latency and may degrade answer accuracy. We introduce ViSAR (Visual Semantic Activation Retrieval), a training-free adaptive- retrieval method for late-interaction visual document retrieval. ViSAR operates directly in the embedding space to construct a query-conditioned page-level similarity matrix that highlights query-relevant semantics and dynamically determines the number of pages to retrieve. Across multiple encoders and LVLMs, ViSAR retrieves compact, query-adapted page sets that reduce RAG latency by up to 58.7%, while maintaining or improving answer accuracy compared with fixed top- and adaptive retrieval heuristics. Furthermore, we show that the similarity matrix structure correlates with answer accuracy, suggesting future directions for retrieval quality-aware document understanding. Our code is available at https://github.com/adrienmialland/ViSAR.
Keywords— Document Visual Question Answering, Large Language Model, Retrieval-Augmented Generation
1 Introduction
Document Visual Question Answering (DocVQA) aims to answer a user query about visually rich documents using page screenshots, and has attracted growing interest across many applications [1–5]. These documents often include text, images, charts, or tables that blend into document-specific layouts, requiring methods capable

no encoder training - operates in the embeddings space
Figure 1: Document page retrieval mechanisms. (a) Late-interaction fixed top-. (b) The proposed ViSAR adaptive- method. While late-interaction enables fine-grained query-page matching using multi-vector representations, it relies on a fixed top- retrieval that cannot adapt to the query, introducing irrelevant pages and unnecessary latency. ViSAR leverages these multi-vector representations without additional training to enable adaptive- retrieval, reducing irrelevant pages, lowering latency, and improving answer accuracy.
of jointly understanding the query and heterogeneous visual content to localise relevant information and generate an answer. DocVQA is therefore commonly addressed using Large Vision-Language Models (LVLMs) [6–8], which reason over textual and visual modalities jointly. Recent progress has demonstrated close-to-human performance in single-page DocVQA [9–11], but effectively processing multiple-page documents requires processing only the relevant subset of pages.
In this setting, Retrieval-Augmented Generation (RAG) emerges as a promising paradigm, where an encoder projects a query and document pages into a shared embedding space, and a retrieval step selects the most relevant pages for an LVLM to generate an answer. While late-interaction models have significantly improved page representation [12–14, 3], determining how many pages should be retrieved remains an open challenge, despite its critical impact: too many pages increase LVLM latency and may introduce irrelevant context that degrades answer accuracy, whereas too few pages risk omitting relevant evidence.
State-of-the-art retrieval methods rely on a late-interaction mechanism [12], were the encoder independently maps the query and pages into multi-vector representations. Page relevance is obtained by aggregating the best matches of each query embedding across page embeddings, enabling fine-grained semantic matching, offline page encoding, and scalable online retrieval. However, late-interaction produces independent page relevance scores. As a result, it relies on a fixed top- retrieval that cannot adapt to the query and may include irrelevant pages or omit relevant ones. Moreover, by treating pages independently and assigning uniform importance to embeddings, late-interaction does not exploit the semantic structure across pages (Figure 1-a).
Text retrieval has mitigated this through embedding weighting based on token frequency statistics [15–18], or adaptive- retrieval [19], but these approaches rely on discrete token structures that do not extend to visual embeddings and often require additional training. In contrast, we show that late-interaction representations reveal sparse, query-dependent semantic content across pages, enabling dynamic localization and adaptive retrieval.
We introduce ViSAR (Visual Semantic Activation Retrieval), a training-free retrieval mechanism that operates directly in the embedding space of late-interaction encoders. ViSAR constructs a query-conditioned page-level similarity matrix that highlights query semantics and enables adaptive- retrieval, dynamically determining the number of retrieved pages at inference time (Figure 1-b). We also show that the structure of the similarity matrix correlates with answer accuracy, suggesting a general principle for quality-aware document understanding. Our main contributions are as follows:
-
ViSAR: A training-free adaptive- retrieval mechanism for visual retrieval using late-interaction encoders.
-
Semantic localization: A query-conditioned page-level similarity matrix whose structure reflects evidence localization and correlates with answer accuracy.
-
Experiments: ViSAR retrieves fewer pages than fixed top- retrieval on average and reduces RAG latency by up to 58.7%, while maintaining or improving answer accuracy across multiple encoders and LVLMs.
2.1 Multi-Vector Retrieval and Embedding Weighting.
Multi-vector retrieval via late-interaction was introduced by ColBERT [12] for text documents. It represents queries and pages as independent sets of token-level embeddings, and page relevance is computed by aggregating query embeddings' best similarity score to page embeddings. Subsequent works improved its efficiency [20, 21], introduced token weighting mechanisms based on frequency statistics, learned importance estimation, or sparse representations [15, 17, 16, 18, 22–24], and explored retrieval refinement through pseudo-relevance feedback [25]. However, these approaches rely on Optical Character Recognition (OCR) to extract the text content, cannot capture visual content, and often require additional training. Recent works such as ColPali [13, 14] extend late-interaction by encoding each page as a set of visual patch embeddings, emerging as the state-of-the-art paradigm for OCR-free visual document retrieval [26, 13]. However, it still relies on independent page scores and fixed top- retrieval, leaving the semantic organisation of pages unexplored. ViSAR instead exploits this structure to enable adaptive- retrieval.
2.2 Adaptive- Retrieval.
Adaptive retrieval has mainly been explored via iterative approaches, where LLMs or LVLMs reason over multiple rounds of fixed top- retrieval, making vary implicitly across iterations [27–31]. However, adaptive- methods directly estimate the number of pages to retrieve in a single pass. Prior work determines the retrieval cut-off via heuristics applied to late-interaction scores by identifying the largest gap between consecutive scores [19] or by clustering scores to detect transitions [32, 33]. However, these methods are text-based or require additional training, and rely solely on score distributions, while ViSAR performs training-free adaptive- retrieval by exploiting the semantic structure encoded in late-interaction representations.
2.3 Visual Document Retrieval and DocVQA.
These advances in retrieval have directly influenced recent OCR-free DocVQA systems, where effective page selection is a key component of the reasoning pipeline combined with LVLM-based reasoning [34]. VisRAG [3] introduced a dedicated single-vector visual retriever, while M3DocRAG [1] demonstrated the effectiveness of multi-vector late-interaction retrieval with ColPali. Other frameworks [35, 2, 36, 37] improve visual encoders, iterative retrieval, or LVLM reasoning. However, none exploit the semantic structure induced by late-interaction representations, which ViSAR addresses while remaining agnostic to the encoder and LVLM.
3 Visual Semantic Activation Retrieval (ViSAR)
Figure 2 depicts our method, ViSAR, which addresses visual retrieval in DocVQA. ViSAR enables adaptive- retrieval by weighting Query-to-Page, Page-to-Query, and Page-to-Page interactions without encoder retraining. It uses the MaxSim operator from late-interaction [12, 13] to exploit the fine-grained semantic structure in the embedding space and improve retrieval. Algorithm S1 (supplementary material) summarizes the full pipeline.
3.1 Preliminaries: MaxSim and Late-Interaction
We denote a document as a set of pages . Each page and query are denoted as and , their respective sets of multi-vector representations in a common embedding space , such that and . The relevance score of to is estimated via late-interaction between their sets of embeddings (Equation 1), summing each maximum similarity over all , where defines the cosine similarity between two embeddings.

Figure 2: ViSAR overview. The method performs successive interactions in embedding space – 1. Query-to-page: Unlike late-interaction, MaxSim activations are analyzed across pages rather than summed over tokens, to derive token- and page-level weights (pink dotted arrows). 2. Page-to-Query: These weights modulate patch-query similarities to derive patch-level weights (green dotted arrows). 3. Page-to-Page: These weights modulate patch-patch similarities to compute query-conditioned similarities between pages (blue dotted arrow), forming a page-level similarity matrix that highlights the shared query-related content. 4. Adaptive-k: The similarity matrix is used to retrieve an adaptive-k set of pages.
3.2 Adaptive Multi-Level Interaction Weighting
Given the uniform contribution of and in Equation 1, we estimate their importance directly from the embedding space. Since cosine similarity measures embedding alignments in a semantically structured space, the MaxSim operator over all captures how strongly the semantic encoded by is realized in . We refer to (Equation 2) as the activation score. Unlike late-interaction (Equation 1), which aggregates the activations over into a single score, we exploit the full activation matrix to identify discriminative query semantics.
3.2.1 Query-to-Page Interaction Weighting
We use to derive weights for vectors and pages to highlight strong and spatially localized semantics. is rescaled by its mean across pages into , and modulated by its normalized inter-page standard deviation , yielding (Equation 4).
Aggregating over pages penalizes ubiquitous semantic content and highlights sparse activations, resulting in a weight for each (Equation 5).
We then compute a page-level semantic co-activation , which is normalized by the mean activation of each across pages, and a weight is obtained for each page by aggregating the mean co-activation of all (Equation 7).
3.2.2 Page-to-Query Interaction Weighting
Min-Max normalization is applied to and , yielding , which modulate the activations and weight the cosine similarity between all and . The MaxSim operator is then applied over all (i.e., patch-to-query direction, reversing standard late-interaction) to capture how strongly the semantic encoded by is realized in the query . We use this weighted maximum similarity as the relevance score of . A weight is obtained for each of a page by centering and thresholding the relevance (Equation 9).
3.2.3 Page-to-Page Interaction Weighting
A Min-Max normalization is applied to , yielding , which modulates the importance of page embeddings and enables a similarity measure between pages. For a source page and target page , the cosine similarity between all and is weighted by the target embedding weights . The MaxSim operator is then applied over all to capture how strongly the semantic encoded by is realized in . The resulting score is then weighted by the source embedding weight to obtain (Equation 10).
Finally, the similarity matrix is computed by averaging the largest interactions of across source embeddings , denoted by , and taking the square root (Equation 11). Since each source embedding independently searches for its best match in the target page (Equation 10), this formulation naturally produces a directional page similarity, where .
3.2.4 Adaptive-k Retrieval
We leverage the structure of to develop an adaptive-k retrieval method that adapts to the query. The self-similarity of a page is used to rank the pages and define a candidate relevant set , containing the highest-scoring pages. The remaining pages constitute the irrelevant set . For each page , we compute its coherence with the relevant set, , and the leakage from the irrelevant set, , as the mean similarity to pages in and , respectively (Equation 12). The scores are also normalized to yield , summing to one, and combined with and in the cost function . The optimal number of pages is obtained by minimizing , requiring the evaluation of at most candidate sets, while an exhaustive search would require evaluating sets.
The parameter controls the leakage penalty. In addition, since the minimum may imply residual leakage from pages in , we evaluate whether corresponds to a sharp transition by accepting only if varies more sharply beyond than before it, indicating a large drop in leakage caused by the transitioning page (Algorithm S1).
3.2.5 Implementation Details
We exploit the natural sparsity induced by ViSAR. Equation 9 produces a subset of inactive pages whose patch weights are all zero, which cannot contribute to the similarity matrix (Equation 11). These pages are excluded from the computation of Equation 10 and the optimization of . Equation 10 is also evaluated block-wise rather than as a dense tensor, reducing peak memory usage. These implementation choices preserve exact mathematical equivalence while avoiding unnecessary computation.
4 Experiments
We evaluate three research questions: (RQ1) Can ViSAR effectively adapt the number of retrieved pages compared with fixed top- late-interaction retrieval, and how does this affect DocVQA accuracy? (RQ2) How does ViSAR's adaptive retrieval strategy impact latency? (RQ3) Can ViSAR's similarity matrix provide insights into answer quality?
4.1 Experimental Setup
All experiments were conducted on an NVIDIA A6000 GPU (48 GB of memory) and run once per configuration. We set in Equation 11 and in Equation 14. Further details on compute resources and sensitivity analyses for both hyperparameters are provided in the supplementary material.
Datasets. MMLongBench [38] and LongDocURL [39] datasets were used, which provide the answer evidence pages for page ranking evaluation. They cover multiple scenarios to evaluate the answer generation, requiring textual and visual reasoning across pages, and efficient retrieval over multi-page documents.
Encoders. We evaluate ViSAR on multi-vector embeddings from three OCR-free visual encoders: ColPali [13], ColQwen2.5 [13], and ColModernVBERT [14]. For broader comparison, we consider ColBERTv2 [20], a multi-vector text encoder operating on OCR-extracted text, and VisRAG-Ret [3], a single-vector visual encoder.
Retrieval Baselines. Multi-vector embeddings use late-interaction with fixed top-, whereas single-vector embeddings use cosine similarity with fixed top- [3]. We also adapt two adaptive- heuristic methods originally proposed for late-interaction text retrieval to visual retrieval: a Largest-Gap criterion [19] and a Score-Cluster approach [32].
Oracle. Using the late-interaction ranking, the Oracle adapts the number of retrieved pages by selecting the smallest top- that contains all evidence pages. It provides an upper bound on adaptive- under a standard and fixed ranking, which may include irrelevant pages.
ViSAR Evaluation. We examine the effectiveness of ViSAR's adaptive behaviour by reporting retrieval statistics, Precision, Recall, and F1-scores at rank , and comparing ViSAR with Oracle, Largest-Gap, and Score-Cluster adaptive methods. We evaluate ViSAR's ranking quality against late-interaction ranking using Recall and normalized discounted cumulative gain (NDCG) at ranks 5 and 10. We then assess the impact of adaptive retrieval on answer generation using Qwen2.5-VL-7B-Instruct (greedy decoding) as the primary model, plus additional generation models with default configurations. All methods are evaluated under a maximum budget of Max- pages, i.e, top- = Max- for fixed top- retrieval. We report the answer accuracy, leveraging LLM-as-a-judge evaluation [40, 41], with Qwen2.5-14B-Instruct LLM [42] as the evaluator. It receives the query, the reference answer and the generated answer, and predicts a binary correctness label based on semantic equivalence, using few-shot examples and a constrained structured output. We then analyse how ViSAR latency scales with document size, and compare its retrieval and generation costs with fixed top-, Largest-Gap, and Score-Cluster. Finally, we provide an ablation study to assess the contribution of ViSAR's components.
4.2 Experimental Results
Preliminary experiments revealed numerical instabilities using ColModernVBERT on a few LongDocURL pages (7.31% of queries). Careful investigation confirmed that the issue occurred during encoding, independently of ViSAR. These samples were excluded from evaluation.
4.2.1 Adaptive Retrieval
Table 1 reports mean, median, Recall@, Precision@, and F1@ across encoders for ViSAR, Oracle, Largest-Gap and Score-Cluster methods. The mean of Oracle shows that retrieving all evidence pages often requires significantly more pages than the number of evidence pages, while its lower median indicates that compact retrieval is sufficient for many queries. This reflects the known limitations of late-interaction ranking [14, 43], which may struggle to capture all relevant pages for complex queries, requiring the retrieval of intermediate irrelevant pages that may lead to unnecessarily large contexts. Adaptive retrieval methods exhibit a similar pattern to Oracle but explicitly balance Recall and Precision, with ViSAR retrieving fewer pages than Oracle on average while Largest-Gap and Score-Cluster retrieve more.
Figure 3-a further characterises this behaviour as a function of . ViSAR closely follows Oracle at low and retrieves fewer pages as increases, limiting the inclusion of irrelevant pages that accumulate in complex queries. In contrast, Largest-Gap and Score-Cluster over-retrieve across most , consistent with their higher mean (Table 1). Consequently, ViSAR tends to favour precision, while Largest-Gap and Score-Cluster tend to favour recall.
Table 1: Adaptive- retrieval: means (), medians (), Recall@ (R@), Precision@ (P@), and F1@. Oracle retrieves substantially more pages than the number of evidence pages, reflecting the known limitations [14, 43] of late-interaction ranking. Adaptive methods balance Recall and Precision by adjusting the number of retrieved pages, with ViSAR favouring more compact retrieved sets on average, avoiding unnecessarily large retrieval sets. Full distributions in Figure S1–S2
| Encoder | Retrieval | MMLongBench | LongDocURL | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| md | R@ | P@ | F1@ | md | R@ | P@ | F1@ | ||||
| ColQwen2.5 | Oracle | 8.3 | 2 | 100.0 | 67.30 | 80.45 | 10.7 | 3 | 100.0 | 61.07 | 75.83 |
| Score-Cluster | 18.6 | 8 | 85.57 | 29.51 | 43.89 | 36.6 | 20 | 89.49 | 18.85 | 31.14 | |
| Largest-Gap | 15.4 | 2 | 81.12 | 45.13 | 58.00 | 28.7 | 3 | 82.09 | 45.15 | 58.26 | |
| ViSAR (ours) | 4.7 | 3 | 75.16 | 50.37 | 60.32 | 7.9 | 5 | 81.24 | 38.41 | 52.16 | |
| ColPali | Oracle | 8.8 | 2 | 100.0 | 62.16 | 76.67 | 12.4 | 3 | 100.0 | 57.70 | 73.18 |
| Score-Cluster | 18.7 | 8 | 82.64 | 26.12 | 39.70 | 35.8 | 18 | 87.56 | 19.15 | 31.43 | |
| Largest-Gap | 16.2 | 3 | 79.16 | 41.94 | 54.83 | 24.7 | 2 | 79.37 | 46.79 | 58.87 | |
| ViSAR (ours) | 5.3 | 3 | 73.57 | 46.11 | 56.69 | 8.1 | 6 | 80.16 | 34.38 | 48.12 | |
| ColModern VBERT | Oracle | 10.5 | 2 | 100.0 | 58.87 | 74.11 | 13.0 | 3 | 100.0 | 53.35 | 69.58 |
| Score-Cluster | 23.0 | 12 | 84.28 | 23.59 | 36.86 | 47.4 | 44 | 87.90 | 15.61 | 26.51 | |
| Largest-Gap | 20.0 | 4 | 80.57 | 36.81 | 50.53 | 39.3 | 4 | 83.57 | 34.94 | 49.28 | |
| ViSAR (ours) | 7.5 | 4 | 74.07 | 34.43 | 46.99 | 13.5 | 11 | 83.99 | 17.47 | 28.92 | |
| evidence pages | 1.9 | 1 | - | - | - | 1.9 | 2 | - | - | - | |

Figure 3: Adaptive- retrieval as a function of , using ColQwen2.5 on MMLongBench (consistent trends across encoders and datasets in Figures S3–S4). (a): mean difference . ViSAR closely follows Oracle at low and retrieves fewer pages as increases, limiting irrelevant pages retrieval. Largest-Gap and Score-Cluster over-retrieve across most . (b): F1-score with the corresponding percentage of queries. ViSAR achieves higher F1, especially at lower .
Table 2: Page ranking evaluation, comparing ViSAR and late-interaction at ranks 5 and 10 on MMLongBench (similar trends for LongDocURL in Table S1). ViSAR consistently improves page ranking, providing stronger support for its adaptive- retrieval mechanism.
| Ranking Method | Recall | NDCG | ||
|---|---|---|---|---|
| @5 | @10 | @5 | @10 | |
| Using Colpali | ||||
| Late-Interaction | 75.00 | 84.49 | 0.730 | 0.746 |
| ViSAR (ours) | 76.36 | 86.68 | 0.734 | 0.756 |
| Using ColQwen2.5 | ||||
| Late-Interaction | 78.60 | 86.82 | 0.780 | 0.793 |
| ViSAR (ours) | 79.73 | 87.73 | 0.790 | 0.799 |
| Using ColModernVBERT | ||||
| Late-Interaction | 72.79 | 83.14 | 0.704 | 0.723 |
| ViSAR (ours) | 73.66 | 83.56 | 0.709 | 0.725 |
Accordingly, dataset-level F1-scores (Table 1) show that ViSAR performs best on MMLongBench, while Largest-Gap performs best on LongDocURL. However, this aggregate metric depends on the query distribution over . When analysed across , ViSAR achieves higher F1-scores on MMLongBench (Figure 3-b), particularly for lower where most queries are located. On LongDocURL (Figure S3-a), ViSAR outperforms Largest-Gap for most , except , suggesting that Largest-Gap is mostly effective for single-page queries, which constitute the majority of queries. This contributes to its higher dataset-level F1-score, whereas ViSAR provides a more consistent adaptive retrieval across query complexities. Overall (Figure 3-b, Figure S3), ColQwen2.5 shows the best results, followed by ColPali, while ColModernVBERT exhibits a weaker trend.
Table 2 confirms this trend, showing that ViSAR's adaptive behaviour is grounded in improved ranking, outperforming late-interaction ranking across Recall and NDCG at ranks 5 and 10, indicating that its weighting mechanism better aligns page scoring to the query. Yet, ColModernVBERT shows more modest improvements, consistent with its smaller size (250M vs. 3B parameters), which likely limits its ability to separate semantics, resulting in less compact sets (Table 1) and lower ranking performance overall.
4.2.2 Answer Accuracy
Table 3 compares ViSAR with literature baselines, where Qwen2.5-VL-7B-Instruct LVLM and Qwen2.5-7B-Instruct LLM are used, respectively, as generation models for visual retrieval methods and text-based retrieval method (ColBERTv2, OCR-extracted text using Tesseract [44]). Max- denotes an input budget of at most pages, where fixed top- methods always use the full budget while adaptive methods only do so when required. All adaptive methods outperform fixed top- retrieval, with ViSAR achieving competitive or superior accuracy across all settings. Notably, Largest-Gap and Score-Cluster also improve over fixed top- despite their simplicity, indicating the inherent benefit of adaptive- retrieval.
Table 4 shows that ViSAR generalizes across encoders, maintaining or improving accuracy over late-interaction fixed top- (McNemar's test, ): ColQwen2.5 and ColPali show a general trend toward improvement, with significance on LongDocURL. ColModernVBERT shows a non-significant trend toward fixed top-, consistent with its weaker retrieval performance (Table 1 and Table 2). Supplementary Tables S3–S7 confirm this trend using additional generation models: Across 60 configurations ( encoders 5 LVLMs 2 Max- budgets 2 datasets), ViSAR improves accuracy in 24 cases and maintains in the remaining 36. The largest improvements are observed for LVLMs more sensitive to longer contexts (Tables S6–S7), consistent with ViSAR reducing both retrieved and irrelevant pages (Table 1).
4.2.3 RAG Latency
The reduction in context size enabled by adaptive retrieval lowers LVLM processing cost. While fixed top- retrieval always maximises the LVLM input budget, ViSAR dynamically adjusts the number of pages and only uses the full budget when required. Figure 4 reports retrieval, generation, and end-to-end (retrieval + generation) latencies, showing that ViSAR introduces a retrieval overhead that contributes only marginally, achieving a substantial reduction in generation latency that dominates the total cost. This result in an end-to-end latency reductions of up to 58.7% on MMLongBench and 38.5% on LongDocURL at a Max-10 LVLM budget. Table S8
Table 3: Answer generation accuracy against literature baselines. Qwen2.5-VL-7B-Instruct is used as the generation model for all visual methods, while ColBERTv2 operates on OCR-extracted text (Tesseract [44]) with Qwen2.5-7B-Instruct. Max- denotes an input budget of at most pages. Bold indicates highest results, with confidence intervals and Adaptive- using other encoders in Table S2. ViSAR achieves competitive or superior accuracy across settings.
| Retrieval Method | MMLongBench | LongDocURL | ||
|---|---|---|---|---|
| Max-5 | Max-10 | Max-5 | Max-10 | |
| Fixed top- | ||||
| ColBERTv2 | 24.51 | 24.70 | 47.18 | 47.70 |
| M3DocRAG | 34.86 | 35.08 | 59.31 | 58.71 |
| VisRAG-Ret | 34.48 | 35.69 | 57.29 | 58.02 |
| Adaptive- (using ColQwen2.5) | ||||
| Largest-Gap | 35.79 | 35.88 | 61.01 | 60.89 |
| Score-Cluster | 36.25 | 35.97 | 60.00 | 59.83 |
| ViSAR (ours) | 36.53 | 36.63 | 61.06 | 60.97 |
Table 4: Answer generation accuracy across encoders. Qwen2.5-VL-7B-Instruct is used as the generation model. Max- denotes an input budget of at most pages. Bold indicates statistically significant differences according to McNemar's test (). ViSAR consistently maintains or improves accuracy, with no significant decreases observed, while retrieving fewer pages on average.
| Retrieval Method | MMLongBench | LongDocURL | ||
|---|---|---|---|---|
| Max-5 | Max-10 | Max-5 | Max-10 | |
| Using ColQwen2.5 | ||||
| Fixed top- | 35.04 | 35.69 | 59.79 | 59.27 |
| ViSAR (ours) | 36.53 | 36.63 | 61.06 | 60.97 |
| Using ColPali | ||||
| Fixed top- | 34.86 | 35.08 | 59.31 | 58.71 |
| ViSAR (ours) | 35.42 | 35.88 | 60.77 | 60.13 |
| Using ColModernVBERT | ||||
| Fixed top- | 34.75 | 34.95 | 58.42 | 58.84 |
| ViSAR (ours) | 34.01 | 34.28 | 58.28 | 58.33 |
further compares ViSAR with Largest-Gap and Score-Cluster, showing that both methods also reduce RAG latency on average. However, Score-Cluster remains consistently slower than ViSAR, while Largest-Gap only provides a noticeable advantage on LongDocURL, with gains of up to 47.2% over fixed top- at Max-10 budget.
Although ViSAR's overhead increases with document size (Figure 4), it only becomes noticeable for the largest MMLongBench document (468 pages, Figure S10). In such cases, the supplementary material presents strategies that approximate the similarity matrix to preserve latency gains.
4.2.4 Similarity Structure Reflects Accuracy
ViSAR's query-conditioned similarity matrix provides an explicit representation of how query-relevant information is distributed across a document. Figure 5 illustrates representative examples and shows that when query semantics are localised, is sparse and produces a sharp minimum in , enabling a reliable retrieval boundary (Figure 5-a). Conversely, when query semantics are distributed across many pages, becomes denser, yielding a shallow minimum and a less reliable stopping decision (Figure 5-b).
Figure 5-c confirms this trend, showing that higher similarity matrix sparsity consistently correlates with higher answer accuracy across encoders on MMLongBench (similar trend on LongDocURL in Figure S14 and Table S9). While is designed to maximise coherence and minimise leakage within this structure, these results provide post-hoc validation that its components capture semantically meaningful retrieval properties. This suggests that analysing the structure in is a promising direction for understanding the conditions of retrieval success

Figure 4: Average RAG latency comparing ViSAR and fixed top-k (shaded: std). Although ViSAR introduces a retrieval overhead that grows with document size, it reduces generation latency by limiting LVLM input context. The net effect is an end-to-end latency reduction of up to 58.7% at k = 10. The retrieval overhead becomes significant only for the longest MMLongBench document (468 pages, Figure S10). For such extreme cases, computational approximations of the similarity matrix are provided in the supplementary material to preserve latency gains.

Figure 5: Similarity matrix structure and answer accuracy on MMLongBench. (a, b): Query-conditioned page-level similarity matrices (zero values in black) and the corresponding retrieval cost function , with and marked. (a): A sparse matrix allows the query semantics to be effectively localized, which produces a sharp minimum in , enabling accurate adaptive retrieval and correct answer generation. (b): A dense matrix yields a shallow minimum, causing over-retrieval and incorrect answer generation. (c): Answer accuracy as a function of the percentage of inactive entries in the similarity matrix, showing that higher sparsity consistently correlates with higher accuracy across encoders.
and failure, potentially enabling the conception of a label-free feedback signal for future retrieval strategies, such as iterative query refinement or evidence selection, without additional models or training.
4.2.5 Ablation Studies
We evaluate simplified variants by disabling the query embedding weights , page weights , patch embedding weights , and by replacing the optimization objective with fixed top-k, Largest-Gap, and Score-Cluster retrieval. Table S10 shows that each modification degrades retrieval quality and downstream answer accuracy, indicating that both the weighting strategy and the optimization objective contribute to ViSAR's performance.
5 Conclusion
We introduced ViSAR, a training-free visual embedding weighting mechanism enabling adaptive-k retrieval for document visual question answering. It operates in the embedding space of late-interaction encoders to construct a query-conditioned page-level similarity matrix that drives compact and adaptive page selection, reducing RAG latency by up to 58.7% while maintaining or improving answer accuracy. We further showed that the structure of the similarity matrix reflects the localization of query-relevant information and correlates with answer accuracy, suggesting that it may provide a useful feedback signal for future retrieval strategies.
6 Supporting Information
Figure S1–S14 and Table S1–S10 are available in the supplementary material pdf.
References
[1] Jaemin Cho, Debanjan Mahata, Ozan Irsoy, Yujie He, and Mohit Bansal. M3docrag: Multi-modal retrieval is what you need for multi-page multi-document understanding. arXiv preprint arXiv:2411.04952, 2024.
[2] Siwei Han, Peng Xia, Ruiyi Zhang, Tong Sun, Yun Li, Hongtu Zhu, and Huaxiu Yao. Mdocagent: A multi-modal multi-agent framework for document understanding. arXiv preprint arXiv:2503.13964, 2025.
[3] Shi Yu, Chaoyue Tang, Bokai Xu, Junbo Cui, Junhao Ran, Yukun Yan, Zhenghao Liu, Shuo Wang, Xu Han, Zhiyuan Liu, et al. Visrag: Vision-based retrieval-augmented generation on multi-modality documents. In International Conference on Learning Representations, volume 2025, pages 21074–21098, 2025.
[4] Rubèn Tito, Dimosthenis Karatzas, and Ernest Valveny. Hierarchical multimodal transformers for multipage docvqa. Pattern Recognition, 144:109834, 2023.
[5] Gilles Baechler, Srinivas Sunkara, Maria Wang, Fedir Zubach, Hassan Mansoor, Vincent Etter, Victor Cärbune, Jason Lin, Jindong Chen, and Abhanshu Sharma. Screenai: A vision-language model for ui and infographics understanding. arXiv preprint arXiv:2402.04615, 2024.
[6] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.
[7] Zhe Chen, Weiyun Wang, Hao Tian, Shenglong Ye, Zhangwei Gao, Erfei Cui, Wenwen Tong, Kongzhi Hu, Jiapeng Luo, Zheng Ma, et al. How far are we to gpt-4v? closing the gap to commercial multimodal models with open-source suites. Science China Information Sciences, 67(12):220101, 2024.
[8] Camille Barboule, Benjamin Piwowarski, and Yoan Chabot. Survey on question answering over visually rich documents: Methods, challenges, and trends. arXiv preprint arXiv:2501.02235, 2025.
[9] Minesh Mathew, Dimosthenis Karatzas, and CV Jawahar. Docvqa: A dataset for vqa on document images. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 2200–2209, 2021.
[10] Ahmed Masry, Xuan Long Do, Jia Qing Tan, Shafiq Joty, and Enamul Hoque. Chartqa: A benchmark for question answering about charts with visual and logical reasoning. In Findings of the association for computational linguistics: ACL 2022, pages 2263–2279, 2022.
[11] Minesh Mathew, Viraj Bagal, Rubèn Tito, Dimosthenis Karatzas, Ernest Valveny, and CV Jawahar. Infographicvqa. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 1697–1706, 2022.
[12] Omar Khattab and Matei Zaharia. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval, pages 39–48, 2020.
[13] Manuel Faysse, Hugues Sibille, Tony Wu, Bilel Omrani, Gautier Viaud, Céline Hudelot, and Pierre Colombo. Colpali: Efficient document retrieval with vision language models. In International Conference on Learning Representations, volume 2025, pages 61424–61449, 2025.
[14] Paul Teiletche, Quentin Macé, Max Conti, Antonio Loison, Gautier Viaud, Pierre Colombo, and Manuel Faysse. Modernvbert: Towards smaller visual document retrievers. arXiv preprint arXiv:2510.01149, 2025.
[15] Xiao Wang, Craig Macdonald, Nicola Tonellotto, and Iadh Ounis. Pseudo-relevance feedback for multiple representation dense retrieval. In Proceedings of the 2021 ACM SIGIR International Conference on Theory of Information Retrieval, pages 297–306, 2021.
[16] Karan Samel, Cheng Li, Weize Kong, Tao Chen, Mingyang Zhang, Shaleen Gupta, Swaraj Khadanga, Wensong Xu, Xingyu Wang, Kashyap Kolipaka, et al. End-to-end query term weighting. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4778–4786, 2023.
[17] S Archish, Ankit Garg, Kirankumar Shiragur, and Neeraj Kayal. Incorporating token importance in multi-vector retrieval. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 32860–32866, 2026.
[18] Minghan Li, Sheng-Chieh Lin, Xueguang Ma, and Jimmy Lin. Slim: Sparsified late interaction for multi-vector retrieval with inverted indexes. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1954–1959, 2023.
[19] Chihiro Taguchi, Seiji Maekawa, and Nikita Bhutani. Efficient context selection for long-context qa: No tuning, no iteration, just adaptive-k. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 20116–20141, 2025.
[20] Keshav Santhanam, Omar Khattab, Jon Saad-Falcon, Christopher Potts, and Matei Zaharia. Colbertv2: Effective and efficient retrieval via lightweight late interaction. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3715–3734, 2022.
[21] Keshav Santhanam, Omar Khattab, Christopher Potts, and Matei Zaharia. Plaid: an efficient engine for late interaction retrieval. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, pages 1747–1756, 2022.
[22] Thibault Formal, Carlos Lassance, Benjamin Piwowarski, and Stéphane Clinchant. Splade v2: Sparse lexical and expansion model for information retrieval. arXiv preprint arXiv:2109.10086, 2021.
[23] Zhuyun Dai and Jamie Callan. Context-aware sentence/passage term importance estimation for first stage retrieval. arXiv preprint arXiv:1910.10687, 2019.
[24] Rodrigo Kataishi. Enhancing retrieval-augmented generation with topic-enriched embeddings: A hybrid approach integrating traditional nlp techniques. arXiv preprint arXiv:2601.00891, 2025.
[25] Xiao Wang, Craig Macdonald, Nicola Tonellotto, and Iadh Ounis. Colbert-prf: Semantic pseudo-relevance feedback for dense passage and document retrieval. ACM Transactions on the Web, 17(1):1–39, 2023.
[26] António Loison, Quentin Macé, Antoine Edy, Victor Xing, Tom Balough, Gabriel Moreira, Bo Liu, Manuel Faysse, Céline Hudelot, and Gautier Viaud. Vidore v3: A comprehensive evaluation of retrieval augmented generation in complex real-world scenarios. arXiv preprint arXiv:2601.08620, 2026.
[27] S Yao, J Zhao, D Yu, N Du, I Shafran, KR Narasimhan, and Y Cao. React: Synergizing reasoning and acting in language models. in the eleventh international conference on learning representations, 2023.
[28] Akari Asai, Zeqiu Wu, Yizhong Wang, Avi Sil, and Hannaneh Hajishirzi. Self-rag: Learning to retrieve, generate, and critique through self-reflection. In International conference on learning representations, volume 2024, pages 9112–9141, 2024.
[29] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, and Jong C Park. Adaptive-rag: Learning to adapt retrieval-augmented large language models through question complexity. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7036–7050, 2024.
[30] Chelsi Jain, Yiran Wu, Yifan Zeng, Jiale Liu, Shengyu Dai, Zhenwen Shao, Qingyun Wu, and Huazheng Wang. Simpledoc: Multi-modal document understanding with dual-cue page retrieval and iterative refinement. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 28398–28415, 2025.
[31] Junda Wu, Yu Xia, Tong Yu, Xiang Chen, Sai Sree Harsha, Akash V Maharaj, Ruiyi Zhang, Victor Bursztyn, Sungchul Kim, Ryan A Rossi, et al. Doc-react: Multi-page heterogeneous document question-answering. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 67–78, 2025.
[32] Yifan Xu, Vipul Gupta, Rohit Aggarwal, Varsha Mahadevan, and Bhaskar Krishnamachari. Cluster-based adaptive retrieval: Dynamic context selection for rag applications. arXiv preprint arXiv:2511.14769, 2025.
[33] Zongmin Li, Yachuan Li, Lei Kang, Dimosthenis Karatzas, and Wenkang Ma. Avir: Adaptive visual in-document retrieval for efficient multi-page document question answering. In Proceedings of the 7th ACM International Conference on Multimedia in Asia, pages 1–7, 2025.
[34] Xu Zheng, Ziqiao Weng, Yuanhuiyi Lyu, Lutao Jiang, Haiwei Xue, Bin Ren, Danda Paudel, Nicu Sebe, Luc Van Gool, and Xuming Hu. Retrieval augmented generation and understanding in vision: A survey and new outlook. arXiv preprint arXiv:2503.18016, 2025.
[35] Ryota Tanaka, Taichi Iki, Taku Hasegawa, Kyosuke Nishida, Kuniko Saito, and Jun Suzuki. Vdocrag: Retrieval-augmented generation over visually-rich documents. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24827–24837, 2025.
[36] Manan Suri, Puneet Mathur, Franck Dernoncourt, Kanika Goswami, Ryan A Rossi, and Dinesh Manocha. Visdom: Multi-document qa with visually rich elements using multimodal retrieval-augmented generation. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 6088–6109, 2025.
[37] Ziyu Gong, Chengcheng Mai, and Yihua Huang. Mhier-rag: Multi-modal rag for visual-rich document question-answering via hierarchical and multi-granularity reasoning. arXiv preprint arXiv:2508.00579, 2025.
[38] Yubo Ma, Yuhang Zang, Liangyu Chen, Meiqi Chen, Yizhu Jiao, Xinze Li, Xinyuan Lu, Ziyu Liu, Yan Ma, Xiaoyi Dong, et al. Mmlongbench-doc: Benchmarking long-context document understanding with visualizations. Advances in Neural Information Processing Systems, 37:95963–96010, 2024.
[39] Chao Deng, Jiale Yuan, Pi Bu, Peijie Wang, Zhong-Zhi Li, Jian Xu, Xiao-Hui Li, Yuan Gao, Jun Song, Bo Zheng, et al. Longdocurl: a comprehensive multimodal long document benchmark integrating understanding, reasoning, and locating. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1135–1159, 2025.
[40] Jiawei Gu, Xuhui Jiang, Zhichao Shi, Hexiang Tan, Xuehao Zhai, Chengjin Xu, Wei Li, Yinghan Shen, Shengjie Ma, Honghao Liu, et al. A survey on llm-as-a-judge, 2025. URL https://arxiv.org/abs/2411.15594, 2(8), 2024.
[41] Michael Krumdick, Charles Lovering, Varshini Reddy, Seth Ebner, and Chris Tanner. No free labels: Limitations of llm-as-a-judge without human grounding. arXiv preprint arXiv:2503.05061, 2025.
[42] Qwen, :, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, et al. Qwen2.5 technical report, 2025.
[43] Qi Liu, Gang Guo, Jiaxin Mao, Zhicheng Dou, Ji-Rong Wen, Hao Jiang, Xinyu Zhang, and Zhao Cao. An analysis on matching mechanisms and token pruning for late-interaction models. ACM Transactions on Information Systems, 42(5):1–28, 2024.
[44] Ray Smith. An overview of the tesseract ocr engine. In Ninth international conference on document analysis and recognition (ICDAR 2007), volume 2, pages 629–633. IEEE, 2007.