arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.00077cs.CVcs.AI
收藏

视觉任务中的改进信念注意力

Improved Belief-Attention in Vision Task

University of Exeter(埃克塞特大学)

Guoqiang Zhang

AI总结:

提出Belief2-Attention,通过同时利用垂直分量和投影分量扩展信念注意力,并引入额外内积矩阵增强标记相关性,提升视觉任务性能。

摘要:

最近,Belief-Attention \cite{Guoqiang25BeliefAttention} 被提出,它首先对基于 softmax 的 $V$ 向量加权求和进行关于原始 $V$ 向量的正交投影,然后将垂直分量作为 Transformer 中的残差信号以提升性能。在本文中,我们首先进行消融研究,表明投影分量也携带关于标记相关性的信息,不应被忽略。然后,我们提出通过同时利用垂直分量和投影分量来扩展 Belief-Attention。具体地,投影分量经过某种激活函数,然后进行线性映射,再与所考虑的标记合并。概念上讲,投影分量的神经块可以视为新注意力块内的两层前馈网络(FFN)。此外,注意到标准注意力通过内积矩阵 $QK^T$ 捕获标记相关性。我们提出向 $QK^T$ 引入额外的内积矩阵 $ZZ^T$ 以捕获更丰富的标记相关性。我们将新模块称为 Belief2-Attention。可以很容易地证明 Belief2-Attention 比标准注意力更具表达能力。然后,我们验证了 Belief2-Attention 在图像分类和分割等视觉任务中的有效性。

英文摘要:

Recently, Belief-Attention \cite{Guoqiang25BeliefAttention} has been proposed by first performing an orthogonal projection of the softmax-based weighted summation of $V$ vectors with respect to the original $V$ vectors and then taking the perpendicular component as the residual signal in Transformer for performance improvement. In this paper, we first conduct an ablation study showing the projected component also carries information about the token correlation, which should not be ignored. We then propose to extend Belief-Attention by making use of both the perpendicular and projected components. In particular, the projected component goes through certain activation function and then a linear mapping before merging with the considered token. Conceptually speaking, the neural block for the projected component can be viewed as a two-layer feedforward network (FFN) within the new attention block. It is also noted that standard attention captures the token correlation via the inner-product matrix $QK^T$. We propose to introduce an additional inner-product matrix $ZZ^T$ to $QK^T$ to capture richer token correlation. We refer to the new module as Belief2-Attention. It can be easily shown that Belief2-Attention is more expressive than standard Attention. We then verify the effectiveness of Belief2-Attention for vision tasks of image classification and segmentation.

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

↑