Abstract
Semantic segmentation is a computationally intensive task, often requiring high-resolution feature maps to maintain accuracy. This paper introduces a novel knowledge distillation framework designed to bridge the gap between heavy-duty teacher networks and lightweight student models. By utilizing a pre-trained autoencoder to translate complex teacher features into a compact latent space and distilling long-range spatial affinities, the proposed method allows small models to achieve performance comparable to state-of-the-art networks while using as little as 8% of the computational cost (FLOPs).
Introduction
Semantic segmentation—assigning a category label to every pixel—is essential for applications like autonomous driving and medical imaging. However, state-of-the-art models are often too slow for real-time use on mobile or embedded devices. A common strategy to increase speed is to increase the output stride (subsampling the image more aggressively), but this typically results in a significant loss of fine structural detail and long-range context.
Standard Knowledge Distillation (KD) techniques, where a small "student" model mimics a large "teacher," often struggle in this domain because the architectural differences between the two models make direct feature alignment difficult. This research addresses these challenges through a specialized "translation" and "affinity" approach.
Methodology
The authors propose two primary modules to facilitate effective knowledge transfer from a heavy teacher (e.g., ResNet-101) to a light student (e.g., MobileNetV2):
- Knowledge Translation via Autoencoders: Rather than forcing the student to copy raw feature maps, the framework trains an autoencoder on the teacher’s features. This autoencoder learns a compact latent representation of the teacher's knowledge. The student is then trained to match this compressed version, which acts as a "translator" to simplify complex information for the smaller model.
- Affinity Distillation Module: Lightweight models often suffer from a limited receptive field. To compensate, the authors calculate an affinity matrix that maps how every pixel relates to every other pixel across the image. By mimicking the teacher’s affinity matrix, the student learns global context and long-range dependencies that it would otherwise miss due to its smaller size.
Key Results and Discussion
The researchers evaluated their method on standard benchmarks including Cityscapes, Pascal VOC, and Pascal Context.
On the Cityscapes dataset, the proposed method boosted the student network's performance by 2.5% mIOU (from 70.2% to 72.7%). Notably, the method allows a model with an output stride of 16 (faster, lower resolution) to outperform a baseline model with an output stride of 8 (slower, higher resolution), effectively breaking the traditional trade-off between resolution and speed.
As shown in the performance analysis, the distilled MobileNetV2 achieved 75.8% mIOU on Pascal VOC, outperforming other lightweight competitors like ICNet and ENet while maintaining high frame rates (over 120 FPS on a 1080Ti). The compact model achieved comparable performance to high-resolution models while utilizing only 8% of the FLOPs.
Conclusion
This paper demonstrates that direct feature imitation is less effective than latent domain matching for semantic segmentation. By focusing on how pixels relate to each other (affinity) and using an autoencoder as a knowledge translator, lightweight models can inherit the sophisticated spatial understanding of much larger networks. Future work may extend this latent domain distillation to other dense prediction tasks such as depth estimation or instance segmentation.
Summary updated