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

On Steering Multi-Annotations per Sample for Multi-Task Learning

Yuanze Li, Yiwen Guo, Qizhang Li, Hongzhi Zhang, Wangmeng ZuoarXiv 2022 · DOI

Introduction

Multi-Task Learning (MTL) aims to train a single neural network to perform multiple related tasks simultaneously, such as semantic segmentation, depth estimation, and object detection. While computationally efficient, MTL often suffers from gradient conflicts, where the optimization directions for different tasks oppose each other. This "tug-of-war" over shared parameters can lead to suboptimal performance compared to single-task models. Traditional solutions, often termed "gradient surgery," attempt to manually project or modify gradients to reduce interference. However, these methods frequently rely on subjective assumptions about task relationships and can introduce inaccuracies into the optimization process.

Proposed Methodology: STA and ISTA

This research introduces a novel approach that addresses gradient conflicts at the source by changing the composition of training mini-batches rather than modifying the gradients themselves. The authors propose two primary strategies:

  1. Stochastic Task Allocation (STA): Instead of the standard "Full Task" (FT) approach where every sample in a batch is used to compute losses for all tasks, STA randomly assigns a subset of tasks (often just one) to each sample. This prevents the shared encoder from being pulled in too many directions by the same data point in a single update.
  2. Interleaved Stochastic Task Allocation (ISTA): To address potential data inefficiency in STA, ISTA uses sub-iterations to progressively allocate all tasks to each example over consecutive mini-steps. This ensures the model eventually utilizes all available annotations while maintaining the beneficial gradient dynamics of STA.
Comparison of training strategies: (a) Full Task (FT), (b) Stochastic Task Allocation (STA), and (c) Interleaved Stochastic Task Allocation (ISTA).

Analysis of Gradient Dynamics

A key insight of this work is the implicit regularization effect of stochastic allocation. By analyzing the angles between task gradients during training, the researchers discovered that STA and ISTA naturally push the distribution of these angles toward 90 degrees (orthogonality).

Distribution of angles between task gradients for FT vs. STA/ISTA, showing a clear shift toward 90-degree orthogonality.

Orthogonal gradients indicate that tasks are optimizing relatively independent parameter subspaces, minimizing destructive interference. Unlike explicit gradient surgery, this orthogonality emerges naturally from the sampling process, preserving the original meaning of the task gradients.

Experimental Results

The proposed methods were evaluated across three major computer vision benchmarks, consistently outperforming state-of-the-art (SOTA) techniques:

  • NYUv2: On the SegNet architecture, ISTA combined with Uncertainty Weighting achieved a +0.66% multi-task gain, surpassing both the FT baseline and previous gradient-based methods.
  • Cityscapes: ISTA achieved superior performance in both depth estimation (3.720 L1 distance) and semantic segmentation (66.26% mIoU).
  • COCO: Testing on the large-scale COCO dataset using Mask R-CNN demonstrated the scalability of STA, showing improvements in both instance segmentation and object detection tasks.

Conclusion and Future Work

Stochastic Task Allocation provides a simple yet effective mechanism for mitigating gradient conflicts in MTL. By promoting gradient orthogonality through sampling, it achieves SOTA results without the complexity of manual gradient manipulation. Future research may explore informed task grouping based on task relatedness and the application of these dynamics to non-vision domains such as Natural Language Processing or Reinforcement Learning.

Summary updated

BibTeX
@misc{li2022steering,
  author = {Yuanze Li and Yiwen Guo and Qizhang Li and Hongzhi Zhang and Wangmeng Zuo},
  title = {{On Steering Multi-Annotations per Sample for Multi-Task Learning}},
  year = {2022},
  eprint = {2203.02946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02946},
}
Figure