arXiv:2501.10834cs.CVcs.AI2025-01被引 22

无需微调,用检索增强让多模态大模型快速学新视觉知识。

Visual RAG: Expanding MLLM visual knowledge without fine-tuning

  • 通过检索最相关示例动态提供上下文,替代大量演示样本。
  • 在8个数据集上平均仅用23%示例即达或超过现有最优性能(+2%)。
  • 适合需快速更新视觉能力且无微调资源的场景。

多模态大语言模型在需要跨视觉与文本推理的任务中表现优异,但其能力受限于预训练数据,更新需大量微调。近期研究利用上下文学习(ICL)通过提供示范样例来提升性能,发现多示例ICL显著优于少示例ICL。然而,依赖大量示例且受限于模型上下文窗口,带来显著挑战。本文提出Visual RAG,将模型上下文学习能力与检索机制结合,动态选择最相关的示范样例用于查询,使模型能通过类比学习。该方法在推理时引入新信息,突破训练数据限制,可快速、低成本地扩展至未训练过的视觉领域与任务。在8个主流数据集上的实验表明,相比最新状态(多示例ICL),Visual RAG仅需约23%的示范样例,平均准确率提升约2%,部分任务甚至更高。

原文摘要 · Abstract (English)

Multimodal Large Language Models (MLLMs) have achieved notable performance in computer vision tasks that require reasoning across visual and textual modalities, yet their capabilities are limited to their pre-trained data, requiring extensive fine-tuning for updates. Recent researches have explored the use of In-Context Learning (ICL) to overcome these challenges by providing a set of demonstrating examples as context to augment MLLMs performance in several tasks, showing that many-shot ICL leads to substantial improvements compared to few-shot ICL. However, the reliance on numerous demonstrating examples and the limited MLLMs context windows presents significant obstacles. This paper aims to address these challenges by introducing a novel approach, Visual RAG, that synergically combines the MLLMs capability to learn from the context, with a retrieval mechanism. The crux of this approach is to ensure to augment the MLLM knowledge by selecting only the most relevant demonstrating examples for the query, pushing it to learn by analogy. In this way, relying on the new information provided dynamically during inference time, the resulting system is not limited to the knowledge extracted from the training data, but can be updated rapidly and easily without fine-tuning. Furthermore, this greatly reduces the computational costs for improving the model image classification performance, and augments the model knowledge to new visual domains and tasks it was not trained for. Extensive experiments on eight different datasets in the state of the art spanning several domains and image classification tasks show that the proposed Visual RAG, compared to the most recent state of the art (i.e., many-shot ICL), is able to obtain an accuracy that is very close or even higher (approx. +2% improvement on average) while using a much smaller set of demonstrating examples (approx. only 23% on average).

多模态视觉增强检索增强零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。