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

基于线性Transformer的无中心轻量级语义分割

Head-Free Lightweight Semantic Segmentation with Linear Transformer

Alibaba Group(阿里巴巴集团);Amazon Prime Video(亚马逊Prime Video)

Bo Dong, Pichao Wang, Fan Wang

摘要:

现有的语义分割工作主要集中在设计有效的解码器,但长期以来忽略了整体结构引入的计算负载,这阻碍了它们在资源受限的硬件上的应用。在本文中,我们提出了一个专门用于语义分割的无头轻量级架构,名为自适应频率Transformer。它采用了一种并行架构,利用原型表示作为特定的可学习的本地描述,取代解码器,并保留了丰富的图像语义的高分辨率功能。虽然去除解码器压缩了大部分计算,但并行结构的精度仍然受到低计算资源的限制。因此,我们采用异构运算符(CNN和视觉Transformer)进行像素嵌入和原型表示,以进一步节省计算成本。而且,从空间域的角度来线性化视觉Transformer的复杂度是非常困难的。由于事实上,语义分割是非常敏感的频率信息,我们构建了一个轻量级的原型学习块与自适应频率滤波器的复杂度$O(n)$取代标准的自我注意与$O(n^{2})$。在广泛采用的数据集上进行的大量实验表明,我们的模型在仅保留3M参数的情况下实现了卓越的准确性。在ADE20K数据集上,我们的模型实现了41.8 mIoU和4.6 GFLOPs,比Segformer高4.4 mIoU,GFLOPs少45%。在Cityscapes数据集上,我们的模型实现了78.7 mIoU和34.4 GFLOPs,比Segformer高2.5 mIoU,GFLOPs少72.5%。代码可在https://github.com/dongbo811/AFFormer上获得。

英文摘要:

Existing semantic segmentation works have been mainly focused on designing effective decoders; however, the computational load introduced by the overall structure has long been ignored, which hinders their applications on resource-constrained hardwares. In this paper, we propose a head-free lightweight architecture specifically for semantic segmentation, named Adaptive Frequency Transformer. It adopts a parallel architecture to leverage prototype representations as specific learnable local descriptions which replaces the decoder and preserves the rich image semantics on high-resolution features. Although removing the decoder compresses most of the computation, the accuracy of the parallel structure is still limited by low computational resources. Therefore, we employ heterogeneous operators (CNN and Vision Transformer) for pixel embedding and prototype representations to further save computational costs. Moreover, it is very difficult to linearize the complexity of the vision Transformer from the perspective of spatial domain. Due to the fact that semantic segmentation is very sensitive to frequency information, we construct a lightweight prototype learning block with adaptive frequency filter of complexity $O(n)$ to replace standard self attention with $O(n^{2})$. Extensive experiments on widely adopted datasets demonstrate that our model achieves superior accuracy while retaining only 3M parameters. On the ADE20K dataset, our model achieves 41.8 mIoU and 4.6 GFLOPs, which is 4.4 mIoU higher than Segformer, with 45% less GFLOPs. On the Cityscapes dataset, our model achieves 78.7 mIoU and 34.4 GFLOPs, which is 2.5 mIoU higher than Segformer with 72.5% less GFLOPs. Code is available at https://github.com/dongbo811/AFFormer.

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

↑