Editor’s introduction
The study evaluates ConceptFormer, a framework designed to improve visual document retrieval by modeling query-conditioned latent concepts that bridge localized visual features and semantic relevance. It compares performance against existing baselines in visual and OCR-based text retrieval, showing consistent gains in retrieval accuracy measured by NDCG@10. The framework dynamically allocates concept tokens based on evidence coverage, enabling it to capture both fine-grained textual cues and complex visual structures without relying on textual annotations or raw visual labels. Findings indicate stronger alignment between query intent and retrieved documents than methods using textual or localized visual proxies.
Introduction
Vision-language models (VLMs) have demonstrated remarkable perception and generation capabilities across document question answering, information extraction, and multimodal reasoning. To preserve the layout-dependent structures and rich visual semantics inherent in visual documents, recent studies address these tasks by moving beyond plain-text serialization-based approaches, which may introduce information loss and cascading errors. Instead, they directly process document images using full-page screenshots together with zoom-in crops or region-level visual reasoning to retain both global page context and fine-grained visual evidence. Among these applications, visual document retrieval serves as a fundamental component of multimodal document understanding pipelines, aiming to identify query-relevant documents from large-scale collections. However, existing retrieval systems remain constrained by the ability to accurately capture fine-grained query-document relevance, limiting their effectiveness in downstream applications.
To improve visual document retrieval, recent studies leverage the visual understanding capabilities of VLMs to encode queries and document screenshots into dense representations and optimize query-document alignment in a shared embedding space through contrastive training. However, most existing visual retrievers are still supervised only at the page level through contrastive objectives. Such supervision provides a coarse-grained relevance signal but does not specify the supporting visual evidence within document pages, making it challenging for models to identify critical fine-grained cues. To address this limitation, recent studies introduce query-relevant fine-grained evidence signals for visual document retrieval, including region-level matching and localized region-based textual descriptions, to guide models toward informative page regions. Nevertheless, both approaches have inherent limitations in representing query-relevant evidence. Textual descriptions provide high-level semantic interpretations but may fail to faithfully capture complex visual structures, such as charts and spatial layouts. In contrast, localized visual regions preserve fine-grained visual grounding but often lack the global context and document-level semantics necessary for accurately modeling page relevance.
Recent advances in multimodal latent reasoning investigate continuous latent representations as an alternative to natural language for modeling intermediate reasoning. By encoding reasoning into latent visual states, enabling multimodal interaction in a shared latent space, or interleaving language with continuous visual representations, these approaches have achieved strong performance across visual understanding, reasoning, and generation tasks. This emerging paradigm also opens up a promising direction for visual document retrieval: latent representations may provide a more flexible and expressive mechanism for modeling query-relevant evidence, thereby facilitating finer-grained alignment between textual queries and visual documents.
In this paper, we propose ConceptFormer, a latent concept representation learning framework for visual document retrieval. ConceptFormer represents query-relevant evidence as continuous, query-conditioned latent concepts, providing fine-grained query-document alignment signals to narrow the semantic gap between textual queries and visual documents. Specifically, given a query-document pair, ConceptFormer first leverages a strong vision-language model to localize query-relevant regions on the positive page and maps these regions onto the retriever’s visual token grid to estimate the required capacity of latent concepts for evidence representation. It then dynamically allocates a latent concept sequence with the corresponding length and enables the retriever to generate latent concept representations conditioned on query and its related document. To leverage these representations as training supervision, ConceptFormer optimizes the retriever such that the ranking distribution induced by latent concepts recovers the original query-driven document ranking preference.
Experimental results on diverse visual document retrieval benchmarks demonstrate the effectiveness of ConceptFormer, achieving significant improvements over existing retrieval approaches. This improvement can be attributed to the learned latent concepts, which provide more effective and fine-grained supervision beyond standard page-level matching, enabling the retriever to learn more tailored visual document representations, suggesting that adaptive latent concepts provide complementary relevance supervision for visual document retrieval. Further analyses reveal that the learned latent concepts occupy an intermediate space between queries and visual documents, making them more effective for cross-modal alignment than textual or visual concept proxies. Moreover, the adaptive capacity analysis shows that query-relevant evidence exhibits substantial variation in scale rather than following a fixed-size pattern. Dynamically allocating latent concept capacity according to evidence coverage therefore provides a more tailored and sufficient concept of query-related evidence in visual documents.
Related Work
Visual document retrieval aims to retrieve document pages relevant to a query from visually rich collections. Early approaches typically rely on OCR to convert page images into textual representations, followed by retrieval using sparse methods such as BM25, dense retrievers, or LLM-based embeddings. However, OCR-based pipelines are susceptible to recognition errors and may discard essential visual information, including spatial layouts, chart structures, and non-textual elements. To mitigate information loss introduced by document parsing, recent studies have explored direct retrieval from page images, focusing on adapting VLMs to jointly model query and visual document representations. For example, DSE learns unified representations from document screenshots and employs contrastive learning to optimize VLMs for retrieval-oriented representation learning. VisRAG constructs additional query-document pairs to improve retrieval training. VDocRetriever further leverages LVLM pre-training to transfer their strong visual understanding and generative capabilities to visual document retrieval. However, most existing approaches still perform retrieval through global matching between queries and holistic page representations, limiting their ability to identify fine-grained query-relevant evidence within complex visual documents.
To further enhance visual document representations, recent studies have explored fine-grained modeling strategies for visual documents. ColPali improves query-page matching through multi-vector interactions that capture localized page-level semantics. Other approaches explicitly verbalize visual evidence and leverage the resulting textual descriptions as auxiliary signals to enhance retrieval. ReAlign further exploits the reasoning capabilities of existing VLMs to identify query-relevant regions and generate descriptions for the cropped visual evidence. These region-level descriptions provide additional supervision for retriever training. Despite the effectiveness of local evidence modeling, most existing visual document retrievers still rely on fixed-granularity alignment between queries and page representations, leaving the potential of reasoning-guided and dynamically adaptive supervision largely unexplored.
To enable finer-grained visual reasoning in vision-language models, recent studies have explored constructing intermediate reasoning representations in continuous latent spaces. LVR enables models to learn latent visual states that preserve query-relevant visual information. MCOUT transfers multimodal reasoning from natural-language chain-of-thought into a unified latent space. LanteRn further interleaves language reasoning with continuous latent visual representations, demonstrating that latent states can encode visual reasoning signals beyond explicit textual rationales. However, existing latent reasoning approaches typically rely on fixed-length latent representations and are not designed to capture the query-dependent evidence granularity required for visual document retrieval. In contrast, ConceptFormer introduces retrieval-oriented latent concepts for visual document retrieval, dynamically adapting their capacity to query-relevant evidence coverage while shaping their representations through query-specific ranking signals.
Preliminaries of Visual Document Retrieval
This objective learns a shared embedding space in which each query is close to its relevant page and separated from irrelevant pages. ConceptFormer builds on this standard retrieval formulation by introducing adaptive latent concepts to model query-conditioned relevance signals within visually rich pages.
Experimental Methodology
Datasets. Following the experimental settings of VDocRAG, we construct the training and evaluation datasets for visual document retrieval. Specifically, the training set contains approximately 38,000 query-document pairs collected from DocVQA, InfoVQA, VisualMRC, OpenWikiTable, DUDE, and MHDocVQA. These datasets cover a broad range of visually rich document types, including industrial documents, infographics, web pages, tables, and open-domain document pages. For evaluation, we benchmark retrieval models on six visual document retrieval datasets. InfoVQA serves as the in-domain evaluation benchmark, while ChartQA, SlideVQA, TQA, OWID Charts, and Wikimedia Maps are used for out-of-domain evaluation. These datasets cover diverse visual document formats, including charts, slides, tables, statistical graphics, and maps. Detailed data statistics are provided in Appendix A.1.
For OCR-based text retrievers, we first extract textual information from document images using PaddleOCR, and then perform retrieval based on the extracted text. This category includes BM25, a classical sparse retrieval method based on lexical matching; BGE, a representative dense text retriever; and E5-Mistral-7B-Instruct and NV-Embed-v2, two LLM-based embedding models with strong text representation capabilities.
For visual retrievers, retrieval is performed directly on document page images without relying on OCR extraction. We include CLIP as a general image-text dual encoder; DSE as a screenshot-based document retriever; E5-V and VLM2Vec as multimodal embedding models built upon vision-language models; Jina-CLIP-v2 as a strong image-text retrieval model; and VDocRetriever and VisRAG-Ret as retrieval models specifically designed for visual document RAG.
Implementation Details. During training, we employ Qwen3.6-Plus is only using in the training process to determine the adaptive capacity of latent concepts. The retriever backbone is initialized with Phi3V-4B and Qwen2.5-VL-7B-Instruct, enabling evaluation across different vision-language encoder architectures.
Overall Performance
Furthermore, ConceptFormer demonstrates consistent improvements across different VLM backbones. The Phi3V-based variant already outperforms the strongest existing visual retriever by approximately 4% on average, showing that the proposed framework remains effective even with a relatively weaker backbone. Using the stronger Qwen backbone, ConceptFormer achieves an additional improvement of over 10% compared with its Phi3V counterpart. These results suggest that ConceptFormer is broadly compatible with different VLM architectures, and its improvements stem not only from backbone scaling but also from latent concept guided representation learning.
Ablation Study
Effectiveness of Different Latent Concept Representations. We compare ConceptFormer with two alternative concept representations derived from query-related evidence: a textual concept proxy (ConceptFormer (Text)) and a visual concept proxy (ConceptFormer (Vision)). The textual proxy represents latent concepts using the textual cues extracted from the evidence proposals and is trained by aligning the resulting document relevance distribution with the query-induced document distribution. The visual proxy instead represents latent concepts by aggregating the visual tokens corresponding to the evidence regions, obtained by projecting the evidence boxes onto the retriever’s visual token grid, and is optimized with the same supervision objective.
As shown in the evaluation results, ConceptFormer consistently outperforms both ConceptFormer (Text) and ConceptFormer (Vision), demonstrating the effectiveness of learning query-related evidence through latent concept representations. Furthermore, ConceptFormer (Text) achieves substantially better performance than ConceptFormer (Vision), suggesting that textual verbalization provides more informative semantic supervision than directly aggregating visual features for aligning queries with visual documents.
Relevance Signals Distributed across Latent Concepts. We further investigate how latent concepts should be supervised by comparing our Query-Concept Matching objective with a contrastive alternative. Specifically, the Query-Concept Matching objective aligns the query-induced relevance distribution over candidate documents with the relevance distribution induced by matching the query against the latent concepts extracted from those documents. We also evaluate a variant, ConceptFormer w/o Mean Pooling, which removes mean pooling over all latent concept tokens and instead uses only the hidden state of the end token of latent concept “<|lcon_end|>” as the concept representation.
Compared with the contrastive Query-Concept Matching baseline, ConceptFormer achieves consistently better performance, indicating that aligning relevance distributions provides a more effective supervision signal for learning latent concepts than conventional contrastive training. Moreover, ConceptFormer outperforms ConceptFormer w/o Mean Pooling, demonstrating that query-relevant information is distributed across multiple latent concept states rather than being fully captured by a single hidden state. This finding supports our design of adaptive latent concepts as a distributed concept representation, where different latent concept states encode complementary local evidence and cross-region interactions required for accurate query-document matching.
Embedding Space Visualization of Learned Latent Concepts
To characterize the retrieval properties of different concept representations, we compare the visual concept proxy, the textual concept proxy, and the latent concept representation learned by ConceptFormer from three complementary perspectives. Query Discriminability measures how well a representation separates its matched query from mismatched queries, while Page Discriminability evaluates its ability to distinguish the positive page from negative pages. Retrieval Alignment further measures how closely the document-ranking distribution induced by a representation matches that of the original query. The first two metrics quantify pairwise discrimination, whereas Retrieval Alignment captures consistency over the entire retrieval ranking. Higher values indicate stronger query discrimination, page discrimination, and retrieval alignment, respectively. All representations are evaluated using the same negative queries, negative pages, and candidate sets. More experimental details are provided in Appendix B.
Case Study
For the query “What is the score of New Zealand in the semifinals of World Cup 2011?”, the model needs to combine two types of evidence. The top region provides the global event context, namely “ICC Cricket World Cup 2011”, while the central circular chart contains the fine-grained local evidence. The InfoNCE-only model activates several broadly related or visually salient regions, such as the enlarged New Zealand area, parts of the circular chart, and peripheral page elements, but it does not clearly connect the event-year context with the small score evidence required by the question. Textual alignment better responds to the local textual clue around New Zealand, showing the benefit of language-expressible evidence descriptions. However, it gives a weaker response to the top “World Cup 2011” event context, suggesting that textual evidence alone may emphasize local lexical cues while missing broader page-level visual context. Visual alignment shows the opposite pattern: it captures the logo and year more clearly but remains weak on the fine-grained chart score, suggesting that visual grounding alone is insufficient for small query-critical numbers. In contrast, ConceptFormer produces a more balanced retrieval signal, responding to both the top event-year region and the central chart region containing New Zealand’s semifinal score. This indicates that the latent concepts help the retriever bind page-level context with local numerical evidence, rather than treating them as isolated visual or textual cues.
Conclusion
In this paper, we propose ConceptFormer, a latent concept learning framework for visual document retrieval. ConceptFormer introduces adaptive latent concepts to encode query-conditioned relevance, bridging localized visual grounding and semantic relevance. By dynamically allocating concept capacity according to evidence coverage, it captures fine-grained information while retaining the standard retrieval pipeline at inference. Experiments across diverse benchmarks show consistent improvements over baseline retrievers. Further analyses demonstrate stronger retrieval alignment than textual and visual concept proxies, while adaptive capacity better accommodates varying evidence scales in visually rich documents.
Retriever Training
The main retriever is initialized from Qwen2.5-VL-7B-Instruct. For the Phi3V setting, we initialize the retriever from Tevatron/dse-phi3-docmatix-v1 and use VDocRetriever-Phi3-vision as the LoRA initialization. All ConceptFormer variants are trained for three epochs with AdamW. We use a per-device batch size of 8, gradient accumulation over 4 steps, and 4 GPUs, resulting in an effective batch size of 128.
Mapping Regions to the Visual Token Grid
Thus, the concept capacity is tied to the retriever-specific coverage of the query-related regions. Samples with localized evidence receive shorter latent concept sequences, whereas samples involving larger charts, maps, tables, or cross-region relations receive greater concept capacity. The setting “fixed latent tokens = 0” in our implementation denotes this dynamic bbox-based allocation rather than an empty concept sequence.


