arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.09339cs.CV
收藏

视觉Transformer:从语义分割到密集预测

Vision Transformers: From Semantic Segmentation to Dense Prediction

School of Data Science, Fudan University(复旦大学数据科学学院);University of Surrey(萨里大学);University of Oxford(牛津大学)

Li Zhang, Jiachen Lu, Sixiao Zheng, Xinxuan Zhao, Xiatian Zhu, Yanwei Fu, Tao Xiang, Jianfeng Feng, Philip H. S. Torr

AI总结:

本文首次探索视觉Transformer在密集预测中的全局上下文潜力,提出SETR用于语义分割,并进一步设计分层局部-全局Transformer以高效处理目标检测、实例分割等任务,取得优异性能。

摘要:

视觉Transformer(ViTs)在图像分类中的出现改变了视觉表示学习的方法论。具体而言,ViTs在每一层以全感受野跨所有图像块学习视觉表示,相比之下,CNN跨层具有递增的感受野以及其他替代方案(例如,大核卷积和空洞卷积)。在这项工作中,我们首次探索了ViTs在密集视觉预测(例如,语义分割)中的全局上下文学习潜力。我们的动机是,通过逐层在全感受野上学习全局上下文,ViTs可能捕获更强的长程依赖信息,这对密集预测任务至关重要。我们首先证明,将图像编码为块序列,一个没有局部卷积和分辨率降低的普通ViT可以为语义分割产生更强的视觉表示。例如,我们的模型,称为SEgmentation TRansformer(SETR),在ADE20K上表现出色(50.28% mIoU,在提交当天的测试排行榜上排名第一),并在Cityscapes上具有竞争力。然而,基本的ViT架构在更广泛的密集预测应用中存在不足,例如目标检测和实例分割,原因是其缺乏金字塔结构、计算需求高以及局部上下文不足。为了以经济高效的方式处理一般密集视觉预测任务,我们进一步构建了一系列分层局部-全局(HLG)Transformer,其特征是在金字塔架构中窗口内的局部注意力和跨窗口的全局注意力。大量实验表明,我们的方法在各种密集预测任务(例如,目标检测、实例分割和语义分割)以及图像分类上取得了令人瞩目的性能。

英文摘要:

The emergence of vision transformers (ViTs) in image classification has shifted the methodologies for visual representation learning. In particular, ViTs learn visual representation at full receptive field per layer across all the image patches, in comparison to the increasing receptive fields of CNNs across layers and other alternatives (e.g., large kernels and atrous convolution). In this work, for the first time we explore the global context learning potentials of ViTs for dense visual prediction (e.g., semantic segmentation). Our motivation is that through learning global context at full receptive field layer by layer, ViTs may capture stronger long-range dependency information, critical for dense prediction tasks. We first demonstrate that encoding an image as a sequence of patches, a vanilla ViT without local convolution and resolution reduction can yield stronger visual representation for semantic segmentation. For example, our model, termed as SEgmentation TRansformer (SETR), excels on ADE20K (50.28% mIoU, the first position in the test leaderboard on the day of submission) and performs competitively on Cityscapes. However, the basic ViT architecture falls short in broader dense prediction applications, such as object detection and instance segmentation, due to its lack of a pyramidal structure, high computational demand, and insufficient local context. For tackling general dense visual prediction tasks in a cost-effective manner, we further formulate a family of Hierarchical Local-Global (HLG) Transformers, characterized by local attention within windows and global-attention across windows in a pyramidal architecture. Extensive experiments show that our methods achieve appealing performance on a variety of dense prediction tasks (e.g., object detection and instance segmentation and semantic segmentation) as well as image classification.

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

↑