Instance-Level Task Parameters: A Robust Multi-task Weighting Framework

Pavan Kumar Anasosalu Vasu, Shreyas Saxena, Oncel TuzelarXiv 2021

Abstract

Recent works have shown that deep neural networks benefit from multi-task learning by learning a shared representation across several related tasks. However, performance of such systems depend on relative weighting between various losses involved during training. Prior works on loss weighting schemes assume that instances are equally easy or hard for all tasks. In order to break this assumption, we let the training process dictate the optimal weighting of tasks for every instance in the dataset. More specifically, we equip every instance in the dataset with a set of learnable parameters (instance-level task parameters) where the cardinality is equal to the number of tasks learned by the model. These parameters model the weighting of each task for an instance. They are updated by gradient descent and do not require hand-crafted rules. We conduct extensive experiments on SURREAL and CityScapes datasets, for human shape and pose estimation, depth estimation and semantic segmentation tasks. In these tasks, our approach outperforms recent dynamic loss weighting approaches, e.g. reducing surface estimation errors by 8.97% on SURREAL. When applied to datasets where one or more tasks can have noisy annotations, the proposed method learns to prioritize learning from clean labels for a given task, e.g. reducing surface estimation errors by up to 60%. We also show that we can reliably detect corrupt labels for a given task as a by-product from learned instance-level task parameters.

Introduction

Multi-Task Learning (MTL) aims to improve generalization by training a single model on multiple related objectives. A critical bottleneck in MTL is the balancing of task-specific losses. Traditional approaches often rely on global weighting schemes, which assume that a fixed ratio of task importance applies uniformly across the entire dataset. This assumption fails to account for instance-specific variations; for example, an image obscured by heavy fog may be difficult for depth estimation but straightforward for semantic segmentation. Furthermore, global weights are highly sensitive to noisy or corrupt labels, as the model is forced to reconcile erroneous data with the broader training signal.

Methodology: Instance-Level Task Parameters (ILT)

The proposed framework introduces Instance-Level Task Parameters (ILT Params), shifting from global to per-instance loss weighting.

Learnable Uncertainty

Every training sample $i$ is assigned a set of learnable parameters $\sigma_{i,t}$ for each task $t$. These parameters represent the aleatoric uncertainty—the inherent noise or difficulty—associated with that specific instance and task. During training, the model parameters $\theta$ and the instance parameters $\sigma$ are optimized simultaneously via gradient descent.

Multi-task architectures for SURREAL (left) and CityScapes (right) datasets.

Dynamic Optimization

If the model consistently encounters high loss for a specific task on a particular image, the corresponding $\sigma$ increases. This effectively reduces the gradient contribution of that sample for that task, preventing noisy or overly difficult instances from destabilizing the shared representation. Crucially, these parameters are only utilized during the training phase; they are discarded at inference, ensuring zero additional computational overhead for the deployed model.

Experimental Setup

The framework was evaluated on two primary benchmarks:

  • SURREAL: A large-scale synthetic dataset of humans used for human part segmentation, 2D/3D pose estimation, and shape estimation.
  • CityScapes: A dataset of high-resolution street-view images used for semantic segmentation and pixel-wise depth estimation.

To evaluate robustness, the authors introduced controlled label corruption (e.g., shuffling labels or adding noise) to simulate real-world data quality issues.

Results and Discussion

The ILT framework demonstrates significant improvements in both accuracy and robustness. On the SURREAL dataset, it achieved an 8.97% reduction in surface estimation error compared to Dynamic Weight Averaging (DWA).

Qualitative comparison of predictions vs. ground truth for human pose estimation (left) and urban scene segmentation/depth (right).

Robustness to Label Noise

The most striking result occurs in the presence of corrupted data. When 40% of training labels were intentionally poisoned, ILT Params reduced errors by up to 60% compared to standard weighting. The model effectively "learned" to ignore the garbage data by spiking the uncertainty parameters for those specific samples. This property allows for high-precision error detection, identifying corrupt labels with 99.7% accuracy.

Implicit Curriculum Learning

The learned parameters act as an implicit curriculum. Early in training, the model may assign high uncertainty to complex tasks while focusing on simpler ones. As the backbone features mature, the model naturally "re-engages" with the harder tasks by lowering their associated $\sigma$ values.

Conclusion and Future Work

Instance-Level Task Parameters provide a scalable, robust solution for multi-task loss balancing without inference-time costs. While the memory overhead scales with dataset size (~1% for 400k samples), future work could explore more memory-efficient parameterizations for billion-scale datasets. Additionally, the ability of ILT parameters to identify "hard" or "noisy" samples suggests significant potential for integration with Active Learning pipelines to optimize data annotation efforts.

Summary updated

BibTeX
@misc{vasu2021instance,
  author = {Pavan Kumar Anasosalu Vasu and Shreyas Saxena and Oncel Tuzel},
  title = {{Instance-Level Task Parameters: A Robust Multi-task Weighting Framework}},
  year = {2021},
  eprint = {2106.06129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.06129},
}
Figure