SocialGPT: Prompting LLMs for Social Relation Reasoning via Greedy Segment Optimization
SocialGPT通过结合视觉基础模型和大型语言模型,实现了可解释的社交关系推理。
更新于 2024-11-09。作者:Wanhua Li、Zibin Meng、Jiawei Zhou、Donglai Wei、Chuang Gan、Hanspeter Pfister。
中文摘要
社交关系推理旨在从图像中识别关系类别,如朋友、配偶和同事。虽然当前的方法采用在标记图像数据上训练专用网络端到端的范式,但它们在泛化性和可解释性方面存在局限性。为了解决这些问题,我们首先提出一个简单但精心设计的框架,名为{\name},该框架在模块化框架内结合了视觉基础模型(VFMs)的感知能力和大型语言模型(LLMs)的推理能力,为社交关系识别提供了一个强大的基线。具体来说,我们指导VFMs将图像内容转化为文本化的社交故事,然后利用LLMs进行基于文本的推理。{\name}引入了系统的设计原则,以分别适应VFMs和LLMs并弥合它们之间的差距。无需额外的模型训练,它在两个数据库上实现了具有竞争力的零样本结果,同时提供了可解释的答案,因为LLMs可以为决策生成基于语言的解释。LLMs在推理阶段的手动提示设计过程是繁琐的,因此需要一种自动化的提示优化方法。由于我们本质上将视觉分类任务转换为LLMs的生成任务,自动提示优化遇到了一个独特的长提示优化问题。为了解决这一问题,我们进一步提出了贪婪段落提示优化(GSPO),它通过在段落级别利用梯度信息进行贪婪搜索。实验结果表明,GSPO显著提高了性能,并且我们的方法也推广到了不同的图像风格。代码可在https://github.com/Mengzibin/SocialGPT获取。
英文摘要
Social relation reasoning aims to identify relation categories such as friends, spouses, and colleagues from images. While current methods adopt the paradigm of training a dedicated network end-to-end using labeled image data, they are limited in terms of generalizability and interpretability. To address these issues, we first present a simple yet well-crafted framework named {\name}, which combines the perception capability of Vision Foundation Models (VFMs) and the reasoning capability of Large Language Models (LLMs) within a modular framework, providing a strong baseline for social relation recognition. Specifically, we instruct VFMs to translate image content into a textual social story, and then utilize LLMs for text-based reasoning. {\name} introduces systematic design principles to adapt VFMs and LLMs separately and bridge their gaps. Without additional model training, it achieves competitive zero-shot results on two databases while offering interpretable answers, as LLMs can generate language-based explanations for the decisions. The manual prompt design process for LLMs at the reasoning phase is tedious and an automated prompt optimization method is desired. As we essentially convert a visual classification task into a generative task of LLMs, automatic prompt optimization encounters a unique long prompt optimization issue. To address this issue, we further propose the Greedy Segment Prompt Optimization (GSPO), which performs a greedy search by utilizing gradient information at the segment level. Experimental results show that GSPO significantly improves performance, and our method also generalizes to different image styles. The code is available at https://github.com/Mengzibin/SocialGPT.
解读
一句话总结
SocialGPT通过结合视觉基础模型和大型语言模型,实现了可解释的社交关系推理。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:社交关系推理旨在从图像中识别关系类别,如朋友、配偶和同事。现有方法采用端到端训练的方法,但存在泛化性和可解释性限制。 • 现有方案不足:现有方法在泛化性和可解释性方面存在局限性,无法很好地推广到未知场景,且缺乏对决策的解释。 • 研究目标:提出SocialGPT,结合视觉基础模型和大型语言模型,实现可解释的社交关系推理。
问题2:论文的核心创新点是什么?
• 技术创新:提出SocialGPT框架,将视觉基础模型和大型语言模型相结合,通过生成社交故事进行推理。 • 方法改进:提出Greedy Segment Prompt Optimization (GSPO)算法,自动优化提示,提高推理性能。 • 优势:无需额外模型训练,实现零样本可解释的社交关系推理。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在PIPA和PISC数据集上进行实验,与现有方法进行比较。 • 性能提升:SocialGPT在PIPA数据集上取得了64.1%的准确率,优于现有方法。 • 对比结果:SocialGPT在PIPA数据集上优于BLIP-2、LLaVA和GPT-4V等视觉语言基础模型。
问题4:这个研究的实际应用价值是什么?
• 应用场景:社交关系识别在产品推荐、自动驾驶等领域有广泛应用。 • 实施建议:将SocialGPT应用于实际场景,提高社交关系识别的准确性和可解释性。 • 局限与展望:SocialGPT的性能受基础模型性能限制,未来可探索更强大的基础模型和更先进的推理方法。
来源
机器可读索引:llms.txt