ViSAR: Training-Free Adaptive-$k$ Retrieval for Visual Document Question Answering
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
ViSAR: Training-Free Adaptive-k Retrieval for Visual Document Question Answering
arXiv:2609.02486v1 [cs.IR] 2 Sep 2026
Adrien Mialland INSA Lyon, CNRS, LIRIS UMR 5205, F-69621 Villeurbanne, France mialland.a@gmail.com Marc Plantevit EPITA Research Laboratory (LRE), FR-94276, Le Kremlin-Bicêtre, France marc.plantevit@epita.fr Julien Gallois Lowit, FR-69003 Lyon, France julien.gallois@lowit.fr Céline Robardet INSA Lyon, CNRS, LIRIS UMR 5205, F-69621 Villeurbanne, France celine.robardet@insa-lyon.fr
Abstract Document Visual Question Answering (DocVQA) often leverages RetrievalAugmented 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-k 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-k 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-k 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
Applied to each page individually Cannot adapt the selection to the query
Late-Interaction: Page p
S 𝑁
⋯
∑
𝑞2 𝑞1
Fixed top-k retrieval
𝑃
⋯
𝑞m
S 2 𝑃
generation wrong answer increased latency
S 1 𝑃
MaxSim
𝑞1 𝑞2 𝑞m ⋯
a
b Query-conditionned
Query semantic localisation Adaptive-k retrieval
Sim(p, p')
⋯
Page p
𝑃1
𝑃2
1.0
0 6
0.50 12
𝑃𝑁 18
Page-level similarity matrix
0
6
12
Page p'
18
0.0
generation correct answer reduced latency
no encoder training - operates in the embeddings space
Figure 1: Document page retrieval mechanisms. (a) Late-interaction fixed top-k. (b) The proposed ViSAR adaptive-k method. While late-interaction enables fine-grained query-page matching using multi-vector representations, it relies on a fixed top-k 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-k 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-k 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-k 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-k 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:
2
• ViSAR: A training-free adaptive-k 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-k retrieval on average and reduces RAG latency by up to 58.7%, while maintaining or improving answer accuracy across multiple encoders and LVLMs.
2
Related Work
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-k retrieval, leaving the semantic organisation of pages unexplored. ViSAR instead exploits this structure to enable adaptive-k retrieval.
2.2
Adaptive-k Retrieval.
Adaptive retrieval has mainly been explored via iterative approaches, where LLMs or LVLMs reason over multiple rounds of fixed top-k retrieval, making k vary implicitly across iterations [27–31]. However, adaptive-k 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-k 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-k 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 D as a set of pages D = {P 1 , . . . , P N }. Each page P p and query Q are denoted as np P p = {vjp }j=1 and Q = {qi }m i=1 , their respective sets of multi-vector representations in a common embedding D space R , such that P p ∈ Rnp ×D and Q ∈ Rm×D . The relevance score of P p to Q is estimated via lateinteraction between their sets of embeddings (Equation 1), summing each qi maximum similarity over all vjp , where sim(·, ·) = ⟨·, ·⟩ defines the cosine similarity between two embeddings. SQ,P p =
m X i=1
max
j∈{1,...,np }
3
sim qi , vjp
(1)
1
2
𝑞m
⋯
⋯
𝑞2
𝑞1
p
𝑤1 𝑃1
∑
Page p
𝒘p 𝑷
⋯ 𝑤𝑁 𝑃𝑁
Ap,m MaxSim
Ap,2 Ap,1
𝑤i 𝑞2
𝒘𝟏 𝒒𝟏
MaxSim
Query-to-Page interaction matrix
⋯ 𝒘𝐦 𝒒𝐦
Page-to-Query interaction matrix 3
𝑃2
⋯
𝒑
𝒑
𝑤n𝑝 𝑣n𝑝
𝑝′ 𝑝′
⋯
𝑝 𝑝
𝑤1 𝑣1
𝑃1
⋯
4
𝒘𝐧 𝒗𝐧
𝒘j 𝒗j
MaxSim
𝒌∗ = 𝟐
𝑃𝑁
𝒑′ 𝒑′
𝒘𝟏 𝒗𝟏
Efficient Adaptive-k page retrieval
𝑤j' 𝑣j'
𝒑′ 𝒑′
Page-to-Page interaction matrix
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 adaptivek set of pages. 3.2
Adaptive Multi-Level Interaction Weighting
Given the uniform contribution of qi and vjp 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 vjp captures how strongly the semantic encoded by qi is realized in P p . We refer to Ap,i (Equation 2) as the activation score. Unlike late-interaction (Equation 1), which aggregates the activations over qi into a single score, we exploit the full activation matrix to identify discriminative query semantics. Ap,i = max sim qi , vjp = max ⟨qi , vjp ⟩ (2) j∈{1,...,np }
3.2.1
j∈{1,...,np }
Query-to-Page Interaction Weighting
We use Ap,i to derive weights for vectors qi and pages P p to highlight strong and spatially localized semantics. Ap,i is rescaled by its mean across pages into Âp,i , and modulated by its normalized inter-page standard deviation σ̂i , yielding Ãp,i (Equation 4). Âp,i =
Ap,i meanp (Ap,i )
σ̂i =
stdp (Ap,i ) meani′ (stdp (Ap,i′ ))
Ãp,i = Âp,i · σ̂i
(3) (4)
Aggregating Ãp,i over pages penalizes ubiquitous semantic content and highlights sparse activations, resulting in a weight wi for each qi (Equation 5). X N wi = log , with ai = Ãp,i (5) 1 + ai p p We then compute a page-level semantic co-activation Ci,i ′ , which is normalized by the mean activation of each qi across pages, and a weight wp is obtained for each page by aggregating the mean co-activation of all qi (Equation 7). p Ci,i Āi = meanp Ãp,i (6) ′ = Ãp,i · Ãp,i′
4
wp =
m X
meani′
i=1
3.2.2
Cp ′ i,i
(7)
Āi · Āi′
Page-to-Query Interaction Weighting
Min-Max normalization is applied to wi and wp , yielding ŵi , ŵp ∈ [0, 1], which modulate the activations Ãp,i and weight the cosine similarity between all qi and vjp . The MaxSim operator is then applied over all qi (i.e., patch-to-query direction, reversing standard late-interaction) to capture how strongly the semantic encoded by vjp is realized in the query Q. We use this weighted maximum similarity as the relevance score rjp of vjp . A weight wjp is obtained for each vjp of a page P p by centering and thresholding the relevance rjp (Equation 9). h 2 i rjp = max ⟨vjp , qi ⟩ · Ãp,i · ŵi · ŵp (8) i∈{1,...,m}
wjp = max 0, rjp − meanp,j rjp
3.2.3
(9)
Page-to-Page Interaction Weighting
A Min-Max normalization is applied to wjp , yielding ŵjp ∈ [0, 1], which modulates the importance of page ′
embeddings and enables a similarity measure between pages. For a source page P p and target page P p , the ′ ′ cosine similarity between all vjp and vjp′ is weighted by the target embedding weights ŵjp′ . The MaxSim operator ′ p′ p is then applied over all vj ′ to capture how strongly the semantic encoded by vj is realized in P p . The resulting ′
score is then weighted by the source embedding weight ŵjp to obtain Sjp→p (Equation 10). h i ′ ′ ′ Sjp→p = ŵjp · max ⟨vjp , vjp′ ⟩ · ŵjp′ ′ j
(10)
Finally, the similarity matrix Sim(p, p′ ) ∈ RN ×N is computed by averaging the T largest interactions of ′ Sjp→p across source embeddings vjp , denoted by T ⊂ {1, . . . , np }, 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 Sim(p, p′ ) ̸= Sim(p′ , p). s 1 X p→p′ ′ Sim(p, p ) = S (11) T j∈T j
3.2.4
Adaptive-k Retrieval
We leverage the structure of Sim(p, p′ ) to develop an adaptive-k retrieval method that adapts to the query. The self-similarity sp = Sim(p, p) of a page is used to rank the pages and define a candidate relevant set Rk , containing the k highest-scoring pages. The remaining N − k pages constitute the irrelevant set Ik . For each page p ∈ Rk , we compute its coherence with the relevant set, cpk , and the leakage from the irrelevant set, lkp , as the mean similarity to pages in Rk and Ik , respectively (Equation 12). The scores sp are also normalized to yield wsp summing to one, and combined with cpk and lkp in the cost function J (k). The optimal number of pages k⋆ is obtained by minimizing J (k), requiring the evaluation of at most N candidate sets, while an exhaustive search would require evaluating 2N sets. (12) cpk = meanp′ ∈Rk Sim(p, p′ ) lkp = meanp′ ∈Ik Sim(p, p′ ) (13) X p p J (k) = wsp ck − γ lk (14) p∈Rk
The parameter γ > 0 controls the leakage penalty. In addition, since the minimum J (k⋆ ) may imply residual leakage from pages in Ik⋆ , we evaluate whether k⋆ corresponds to a sharp transition by accepting Rk⋆ +1 only if J varies more sharply beyond k⋆ 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 J (k). 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.
5
4
Experiments
We evaluate three research questions: (RQ1) Can ViSAR effectively adapt the number of retrieved pages compared with fixed top-k 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 T = 50 in Equation 11 and γ = 105 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-k, whereas single-vector embeddings use cosine similarity with fixed top-k [3]. We also adapt two adaptive-k 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-k that contains all evidence pages. It provides an upper bound on adaptive-k 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 k⋆ , 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-k pages, i.e, top-k = Max-k for fixed top-k 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-k, 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@k⋆ , Precision@k⋆ , and F1@k⋆ 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 kOracle . ViSAR closely follows Oracle at low kOracle and retrieves fewer pages as kOracle increases, limiting the inclusion of irrelevant pages that accumulate in complex queries. In contrast, Largest-Gap and Score-Cluster over-retrieve across most kOracle , consistent with their higher mean k⋆ (Table 1). Consequently, ViSAR tends to favour precision, while Largest-Gap and Score-Cluster tend to favour recall.
6
Table 1: Adaptive-k retrieval: means (m), medians (md), Recall@k ⋆ (R@k ⋆ ), Precision@k ⋆ (P@k ⋆ ), and F1@k ⋆ . 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 MMLongBench Encoder
Retrieval
LongDocURL
m md R@k ⋆ P@k ⋆ F1@k ⋆ m md R@k ⋆ P@k ⋆ F1@k ⋆
ColQwen2.5 Oracle 8.3 Score-Cluster 18.6 Largest-Gap 15.4 ViSAR (ours) 4.7
2 8 2 3
100.0 85.57 81.12 75.16
67.30 29.51 45.13 50.37
80.45 10.7 3 43.89 36.6 20 58.00 28.7 3 60.32 7.9 5
100.0 89.49 82.09 81.24
61.07 18.85 45.15 38.41
75.83 31.14 58.26 52.16
ColPali
Oracle 8.8 Score-Cluster 18.7 Largest-Gap 16.2 ViSAR (ours) 5.3
2 8 3 3
100.0 82.64 79.16 73.57
62.16 26.12 41.94 46.11
76.67 12.4 3 39.70 35.8 18 54.83 24.7 2 56.69 8.1 6
100.0 87.56 79.37 80.16
57.70 19.15 46.79 34.38
73.18 31.43 58.87 48.12
ColModern Oracle 10.5 VBERT Score-Cluster 23.0 Largest-Gap 20.0 ViSAR (ours) 7.5
2 12 4 4
100.0 84.28 80.57 74.07
58.87 23.59 36.81 34.43
74.11 36.86 50.53 46.99
13.0 47.4 39.3 13.5
3 44 4 11
100.0 87.90 83.57 83.99
53.35 15.61 34.94 17.47
69.58 26.51 49.28 28.92
evidence pages
1
–
–
–
1.9
2
–
–
–
1.9
(a)
20
Mean(k − kOracle)
10 0 -10 -20 -30 -40 -50 -60
F1-score
0.8
1.0
Oracle ViSAR Largest-Gap Score-Cluster Query distribution
0.8
0.6
0.6
0.4
0.4
0.2
0.2
0.0
12 3 4 5 6 7 8 9 10 11-15
16-20
kOracle
21-25
26-35
36+
% of Queries
(b)
1.0
0.0
Figure 3: Adaptive-k retrieval as a function of kOracle , using ColQwen2.5 on MMLongBench (consistent trends across encoders and datasets in Figures S3–S4). (a): mean difference k − kOracle . ViSAR closely follows Oracle at low kOracle and retrieves fewer pages as kOracle increases, limiting irrelevant pages retrieval. Largest-Gap and Score-Cluster over-retrieve across most kOracle . (b): F1-score with the corresponding percentage of queries. ViSAR achieves higher F1, especially at lower kOracle .
7
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-k retrieval mechanism. Recall Ranking Method
NDCG
@5
@10
@5
@10
75.00 76.36
84.49 86.68
0.730 0.734
0.746 0.756
78.60 79.73
86.82 87.73
0.780 0.790
0.793 0.799
72.79 73.66
83.14 83.56
0.704 0.709
0.723 0.725
Using Colpali Late-Interaction ViSAR (ours) Using ColQwen2.5 Late-Interaction ViSAR (ours) Using ColModernVBERT Late-Interaction ViSAR (ours)
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 kOracle . When analysed across kOracle , ViSAR achieves higher F1-scores on MMLongBench (Figure 3b), particularly for lower kOracle where most queries are located. On LongDocURL (Figure S3-a), ViSAR outperforms Largest-Gap for most kOracle , except kOracle = 1, 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-7BInstruct LLM are used, respectively, as generation models for visual retrieval methods and text-based retrieval method (ColBERTv2, OCR-extracted text using Tesseract [44]). Max-k denotes an input budget of at most k pages, where fixed top-k methods always use the full budget while adaptive methods only do so when required. All adaptive methods outperform fixed top-k retrieval, with ViSAR achieving competitive or superior accuracy across all settings. Notably, Largest-Gap and Score-Cluster also improve over fixed top-k despite their simplicity, indicating the inherent benefit of adaptive-k retrieval. Table 4 shows that ViSAR generalizes across encoders, maintaining or improving accuracy over late-interaction fixed top-k (McNemar’s test, p < 0.05): ColQwen2.5 and ColPali show a general trend toward improvement, with significance on LongDocURL. ColModernVBERT shows a non-significant trend toward fixed top-k, 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 (3 encoders × 5 LVLMs × 2 Max-k 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-k 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
8
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-k denotes an input budget of at most k pages. Bold indicates highest results, with confidence intervals and Adaptive-k using other encoders in Table S2. ViSAR achieves competitive or superior accuracy across settings. MMLongBench Retrieval Method
LongDocURL
Max-5
Max-10
Max-5
Max-10
24.51 34.86 34.48
24.70 35.08 35.69
47.18 59.31 57.29
47.70 58.71 58.02
35.79 36.25 36.53
35.88 35.97 36.63
61.01 60.00 61.06
60.89 59.83 60.97
Fixed top-k ColBERTv2 M3DocRAG VisRAG-Ret Adaptive-k (using ColQwen2.5) Largest-Gap Score-Cluster ViSAR (ours)
Table 4: Answer generation accuracy across encoders. Qwen2.5-VL-7B-Instruct is used as the generation model. Max-k denotes an input budget of at most k pages. Bold indicates statistically significant differences according to McNemar’s test (p < 0.05). ViSAR consistently maintains or improves accuracy, with no significant decreases observed, while retrieving fewer pages on average. MMLongBench Retrieval Method
LongDocURL
Max-5
Max-10
Max-5
Max-10
35.04 36.53
35.69 36.63
59.79 61.06
59.27 60.97
34.86 35.42
35.08 35.88
59.31 60.77
58.71 60.13
34.75 34.01
34.95 34.28
58.42 58.28
58.84 58.33
Using ColQwen2.5 Fixed top-k ViSAR (ours) Using ColPali Fixed top-k ViSAR (ours) Using ColModernVBERT Fixed top-k ViSAR (ours)
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-k 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 Sim(p, p′ ) provides an explicit representation of how queryrelevant information is distributed across a document. Figure 5 illustrates representative examples and shows that when query semantics are localised, Sim(p, p′ ) is sparse and produces a sharp minimum in J (k), enabling a reliable retrieval boundary (Figure 5-a). Conversely, when query semantics are distributed across many pages, Sim(p, p′ ) 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 J (k) 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 Sim(p, p′ ) is a promising direction for understanding the conditions of retrieval success
9
Latency (s)
Retrieval Latency 2.5
ViSAR Fixed top-k
2.0 1.5 1.0 0.5 0.0
2
1-50 51-100 101-150 151-200 468
Latency (s)
1.0
14 12 10 8 6 4 2
0.8 0.6 0.4 0.2 0.0 50-75
76-100
14 12 10 8 6 4 −59% 2 8 10
4
6
4
2
4
6
14 12 10 8 6 4 −39.5% 2
LongDocURL
2
101-125 126-150
# Document pages
End-to-end Latency
Generation Latency 14 MMLongBench 12 10 8 6 4 2
6
8
10
Max-k retrieved pages
−58.7% 8 10
−38.5% 2
4
6
8
10
Max-k retrieved pages
0.6
0 5 10 15 20 25 30
0.2
0.0
0.0
1.0
1.0
0.8
0.8
0.6
0.6
0.4
0 5 10 15 20 25 30
0.4
0.2
50
1 3 5 7 9 1113 15 17
wrong answer (b)
max-5 max-10 ColPali ColQwen2.5 ColModernVBERT
45
40
0.4
0.2
0.2
0.0
0.0
Page p'
(c)
Accuracy (%)
0.6
(a)
55
kViSAR=15
0.8
kViSAR=kOracle=2
0.8
correct answer
kOracle=5
1.0
0.4
0 3 6 9 12 15 18
Page p
1.0
J(k)
0 3 6 9 12 15 18
J(k)
Page p
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.
35 1 4 8 12 16 20 24 30 32
# Pages retrieved
50
60
70
80
90
Similarity Matrix Sparsity (%)
Figure 5: Similarity matrix structure and answer accuracy on MMLongBench. (a, b): Queryconditioned page-level similarity matrices (zero values in black) and the corresponding retrieval cost ⋆ ⋆ function J (k), with kViSAR and kOracle marked. (a): A sparse matrix allows the query semantics to be effectively localized, which produces a sharp minimum in J (k), 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 wi , page weights wp , patch embedding weights wjp , and by replacing the optimization objective J (k) 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.
10
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.
11
[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 multivector 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.
12
[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.
13
Related documents
- ViSAR: Training-Free Adaptive-$k$ Retrieval for Visual Document Question Answering#926251
- Bridging the Semantic-Utility Gap in Multimodal RAG via Generator-in-the-Loop Alignment#985564
- USPLIT-VQA: U-Shaped Split Learning for Visual Question Answering with Contribution-Aware Weighted Aggregation#1000134
- Navigating Sparse Evidence: Agentic Visual RAG via Explicit Context Selection and Consolidation#1109846
- Beyond Raw Context Transfer: Representation-based Federated Retrieval-Augmented Generation#1036845
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive