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

语义感知的局部-全局视觉Transformer

Semantic-Aware Local-Global Vision Transformer

Harbin Institute of Technology at Shenzhen(哈尔滨工业大学(深圳));Xiaomi Corporation(小米公司)

Jiatong Zhang, Zengwei Yao, Fanglin Chen, Guangming Lu, Wenjie Pei

摘要:

视觉Transformer已经取得了令人瞩目的进展,其中Swin Transformer展示了Transformer在视觉任务方面的巨大潜力。它克服了高计算复杂性的关键挑战,通过在移位窗口内执行局部自注意。在这项工作中,我们提出了语义感知局部全局视觉Transformer(SALG),进一步研究两个潜在的改进Swin Transformer。首先,与Swin Transformer不同,它执行均匀分区以产生相同大小的常规窗口用于局部自我注意,我们的SALG以无监督的方式执行语义分割以探索图像中的潜在语义先验。因此,每个分割区域可以对应于图像中语义上有意义的部分,潜在地导致每个分割区域内的更有效的特征。其次,而不是像Swin Transformer那样仅在局部窗口内执行局部自注意,所提出的SALG执行1)用于学习每个区域内的细粒度特征的局部区域内自注意和2)用于建模所有区域之间的全局依赖关系的全局区域间特征传播。因此,我们的模型能够在学习每个令牌的特征时获得全局视图,这是Transformer的本质优势。由于显式建模的语义先验和建议的局部-全局建模机制,我们的SALG是特别有利的小规模模型时,建模能力是不够的其他模型隐式学习语义。在各种视觉任务的广泛实验表明,我们的模型的优点比其他视觉Transformer,特别是在小规模的建模场景。

英文摘要:

Vision Transformers have achieved remarkable progresses, among which Swin Transformer has demonstrated the tremendous potential of Transformer for vision tasks. It surmounts the key challenge of high computational complexity by performing local self-attention within shifted windows. In this work we propose the Semantic-Aware Local-Global Vision Transformer (SALG), to further investigate two potential improvements towards Swin Transformer. First, unlike Swin Transformer that performs uniform partition to produce equal size of regular windows for local self-attention, our SALG performs semantic segmentation in an unsupervised way to explore the underlying semantic priors in the image. As a result, each segmented region can correspond to a semantically meaningful part in the image, potentially leading to more effective features within each of segmented regions. Second, instead of only performing local self-attention within local windows as Swin Transformer does, the proposed SALG performs both 1) local intra-region self-attention for learning fine-grained features within each region and 2) global inter-region feature propagation for modeling global dependencies among all regions. Consequently, our model is able to obtain the global view when learning features for each token, which is the essential advantage of Transformer. Owing to the explicit modeling of the semantic priors and the proposed local-global modeling mechanism, our SALG is particularly advantageous for small-scale models when the modeling capacity is not sufficient for other models to learn semantics implicitly. Extensive experiments across various vision tasks demonstrates the merit of our model over other vision Transformers, especially in the small-scale modeling scenarios.

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

↑