SocialGPT:通过贪心分段优化提示大语言模型进行社会关系推理
SocialGPT: Prompting LLMs for Social Relation Reasoning via Greedy Segment Optimization
AI总结:
针对现有社会关系推理方法泛化性与可解释性不足的问题,提出融合视觉基础模型与大语言模型的SocialGPT框架,并设计贪心分段提示优化方法解决长提示优化难题,实现了有竞争力的零样本性能与可解释性。
摘要:
社会关系推理旨在从图像中识别朋友、配偶、同事等关系类别。现有方法采用带标注图像数据端到端训练专用网络的范式,在泛化性和可解释性方面存在局限。为解决这些问题,我们首先提出一个简洁且精心设计的框架SocialGPT,该框架在模块化架构中融合视觉基础模型(VFMs)的感知能力与大语言模型(LLMs)的推理能力,为社会关系识别提供了强基线。具体而言,我们引导VFMs将图像内容转化为文本化的社会故事,再利用LLMs进行基于文本的推理。SocialGPT引入了系统性设计原则,分别适配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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。