Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Distillation for Multi-task Learning

Weihong Li, Hakan Bilen|arXiv (Cornell University)|Jul 14, 2020
Domain Adaptation and Few-Shot LearningComputer Science31 references5 citations
TL;DR

This paper proposes a knowledge distillation-based method for multi-task learning that improves training balance and performance by aligning multi-task network features with task-specific models via learnable adaptors. By jointly minimizing task-specific and distillation losses, the method achieves superior, balanced performance across diverse tasks like semantic segmentation, depth estimation, and surface normal prediction on benchmarks such as NYU-V2 and SVHN & Omniglot.

ABSTRACT

Multi-task learning (MTL) is to learn one single model that performs multiple tasks for achieving good performance on all tasks and lower cost on computation. Learning such a model requires to jointly optimize losses of a set of tasks with different difficulty levels, magnitudes, and characteristics (e.g. cross-entropy, Euclidean loss), leading to the imbalance problem in multi-task learning. To address the imbalance problem, we propose a knowledge distillation based method in this work. We first learn a task-specific model for each task. We then learn the multi-task model for minimizing task-specific loss and for producing the same feature with task-specific models. As the task-specific network encodes different features, we introduce small task-specific adaptors to project multi-task features to the task-specific features. In this way, the adaptors align the task-specific feature and the multi-task feature, which enables a balanced parameter sharing across tasks. Extensive experimental results demonstrate that our method can optimize a multi-task learning model in a more balanced way and achieve better overall performance.

Motivation & Objective

  • Address the imbalance problem in multi-task learning where tasks with different loss magnitudes and characteristics dominate training.
  • Improve overall performance across all tasks by preventing high-performing tasks from overshadowing lower-performing ones.
  • Enable balanced parameter sharing across tasks with varying semantic levels and complexity by aligning features through task-specific adaptors.
  • Achieve better generalization and efficiency by leveraging pre-trained single-task models as knowledge sources for the multi-task network.
  • Provide a more stable and controllable optimization process than loss weighting or gradient modulation methods, which often fail to prevent task dominance.

Proposed method

  • Train a separate, task-specific model for each task in an offline stage and freeze its parameters.
  • Optimize the multi-task network to minimize both task-specific losses and a distillation loss that aligns its features with those of the frozen task-specific models.
  • Introduce small, learnable task-specific adaptors to project features from the multi-task network to match the feature space of each task-specific model.
  • Use linear or non-linear adaptors (e.g., 1×1 convolutions with ReLU) to enable flexible and effective feature alignment across different tasks.
  • Apply distillation loss to multiple layers (e.g., middle and last shared layers) to strengthen feature alignment and improve optimization stability.
  • Train the multi-task network end-to-end with a combined loss: weighted sum of task-specific losses and distillation losses across selected layers.

Experimental results

Research questions

  • RQ1Can knowledge distillation from task-specific models improve the balance and overall performance in multi-task learning?
  • RQ2Does aligning multi-task network features with those of single-task models lead to better generalization and reduced task dominance?
  • RQ3How do different adaptor architectures (linear vs. non-linear) affect feature alignment and final performance?
  • RQ4What is the impact of applying distillation loss to multiple network layers versus only the last layer?
  • RQ5Can this method outperform existing loss-weighting and gradient-modulation strategies in balancing multi-task optimization?

Key findings

  • The proposed method achieves state-of-the-art performance on NYU-V2, with a 20.75 mIoU in semantic segmentation, outperforming MTAN and other baselines.
  • On NYU-V2, using distillation loss on both middle and last layers improved mIoU from 18.75 to 20.75, demonstrating the benefit of multi-layer distillation.
  • The method significantly balances training dynamics: distillation loss converges more evenly than task-specific losses, with SVHN and Omniglot distillation losses at 0.089 and 0.041, respectively, compared to task-specific losses of 0.137 and 1.492.
  • On NYU-V2, distillation loss values (0.534, 0.381, 0.364) for segmentation, depth, and normal estimation were more balanced than task-specific losses (0.027, 0.127, 0.039), indicating improved optimization balance.
  • Linear adaptors were sufficient for performance gains, as non-linear adaptors did not yield significant improvements, suggesting that simple projections are effective for feature alignment.
  • Removing adaptors led to a drop in mIoU to 17.11, confirming that feature alignment via adaptors is critical for performance and balance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.