Skip to main content
QUICK REVIEW

[论文解读] Lightweight Real-time Semantic Segmentation Network with Efficient Transformer and CNN

Guoan Xu, Juncheng Li|arXiv (Cornell University)|Feb 21, 2023
Advanced Neural Network ApplicationsComputer Science被引用 3
一句话总结

该论文提出LETNet,一种轻量级实时语义分割网络,通过将U型CNN与高效Transformer结合在类胶囊网络架构中,实现全局上下文建模与局部细节保留之间的平衡。该模型在Cityscapes上以120 FPS的速度达到72.8% mIoU,在CamVid上以250 FPS的速度达到70.5% mIoU,仅使用0.95M参数和13.6G FLOPs,展现出优越的精度-效率权衡。

ABSTRACT

In the past decade, convolutional neural networks (CNNs) have shown prominence for semantic segmentation. Although CNN models have very impressive performance, the ability to capture global representation is still insufficient, which results in suboptimal results. Recently, Transformer achieved huge success in NLP tasks, demonstrating its advantages in modeling long-range dependency. Recently, Transformer has also attracted tremendous attention from computer vision researchers who reformulate the image processing tasks as a sequence-to-sequence prediction but resulted in deteriorating local feature details. In this work, we propose a lightweight real-time semantic segmentation network called LETNet. LETNet combines a U-shaped CNN with Transformer effectively in a capsule embedding style to compensate for respective deficiencies. Meanwhile, the elaborately designed Lightweight Dilated Bottleneck (LDB) module and Feature Enhancement (FE) module cultivate a positive impact on training from scratch simultaneously. Extensive experiments performed on challenging datasets demonstrate that LETNet achieves superior performances in accuracy and efficiency balance. Specifically, It only contains 0.95M parameters and 13.6G FLOPs but yields 72.8\% mIoU at 120 FPS on the Cityscapes test set and 70.5\% mIoU at 250 FPS on the CamVid test dataset using a single RTX 3090 GPU. The source code will be available at https://github.com/IVIPLab/LETNet.

研究动机与目标

  • 解决CNN在捕捉长距离依赖关系方面的局限性,以及Transformer在像素级分割中丢失细粒度空间细节的问题。
  • 设计一种适合在资源受限设备上部署的轻量级、实时语义分割模型。
  • 在不依赖大规模预训练的前提下,平衡模型效率(参数量、FLOPs)与高分割精度(mIoU)。
  • 以参数高效、端到端可训练的架构,整合来自轻量级Transformer的全局上下文建模与来自CNN的局部特征提取。

提出的方法

  • 提出轻量级空洞瓶颈(LDB)模块,利用空洞卷积与深度可分离卷积,在保留语义信息的同时减少参数量与FLOPs。
  • 设计一种混合U型编码器-解码器网络,其中高效Transformer作为胶囊网络,用于建模特征表示中的长距离依赖关系。
  • 在Transformer中采用轻量级多头注意力(MHA)机制,以降低GPU显存占用与计算成本。
  • 引入特征增强(FE)模块,以提升特征表达能力并抑制跳跃连接中的噪声。
  • 在编码器-解码器各阶段之间采用长跳跃连接,以保留并恢复下采样过程中丢失的浅层空间细节。
  • 采用类胶囊嵌入设计,将Transformer视为全局特征聚合的动态路由机制。

实验结果

研究问题

  • RQ1轻量级Transformer是否能在不带来高计算成本的前提下,有效建模语义分割中的长距离依赖?
  • RQ2如何有效融合CNN与Transformer,以同时保留局部空间细节与全局上下文?
  • RQ3在极低参数量(如<1M)下,模型在实时推理中能多大程度上维持高分割精度?
  • RQ4通过长跳跃连接实现浅层特征恢复与FE模块的集成,是否能显著提升分割性能?

主要发现

  • 在Cityscapes测试集上,LETNet仅使用单张RTX 3090 GPU,以120 FPS的速度达到72.8% mIoU,参数量仅0.95M,FLOPs为13.6G。
  • 在CamVid数据集上,LETNet以250 FPS的速度达到70.5% mIoU,其精度-效率平衡优于其他小型模型。
  • 消融实验表明,添加特征增强(FE)模块使mIoU提升0.2%,仅增加101K参数与0.0032G FLOPs。
  • 与基线相比,引入高效Transformer与像素级注意力机制分别使mIoU提升3.07%与0.5%。
  • 最终模型(C3*)相比基线实现5.15%的mIoU提升,证实了所有所提组件的有效性。
  • 在Cityscapes与CamVid上的可视化对比显示,LETNet生成的分割掩码比竞争方法更准确、更细致。

阅读本论文

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

在 Nubint 中阅读本论文

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