Multi-task learning (MTL) offers a compelling proposition: reduce inference time and computational overhead by using a single shared neural network "backbone" to solve multiple problems simultaneously. For instance, an autonomous vehicle might use one model to detect pedestrians, estimate depth, and read street signs. However, tasks often compete for a network's limited capacity, leading to a drop in performance known as negative transfer.
This paper introduces a computational framework to solve the "task grouping" problem: deciding exactly which tasks should share a network and which should be trained separately to maximize accuracy under a strict inference time budget.
The Combinatorial Challenge
The central hurdle in MTL is determining which tasks "play well" together. Should all tasks be crammed into one giant network? Should they be split into completely independent single-task networks? Or is there an optimal middle ground—perhaps two networks covering three and two tasks, respectively?
Finding this optimal configuration is a massive combinatorial problem that grows exponentially with the number of tasks. For a set of just five tasks, there are 52 possible partitions (known as the Bell number), and evaluating all of them to convergence is computationally prohibitive.
Methodology: Approximating the Optimal Grouping
To tackle this, the authors frame task grouping as a constrained optimization problem: minimize total loss subject to a maximum allowable inference time. They employ a branch-and-bound algorithm to search through possible task subsets.
Because training every combination to convergence is too expensive, they introduce two clever computational shortcuts:
- Early Stopping Approximation (ESA): The authors observed that task relationships stabilize early in training. Training networks on just 20% of the data provides a reliable proxy (Pearson’s $r = 0.49$) for final performance, allowing for faster grouping decisions.
- Higher-Order Approximation (HOA): They predict the performance of a group with three or more tasks by simply averaging the performances of its constituent two-task pairs. This drastically reduces the training requirement from an exponential number of combinations to a quadratic one.
Key Insights
Using the Taskonomy dataset—a massive multi-task dataset featuring 4 million images from 3D building scans—the researchers uncovered several counterintuitive insights about task relationships:
- Transfer $\neq$ Multi-task: The "affinities" between tasks in transfer learning (using one task's features to help learn another) do not reliably predict their success in a multi-task setting. Task compatibility in MTL is a distinct phenomenon.
- The "Good Neighbor" Effect: Some tasks act as excellent regularizers or "guides." For example, including Surface Normal prediction in a group often improved the performance of other tasks in that network, even if the network struggled to predict the normals themselves accurately.
- Context Matters: Task compatibility is not universal. It shifts depending on the network's capacity and the volume of training data. A grouping that thrives in a small ResNet might fail in a larger Xception model.
Results and Performance
The framework's "Optimal Network Choice" consistently defined the Pareto-optimal frontier for the time-accuracy trade-off, proving that with the right groupings, MTL can actually outperform independent networks even when given less total compute.
- Efficiency Gains: The optimized groupings achieved lower total loss using only 2.5 "units" of compute (Standard Network Time, or SNT) than five independent networks achieved using 5 full units.
- Superiority over Baselines: The method outperformed popular MTL loss-weighting schemes (like GradNorm) and the standard "all-in-one" multi-task approach.
- Approximation Success: Despite its simplicity, the HOA method performed nearly as well as an exhaustive optimal search while requiring a fraction of the compute time.
Limitations and Future Directions
While the approximations significantly reduce computational overhead, scaling this framework to 20+ tasks remains challenging and may require meta-learning approaches. Additionally, the current study assumes standard encoder-decoder architectures. Future work could integrate Neural Architecture Search (NAS) to simultaneously find the optimal network shapes for specific task groups, or combine this grouping framework with dynamic loss-weighting strategies for even greater gains.
Summary updated