arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.05043cs.CVcs.AIcs.CL
收藏

VQA模型中注意力模式到自然语言的零样本翻译

Zero-shot Translation of Attention Patterns in VQA Models to Natural Language

University of Tübingen(图宾根大学);Tübingen AI Center(图宾根人工智能中心);MPI for Intelligent Systems(马克斯·普朗克智能系统研究所)

Leonard Salewski, A. Sophia Koepke, Hendrik P. A. Lensch, Zeynep Akata

AI总结:

本研究提出免训练的零样本框架ZS-A2T,利用VQA模型的图文匹配能力引导LLM,将模型注意力翻译为自然语言解释,在相关数据集零样本任务上达SOTA。

摘要:

将模型内部结构转换为文本可以生成人类可理解的模型相关洞见。受近期图像字幕免训练方法成功的启发,我们提出ZS-A2T,这是一个零样本框架,无需任何训练即可将给定模型的Transformer注意力翻译为自然语言,我们在视觉问答(VQA)语境下开展这项研究。ZS-A2T基于预训练大语言模型(LLM)构建,该模型接收任务提示、问题和预测答案作为输入,被引导选择描述VQA模型所关注的输入图像区域的词元。关键在于,我们通过利用底层VQA模型的文本-图像匹配能力来确定这种相似性。我们的框架无需任何训练,支持直接替换不同的引导来源(例如归因图而非注意力图)或语言模型。我们在VQA文本解释数据集上评估这项新任务,在GQA-REX和VQA-X的零样本设置下取得了当前最优性能。我们的代码可在以下地址获取:https://github.com/ExplainableML/ZS-A2T。

英文摘要:

Converting a model's internals to text can yield human-understandable insights about the model. Inspired by the recent success of training-free approaches for image captioning, we propose ZS-A2T, a zero-shot framework that translates the transformer attention of a given model into natural language without requiring any training. We consider this in the context of Visual Question Answering (VQA). ZS-A2T builds on a pre-trained large language model (LLM), which receives a task prompt, question, and predicted answer, as inputs. The LLM is guided to select tokens which describe the regions in the input image that the VQA model attended to. Crucially, we determine this similarity by exploiting the text-image matching capabilities of the underlying VQA model. Our framework does not require any training and allows the drop-in replacement of different guiding sources (e.g. attribution instead of attention maps), or language models. We evaluate this novel task on textual explanation datasets for VQA, giving state-of-the-art performances for the zero-shot setting on GQA-REX and VQA-X. Our code is available at: https://github.com/ExplainableML/ZS-A2T.

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

↑