TL;DR
This paper introduces Relevance-aware Multi-context Contrastive Decoding (RMCD), a novel training-free decoding method for Retrieval-Augmented Generation (RAG) in Visual Question Answering (VQA). RMCD effectively leverages relevant retrieved contexts while mitigating the negative impact of irrelevant ones, leading to state-of-the-art performance on knowledge-intensive VQA benchmarks.
What Problem Does This Paper Address?
Large Vision-Language Models (LVLMs) excel at many tasks but often lack specific, detailed knowledge. Retrieval-Augmented Generation (RAG) addresses this by fetching external knowledge to augment LVLM responses. However, existing RAG decoding methods struggle to effectively utilize multiple retrieved contexts. They either fail to leverage relevant information sufficiently or are negatively influenced by irrelevant contexts, leading to suboptimal performance, especially when retrieval quality varies. This paper aims to bridge this gap by proposing a decoding strategy that intelligently balances the use of multiple retrieved contexts based on their relevance to the question.
Methods
The core innovation is Relevance-aware Multi-context Contrastive Decoding (RMCD). It builds upon the idea of Contrastive Decoding (CD), which contrasts different model outputs to amplify or suppress specific effects. RMCD extends this by:
- Context Weighting: For each retrieved context $c_j$, a context weight $a_j$ is computed. This weight is derived from the context's retrieval score ($S_{c_j}$) and is designed to be positive for relevant contexts and potentially negative for irrelevant ones. This allows for "reflection" of useful information and "deflection" of harmful information.
- Weighted Logit Combination: The final prediction logit is a weighted sum of the logits produced by the LVLM for each individual context. The weights $a_j$ directly control how much each context's prediction contributes to the final output.
- Ensembled Plausibility Constraint: To further refine the output, RMCD incorporates an ensembled plausibility constraint. This involves identifying a subset of plausible vocabulary tokens based on ensembled predictions from relevant contexts, effectively restricting the sampling space and improving generation quality.
Crucially, RMCD is a training-free method, meaning it can be applied by simply replacing the decoding module of existing RAG systems without requiring additional training.
Datasets
The paper evaluates RMCD on three knowledge-intensive VQA benchmarks:
- InfoSeek: A benchmark for visual question answering requiring external knowledge.
- Encyclopedic-VQA: Another benchmark focusing on detailed knowledge about visual entities.
- OK-VQA: A well-established benchmark for knowledge-intensive VQA.
The authors also mention constructing KBs of varying sizes (1.7K, 100K, 2M) for InfoSeek to simulate different retrieval qualities.
Key Insights and Ideas
- Deflection is Crucial: Simply amplifying relevant contexts isn't enough; actively "deflecting" or suppressing the influence of irrelevant contexts is key to robust RAG performance. RMCD's ability to assign negative weights to irrelevant contexts is a significant contribution.
- Relevance is Dynamic: The effectiveness of a retrieved context isn't static. RMCD dynamically adjusts its reliance on each context based on its relevance to the specific question, making it adaptable.
- Training-Free Advantage: The ability to achieve state-of-the-art results without additional training is a major practical advantage, making RMCD easily adoptable by researchers and practitioners.
- Complementary to Retrievers: RMCD's performance gains are observed even with an "oracle" retriever, suggesting it offers value beyond just improving the retrieval component. It enhances the utilization of retrieved information.
Key Results
- State-of-the-Art Performance: RMCD consistently outperforms other decoding methods across multiple LVLMs and the three VQA benchmarks, achieving the best accuracy. For example, on InfoSeek, it achieved 22.9 accuracy, and on Encyclopedic-VQA (one-hop), it reached 41.4.
- Robustness to Retrieval Quality: RMCD shows strong performance across a range of retrieval qualities, from weak to strong, and even when an oracle context is provided. This is a significant improvement over methods like SCD, which degrade sharply with poor retrieval.
- Efficiency Gains: RMCD achieves a 33% throughput gain on OK-VQA compared to methods like FLMR's max probability + beam search, due to its lower time complexity (O(n) vs. O(n) with beam search).
- Qualitative Improvements: Examples show RMCD correctly answering questions where other methods fail due to misinterpreting or being misled by irrelevant contexts.
Limitations and Future Work
- Hyperparameter Sensitivity: While the paper states RMCD is robust to hyperparameters, specific choices (like $T_1, T_2, \gamma, M, m, \beta$) are made. Further exploration of their impact and potential for automatic tuning could be beneficial.
- KB Construction: The paper mentions constructing a KB for InfoSeek due to unavailability. The process and quality of KB construction can significantly impact RAG performance, and this aspect could be a focus for future work.
- Generalizability: While tested on VQA, exploring RMCD's applicability to other RAG-based tasks (e.g., text generation, summarization) would be valuable.
- Further Ablation on Constraints: The paper mentions ablation studies on the plausibility constraint, but a deeper dive into the optimal construction of the constraint set $S_i$ could be explored.
Summary updated