arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.00182cs.CV
收藏

可区分的软掩蔽注意力

Differentiable Soft-Masked Attention

RWTH Aachen University(亚琛工业大学);Carnegie Mellon University(卡内基梅隆大学)

Ali Athar, Jonathon Luiten, Alexander Hermans, Deva Ramanan, Bastian Leibe

摘要:

Transformers在计算机视觉中已经变得普遍,这是由于它们在对复杂操作进行建模时的性能和灵活性。特别重要的是“交叉注意”操作,它允许通过关注任意大小的输入特征集来学习矢量表示(例如图像中的对象)。最近,提出了“掩蔽注意力”,其中给定的对象表示只关注那些对象的分割掩模有效的图像像素特征。这种注意力的专门化证明对各种图像和视频分割任务是有益的。在本文中,我们提出了另一种专门的注意力,使出席“软面具”(那些连续的掩码概率,而不是二进制值),也是通过这些掩码概率可区分的,从而允许用于注意的掩码在网络内学习,而不需要直接损失监督。这对于几个应用程序可能是有用的。具体来说,我们将我们的“可区分的软掩蔽注意力”用于弱监督视频对象分割(VOS)的任务,其中我们为VOS开发了一个基于变换器的网络,它只需要一个带注释的图像帧进行训练,但也可以从只有一个带注释的帧的视频上的周期一致性训练中受益。虽然在未标记的帧中没有丢失掩码,但由于我们新颖的注意力公式,网络仍然能够分割这些帧中的对象。代码:https://github.com/Ali2500/HODOR/blob/main/hodor/modelling/encoder/soft_masked_attention.py

英文摘要:

Transformers have become prevalent in computer vision due to their performance and flexibility in modelling complex operations. Of particular significance is the 'cross-attention' operation, which allows a vector representation (e.g. of an object in an image) to be learned by attending to an arbitrarily sized set of input features. Recently, "Masked Attention" was proposed in which a given object representation only attends to those image pixel features for which the segmentation mask of that object is active. This specialization of attention proved beneficial for various image and video segmentation tasks. In this paper, we propose another specialization of attention which enables attending over `soft-masks' (those with continuous mask probabilities instead of binary values), and is also differentiable through these mask probabilities, thus allowing the mask used for attention to be learned within the network without requiring direct loss supervision. This can be useful for several applications. Specifically, we employ our "Differentiable Soft-Masked Attention" for the task of Weakly-Supervised Video Object Segmentation (VOS), where we develop a transformer-based network for VOS which only requires a single annotated image frame for training, but can also benefit from cycle consistency training on a video with just one annotated frame. Although there is no loss for masks in unlabeled frames, the network is still able to segment objects in those frames due to our novel attention formulation. Code: https://github.com/Ali2500/HODOR/blob/main/hodor/modelling/encoder/soft_masked_attention.py

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

↑