arXiv(opens in a new tab)cs.IRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.07262

Query-Aware Token Budgeting for Efficient Late-Interaction Visual Document Retrieval

PS Rishi, Rajeev Ranjan Dwivedi, Vinod K Kurmi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

PS Rishi*, Rajeev Ranjan Dwivedi†, Vinod Kumar Kurmi

Indian Institute of Science Education and Research Bhopal (IISER Bhopal), India

rishi.sivakumar10@gmail.com, rajeevias95@gmail.com, vinodkk@iiserb.ac.in

*Equal contribution. †Corresponding author.

Abstract—Late-interaction visual document retrievers preserve fine-grained page evidence by storing many token embeddings per page, but the resulting storage and query-time interaction costs make large-scale deployment expensive. Pooling document tokens before indexing offers a natural remedy, yet static pooling must decide which visual evidence to preserve before the query is known. We study an alternative: a heavily compressed hot-path index generates candidates, after which query-aware token budgeting operates on the original token sets of the shortlisted pages. We formulate this stage-two selection as a budgeted MaxSim coverage problem, show that a clipped version is monotone submodular, and compare coverage-only, cluster-guided, token-wise, and marginal-gain policies. On ten ViDoRe tasks with ColModernVBERT, direct static pooling reduces macro normalized discounted cumulative gain at rank five from 0.6309 without compression to 0.4738 at a thirty-two-fold pool factor. Under the same candidate-generation regime and a pool-factor-eight-equivalent reranking budget, token top-k recovers 93.93 percent of the full-token score, while greedy marginal-gain selection recovers 98.39 percent. Held-out and leave-one-dataset-out evaluations yield positive greedy improvements over token top-k on every dataset. The latency analysis reveals two useful operating points: token top-k for interactive retrieval and the naive greedy implementation as a quality upper envelope. Together, these results show that late-interaction visual retrieval benefits from query-aware allocation rather than query-agnostic pooling alone.

Index Terms—visual document retrieval, late interaction, token selection, submodular optimization, efficient retrieval

I. INTRODUCTION

Document retrieval is increasingly applied to corpora whose meaning is not captured by text alone: forms, scientific papers, financial reports, charts, invoices, slide decks, government documents, and multilingual technical pages. In such corpora, a page is a visual object whose semantics are distributed across words, tables, figures, typography, layout, and spatial grouping. Text-only pipelines based on optical character recognition, layout parsing, captioning, and chunking—including dedicated document-AI models such as LayoutLM [1] and OCR-free transformers such as Donut [2]—remain useful, but they can discard or distort evidence that is readily visible on the page.

Visual document retrievers address this limitation by embedding pages directly. ColPali combines visual page embeddings with a ColBERT-style MaxSim operator and outperforms conventional OCR-based pipelines on the ViDoRe benchmark [3], [4]. Complementary approaches include single-vector Document Screenshot Embedding [5] and the visual retrieval-augmented generation pipeline VisRAG [6], both of which

Figure

Fig. 1. Query-aware token budgeting. Pages in a document corpus are encoded as structured token vectors. At query time, only the tokens that fall in the query's feature-context region are retained for late-interaction scoring, rather than scoring every token on every page.

encode page screenshots without parsing. ModernVBERT and ColModernVBERT further show that compact retrieval-oriented vision-language encoders, built on contrastive image-text pretraining with sigmoid losses similar to SigLIP [7], can retain much of this retrieval quality at lower model cost [8]. Although these models simplify visual retrieval, they also expose a systems bottleneck: each page is represented by hundreds of token vectors rather than a single vector.

The cost is structural. For query token embeddings Q={qi}i=1mQ = \{q_i\}_{i=1}^m and document token embeddings D={dj}j=1nD = \{d_j\}_{j=1}^n, a late-interaction retriever scores

MaxSim(Q,D)=∑i=1mmax⁡1≤j≤nqi⊤dj.(1)\mathrm{MaxSim}(Q,D)=\sum_{i=1}^{m}\max_{1\leq j\leq n}q_i^\top d_j. \tag{1}

The maximum over document tokens makes the model effective on localized evidence such as table cells, captions, and figure labels, but it also makes storage and scoring expensive. In our ColModernVBERT setting, a 768-pixel page has roughly 350 document tokens. A million-page index therefore requires hundreds of millions of token vectors even before query-time computation is considered. Fig. 1 sketches the alternative we study: retain only the document tokens that fall in the query's feature-context region.

A common response is static token pooling, which clusters or aggregates page tokens at indexing time and stores only their representatives [9]. Related approaches include token pruning that discards uninformative embeddings [10], [11] and product-quantization-based engines that compress token residuals after centroid clustering [12]–[14]. Static pooling is attractive because it reduces the full index, but a single compressed representation must then serve every future query. This constraint is poorly aligned with MaxSim: the token that matters for a query need not be globally salient on the page, but only the best match for a particular query term. If pooling merges or removes that token, the query-time maximum can change even when the compressed representation remains geometrically plausible.

We therefore study a different allocation of computation that decouples corpus-scale candidate generation from query-specific evidence preservation. Stage one uses a strongly compressed index to retrieve a small candidate set, in the spirit of two-stage neural ranking pipelines that pair an efficient first retriever with a more expensive verifier [15]. Stage two revisits the original token set only for those candidate pages and selects a fixed budget of tokens for final MaxSim scoring (Fig. 2). The problem becomes: given a query, a candidate page, and a token budget, which document tokens should be retained?

This perspective turns compression into a data mining problem over multi-vector representations: selecting a compact subset of document tokens that collectively covers the query under a strict budget. It also creates a natural connection to submodular coverage. A token that covers an already-represented query aspect has less marginal value than one that covers a missing aspect. Budgeted selection should therefore reward complementarity as well as independent relevance, echoing the use of submodular coverage and maximal marginal relevance in classical information retrieval and summarization [16]–[18].

The greedy submodular algorithm itself is classical. Our contribution is to expose query-conditioned selection within shortlisted visual pages as a MaxSim coverage problem, integrate it with a compressed first-stage index, and quantify the resulting quality–latency frontier under matched token budgets.

We make the following contributions.

  • We formulate query-aware token budgeting for late-interaction visual document retrieval as a stage-two MaxSim coverage problem under a per-page cardinality budget.
  • We analyze the clipped token-selection objective as a monotone submodular function and apply classical greedy maximization to obtain a redundancy-aware selector.
  • We compare random, uniform, cluster-guided Budget-Constrained Reranking (BCR), token top-kk, and greedy selection under matched budgets on ten ViDoRe tasks using ColModernVBERT.
  • We report quality, recovery, held-out generalization, leave-one-dataset-out transfer, and latency measurements, showing a clear frontier between token top-kk and greedy selection.

The main empirical result is that static compression alone is insufficient. Direct pooling from roughly 350 tokens per page to approximately 11 tokens per page reduces macro nDCG@5 from 0.6309 to 0.4738. Under the same compressed first-stage regime, a pool-factor-eight-equivalent second-stage

budget recovers most of this loss: token top-kk reaches 0.5926, while greedy marginal-gain selection reaches 0.6208, or 98.39 percent of the uncompressed baseline.

References (40)