[论文解读] PP-MobileSeg: Explore the Fast and Accurate Semantic Segmentation Model on Mobile Devices
PP-MobileSeg 引入 StrideFormer、Aggregated Attention Module (AAM) 以及 Valid Interpolate Module (VIM),在 ARM 设备上实现最先进的移动端语义分割,兼顾准确性、模型大小和延迟。
The success of transformers in computer vision has led to several attempts to adapt them for mobile devices, but their performance remains unsatisfactory in some real-world applications. To address this issue, we propose PP-MobileSeg, a semantic segmentation model that achieves state-of-the-art performance on mobile devices. PP-MobileSeg comprises three novel parts: the StrideFormer backbone, the Aggregated Attention Module (AAM), and the Valid Interpolate Module (VIM). The four-stage StrideFormer backbone is built with MV3 blocks and strided SEA attention, and it is able to extract rich semantic and detailed features with minimal parameter overhead. The AAM first filters the detailed features through semantic feature ensemble voting and then combines them with semantic features to enhance the semantic information. Furthermore, we proposed VIM to upsample the downsampled feature to the resolution of the input image. It significantly reduces model latency by only interpolating classes present in the final prediction, which is the most significant contributor to overall model latency. Extensive experiments show that PP-MobileSeg achieves a superior tradeoff between accuracy, model size, and latency compared to other methods. On the ADE20K dataset, PP-MobileSeg achieves 1.57% higher accuracy in mIoU than SeaFormer-Base with 32.9% fewer parameters and 42.3% faster acceleration on Qualcomm Snapdragon 855. Source codes are available at https://github.com/PaddlePaddle/PaddleSeg/tree/release/2.8.
研究动机与目标
- 激发并解决在资源受限的移动设备上实现高精度语义分割的需求。
- 设计兼顾模型大小、延迟和准确性的移动友好型架构。
- 开发能够在移动硬件上高效融合特征并降低推理延迟的模块。
提出的方法
- 使用 MobileNetV3 块的四阶段 StrideFormer 主干,在后两阶段应用带步长的 SEA 注意力。
- 通过 Aggregated Attention Module (AAM) 对语义丰富的特征进行集合,提升细节融合。
- Valid Interpolate Module (VIM) 通过对仅与预测类别相关的通道进行上采样,替代最终的插值和 ArgMax。
- 提供两种架构变体(PP-MobileSeg-Base 和 PP-MobileSeg-Tiny),具有不同的通道宽度和 SEA 头以满足不同复杂性需求。
- 训练采用 ImageNet1K 预训练,以 cross-entropy 和 Lovasz 损失的 4:1 比例,AdamW 优化器,并结合与先前移动端分割工作一致的数据增强。
- 在 Qualcomm Snapdragon 855 上使用 PaddleLite 进行推理延迟分析,且在大类别数据集上启用 VIM。
实验结果
研究问题
- RQ1在参数有限的情况下,混合 CNN-Transformer 主干能否实现更高的移动端分割准确性?
- RQ2通过用类别感知的上采样模块替代最终插值/ArgMax,能在移动设备上将延迟降低多少?
- RQ3所提出的 StrideFormer、AAM 和 VIM 模块是否在 ADE20K 与 Cityscapes 数据集上实现准确性与延迟的协同提升?
主要发现
- PP-MobileSeg-Tiny 在 ADE20K 上取得 36.39 mIoU,延迟 215.3 ms,参数量 1.44 M,超越若干轻量基线。
- PP-MobileSeg-Base 在 ADE20K 上达到 41.57 mIoU,延迟 265.5 ms,参数 5.71 M,提供比 SeaFormer-Base 更小的体积下的具有竞争力的准确性。
- 在 Cityscapes 数据集,PP-MobileSeg-Tiny 达到 70.82 mIoU,延迟 158.3 ms,参数 1.44 M,超越 SeaFormer-Small,且符合移动端效率期望。
- PP-MobileSeg-Base 在 Cityscapes 上达到 74.14 mIoU,延迟 323.7 ms,参数 5.71 M,提供更高的准确性且延迟在合理范围内。
- 消融研究表明 VIM 将延迟降低约 49.5%,且 AAM 的集成投票与最终语义也对准确性提升有贡献。
- StrideFormer 四阶段主干相比替代方案,减少参数开销约 32.19%,并将准确性提升约 0.78%。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。