TL;DR
This paper introduces "DocReRank," a novel method for generating "hard negative queries" from individual document pages to train multimodal RAG rerankers. By shifting from retrieving negative pages to generating negative queries, DocReRank offers greater control, diversity, and efficiency, leading to significantly improved reranking performance compared to existing methods.
What Problem Does This Paper Address?
Retrieval-Augmented Generation (RAG) systems are crucial for grounding language models in factual information by retrieving relevant documents. A key component of RAG is the reranker, which refines the initial retrieval results. Training these rerankers often relies on "hard negative mining," where irrelevant documents that are ranked highly by the retriever are used as training examples. However, this traditional approach faces several limitations:
- Limited Diversity and Difficulty: Negative examples are constrained by what the retriever finds, often lacking sufficient difficulty or variety.
- Lack of Control: The process is passive, making it hard to target specific weaknesses of the reranker.
- Computational Cost: Embedding and searching an entire corpus for each query is resource-intensive.
- False Negatives: Documents that actually contain the answer but are mislabeled as irrelevant can harm training.
This paper tackles these issues by proposing an inverse approach: generating hard negative queries for each document page, rather than retrieving negative pages for each query.
Methods
The core innovation is Single-Page Hard Negative Query Generation. Instead of retrieving negative pages, the authors generate challenging negative queries that are similar in form and context to a positive query but are unanswerable from the given document page. This is achieved through an automated pipeline involving Large Language Models (LLMs) and Vision-Language Models (VLMs):
- Positive Query Generation: A VLM (Pixtral-12B) is used with a prompt designed to generate RAG-style questions that are answerable from the page, focusing on multimodal elements like figures and tables.
- Positive Query Verification: Another VLM (Qwen2.5-VL-7B-Instruct) verifies if the generated positive queries are indeed answerable from the page.
- Hard Negative Query Generation: An LLM (Qwen2.5-7B-Instruct) generates multiple variants of the positive query, aiming for semantic similarity but unanswerability.
- Hard Negative Query Verification: The VLM is again used to verify that these generated queries are not answerable from the page.
This pipeline allows for fine-grained control over the generated negatives, making them diverse, targeted, and verifiable. The authors also introduce a finance-specific prompt to generate negatives that specifically target fine-grained factual distinctions (e.g., years, numerical values), addressing known weaknesses in financial document understanding. Additionally, they propose a "rephrased" dataset where 50% of positive queries are rephrased to encourage deeper semantic understanding beyond keyword matching.
The reranker model, "DocReRank," is based on the Qwen2-VL-2B-Instruct VLM, fine-tuned using Low-Rank Adaptation (LoRA).
Datasets
- Col-HNDoc: A standard dataset derived from the ColPali training set, using document-level hard negative mining.
- Col-HNQue: A newly generated dataset based on the ColPali training set, using the proposed Single-Page Hard Negative Query Generation approach.
- Fin-HNQue: A domain-specific dataset generated from the FinTabNet dataset, focusing on financial documents and fine-grained distinctions.
- Rephrased Variants (Reph-Col-HNDoc, Reph-Col-HNQue): Augmented versions of the above datasets where 50% of positive queries are rephrased.
The paper evaluates on the ViDoReV2 and Real-MM-RAG benchmarks.
Key Insights and Ideas
- Query Generation as a Superior Alternative: Shifting from retrieving negative pages to generating negative queries is a more controllable, efficient, and effective way to create training data for rerankers.
- Fine-Grained Control for Targeted Training: The ability to generate specific types of negative queries (e.g., finance-focused) allows for targeted training to address known model weaknesses, leading to significant performance gains.
- VLM Verification is Effective: VLMs can reliably verify the answerability of queries from document pages, enabling efficient filtering of false negatives and positives.
- Semantic Understanding is Key: Rephrasing positive queries, even while preserving meaning, forces models to rely less on superficial cues and more on true semantic understanding, improving robustness.
- Diversity and Realism of Generated Negatives: The generated negative queries are shown to be similar in distribution to positive queries, indicating both diversity and realism, which is crucial for effective training.
Key Results
- DocReRank-Base (trained with a mix of Col-HNDoc and Col-HNQue) significantly outperforms retrieval-only baselines and the MonoQwen baseline (trained solely on document-based negatives) by up to +8.6 points on ViDoReV2 NDCG@5.
- DocReRank-Full (trained with generated data, including finance-specific and rephrased queries) achieves further improvements across benchmarks. For example, on Real-MM-RAG, it outperforms MonoQwen by up to +14.6 points (NDCG@5).
- The VLM-based verification process demonstrates a low false negative rate (8.2%) and no false positives, validating its effectiveness.
- A t-SNE visualization shows that generated negative queries are distributed similarly to positive queries, indicating good diversity and realism.
Limitations and Future Work
- Query Variability: While the pipeline generates diverse queries, the full query space might not be exhaustively covered, and human exploitation of generated queries is possible.
- VLM Verification Imperfections: Despite efforts, VLMs can still produce false negatives and positives, potentially impacting the quality of hard negatives.
- Reranker Dependency on Retrieval: The reranker's performance is inherently limited by the initial retrieval stage; if the true positive document is not in the top-K retrieved set, the reranker cannot find it.
- Future Work: The authors suggest extending this framework to other domains and refining the generation and verification processes. They also highlight the potential for adapting the controllability of query generation to specific application needs, such as distinguishing machine types in technical manuals.
Summary updated