Skip to main content
QUICK REVIEW

[论文解读] Lawin Transformer: Improving Semantic Segmentation Transformer with Multi-Scale Representations via Large Window Attention

Haotian Yan, Chuang Zhang|arXiv (Cornell University)|Jan 5, 2022
Advanced Neural Network ApplicationsComputer Science被引用 48
一句话总结

Lawin Transformer 引入大窗口注意力和 LawinASPP 解码器,将多尺度表示注入语义分割 ViTs,在 Cityscapes、ADE20K 和 COCO-Stuff 上实现具有更高效率的最新研究成果。

ABSTRACT

Multi-scale representations are crucial for semantic segmentation. The community has witnessed the flourish of semantic segmentation convolutional neural networks (CNN) exploiting multi-scale contextual information. Motivated by that the vision transformer (ViT) is powerful in image classification, some semantic segmentation ViTs are recently proposed, most of them attaining impressive results but at a cost of computational economy. In this paper, we succeed in introducing multi-scale representations into semantic segmentation ViT via window attention mechanism and further improves the performance and efficiency. To this end, we introduce large window attention which allows the local window to query a larger area of context window at only a little computation overhead. By regulating the ratio of the context area to the query area, we enable the $ extit{large window attention}$ to capture the contextual information at multiple scales. Moreover, the framework of spatial pyramid pooling is adopted to collaborate with $ extit{the large window attention}$, which presents a novel decoder named $ extbf{la}$rge $ extbf{win}$dow attention spatial pyramid pooling (LawinASPP) for semantic segmentation ViT. Our resulting ViT, Lawin Transformer, is composed of an efficient hierachical vision transformer (HVT) as encoder and a LawinASPP as decoder. The empirical results demonstrate that Lawin Transformer offers an improved efficiency compared to the existing method. Lawin Transformer further sets new state-of-the-art performance on Cityscapes (84.4% mIoU), ADE20K (56.2% mIoU) and COCO-Stuff datasets. The code will be released at https://github.com/yan-hao-tian/lawin

研究动机与目标

  • 推动将多尺度上下文信息整合到语义分割 ViTs 中,以提高精度和效率。
  • 开发一个大窗口注意力机制,以在受控计算开销的前提下扩展上下文查询。
  • 设计 LawinASPP,将多尺度上下文线索与轻量级解码器融合。
  • 在标准语义分割基准上评估 Lawin Transformer,并与最先进的 ViT 基于和 CNN 基于方法进行比较。

提出的方法

  • 引入大窗口注意力,其中查询补丁对一个按比率 R 缩放的上下文补丁进行关注,并通过池化来保持复杂性。
  • 使用多头注意力,头数设为 R^2,以在池化后恢复依赖关系。
  • 对每个头应用位置混合 MLP 以加强上下文补丁内的空间表示,灵感来自 MLP-Mixer。
  • 用 LawinASPP 替换标准解码器,它是一个空间金字塔池化变体,将具有大窗口注意力的分支在 R=(2,4,8) 的组合以及图像池化分支。
  • 将 LawinASPP 与分层视觉Transformer 编码器(MiT 或 Swin)集成,并将多级特征与低层早期特征融合以进行最终预测。

实验结果

研究问题

  • RQ1大窗口注意力能否在语义分割 ViTs 中高效捕捉多尺度上下文信息?
  • RQ2LawinASPP 是否在多尺度表示和最终分割性能方面优于现有解码器?
  • RQ3在大窗口注意力中,池化比率 R、头数,以及位置混合与通道混合对准确性和效率的影响有多大?
  • RQ4Lawin Transformer 在 Cityscapes、ADE20K 和 COCO-Stuff 上对比最先进的 ViT 基于 与 CNN 基于 方法的表现如何?

主要发现

  • Lawin Transformer 在各变体下相较 SegFormer 和 Swin-UperNet,取得更高的 mIoU,FLOPs 低于或可比。
  • Lawin-B4 和 Lawin-B5 变体在 ADE20K 和 Cityscapes 上在降低计算量的同时显示出 mIoU 的提升。
  • LawinASPP 在 ADE20K 上在 mIoU 上超过 ASPP、PPM 与 SEP-ASPP,同时保持具有竞争力的 FLOPs。
  • 位置混合 MLP 在测试的大窗口注意力混合策略中提供了最大收益,优于通道混合方法。
  • 该框架在 Cityscapes(84.4% mIoU 与 Swin-L 编码器)、ADE20K(53.0% mIoU 与 MiT-B5;84.4% mIoU 与 Swin-L)、COCO-Stuff(47.5% mIoU 与 MiT-B5)上实现了最新的结果。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。