Skip to main content
QUICK REVIEW

[Paper Review] Recon: Reducing Conflicting Gradients from the Root for Multi-Task Learning

Guangyuan Shi, Qimai Li|arXiv (Cornell University)|Feb 22, 2023
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

Recon identifies layer-wise gradient conflicts in shared network layers, converts the most conflicting layers to task-specific, and retrains from scratch to substantially reduce conflicts and improve multi-task performance.

ABSTRACT

A fundamental challenge for multi-task learning is that different tasks may conflict with each other when they are solved jointly, and a cause of this phenomenon is conflicting gradients during optimization. Recent works attempt to mitigate the influence of conflicting gradients by directly altering the gradients based on some criteria. However, our empirical study shows that ``gradient surgery'' cannot effectively reduce the occurrence of conflicting gradients. In this paper, we take a different approach to reduce conflicting gradients from the root. In essence, we investigate the task gradients w.r.t. each shared network layer, select the layers with high conflict scores, and turn them to task-specific layers. Our experiments show that such a simple approach can greatly reduce the occurrence of conflicting gradients in the remaining shared layers and achieve better performance, with only a slight increase in model parameters in many cases. Our approach can be easily applied to improve various state-of-the-art methods including gradient manipulation methods and branched architecture search methods. Given a network architecture (e.g., ResNet18), it only needs to search for the conflict layers once, and the network can be modified to be used with different methods on the same or even different datasets to gain performance improvement. The source code is available at https://github.com/moukamisama/Recon.

Motivation & Objective

  • Motivate and address negative transfer due to conflicting gradients in multi-task learning (MTL).
  • Introduce a layer-wise conflict metric to identify where sharing causes the most issues.
  • Propose a simple, scalable method to convert the most conflicting shared layers into task-specific ones and retrain.
  • Demonstrate that removing root-layer conflicts yields improvements across diverse datasets and architectures.

Proposed method

  • Compute task gradients with respect to each shared layer during initial training.
  • Define a layer-wise conflict score s(k) based on the number of task-pair gradient angles with cos(phi) < S across iterations.
  • Identify top-K conflicting layers and convert them to task-specific parameters, retraining the network from scratch.
  • Provide theoretical analysis showing reduced loss after Recon’s one-step update on the modified parameter set.
  • Experimentally validate Recon across multiple datasets and backbones, and show compatibility with gradient manipulation and branched architecture methods.

Experimental results

Research questions

  • RQ1Can gradient conflicts in multi-task learning be mitigated by structurally reducing sharing at the root rather than by gradient manipulation alone?
  • RQ2Which shared layers contribute most to gradient conflicts, and can turning them task-specific improve performance without excessive parameter growth?
  • RQ3Does Recon consistently improve state-of-the-art gradient manipulation and architecture search methods across datasets and architectures?
  • RQ4Is a single search for conflict layers sufficient to yield gains on different tasks or datasets?

Key findings

  • Recon significantly reduces conflicting gradients in the remaining shared layers, often with less than 13% of shared parameters turned into task-specific.
  • Recon yields substantial performance gains over joint-training and most gradient manipulation baselines across several datasets (Multi-Fashion+MNIST, CelebA, CityScapes, PASCAL-Context, NYUv2).
  • Recon improves or matches the best baselines while keeping model size modest and compatible with existing methods (MGDA, PCGrad, GradDrop, CAGrad, RotoGrad, and branched architecture search like BMTAS).
  • The conflict layers identified by Recon are largely consistent across training stages, methods, and datasets for a given architecture, enabling a one-time conflict-layer search for broader applicability.
  • Ablation studies show randomly selecting layers or parameters underperforms Recon, highlighting the importance of targeting the most severe layer-wise conflicts.

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.