"It's a Match!" - A Benchmark of Task Affinity Scores for Joint Learning

Raphaël Azorin, Massimo Gallo, Alessandro Finamore, Dario Rossi, Pietro MichiardiarXiv 2023 · DOI

Introduction

Multi-Task Learning (MTL) is a paradigm in deep learning where a single model is trained to perform multiple tasks simultaneously. By utilizing a shared backbone, models can achieve greater computational efficiency and potentially benefit from "positive transfer," where features learned for one task improve the performance of another. However, the success of MTL is highly dependent on task selection; improper grouping can lead to "negative transfer," where tasks compete for model capacity and degrade overall accuracy.

Standard Multi-Task Learning architecture with a shared backbone and task-specific heads.

The primary challenge in MTL is the combinatorial explosion of possible task combinations. For a large set of tasks, exhaustively testing every grouping is computationally prohibitive. Researchers instead rely on task affinity scores—proxies that estimate compatibility before full training. This paper provides a rigorous benchmark of six such scores to determine which best predicts real-world MTL performance gains.

Methodology

The authors evaluate six affinity scores across three distinct categories based on the information required:

  1. Model-agnostic: Taxonomical Distance (TD) uses a human-defined hierarchy of tasks (e.g., grouping "semantic" vs. "3D" tasks).
  2. Single-Task Learning (STL) based: These utilize models trained on individual tasks. This category includes Input Attribution Similarity (IAS), Representation Similarity Analysis (RSA), and the authors' novel Label Injection (LI) method. LI measures how much a model's performance improves when it is provided with the ground-truth labels of a second task as auxiliary input.
  3. MTL-based: These require training a surrogate multi-task model to analyze interactions, specifically Gradient Similarity (GS) and Gradient Transference (GT).
The task grouping problem: determining whether Task B should be trained with Task A or Task C based on affinity.

The study utilized the Taskonomy dataset, focusing on five core computer vision tasks: Semantic Segmentation, 2D Keypoints, Edge Detection, Depth Estimation, and Surface Normals estimation.

Key Insights and Results

The benchmarking process revealed several critical properties of task affinity:

  • Affinity is Asymmetric: Task relationships are rarely mutual. For example, training on "Surface Normals" significantly aids "Semantic Segmentation," but the reverse does not hold true.
  • The "Normal" Problem: The "Surface Normals" task acts as a "universal donor," providing geometric cues that benefit almost every other task, yet it achieves its own peak performance when trained in isolation.
  • Label Injection (LI) as a Robust Proxy: The proposed LI method emerged as the most effective score, achieving a Pearson correlation of 0.47 with actual MTL gains—the highest among all tested methods. It correctly identified the optimal partner task for 4 out of 5 tasks.
  • Ranking vs. Prediction: While no single score perfectly predicts the exact percentage of performance gain, methods like LI and Gradient Similarity (GS) are highly effective at ranking potential partner tasks.

Conclusion

This benchmark demonstrates that while no "silver bullet" exists for predicting exact MTL performance, the novel Label Injection method provides a computationally efficient and accurate way to rank task partners. The findings suggest that future affinity metrics should consider task complexity and that practitioners should account for the inherent asymmetry in task relationships when designing multi-task systems.

Summary updated

BibTeX
@misc{azorin2023it,
  author = {Raphaël Azorin and Massimo Gallo and Alessandro Finamore and Dario Rossi and Pietro Michiardi},
  title = {{"It's a Match!" - A Benchmark of Task Affinity Scores for Joint Learning}},
  year = {2023},
  eprint = {2301.02873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.02873},
}
Figure