arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.09798cs.LGcs.AIcs.CLcs.CV
收藏

多模态基础模型中的多示例上下文学习

Many-Shot In-Context Learning in Multimodal Foundation Models

Stanford University(斯坦福大学)

Yixing Jiang, Jeremy Irvin, Ji Hun Wang, Muhammad Ahmed Chaudhry, Jonathan H. Chen, Andrew Y. Ng

AI总结:

本研究评估多模态基础模型从少样本到多样本上下文学习的性能,发现闭源模型随示例增多性能持续提升,开源模型无获益有限,批量查询可降本提效,为多模态模型适配新场景提供了思路。

摘要:

大语言模型在少样本上下文学习(ICL)方面表现出色。多模态基础模型的最新进展带来了前所未有的长上下文窗口,为探索其使用更多演示示例执行ICL的能力提供了契机。在本研究中,我们评估了多模态基础模型从少样本到多样本ICL的性能表现。我们在涵盖多个领域(自然图像、医学图像、遥感和分子图像)和任务(图像分类、视觉问答和目标定位)的14个数据集上对GPT-4o和Gemini 1.5 Pro进行了基准测试。我们观察到,与少样本(少于100个示例)ICL相比,包含多达近2000个演示示例的多样本ICL在所有数据集上都带来了显著提升。此外,在许多数据集上,Gemini 1.5 Pro的性能随着测试示例数量达到最大值时仍呈对数线性持续提升。我们还发现,像Llama 3.2-Vision这类开源权重的多模态基础模型无法从演示示例中获益,凸显了开源与闭源多模态基础模型之间存在重要差距。鉴于多样本ICL所需的推理成本很高,我们还探索了在单次API调用中批量处理多个查询的影响。我们表明,批量处理多达50个查询可以在零样本和多样本ICL设置下提升性能,在多个数据集的零样本设置下增益显著,同时大幅降低了每个查询的成本和延迟。最后,虽然GPT-4o和Gemini 1.5 Pro在各数据集上的零样本性能相近,但Gemini 1.5 Pro在大多数数据集上的学习速度比GPT-4o更快。我们的研究结果表明,多样本ICL可以让用户高效地将多模态基础模型适配到新的应用和领域。我们的代码库公开于https://github.com/stanfordmlgroup/ManyICL 。

英文摘要:

Large language models are effective at few-shot in-context learning (ICL). Recent advancements in multimodal foundation models have enabled unprecedentedly long context windows, presenting an opportunity to explore their capability to perform ICL with many more demonstrating examples. In this work, we evaluate the performance of multimodal foundation models scaling from few-shot to many-shot ICL. We benchmark GPT-4o and Gemini 1.5 Pro across 14 datasets spanning multiple domains (natural imagery, medical imagery, remote sensing, and molecular imagery) and tasks (image classification, visual QA, and object localization). We observe that many-shot ICL, including up to almost 2,000 demonstrating examples, leads to substantial improvements compared to few-shot (<100 examples) ICL across all of the datasets. Further, Gemini 1.5 Pro performance continues to improve log-linearly up to the maximum number of tested examples on many datasets. We also find open-weights multimodal foundation models like Llama 3.2-Vision do not benefit from the demonstrating examples, highlighting an important gap between open and closed multimodal foundation models. Given the high inference costs required for many-shot ICL, we also explore the impact of batching multiple queries in a single API call. We show that batching up to 50 queries can lead to performance improvements under zero-shot and many-shot ICL, with substantial gains in the zero-shot setting on multiple datasets, while drastically reducing per-query cost and latency. Finally, while GPT-4o and Gemini 1.5 Pro achieve similar zero-shot performance across the datasets, Gemini 1.5 Pro learns more quickly than GPT-4o on most datasets. Our results suggest that many-shot ICL could enable users to efficiently adapt multimodal foundation models to new applications and domains. Our codebase is publicly available at https://github.com/stanfordmlgroup/ManyICL .

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

↑