NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Proactive Gradient Conflict Mitigation in Multi-Task Learning: A Sparse Training Perspective

Zhi Zhang, Jiayi Shen, Congfeng Cao, Gaole Dai, Shiji Zhou, Qizhe Zhang, Shanghang Zhang, Ekaterina ShutovaarXiv 2024 · OpenReview

Abstract

Advancing towards generalist agents necessitates the concurrent processing of multiple tasks using a unified model. A common issue in multi-task learning (MTL) is gradient conflict (GC), where competition among tasks during joint training leads to sub-optimal performance. While existing methods reactively manipulate gradients to find a compromise, they do not reduce the incidence of conflict. This paper proposes a proactive strategy: Sparse Training (ST). By updating only a portion of the model's parameters, ST effectively mitigates conflicting gradients and enhances performance across various architectures and tasks.

The Challenge of Gradient Conflict

Multi-Task Learning aims to train a single model to perform multiple downstream tasks simultaneously. However, this often leads to "tug-of-war" scenarios where the gradient of Task A conflicts with the gradient of Task B. This competition results in a "seesaw" effect, where improvements in one task come at the expense of another.

Traditional solutions are reactive, applying "gradient manipulation" techniques (like PCGrad or CAGrad) to adjust gradients after they have been calculated and found to be in conflict. As models scale up to foundation-model sizes, these conflicts become more frequent and severe, making reactive measures less efficient.

Proactive Mitigation via Sparse Training (ST)

The authors propose a proactive approach by restricting the optimization to a lower-dimensional subspace through Sparse Training. By updating only a carefully selected subset of parameters, the "surface area" for potential conflicts between tasks is reduced.

The core of this approach is Parameter Selection per Neuron (PSN):

  1. Magnitude-Based Selection: Parameters with the highest magnitudes are prioritized, as they typically have the most significant influence on a neuron's activation.
  2. Per-Neuron Granularity: Instead of a global selection, the top-$K$ weights are chosen for every individual neuron. This ensures that all neurons remain functional and capable of adaptation, avoiding the "dead neuron" problem common in global pruning.

Once the mask of trainable parameters is fixed at the start of training, the model's architectural integrity is preserved while the optimization landscape is simplified.

Visualizing how Sparse Training (ST) improves gradient alignment compared to standard Joint Training and reactive manipulation methods like PCGrad.

Key Insights: The Geometry of Conflict

The effectiveness of ST can be understood through the "Crowded Room" analogy. High-dimensional optimization is like a crowded room where task gradients constantly bump into each other. By moving to a sparse, lower-dimensional subspace, the "room" becomes less crowded, allowing task gradients to align more naturally without interference.

Furthermore, the researchers found that larger models experience significantly more frequent gradient conflicts. This makes ST particularly valuable for scaling up foundation models, where the high dimensionality otherwise exacerbates task interference.

Experimental Results

The approach was evaluated on diverse benchmarks, including NYUv2 and CityScapes (dense prediction), CelebA (classification), and VTAB tasks.

Reducing Conflict Incidence

On the NYUv2 dataset using the Segment Anything Model (SAM), ST reduced the average incidence of gradient conflict by over 5.5% across all epochs and nearly 7% in the final stages of training. This confirms that ST is a proactive preventative measure rather than just a reactive fix.

Average incidence of Gradient Conflict (GC) across different optimization methods. ST consistently reduces conflict frequency compared to baseline counterparts.

Universal Performance Gains

ST consistently improved the performance of all baseline methods. For instance, standard "Joint Training" on NYUv2 saw its relative task drop improve from 6.76% to 5.31% with ST. Importantly, ST acts as a synergistic partner to existing gradient manipulation techniques. When combined with methods like NashMTL or CAGrad, it achieved state-of-the-art results by providing a more favorable optimization landscape for those techniques to operate in.

Conclusion and Future Directions

Sparse Training offers a simple yet powerful shift in perspective for Multi-Task Learning: preventing gradient conflicts rather than just managing them. By leveraging parameter selection per neuron, ST maintains architectural integrity while boosting performance and reducing interference.

Future work will focus on automating the selection of the sparsity level ($K$), which currently requires manual tuning. Extending this perspective to multi-modal foundation models remains a promising frontier for creating more efficient and capable generalist agents.

Summary updated

BibTeX
@misc{zhang2024proactive,
  author = {Zhi Zhang and Jiayi Shen and Congfeng Cao and Gaole Dai and Shiji Zhou and Qizhe Zhang and Shanghang Zhang and Ekaterina Shutova},
  title = {{Proactive Gradient Conflict Mitigation in Multi-Task Learning: A Sparse Training Perspective}},
  year = {2024},
  eprint = {2411.18615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18615},
}
Figure