arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.13393cs.CVcs.ROeess.IV
收藏

TransKD:用于高效语义分割的Transformer知识蒸馏

TransKD: Transformer Knowledge Distillation for Efficient Semantic Segmentation

Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Hunan University(湖南大学);University of Stuttgart(斯图加特大学);ETH Zurich(苏黎世联邦理工学院);NIO(蔚来汽车)

Ruiping Liu, Kailun Yang, Alina Roitberg, Jiaming Zhang, Kunyu Peng, Huayao Liu, Yaonan Wang, Rainer Stiefelhagen

AI总结:

本文提出TransKD框架,通过特征图蒸馏与patch嵌入蒸馏训练紧凑学生Transformer,在保持语义分割性能的同时将FLOPs降低85%以上,并优于现有蒸馏方法。

摘要:

自动驾驶领域的语义分割基准目前由大型预训练Transformer主导,但其广泛应用受到高昂计算成本和漫长训练时间的制约。为突破这一限制,我们从综合知识蒸馏的视角审视高效语义分割,旨在弥合多源知识提取与Transformer特有的patch嵌入之间的差距。我们提出了基于Transformer的知识蒸馏(TransKD)框架,该框架通过蒸馏大型教师Transformer的特征图和patch嵌入来学习紧凑的学生Transformer,从而绕过漫长的预训练过程,并将FLOPs降低超过85.0%。具体而言,我们提出了两个基础模块来分别实现特征图蒸馏和patch嵌入蒸馏:(1)交叉选择性融合(CSF)通过通道注意力和层级Transformer内的特征图蒸馏实现跨阶段特征之间的知识迁移;(2)Patch嵌入对齐(PEA)在patch化过程中执行维度变换,以促进patch嵌入蒸馏。此外,我们引入了两个优化模块,从不同角度增强patch嵌入蒸馏:(1)全局-局部上下文混合器(GL-Mixer)提取代表性嵌入的全局和局部信息;(2)嵌入助手(EA)作为一种嵌入方法,以教师的通道数无缝连接教师模型和学生模型。在Cityscapes、ACDC、NYUv2和Pascal VOC2012数据集上的实验表明,TransKD优于最先进的蒸馏框架,并可媲美耗时的预训练方法。源代码已公开于https://github.com/RuipingL/TransKD。

英文摘要:

Semantic segmentation benchmarks in the realm of autonomous driving are dominated by large pre-trained transformers, yet their widespread adoption is impeded by substantial computational costs and prolonged training durations. To lift this constraint, we look at efficient semantic segmentation from a perspective of comprehensive knowledge distillation and aim to bridge the gap between multi-source knowledge extractions and transformer-specific patch embeddings. We put forward the Transformer-based Knowledge Distillation (TransKD) framework which learns compact student transformers by distilling both feature maps and patch embeddings of large teacher transformers, bypassing the long pre-training process and reducing the FLOPs by >85.0%. Specifically, we propose two fundamental modules to realize feature map distillation and patch embedding distillation, respectively: (1) Cross Selective Fusion (CSF) enables knowledge transfer between cross-stage features via channel attention and feature map distillation within hierarchical transformers; (2) Patch Embedding Alignment (PEA) performs dimensional transformation within the patchifying process to facilitate the patch embedding distillation. Furthermore, we introduce two optimization modules to enhance the patch embedding distillation from different perspectives: (1) Global-Local Context Mixer (GL-Mixer) extracts both global and local information of a representative embedding; (2) Embedding Assistant (EA) acts as an embedding method to seamlessly bridge teacher and student models with the teacher's number of channels. Experiments on Cityscapes, ACDC, NYUv2, and Pascal VOC2012 datasets show that TransKD outperforms state-of-the-art distillation frameworks and rivals the time-consuming pre-training method. The source code is publicly available at https://github.com/RuipingL/TransKD.

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

↑