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

用于小样本分割的自校准交叉注意力网络

Self-Calibrated Cross Attention Network for Few-Shot Segmentation

Nanyang Technological University(南洋理工大学);Nanjing University of Science and Technology(南京理工大学)

Qianxiong Xu, Wenting Zhao, Guosheng Lin, Cheng Long

AI总结:

本文提出自校准交叉注意力模块SCCA,通过块对齐、查询自身背景匹配和缩放余弦机制改进小样本分割,在PASCAL-5^i与COCO-20^i上取得领先性能。

摘要:

小样本分割(FSS)成功的关键在于如何有效利用支持样本。大多数方法将支持前景(FG)特征压缩为原型,但会丢失部分空间细节。另一些方法则使用交叉注意力,将查询特征与未压缩的支持前景融合。查询前景可以与支持前景融合,然而查询背景(BG)无法在支持前景中找到匹配的背景特征,却不可避免地整合不相似的特征。此外,由于查询前景和背景都与支持前景结合,二者会发生纠缠,从而导致分割失效。为解决这些问题,我们设计了自校准交叉注意力(SCCA)模块。为实现高效的基于块的注意力,查询和支持特征首先被划分为多个块。随后,我们设计了块对齐模块,将每个查询块与其最相似的支持块对齐,以获得更好的交叉注意力。具体而言,SCCA以一个查询块作为Q,并将来自同一查询图像的块与来自支持图像的对齐块组合为K&V。这样,查询背景特征会与匹配的背景特征(来自查询块)融合,上述问题因此得到缓解。此外,在计算SCCA时,我们设计了缩放余弦机制,以更好地利用支持特征进行相似度计算。在PASCAL-5^i和COCO-20^i上进行的大量实验证明了我们模型的优越性,例如,在COCO-20^i的5-shot设置下,mIoU分数比以往最先进方法高出5.6%以上。代码可在https://github.com/Sam1224/SCCAN获取。

英文摘要:

The key to the success of few-shot segmentation (FSS) lies in how to effectively utilize support samples. Most solutions compress support foreground (FG) features into prototypes, but lose some spatial details. Instead, others use cross attention to fuse query features with uncompressed support FG. Query FG could be fused with support FG, however, query background (BG) cannot find matched BG features in support FG, yet inevitably integrates dissimilar features. Besides, as both query FG and BG are combined with support FG, they get entangled, thereby leading to ineffective segmentation. To cope with these issues, we design a self-calibrated cross attention (SCCA) block. For efficient patch-based attention, query and support features are firstly split into patches. Then, we design a patch alignment module to align each query patch with its most similar support patch for better cross attention. Specifically, SCCA takes a query patch as Q, and groups the patches from the same query image and the aligned patches from the support image as K&V. In this way, the query BG features are fused with matched BG features (from query patches), and thus the aforementioned issues will be mitigated. Moreover, when calculating SCCA, we design a scaled-cosine mechanism to better utilize the support features for similarity calculation. Extensive experiments conducted on PASCAL-5^i and COCO-20^i demonstrate the superiority of our model, e.g., the mIoU score under 5-shot setting on COCO-20^i is 5.6%+ better than previous state-of-the-arts. The code is available at https://github.com/Sam1224/SCCAN.

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

↑