TAB:Transformer注意力瓶颈支持视觉-语言模型中的用户干预与调试
TAB: Transformer Attention Bottlenecks enable User Intervention and Debugging in Vision-Language Models
AI总结:
提出1头Transformer注意力瓶颈(TAB)层约束总注意力以提升视觉-语言模型的可解释性,支持用户通过编辑注意力进行干预与调试,并在图像差异描述任务中展现出优于基线的定位与识别能力。
摘要:
多头自注意力(MHSA)是Transformer的关键组件,Transformer是一种在语言和视觉领域都广泛流行的架构。多个注意力头直观地支持对同一输入进行不同的并行处理。然而,它们也模糊了每个输入patch对模型输出的归因。我们提出了一种新颖的1头Transformer注意力瓶颈(TAB)层,将其插入到传统的MHSA架构之后,作为可解释性和干预的注意力瓶颈。与标准的自注意力不同,TAB将所有patch的总注意力约束在$\in [0, 1]$范围内。也就是说,当总注意力为0时,没有视觉信息会进一步传播到网络中,视觉-语言模型(VLM)将默认给出通用的、与图像无关的响应。为了展示TAB的优势,我们使用TAB训练VLM来执行图像差异描述任务。在三个数据集上,我们的模型在描述方面与基线VLM表现相似,但在定位变化以及识别何时未发生改变方面,该瓶颈表现更优。TAB是首个允许用户通过编辑注意力进行调试的架构,这通常能产生VLM预期的输出。
英文摘要:
Multi-head self-attention (MHSA) is a key component of Transformers, a widely popular architecture in both language and vision. Multiple heads intuitively enable different parallel processes over the same input. Yet, they also obscure the attribution of each input patch to the output of a model. We propose a novel 1-head Transformer Attention Bottleneck (TAB) layer, inserted after the traditional MHSA architecture, to serve as an attention bottleneck for interpretability and intervention. Unlike standard self-attention, TAB constrains the total attention over all patches to $\in [0, 1]$. That is, when the total attention is 0, no visual information is propagated further into the network, and the vision-language model (VLM) would default to a generic, image-independent response. To demonstrate the advantages of TAB, we train VLMs with TAB to perform image-difference captioning. Over three datasets, our models perform similarly to baseline VLMs in captioning but the bottleneck is superior in localizing changes and in identifying when no changes occur. TAB is the first architecture to enable users to debug by editing attention, which often produces expected outputs by VLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。