Abstract
The goal of multi-task learning (MTL) is to learn diverse tasks within a single unified network. As each task has its own unique objective function, conflicts emerge during training, resulting in negative transfer among them. Earlier research identified these conflicting gradients in shared parameters between tasks and attempted to realign them in the same direction. However, we prove that such optimization strategies lead to sub-optimal Pareto solutions due to their inability to accurately determine the individual contributions of each parameter across various tasks. In this paper, we propose the concept of task priority to evaluate parameter contributions across different tasks. To learn task priority, we identify the type of connections related to links between parameters influenced by task-specific losses during backpropagation. The strength of connections is gauged by the magnitude of parameters to determine task priority. Based on these, we present a new method named connection strength-based optimization (CSO) for multi-task learning which consists of two phases. The first phase learns the task priority within the network, while the second phase modifies the gradients while upholding this priority. This ultimately leads to finding new Pareto optimal solutions for multiple tasks. Through extensive experiments, we show that our approach greatly enhances multi-task performance in comparison to earlier gradient manipulation methods.
Introduction
Multi-Task Learning (MTL) aims to train a single model to perform several tasks simultaneously, such as depth estimation and semantic segmentation. While computationally efficient, MTL often suffers from negative transfer, where improving performance on one task inadvertently degrades another. This phenomenon is primarily driven by conflicting gradients: when two tasks demand that a shared parameter move in opposite directions, the task with the larger gradient magnitude typically dominates, suppressing the learning of other tasks.
Previous solutions attempted to mitigate this by aligning gradients into a compromise direction. However, these methods often treat all shared parameters as equally important for every task. In reality, specific parameters may be critical for one task while being negligible for others. Without quantifying this "task priority," optimization remains sub-optimal.
Methodology: Connection Strength-based Optimization (CSO)
The authors introduce Connection Strength-based Optimization (CSO), which identifies which task "owns" or has priority over specific shared parameters. This priority is determined by "connection strength," measured by parameter magnitudes and task-specific batch normalization (BN) scales. The training process is divided into two distinct phases:
Phase 1: Learning Task Priority
In the initial phase, the network updates task gradients sequentially rather than simultaneously. This sequential "seeding" allows shared parameters to naturally gravitate toward the tasks for which they are most effective, effectively disentangling task-specific information into separate components within the shared architecture.
Phase 2: Conserving Task Priority
Once priorities are established, the algorithm identifies the "top priority task" for each channel. If secondary tasks produce gradients that conflict with the priority task, their gradients are projected to be perpendicular to the priority task's gradient. This ensures that secondary tasks do not interfere with the parameters most vital to the primary task's performance.
Experimental Results
The CSO method was evaluated on standard MTL benchmarks including NYUD-v2, PASCAL-Context, and Cityscapes. Key findings include:
- Superior Performance: On the NYUD-v2 dataset (HRNet-18 backbone), CSO achieved a +15.00% improvement in Multi-Task Performance (MTP) over the single-task baseline, significantly outperforming standard Gradient Descent (+9.53%) and state-of-the-art Aligned-MTL (+10.17%).
- Pareto Expansion: Unlike previous methods that often settle for Pareto stationary points, CSO actively seeks a better Pareto frontier, resulting in lower average training losses across all tasks compared to methods like PCGrad and CAGrad.
- Efficiency: CSO is computationally lighter than many competitors, running nearly 3x faster per epoch than Aligned-MTL while maintaining higher accuracy.
Conclusion
By quantifying task priority through connection strength, CSO effectively resolves the "tug-of-war" over shared parameters in multi-task networks. While currently optimized for convolutional architectures with task-specific BN layers, the principle of identifying parameter "specialties" provides a robust framework for achieving superior Pareto-optimal solutions in complex multi-task environments.
Summary updated