Skip to main content
QUICK REVIEW

[Paper Review] Regularizing Deep Multi-Task Networks using Orthogonal Gradients

Mihai Şuteu, Yike Guo|arXiv (Cornell University)|Dec 14, 2019
Sparse and Compressive Sensing TechniquesEngineering34 references30 citations
TL;DR

This paper proposes CosReg, a novel gradient regularization method that enforces orthogonality between task gradients in deep multi-task networks to reduce interference and improve performance. By minimizing the cosine similarity between gradients of different tasks, the method encourages decoders to learn from distinct feature representations, achieving competitive results on NYUv2 and SUN RGB-D for semantic segmentation and depth estimation tasks.

ABSTRACT

Deep neural networks are a promising approach towards multi-task learning because of their capability to leverage knowledge across domains and learn general purpose representations. Nevertheless, they can fail to live up to these promises as tasks often compete for a model's limited resources, potentially leading to lower overall performance. In this work we tackle the issue of interfering tasks through a comprehensive analysis of their training, derived from looking at the interaction between gradients within their shared parameters. Our empirical results show that well-performing models have low variance in the angles between task gradients and that popular regularization methods implicitly reduce this measure. Based on this observation, we propose a novel gradient regularization term that minimizes task interference by enforcing near orthogonal gradients. Updating the shared parameters using this property encourages task specific decoders to optimize different parts of the feature extractor, thus reducing competition. We evaluate our method with classification and regression tasks on the multiDigitMNIST, NYUv2 and SUN RGB-D datasets where we obtain competitive results.

Motivation & Objective

  • To address task interference in deep multi-task networks caused by competing gradients during shared parameter optimization.
  • To investigate whether gradient direction alignment (specifically orthogonality) correlates with improved multi-task performance.
  • To develop a new regularization technique that explicitly enforces gradient orthogonality to reduce competition between tasks.
  • To evaluate the method on diverse multi-task vision benchmarks, including NYUv2 and SUN RGB-D, under varying task similarity and scale.
  • To explore the implicit orthogonality induced by common regularization techniques like Dropout and BatchNorm.

Proposed method

  • Proposes a new regularization term that minimizes the squared cosine between gradients of different tasks with respect to shared parameters.
  • Introduces a loss component that penalizes non-orthogonal gradient directions, encouraging task-specific decoders to utilize different parts of the shared feature extractor.
  • Applies the regularization via a hyperparameter α that controls the strength of the gradient orthogonality penalty in the overall multi-task loss.
  • Uses Adam optimizer with learning rate decay and data augmentation (e.g., horizontal flips) in experiments on NYUv2 and SUN RGB-D.
  • Employs a standard hard parameter sharing architecture with a shared encoder and task-specific decoders for semantic segmentation and depth estimation.
  • Measures gradient angle variance and cosine distributions throughout training to analyze the effect of regularization on gradient interactions.

Experimental results

Research questions

  • RQ1Does high variance in the angle between task gradients correlate with poor multi-task performance?
  • RQ2Can explicit regularization of gradient orthogonality improve generalization and reduce task interference in multi-task deep networks?
  • RQ3Do common regularization techniques like Dropout and BatchNorm implicitly promote gradient orthogonality?
  • RQ4How does gradient orthogonality perform on highly correlated tasks, such as coarse and fine semantic segmentation?
  • RQ5Can gradient direction regularization outperform magnitude-based loss weighting methods like GradNorm and uncertainty weighting?

Key findings

  • Unregularized multi-task models exhibit high variance in the cosine similarity between task gradients, indicating frequent interference.
  • Well-performing models consistently show a zero-centered and low-variance distribution of cosine similarities between task gradients.
  • Dropout and BatchNorm implicitly reduce gradient cosine variance, suggesting they promote orthogonality during training.
  • The proposed CosReg method achieves state-of-the-art performance on NYUv2 and SUN RGB-D, outperforming equal-weighted baselines and methods like GradNorm and Kendall et al. (2018).
  • On the SUN RGB-D dataset, CosReg achieves a 1-mIoU of 0.644 on coarse segmentation and 0.714 on fine segmentation, outperforming all baselines.
  • Even in the presence of highly correlated tasks (e.g., coarse and fine segmentation), CosReg successfully enforces gradient orthogonality and improves performance.

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.