ReAlign: Optimizing the Visual Document Retriever with Reasoning-Guided Fine-Grained Alignment

Hao Yang, Yifan Ji, Zhipeng Xu, Zhenghao Liu, Yukun Yan, Zulong Chen, Shuo Wang, Yu Gu, Ge Yu

TL;DR

ReAlign enhances visual document retrieval by leveraging high-capacity Vision-Language Models (VLMs) to generate fine-grained, query-aware region descriptions as training supervision. By optimizing the retriever to align the document ranking distributions of queries with these localized descriptions, ReAlign trains models to focus on critical visual evidence, yielding consistent performance gains across diverse benchmarks.

What Problem Does This Paper Address?

Visual document retrieval—finding relevant pages (like charts, forms, or infographics) from large collections based on a text query—is crucial for downstream tasks like document QA and information extraction. Current state-of-the-art methods use VLMs to map queries and full pages into a shared embedding space via global contrastive learning (e.g., InfoNCE).

However, document pages feature highly complex, heterogeneous layouts where the actual evidence answering a query is often confined to a tiny, localized region (such as a single cell in a table or a specific slice of a pie chart). Standard contrastive training causes the model's attention to spread diffusely across the page boundaries rather than pinpointing these crucial cues. OCR-based alternatives attempt to solve this by transcribing text, but they discard spatial/layout context and introduce cascading recognition errors.

Standard contrastive learning vs. ReAlign's reasoning-guided attention focus.

Methods

The authors introduce Reasoning-Guided Alignment (ReAlign), a framework designed to inject fine-grained visual-language alignment signals into retriever training without requiring manual bounding-box annotations.

The method operates in two main phases:

  1. Region-Guided Supervision Synthesis: ReAlign employs a powerful teacher VLM (Qwen2.5-VL-72B-Instruct) to execute a Chain-of-Thought (CoT) reasoning process on training pairs. The teacher localizes query-relevant regions (bounding boxes) and generates precise, query-aware descriptions grounding those specific visual crops.
  2. Distribution Alignment Training: During fine-tuning, the student retriever (e.g., initialized from Phi3V or Qwen2.5-VL-7B) is optimized using a joint objective. Alongside standard contrastive loss ($L_{\text{Contrast}}$), ReAlign introduces a KL-divergence regularization loss ($L_{\text{KL}}$). This objective forces the retriever's query-induced document ranking distribution to match the distribution induced by the synthesized, region-focused descriptions.
The architecture of the ReAlign framework, detailing visual cue generation, training loss, and inference.

Datasets

  • Training Data: Approximately 38,000 query-document pairs aggregated from six established datasets: DocVQA, InfoVQA, VisualMRC, OpenWikiTable, DUDE, and MHDocVQA.
  • Evaluation Benchmarks: The model was tested on in-domain test sets (DocVQA, InfoVQA) and four zero-shot out-of-domain benchmarks to evaluate generalization: ChartQA, SlideVQA, PlotQA, and ArXivQA.

Key Insights and Ideas

  • The Power of Query-Aware Regularization: Global page captions provide weak alignment signals because they describe the entire image indiscriminately. Forcing the model to align with query-specific regional descriptions acts as a powerful regularizer that sharpens the retriever's attention on localized evidence.
  • Improved Embedding Space Topology: Quantitative analysis of the learned embedding space revealed that ReAlign simultaneously improves alignment (pulling queries closer to positive documents) and uniformity (ensuring document embeddings are well-distributed). This prevents representation collapse and yields a more discriminative embedding space.
  • Shifting Bias from Text to Visuals: Qualitative case studies showed that standard InfoNCE models suffer from a strong attention bias toward dense textual blocks. ReAlign successfully guides the VLM's attention toward crucial numerical and visual cues, such as specific percentages inside charts.

Key Results

  • Consistent Performance Gains: ReAlign achieved substantial improvements across all six benchmarks, delivering an average relative performance gain of over 2% in NDCG@5 and NDCG@10 compared to standard contrastive baselines.
  • Outperforming OCR and Layout Baselines: ReAlign significantly outperformed OCR-based retrieval pipelines by more than 17% on average. It also bested specialized layout-aware visual retrievers like DSE and VDocRetriever, proving that reasoning-guided descriptions provide superior supervision compared to heuristic region-matching strategies.
  • Strong Generalization: The benefits of ReAlign generalized robustly across different VLM backbones (Phi3V and Qwen2.5-VL), confirming that the framework enhances the underlying representation mechanism rather than exploiting specific architecture quirks.

Limitations and Future Work

  • High Computational Overhead: Generating the fine-grained training signals is computationally expensive. Utilizing the 72B teacher model to synthesize the dataset required approximately 100 hours on four A800 GPUs.
  • Teacher Dependency: The performance of the student retriever is inherently bounded by the reasoning and localization accuracy of the teacher VLM used during data synthesis.

The authors suggest that future work could explore more efficient distillation methods or investigate ways to integrate online reasoning capabilities directly into the retrieval process without offline dataset generation.

Summary updated

BibTeX
@inproceedings{yang2026realign,
  author = {Hao Yang and Yifan Ji and Zhipeng Xu and Zhenghao Liu and Yukun Yan and Zulong Chen and Shuo Wang and Yu Gu and Ge Yu},
  title = {{ReAlign: Optimizing the Visual Document Retriever with Reasoning-Guided Fine-Grained Alignment}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3809602},
}
Figure