Measuring and Harnessing Transference in Multi-Task Learning

Christopher Fifty, Ehsan Amid, Zhe Zhao, Tianhe Yu, Rohan Anil, Chelsea Finn

Abstract

Multi-task learning (MTL) often suffers from negative interference, where training one task degrades the performance of another. This paper introduces "transference," a novel metric that quantifies exactly how one task's gradient update affects another task's loss. By using transference to group compatible tasks and dynamically select the best gradient updates during training, the authors significantly improve MTL efficiency and performance across computer vision, reinforcement learning, and recommender system benchmarks.

Introduction

In multi-task learning, neural networks share hidden layers to learn multiple objectives simultaneously. This promises better computational efficiency and the potential for tasks to share useful representations. However, naively summing the losses of different tasks often leads to "negative transfer"—where tasks fight for network capacity or push gradients in conflicting directions, resulting in worse performance than training separate models.

Solving this usually involves answering two difficult questions:

  1. Macro-level: Which tasks should be grouped together to share parameters?
  2. Micro-level: How should we combine their gradients at each training step to avoid interference?

This paper tackles both questions by developing a quantifiable, parameter-free measure of information transfer between tasks.

Methodology: The Transference Metric

The authors introduce Transference ($Z_{i \to j}$), an asymmetric, lookahead metric. To calculate how Task $i$ affects Task $j$, the method simulates a gradient update on the shared parameters using only Task $i$'s loss. It then measures the ratio of Task $j$'s loss before and after this simulated update. If Task $j$'s loss decreases, transference is positive (constructive); if it increases, transference is negative (antagonistic).

Geometric representation of the transference metric and gradient selection.

Because performing a forward pass for every task at every step is computationally expensive, the authors derive a first-order Taylor series approximation that relies only on the dot product of the task gradients, making it highly efficient.

They apply transference in two ways:

  1. Task Grouping: They compute average transference over a few epochs to determine which tasks have high affinity, using this as a fast heuristic to decide which tasks should share an encoder.
  2. Increased Transfer MTL (IT-MTL): A dynamic gradient selection algorithm. At each minibatch, IT-MTL evaluates a set of gradient candidates (e.g., individual task gradients, the standard combined MTL gradient, or modified gradients like PCGrad). It applies the gradient candidate that yields the highest total transference across all tasks.

Analysis of Training Dynamics

Several key insights emerged from the study of transference:

  • Human intuition vs. Data: Tasks that appear conceptually similar to humans do not always share compatible loss landscapes. Transference-based grouping consistently outperformed human expert groupings on datasets like CelebA and Taskonomy.
  • Sub-optimal Combined Gradients: The standard combined gradient is not always the best update. Often, the gradient of a single task reduces the overall multi-task loss more effectively than the sum of all gradients.
  • Curvature and Interference: High curvature in one task's loss landscape can cause a combined gradient step to "overshoot" a valley, increasing the loss. IT-MTL avoids this by selecting candidates that navigate around high-curvature regions.
Parameter update dynamics in the early stage of training, showing how different gradient candidates affect the loss.
  • Asymmetry: Transference captures the one-way nature of task influence—Task A may help Task B, while Task B hinders Task A—which symmetric metrics fail to identify.

Experimental Results

The authors evaluated their methods across Computer Vision (CelebA, NYUv2, Cityscapes), Reinforcement Learning (Meta-World), and Recommender Systems (MovieLens).

  • Efficiency: On CelebA, transference-based task splitting matched state-of-the-art accuracy while requiring only 5.2 hours of compute, compared to 95.5 hours for the HOA baseline (an ~18x speedup).
  • Performance: On NYUv2, IT-MTL combined with PCGrad outperformed standard MTL and standalone PCGrad across segmentation and depth tasks.
  • Robotics: In Meta-World, transference correctly identified high-affinity task groups (e.g., "close window" and "reach"), leading to faster convergence and higher success rates.
  • Approximation Accuracy: The first-order approximation of IT-MTL performed nearly identically to the exact lookahead version across most benchmarks.

Conclusion

While IT-MTL is currently limited to selecting from a predefined set of gradient candidates, it provides a powerful framework for mitigating negative transfer. Future work may involve incorporating transference into continuous-space learning algorithms or using it to guide dynamic architectural branching during training.

Summary updated

BibTeX
@misc{fifty2020measuring,
  author = {Christopher Fifty and Ehsan Amid and Zhe Zhao and Tianhe Yu and Rohan Anil and Chelsea Finn},
  title = {{Measuring and Harnessing Transference in Multi-Task Learning}},
  year = {2020},
  eprint = {2010.15413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15413},
}
Figure