Abstract
Rerankers play a critical role in multimodal Retrieval-Augmented Generation (RAG) by refining the ranking of an initial set of retrieved documents. Rerankers are typically trained using hard negative mining, whose goal is to select pages for each query which rank high but are actually irrelevant. However, this selection process is typically passive and restricted to what the retriever can find in the available corpus, leading to several inherent limitations. These include limited diversity, negative examples which are often not hard enough, low controllability, and frequent false negatives which harm training. Our paper proposes an alternative approach: Single-Page Hard Negative Query Generation. Instead of retrieving negative pages per query, we generate hard negative queries per page. Using an automated LLM-VLM pipeline, and given a page and its positive query, we create hard negatives by rephrasing the query to be as similar as possible in form and context, yet not answerable from the page. This paradigm enables fine-grained control over the generated queries, resulting in diverse, hard, and targeted negatives. It also supports efficient false negative verification. Our experiments show that rerankers trained with data generated using our approach outperform existing models and significantly improve retrieval performance.
Introduction
In the landscape of multimodal Retrieval-Augmented Generation (RAG), the ability to accurately rank document pages is paramount. While initial retrieval models narrow down the search space, rerankers are tasked with the final, high-precision sorting of candidate documents. The effectiveness of these rerankers depends heavily on the quality of the training data, specifically the use of "hard negatives"—examples that appear relevant but are factually incorrect for a given query.
Traditionally, hard negative mining is a passive process. It involves taking a query and searching an existing corpus for documents that a retriever mistakenly ranks highly. As illustrated in Figure 1, this approach suffers from limited diversity, high computational costs, and the risk of "false negatives"—where a document is labeled as irrelevant but actually contains the answer, confusing the model during training.
The DocReRank Methodology
To overcome these limitations, we introduce DocReRank, a paradigm shift toward Single-Page Hard Negative Query Generation. Instead of searching for documents to fit a query, we generate tailored queries for a single document page. This "inverse" approach allows for precise control over the semantic difficulty of the training examples.
The Automated Pipeline
The DocReRank pipeline utilizes a sophisticated combination of Vision-Language Models (VLMs) and Large Language Models (LLMs) across four distinct stages:
- Positive Query Generation: A VLM (such as Qwen2-VL) analyzes a document page to generate a natural, answerable question.
- Positive Verification: A second VLM pass verifies that the generated question is indeed answerable from the visual and textual content of the page.
- Hard Negative Generation: An LLM takes the verified positive query and rephrases it. The goal is to maintain the same linguistic structure and context while changing a critical detail (e.g., a date, a specific entity, or a financial metric) to make it unanswerable from the page.
- Negative Verification: A final VLM check ensures that the newly generated negative query cannot be answered using the document page, effectively eliminating the false negative problem.
This localized approach is not only more computationally efficient—as it avoids global corpus indexing for data generation—but also allows for targeted training. For instance, in financial domains, the pipeline can be instructed to specifically swap years or company names to force the model to learn fine-grained distinctions in tables and reports.
Experimental Results
We evaluated DocReRank using the Qwen2-VL-2B architecture across several high-difficulty benchmarks, including ViDoRe-V2 and Real-MM-RAG. To support this, we introduced new datasets: ColHNQue, containing hard negative queries for general documents, and FinHNQue, focused on complex financial data.
Key findings include:
- Superior Performance: On the ViDoRe-V2 benchmark, DocReRank-Base outperformed the state-of-the-art MonoQwen model by +8.6 points in NDCG@5 when paired with a ColQwen retriever.
- Real-World Robustness: On the Real-MM-RAG benchmark, which features challenging real-world document images, DocReRank achieved an average NDCG@5 of 86.3, significantly surpassing baseline retrieval and existing reranking methods.
- Semantic Understanding: When tested against rephrased versions of evaluation queries, DocReRank maintained its performance lead. This suggests the model has moved beyond simple keyword matching to a deeper semantic understanding of document content.
Conclusion
DocReRank demonstrates that generating hard negative queries is a more effective and controllable strategy for training multimodal rerankers than traditional document retrieval methods. By focusing on single-page generation and rigorous VLM verification, we can produce high-quality, diverse training data that significantly boosts the accuracy of RAG systems. Future work will explore expanding this methodology to more specialized domains and further refining the verification process to handle increasingly complex document structures.
Summary updated