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

多模态对比上下文学习

Multimodal Contrastive In-Context Learning

Japan Advanced Institute of Science and Technology(北陆先端科学技术大学院大学);CyberAgent Inc.(CyberAgent公司)

Yosuke Miyanishi, Minh Le Nguyen

AI总结:

本文提出多模态对比上下文学习框架,通过对比学习解释ICL机制并解决多模态输入格式偏差,显著提升了LLMs在挑战性任务和资源受限环境下的ICL性能。

摘要:

大型语言模型(LLMs)使用的快速增长凸显了无梯度上下文学习(ICL)的重要性。然而,解释其内部工作机制仍然具有挑战性。本文引入了一个新颖的多模态对比上下文学习框架,以增强我们对LLMs中ICL的理解。首先,我们提出了一种基于对比学习的现实场景ICL解释方法,将键值表示的距离标记为ICL中的区分因素。其次,我们开发了一个分析框架,以解决现实数据集中多模态输入格式的偏差问题。我们证明了ICL示例在基线性能较差时的有效性,即使它们以未见过的格式表示。最后,我们提出了一种动态ICL方法(Anchored-by-Text ICL),该方法在检测仇恨模因方面表现出有效性,而由于资源限制,典型的ICL在此类任务中表现不佳。在多模态数据集上的大量实验表明,我们的方法在挑战性任务和资源受限环境等各种场景下显著提升了ICL性能。此外,它为LLMs中上下文学习的机制提供了有价值的见解。我们的发现对开发更具可解释性、高效和鲁棒的多模态AI系统具有重要意义,特别是在挑战性任务和资源受限环境中。

英文摘要:

The rapid growth of Large Language Models (LLMs) usage has highlighted the importance of gradient-free in-context learning (ICL). However, interpreting their inner workings remains challenging. This paper introduces a novel multimodal contrastive in-context learning framework to enhance our understanding of ICL in LLMs. First, we present a contrastive learning-based interpretation of ICL in real-world settings, marking the distance of the key-value representation as the differentiator in ICL. Second, we develop an analytical framework to address biases in multimodal input formatting for real-world datasets. We demonstrate the effectiveness of ICL examples where baseline performance is poor, even when they are represented in unseen formats. Lastly, we propose an on-the-fly approach for ICL (Anchored-by-Text ICL) that demonstrates effectiveness in detecting hateful memes, a task where typical ICL struggles due to resource limitations. Extensive experiments on multimodal datasets reveal that our approach significantly improves ICL performance across various scenarios, such as challenging tasks and resource-constrained environments. Moreover, it provides valuable insights into the mechanisms of in-context learning in LLMs. Our findings have important implications for developing more interpretable, efficient, and robust multimodal AI systems, especially in challenging tasks and resource-constrained environments.

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

↑