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

弱监督语义分割中的标记对比

Token Contrast for Weakly-Supervised Semantic Segmentation

Wuhan University(武汉大学);JD Explore Academy(京东探索研究院)

Lixiang Ru, Heliang Zheng, Yibing Zhan, Bo Du

摘要:

使用图像级标签的弱监督语义分割(WSSS)通常利用类激活图(CAM)来生成伪标签。受CNN局部结构感知能力的限制,CAM通常不能识别完整的目标区域。虽然最近的视觉Transformer(ViT)可以弥补这个缺陷,我们观察到它也带来了过度平滑的问题,\ie,最终补丁令牌倾向于均匀。在这项工作中,我们提出了令牌对比(ToCo)来解决这个问题,并进一步探讨了WSSS的ViT的优点。首先,出于观察,在ViT的中间层仍然可以保持语义的多样性,我们设计了一个补丁令牌对比模块(PTC)。PTC利用从中间层导出的伪令牌关系来监督最终的补丁令牌,允许它们对齐语义区域,从而产生更准确的CAM。其次,为了进一步区分CAM中的低置信度区域,我们设计了一个类令牌对比模块(CTC),这是受到ViT中的类令牌可以捕获高级语义的启发。CTC通过对比局部区域和全局对象的类标记,促进了局部区域和全局对象之间表示的一致性。PASCAL VOC和MS COCO数据集上的实验表明,所提出的ToCo可以显着优于其他单阶段的竞争对手,并实现与最先进的多阶段方法相当的性能。代码可在https://github.com/rulixiang/ToCo上获得。

英文摘要:

Weakly-Supervised Semantic Segmentation (WSSS) using image-level labels typically utilizes Class Activation Map (CAM) to generate the pseudo labels. Limited by the local structure perception of CNN, CAM usually cannot identify the integral object regions. Though the recent Vision Transformer (ViT) can remedy this flaw, we observe it also brings the over-smoothing issue, \ie, the final patch tokens incline to be uniform. In this work, we propose Token Contrast (ToCo) to address this issue and further explore the virtue of ViT for WSSS. Firstly, motivated by the observation that intermediate layers in ViT can still retain semantic diversity, we designed a Patch Token Contrast module (PTC). PTC supervises the final patch tokens with the pseudo token relations derived from intermediate layers, allowing them to align the semantic regions and thus yield more accurate CAM. Secondly, to further differentiate the low-confidence regions in CAM, we devised a Class Token Contrast module (CTC) inspired by the fact that class tokens in ViT can capture high-level semantics. CTC facilitates the representation consistency between uncertain local regions and global objects by contrasting their class tokens. Experiments on the PASCAL VOC and MS COCO datasets show the proposed ToCo can remarkably surpass other single-stage competitors and achieve comparable performance with state-of-the-art multi-stage methods. Code is available at https://github.com/rulixiang/ToCo.

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

↑