arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.09499cs.CVcs.LG
收藏

用于高效语义分割的动态修剪分割器

Dynamically pruning segformer for efficient semantic segmentation

The Chinese University of Hong Kong(香港中文大学)

Haoli Bai, Hongda Mao, Dinesh Nair

摘要:

SegFormer作为计算机视觉领域中成功的基于transformer的模型之一,在语义分割方面表现出了优异的性能。然而,高计算成本极大地挑战了SegFormer在边缘设备上的部署。在本文中,我们试图设计一个轻量级的SegFormer有效的语义分割。基于SegFormer层中的神经元在不同图像中表现出很大的差异的观察,我们提出了一个动态门控线性层,它根据输入实例修剪最无信息的神经元集合。为了改进动态修剪的SegFormer,我们还引入了两阶段的知识蒸馏,将原始教师中的知识转移到修剪的学生网络中。实验结果表明,该方法可以显着减少SegFormer的计算开销,而没有明显的性能下降。例如,我们可以在ADE20K上仅用3.3G FLOP实现36.9%的mIoU,在mIoU仅下降0.5%的情况下节省超过60%的计算

英文摘要:

As one of the successful Transformer-based models in computer vision tasks, SegFormer demonstrates superior performance in semantic segmentation. Nevertheless, the high computational cost greatly challenges the deployment of SegFormer on edge devices. In this paper, we seek to design a lightweight SegFormer for efficient semantic segmentation. Based on the observation that neurons in SegFormer layers exhibit large variances across different images, we propose a dynamic gated linear layer, which prunes the most uninformative set of neurons based on the input instance. To improve the dynamically pruned SegFormer, we also introduce two-stage knowledge distillation to transfer the knowledge within the original teacher to the pruned student network. Experimental results show that our method can significantly reduce the computation overhead of SegFormer without an apparent performance drop. For instance, we can achieve 36.9% mIoU with only 3.3G FLOPs on ADE20K, saving more than 60% computation with the drop of only 0.5% in mIoU

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

↑