Unprejudiced Training Auxiliary Tasks Makes Primary Better: A Multi-Task Learning Perspective

Yuanze Li, Chun-Mei Feng, Qilong Wang, Guanglei Yang, Wangmeng Zuo · DOI

Abstract

Multi-task learning (MTL) aims to improve a primary task by leveraging shared features from auxiliary tasks. However, standard approaches often treat auxiliary tasks with "prejudice," assigning them low loss weights to minimize interference. This leads to poorly trained auxiliary decoders and noisy feature representations, causing negative transfer. We introduce Impartial Auxiliary Learning (IAL), a framework that ensures auxiliary tasks are trained robustly. IAL decouples the optimization of task-specific decoders and the shared encoder. In the decoder stage, tasks are treated impartially to ensure convergence. In the encoder stage, the primary task is prioritized using uncertainty-based weighting and gradient normalization. Our results on benchmarks like Cityscapes and NYUv2 show that IAL significantly improves primary task performance and produces superior qualitative results.

1. The Challenge of Prejudiced Learning

In Multi-Task Learning, auxiliary tasks (e.g., depth estimation) are typically incorporated to assist a primary task (e.g., semantic segmentation) by encouraging the shared encoder to learn more generalized features. However, a common pitfall in current MTL methodologies is the "prejudiced" treatment of these auxiliary tasks. To prevent them from dominating the training process, researchers often assign them very small loss weights.

This paper identifies that such prejudice is counterproductive. When auxiliary tasks are under-weighted, their decoders never fully converge, resulting in the propagation of noisy or irrelevant information back to the shared encoder. This phenomenon, known as negative transfer, ultimately degrades the performance of the primary task rather than enhancing it.

2. Impartial Auxiliary Learning (IAL)

To address the imbalance in MTL, we propose the Impartial Auxiliary Learning (IAL) framework, which operates in two distinct stages:

2.1 The Decoder Stage: Impartiality

In this stage, the framework ensures that every task—regardless of its status as primary or auxiliary—is given the opportunity to be learned effectively. Task decoders are decoupled and updated based on their individual losses. We utilize automatically estimated "homoscedastic uncertainty" to weight these losses, allowing each task to converge on its own terms without being overshadowed by the primary objective.

2.2 The Encoder Stage: Prioritization

While the decoders are trained impartially, the shared encoder must still prioritize the primary task. IAL achieves this through two mechanisms:

  • Gradient Normalization: This re-scales auxiliary gradient magnitudes to match the primary task, ensuring balanced feature updates.
  • Uncertainty-based Weighting: The uncertainty calculated during the decoder stage serves as a proxy for training quality. Auxiliary tasks with low uncertainty (indicating high-quality learning) are given higher influence over the shared encoder, while noisy, poorly learned tasks are suppressed.

3. Experimental Evaluation

We evaluated IAL across several diverse benchmarks, including NYUv2 (indoor), Cityscapes (urban driving), and PASCAL-Context. We also introduced a "Pseudo-Task Setting" where auxiliary labels were generated by automated models like CLIP, testing the framework's robustness to noisy data.

3.1 Key Results

IAL consistently outperformed state-of-the-art MTL methods such as GradNorm and Auto-$λ$. On the Cityscapes benchmark, IAL achieved an 8.22% improvement in the $Δ$MTL metric compared to single-task baselines.

Qualitatively, the benefits of impartial training are evident in the clarity of the predictions. As shown in Figure 1, IAL produces significantly sharper object boundaries and more accurate depth maps compared to "prejudiced" models like OL-AUX, which often suffer from blurry or contaminated outputs.

Qualitative comparison between the prejudiced OL-AUX baseline and our proposed IAL (Ours) on the Cityscapes dataset. IAL demonstrates sharper segmentation boundaries and more detailed depth estimation.

4. Conclusion and Future Work

The core insight of this work is that auxiliary tasks can only benefit the primary task if they are first allowed to succeed independently. By using Bayesian uncertainty as a quality metric and decoupling the training objectives of the encoder and decoder, IAL effectively mitigates negative transfer.

Future research will explore the application of IAL to more complex "soft parameter sharing" architectures and its extension into other domains such as Natural Language Processing. Additionally, incorporating mathematical guarantees like null space learning could further ensure that auxiliary gradients never hinder the primary task's optimization path.

Summary updated

BibTeX
@article{li2025unprejudiced,
  author = {Yuanze Li and Chun-Mei Feng and Qilong Wang and Guanglei Yang and Wangmeng Zuo},
  title = {{Unprejudiced Training Auxiliary Tasks Makes Primary Better: A Multi-Task Learning Perspective}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3462788},
}
Figure