arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.07331cs.CVcs.LG
收藏

学习压缩上下文以实现高效的知识型视觉问答

Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answering

Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Huawei Noah's Ark Lab(华为诺亚方舟实验室)

Weixi Weng, Jieming Zhu, Xiaojun Meng, Hao Zhang, Rui Zhang, Chun Yuan

AI总结:

提出RACC方法,通过压缩和聚合检索到的知识生成KV缓存,适配下游冻结的MLLMs,在保持OK-VQA上SOTA性能的同时显著降低推理延迟。

摘要:

多模态大语言模型(MLLMs)在视觉问答(VQA)上表现出色。但在知识型视觉问答(KB-VQA)中,MLLMs可能缺乏回答问题所需的专门领域知识,需要从外部知识源检索必要信息。以往的工作如Retrival-Augmented VQA-v2(RAVQA-v2)专注于尽可能多地利用输入信息(如图像的文本描述和检索到的知识)来提升性能,但都忽略了一个问题:随着输入token数量的增加,推理效率显著下降,这与实际应用的需求相矛盾。为解决此问题,我们提出了带有压缩上下文的检索增强MLLMs(RACC)。RACC学习针对给定的图像-问题对压缩并聚合检索到的知识,生成以Key-Value(KV)缓存形式的紧凑调制,以适配下游冻结的MLLM,从而实现有效且高效的推理。RACC在OK-VQA上取得了63.92%的最先进(SOTA)性能。此外,与著名的RAVQA-v2相比,它将推理延迟显著降低了22.0%-59.7%。大量实验表明RACC具有广泛的适用性。它兼容各种现成的MLLMs,还能处理包括文本和多模态文档在内的不同知识源。

英文摘要:

Multimodal large language models (MLLMs) have demonstrated great performance on visual question answering (VQA). When it comes to knowledge-based Visual Question Answering (KB-VQA), MLLMs may lack the specialized domain knowledge needed to answer questions, necessitating the retrieval of necessary information from external knowledge sources. Previous works like Retrival-Augmented VQA-v2 (RAVQA-v2) focus on utilizing as much input information, such as image-based textual descriptions and retrieved knowledge, as possible to improve performance, but they all overlook the issue that with the number of input tokens increasing, inference efficiency significantly decreases, which contradicts the demands of practical applications. To address this issue, we propose \textbf{R}etrieval-\textbf{A}ugmented MLLMs with Compressed Contexts (RACC). RACC learns to compress and aggregate retrieved knowledge for a given image-question pair, generating a compact modulation in the form of Key-Value (KV) cache to adapt the downstream frozen MLLM, thereby achieving effective and efficient inference. RACC achieves a state-of-the-art (SOTA) performance of 63.92\% on OK-VQA. Moreover, it significantly reduces inference latency by 22.0\%-59.7\% compared to the prominent RAVQA-v2. Abundant experiments show RACC's broad applicability. It is compatible with various off-the-shelf MLLMs and can also handle different knowledge sources including textual and multimodal documents.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑