arXiv(opens in a new tab)Computer ScienceNov 2020

Manuscript Offprint

arXiv:2011.08007

Domain Adaptive Knowledge Distillation for Driving Scene Semantic Segmentation

D. Kothandaraman, Athira M. Nambiar, Anurag Mittal

Abstract

Practical autonomous driving systems face two crucial challenges: memory constraints and domain gap issues. In this paper, we present a novel approach to learn domain adaptive knowledge in models with limited memory, thus bestowing the model with the ability to deal with these issues in a comprehensive manner. We term this as ”Domain Adaptive Knowledge Distillation” and address the same in the context of unsupervised domain-adaptive semantic segmentation by proposing a multi-level distillation strategy to effectively distil knowledge at different levels. Further, we introduce a novel cross entropy loss that leverages pseudo labels from the teacher. These pseudo teacher labels play a multifaceted role towards: (i) knowledge distillation from the teacher network to the student network & (ii) serving as a proxy for the ground truth for target domain images, where the problem is completely unsupervised. We introduce four paradigms for distilling domain adaptive knowledge and carry out extensive experiments and ablation studies on real-to-real as well as synthetic-to-real scenarios. Our experiments demonstrate the profound success of our proposed method.

1 Introduction

Semantic segmentation is one of the fundamental tasks in perception for autonomous vehicles. The goal of semantic segmentation is to assign a label (car, tree, sky, etc.) to every pixel in the image. This information is quite relevant in the decision making of autonomous vehicles, as it provides information regarding shape/location of objects and the background. Recently, deep neural networks have imparted immense progress in this field. Some benchmark architectures include Fully Connected Networks [22], Dilated Residual Networks [43], and DeepLab [5], PSPNet [46], and Gated-scnn [34].

Despite these advancements, there are some practical challenges that cause a hindrance to even the best performing models. One such major drawback is the “domain-gap” issue. It particularly exists in ‘in-the-wild’ scenarios, where neural networks trained on one domain won’t generalize well on other domains, due to large domain gaps between the source (on which the neural network was trained) and the target (test) domains. This is mainly due to significant changes in the illumination, weather conditions and seasonal changes across domains. Additionally, collecting ground-truth (GT) annotations for different domains is a laborious and expensive task. This calls for an approach, that is capable of leveraging existing ground truth information in some domains to improve performance in other domains in an unsupervised manner. To this end, Unsupervised Domain Adaptation (UDA) has emerged as a solution. The goal of UDA is to align features (reduce domain gap) across the source (labelled) and target (unlabelled) domains, so that the adapted model performs well on both domains.

Another key issue at the production end is the memory constraint of the system. Most of the best-performing models are very deep and have high memory requirements. However, practical applications require the model to fit and evaluate on large images (as captured from a car) with limited memory, as in mobile devices. Many recent approaches have been inviting attention towards using compact light weight models [24],[45],[29]. However, these models result in lower performance efficiency in comparison with the state-of-the-art (SOTA) architectures that use deep backbones. With respect to this, model compression techniques like Knowledge Distillation [16],[32] have contributed significantly in fuelling the performance of a compact Student network by transferring knowledge from a cumbersome Teacher network.

In this paper, we propose a novel holistic end-to-end approach for distilling domain adaptive segmentation knowledge to tackle the challenges of domain gap and memory constraint, simultaneously. The goal is to distil domain-adaptive knowledge from a computationally expensive teacher network to a compact student network, to boost its performance in the target domain. To the best of our knowledge, this paper marks one of the first approaches towards this multifaceted goal. To facilitate our proposal, we propose a multi-level distillation (MLD) strategy with novel loss functions to improve performance for both knowledge distillation (KD) and domain adaptation (DA) in a simultaneous manner.

Our proposed method distils knowledge at two levels - feature space and output space - using a combination of KL divergence and MSE loss terms. Furthermore, in order to optimize our model for both tasks simultaneously, we discern the need for an additional loss function that is tailored explicitly to serve the multitudinous goal. In this regard, we leverage the teacher network soft predictions to generate pseudo labels. These pseudo labels enhance knowledge transfer at the output space. These labels are particularly relevant in the target domain, as they serves as a proxy for ground truth, which is otherwise unavailable. Our newly presented cross entropy loss function with pseudo-labels serves as a multifarious objective function, by serving as an emissary for the unavailable ground truth in the target domain, while also amplifying the distillation from the teacher to the student.

We evaluate our proposed method on large-scale autonomous driving datasets. In addition to the benchmark synthetic-to-real adaptation case scenario (GTA5 to Cityscapes), we assess our pipeline on a real-to-real scenario too (BDD to Cityscapes). In summary, the key contributions of this paper are as follows:

(1) A novel framework that distils domain adaptive knowledge to address two core practical problems (i.e. low memory networks & domain gap) concurrently.; (2) A multi-level distillation strategy carried out at the feature and output spaces.; (3) Proposal of a tailor-made loss function: cross entropy with pseudo teacher labels for this multifaceted problem.; (4) Extensive experimental analysis and ablation studies on both synthetic-to-real, and on real-to-real cases.

References (48)