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

基于隐式空间校正的弱监督Transformer目标定位

Weakly Supervised Object Localization via Transformer with Implicit Spatial Calibration

Shenzhen Research Institute of Big Data(深圳大数据研究院);The Chinese Univeristy of Hong Kong (Shenzhen)(香港中文大学(深圳))

Haotian Bai, Ruimao Zhang, Jiong Wang, Xiang Wan

摘要:

弱监督对象定位(Weakly Supervised Object Localization,WSOL)是一种仅使用图像级标注来定位对象的方法,由于其在实际应用中标注成本低而受到广泛关注。最近的研究利用了视觉Transformer中自我注意的优势,对反应性语义区域进行长距离依赖,旨在避免传统类别激活映射(CAM)中的部分激活。然而,Transformer中的长距离建模忽略了对象固有的空间一致性,通常会将语义感知区域扩散到远离对象边界的地方,使得定位结果明显变大或变小。为了解决这个问题,我们引入了一个简单而有效的空间校准模块(SCM)准确的WSOL,将语义相似的补丁令牌和它们的空间关系到一个统一的扩散模型。具体来说,我们引入了一个可学习的参数来动态调整语义相关性和空间上下文强度,以实现有效的信息传播。在实际应用中,SCM被设计为Transformer的外部模块,在推理过程中可以将其移除,以减少计算量。通过在训练阶段的优化,对象敏感的定位能力被隐式地嵌入到Transformer编码器中。它使生成的注意力地图捕捉更清晰的对象边界和过滤对象无关的背景区域。大量的实验结果证明了所提出的方法的有效性,在CUB-200和ImageNet-1 K基准测试中的性能明显优于其对应的TS-CAM。该代码可在https://github.com/164140757/SCM上获得。

英文摘要:

Weakly Supervised Object Localization (WSOL), which aims to localize objects by only using image-level labels, has attracted much attention because of its low annotation cost in real applications. Recent studies leverage the advantage of self-attention in visual Transformer for long-range dependency to re-active semantic regions, aiming to avoid partial activation in traditional class activation mapping (CAM). However, the long-range modeling in Transformer neglects the inherent spatial coherence of the object, and it usually diffuses the semantic-aware regions far from the object boundary, making localization results significantly larger or far smaller. To address such an issue, we introduce a simple yet effective Spatial Calibration Module (SCM) for accurate WSOL, incorporating semantic similarities of patch tokens and their spatial relationships into a unified diffusion model. Specifically, we introduce a learnable parameter to dynamically adjust the semantic correlations and spatial context intensities for effective information propagation. In practice, SCM is designed as an external module of Transformer, and can be removed during inference to reduce the computation cost. The object-sensitive localization ability is implicitly embedded into the Transformer encoder through optimization in the training phase. It enables the generated attention maps to capture the sharper object boundaries and filter the object-irrelevant background area. Extensive experimental results demonstrate the effectiveness of the proposed method, which significantly outperforms its counterpart TS-CAM on both CUB-200 and ImageNet-1K benchmarks. The code is available at https://github.com/164140757/SCM.

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

↑