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

LaMI:通过晚期多图像融合增强大型语言模型

LaMI: Augmenting Large Language Models via Late Multi-Image Fusion

The Hebrew University of Jerusalem(耶路撒冷希伯来大学);Bar-Ilan University(巴伊兰大学)

Guy Yariv, Idan Schwartz, Yossi Adi, Sagie Benaim

AI总结:

LaMI通过在测试时融合多个图像提升视觉常识推理能力,同时保持文本推理性能,适用于视觉和NLP任务。

摘要:

常识推理常需要文本和视觉知识,但仅训练于文本的大型语言模型(LLMs)缺乏视觉 grounding(例如,'帝企鹅腹部的颜色是什么?')。视觉语言模型(VLMs)在视觉任务上表现更好,但面临两个限制:(i)在文本常识推理上表现不如文本训练的LLMs;(ii)适应新发布的LLMs通常需要昂贵的多模态训练。另一种方法是在测试时向LLMs添加视觉信号,提升视觉常识推理而不损害文本推理能力,但先前设计通常依赖于早期融合和单张图像,可能效果不佳。我们提出了一种晚期多图像融合方法:通过轻量级并行采样生成多个图像,将这些图像的预测概率与文本-only LLM的预测概率通过一个晚期融合层结合,该层在最终预测前整合投影的视觉特征。在视觉常识和NLP基准测试中,我们的方法在视觉推理上显著优于增强的LLMs,在基于视觉的任务上与VLMs相当,并且当应用于强大的LLMs如LLaMA 3时,也能提升NLP性能,同时仅增加少量的测试时间开销。项目页面可在:https://guyyariv.github.io/LaMI访问。

英文摘要:

Commonsense reasoning often requires both textual and visual knowledge, yet Large Language Models (LLMs) trained solely on text lack visual grounding (e.g., "what color is an emperor penguin's belly?"). Visual Language Models (VLMs) perform better on visually grounded tasks but face two limitations: (i) often reduced performance on text-only commonsense reasoning compared to text-trained LLMs, and (ii) adapting newly released LLMs to vision input typically requires costly multimodal training. An alternative augments LLMs with test-time visual signals, improving visual commonsense without harming textual reasoning, but prior designs often rely on early fusion and a single image, which can be suboptimal. We propose a late multi-image fusion method: multiple images are generated from the text prompt with a lightweight parallel sampling, and their prediction probabilities are combined with those of a text-only LLM through a late-fusion layer that integrates projected visual features just before the final prediction. Across visual commonsense and NLP benchmarks, our method significantly outperforms augmented LLMs on visual reasoning, matches VLMs on vision-based tasks, and, when applied to strong LLMs such as LLaMA 3, also improves NLP performance while adding only modest test-time overhead. Project page is available at: https://guyyariv.github.io/LaMI.

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

↑