arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.11317cs.CLcs.CV
收藏

冻结LLM的少样本VQA:两种方法的故事

Few-Shot VQA with Frozen LLMs: A Tale of Two Approaches

University of Cambridge(剑桥大学)

Igor Sterner, Weizhe Lin, Jinghong Chen, Bill Byrne

AI总结:

本文通过受控实验比较了将图像输入LLM的两种方法(图像字幕与视觉嵌入映射),发现零样本下字幕更优,少样本下取决于上下文示例选择。

摘要:

目前出现了两种将图像输入大型语言模型(LLM)的方法。第一种是将图像转换为自然语言描述(即图像字幕)。第二种是将图像特征嵌入映射到LLM的嵌入空间,并将映射后的嵌入直接传递给LLM。近期大多数少样本多模态工作采用基于这两种方法变体的架构来报告性能,但忽略了它们之间的重要比较。我们设计了一个受控且聚焦的实验,以比较这两种方法在LLM上的少样本视觉问答(VQA)性能。我们的研究结果表明,对于Flan-T5 XL(一个30亿参数的LLM),直接将视觉嵌入连接到LLM嵌入空间并不保证比使用图像字幕获得更好的性能。在零样本情况下,我们发现使用文本图像字幕效果更好。在少样本情况下,上下文示例的选择方式决定了哪种方法更优。

英文摘要:

Two approaches have emerged to input images into large language models (LLMs). The first is to caption images into natural language. The second is to map image feature embeddings into the domain of the LLM and pass the mapped embeddings directly to the LLM. The majority of recent few-shot multimodal work reports performance using architectures that employ variations of one of these two approaches. But they overlook an important comparison between them. We design a controlled and focused experiment to compare these two approaches to few-shot visual question answering (VQA) with LLMs. Our findings indicate that for Flan-T5 XL, a 3B parameter LLM, connecting visual embeddings directly to the LLM embedding space does not guarantee improved performance over using image captions. In the zero-shot regime, we find using textual image captions is better. In the few-shot regimes, how the in-context examples are selected determines which is better.

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

↑