Introduction
Multitask learning (MTL) aims to train a single neural network to perform multiple tasks simultaneously, such as object detection, segmentation, and pose estimation. While efficient, MTL often suffers from task imbalance, where easier tasks dominate the learning process at the expense of more difficult ones. Dynamic Task Prioritization (DTP) is a novel approach that adaptively adjusts loss weights based on real-time performance, ensuring the model focuses its resources where they are needed most.
The Challenge of Task Imbalance
In standard MTL, researchers often use static weights for each task's loss function. This requires extensive manual tuning and fails to account for the fact that task difficulty is dynamic. A model might quickly master a simple classification task but struggle with precise keypoint detection. If the weights remain static, the gradients from the "solved" task continue to influence the model, potentially stalling progress on harder objectives.
Dynamic Task Prioritization (DTP)
The core of DTP is a task-level weighting scheme inspired by Focal Loss. Instead of fixed weights, DTP monitors Key Performance Indicators (KPIs)—such as Average Precision (AP) or PCKh—during training. The weight $w_t$ for task $t$ is calculated as:
$$w_t = (1 - \kappa_t)^{\gamma_t}$$
where $\kappa_t$ represents the current performance metric. As the model improves on a task (increasing $\kappa_t$), the weight for that task's loss decreases. This forces the optimizer to prioritize tasks with lower performance.
Task Hierarchy and Architecture
Beyond loss weighting, the authors explored how network architecture acts as an implicit prior. By arranging tasks in a hierarchy where the output of one block feeds into the next, the model naturally prioritizes certain features. Their research suggests that the depth at which a task is placed in the hierarchy significantly impacts its final performance. For instance, segmentation performance was boosted by 1.25x simply by optimizing its position in the task hierarchy.
Experimental Evaluation
The researchers evaluated DTP on two major benchmarks: COCO 2017 (for detection and segmentation) and MPII Human Pose (for keypoint detection). By focusing on images with a single person, they could clearly observe the information flow between tasks and the effectiveness of the prioritization scheme.
Key Results
DTP-trained models achieved results competitive with specialized, state-of-the-art single-task networks:
- Object Detection: Reached 52.5 AP50 on COCO, outperforming the standalone RetinaNet baseline (49.4 AP50).
- Pose Estimation: Achieved 45.8 AP50 on MPII, surpassing the single-task Hourglass network (43.9 AP50).
- Robustness: The method effectively handled the "stalling" effect common in MTL, where one task's progress plateaus due to gradient dominance by another.
Conclusion
Dynamic Task Prioritization offers a robust framework for multitask learning by automating the focus shift toward challenging tasks. By treating task difficulty as a dynamic metric and adjusting loss weights accordingly, DTP enables a single model to match or exceed the performance of multiple specialized networks, paving the way for more efficient and capable unified vision systems.
Summary updated