ConceptFormer: Learning Adaptive Latent Concepts for Query-Document Alignment in Visual Document Retrieval

Chunyi Peng, Zhipeng Xu, Yukun Yan, Zhenghao Liu, Shi Yu, Sen Mei, Yubo Sun, Yongheng Zhang, Jie Zhou, Yu Gu, Ge Yu, Maosong SunarXiv 2026

TL;DR

ConceptFormer is a novel framework for visual document retrieval that learns query-conditioned latent concepts to bridge the gap between localized visual evidence and page-level semantics. By dynamically adjusting the capacity of these latent concepts during training and aligning them with ranking objectives, it achieves massive performance gains without adding any computational overhead during inference.

What Problem Does This Paper Address?

Visual document retrieval (VDR) is a backbone component of multimodal Retrieval-Augmented Generation (RAG) systems. Unlike standard text retrieval, VDR requires models to find relevant pages within document collections where critical information is embedded in text, complex layouts, charts, tables, and visual structures.

Currently, most visual retrievers rely on coarse, page-level contrastive learning (like InfoNCE). While effective at a high level, this approach provides weak supervision for identifying exactly which localized piece of evidence makes a page relevant to a query. Recent attempts to introduce finer-grained supervision rely on text descriptions or cropped visual regions as proxies for evidence. However, text descriptions fail to capture intricate spatial layouts and chart structures, while isolated visual crops lack the global context of the document page.

Methods

ConceptFormer addresses these limitations by introducing continuous, query-conditioned latent concepts as an intermediate representation space that connects localized visual grounding with page-level semantic relevance.

The framework operates in two main phases during training:

  1. Adaptive Concept Capacity Allocation: Rather than using a fixed number of tokens for all queries, ConceptFormer uses a powerful vision-language model (VLM) as an "evidence proposer" to identify query-relevant bounding boxes on a page. These boxes are projected onto the retriever's visual token grid to dynamically calculate how many latent concept tokens (<|lcon|>) are required. Complex visual structures (like maps or charts) receive more tokens, while simpler text blocks receive fewer.
  2. Visual-Language Alignment via Representation Learning: The retriever generates hidden states for these tokens. Instead of optimizing them via standard contrastive matching, ConceptFormer uses a KL-divergence loss to align the document ranking distribution induced by these latent concepts with the distribution induced by the query itself.

Crucially, latent concepts are only used during training. At inference time, the latent concept generation pathway is completely bypassed, allowing the model to maintain the exact speed and efficiency of a standard visual retriever.

Figure 1: Overview of ConceptFormer. The left panel illustrates a case where the standard InfoNCE method fails to find fine-grained local evidence, whereas ConceptFormer retrieves the relevant page. The right panel shows how ConceptFormer allocates adaptive latent concepts from query-related regions and learns them with retrieval-guided representation learning.

Datasets

The authors evaluated ConceptFormer across a robust mix of datasets:

  • Training Data: Approximately 38,000 query-document pairs aggregated from diverse visually rich sources, including DocVQA, InfoVQA, VisualMRC, OpenWikiTable, DUDE, and MHDocVQA.
  • Evaluation Benchmarks: Six distinct retrieval datasets were used to test both in-domain and out-of-domain generalization: InfoVQA (in-domain), ChartQA, SlideVQA, TQA, OWID Charts, and Wikimedia Maps.

Key Insights and Ideas

  • Latent Spaces Over Explicit Proxies: Continuous latent concepts outperform explicit text descriptions or raw visual features. They occupy a unique intermediate geometry in the embedding space, successfully retaining both fine-grained textual cues and complex document-level visual structures.
  • Dynamic Capacity Matters: Evidence complexity varies wildly across documents. By dynamically allocating token capacity based on evidence coverage (Matryoshka-style), the model avoids wasting representational capacity on simple queries while ensuring sufficient bandwidth for data-dense graphics.
  • Distribution Alignment as Supervision: Forcing the latent concepts to mimic the query's overall ranking preference across a batch (via KL divergence) provides a much richer, smoother supervision signal than standard binary contrastive pairing.
Figure 2: 3D retrieval geometry of concept representations. We compare visual and textual concept proxies with Concept- Former latent concepts using query discriminability, page discriminability, and retrieval alignment.

Key Results

ConceptFormer demonstrates state-of-the-art performance across all evaluated visual document retrieval benchmarks:

  • Overall Performance: It achieved a 16.7% relative improvement in average NDCG@10 over the strongest visual retrieval baseline (VisRAG-Ret) and a 22.1% relative improvement over the top OCR-based text retriever (NV-Embed-v2).
  • Spatially Complex Documents: On the highly visual Wikimedia Maps dataset, ConceptFormer achieved over 2× the NDCG@10 of prior visual retrievers, proving its superior ability to handle distributed spatial evidence.
  • Ablation Success: Dynamic token allocation consistently beat all fixed-token length baselines (ranging from 8 to 256 fixed tokens), proving that adaptive capacity prevents performance saturation.

Limitations and Future Work

  • Training-Time VLM Dependency: The framework relies heavily on a high-quality, large VLM (such as Qwen3.6-Plus) during the training data preparation phase to propose accurate evidence bounding boxes. If the evidence proposer misidentifies or misses key regions, the quality of the latent concept supervision degrades.
  • Future Work: The authors suggest exploring more efficient methods for generating evidence proposals without relying on massive external VLMs, as well as extending the latent concept paradigm directly into the generation phase of multimodal RAG pipelines.

Summary updated

BibTeX
@misc{peng2026conceptformer,
  author = {Chunyi Peng and Zhipeng Xu and Yukun Yan and Zhenghao Liu and Shi Yu and Sen Mei and Yubo Sun and Yongheng Zhang and Jie Zhou and Yu Gu and Ge Yu and Maosong Sun},
  title = {{ConceptFormer: Learning Adaptive Latent Concepts for Query-Document Alignment in Visual Document Retrieval}},
  year = {2026},
  eprint = {2608.15698},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.15698},
}
Figure