A Good Student is Cooperative and Reliable: CNN-Transformer Collaborative Learning for Semantic Segmentation
Preprint
Abstract
In this paper, we strive to answer the question "how to collaboratively learn convolutional neural network (CNN)-based and vision transformer (ViT)-based models by selecting and exchanging the reliable knowledge between them for semantic segmentation?" Accordingly, we propose an online knowledge distillation (KD) framework that can simultaneously learn compact yet effective CNN-based and ViT-based models with two key technical breakthroughs to take full advantage of CNNs and ViT while compensating their limitations. Firstly, we propose heterogeneous feature distillation (HFD) to improve students' consistency in low-layer feature space by mimicking heterogeneous features between CNNs and ViT. Secondly, to facilitate the two students to learn reliable knowledge from each other, we propose bidirectional selective distillation (BSD) that can dynamically transfer selective knowledge. This is achieved by 1) region-wise BSD determining the directions of knowledge transferred between the corresponding regions in the feature space and 2) pixel-wise BSD discerning which of the prediction knowledge to be transferred in the logit space. Extensive experiments on three benchmark datasets demonstrate that our proposed framework outperforms the state-of-the-art online distillation methods by a large margin, and shows its efficacy in learning collaboratively between ViT-based and CNN-based models.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- PVT v2: Improved baselines with pyramid vision transformerComputational Visual Media, 2022
- MiniViT: Compressing Vision Transformers with Weight Multiplexing2022
- Swin Transformer V2: Scaling Up Capacity and Resolution2022
- Mobile-Former: Bridging MobileNet and Transformer2022
- A Survey of Quantization Methods for Efficient Neural Network Inference2022
- Knowledge Distillation and Student-Teacher Learning for Visual Intelligence: A Review and New OutlooksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2021
- Deep Multi-Modal Object Detection and Semantic Segmentation for Autonomous Driving: Datasets, Methods, and ChallengesIEEE Transactions on Intelligent Transportation Systems, 2020
- DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFsIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017