arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.15955cs.CVcs.AI
收藏

超越感知之门:视觉Transformer表征物体之间的关系

Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objects

Brown University(布朗大学);New York University(纽约大学);Stanford University(斯坦福大学)

Michael A. Lepori, Alexa R. Tartaglini, Wai Keen Vong, Thomas Serre, Brenden M. Lake, Ellie Pavlick

AI总结:

本文通过机制可解释性方法研究视觉Transformer在相同/不同关系推理任务中的处理过程,发现其形成感知与关系两个阶段,并证明任一阶段失败都会影响模型学习可泛化解法。

摘要:

尽管视觉Transformer(ViTs)在多种场景下已取得最先进的性能,但它们在执行涉及视觉关系的任务时却表现出令人意外的失败。这引出了一个问题:ViTs如何尝试执行需要计算物体之间视觉关系的任务?此前解释ViTs的工作往往侧重于刻画相关的低层视觉特征。与之不同,我们采用机制可解释性方法来研究ViTs用于执行抽象视觉推理的高层视觉算法。我们针对一个基础但出人意料困难的关系推理任务进行了案例研究:判断两个视觉实体是相同还是不同。我们发现,在该任务上微调的预训练ViTs尽管没有明显的归纳偏置,却常常表现出两个性质不同的处理阶段:1)感知阶段,在此阶段局部物体特征被提取并存储为解耦表示;2)关系阶段,在此阶段物体表示被比较。在第二阶段,我们发现证据表明ViTs可以学习表示某种抽象视觉关系,这一能力长期以来被认为人工神经网络难以企及。最后,我们证明任一阶段的失败都会阻止模型学习到适用于我们这些相当简单任务的可泛化解法。通过以离散处理阶段来理解ViTs,可以更精确地诊断并纠正现有及未来模型的缺陷。

英文摘要:

Though vision transformers (ViTs) have achieved state-of-the-art performance in a variety of settings, they exhibit surprising failures when performing tasks involving visual relations. This begs the question: how do ViTs attempt to perform tasks that require computing visual relations between objects? Prior efforts to interpret ViTs tend to focus on characterizing relevant low-level visual features. In contrast, we adopt methods from mechanistic interpretability to study the higher-level visual algorithms that ViTs use to perform abstract visual reasoning. We present a case study of a fundamental, yet surprisingly difficult, relational reasoning task: judging whether two visual entities are the same or different. We find that pretrained ViTs fine-tuned on this task often exhibit two qualitatively different stages of processing despite having no obvious inductive biases to do so: 1) a perceptual stage wherein local object features are extracted and stored in a disentangled representation, and 2) a relational stage wherein object representations are compared. In the second stage, we find evidence that ViTs can learn to represent somewhat abstract visual relations, a capability that has long been considered out of reach for artificial neural networks. Finally, we demonstrate that failures at either stage can prevent a model from learning a generalizable solution to our fairly simple tasks. By understanding ViTs in terms of discrete processing stages, one can more precisely diagnose and rectify shortcomings of existing and future models.

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

↑