Enabling Asymmetric Knowledge Transfer in Multi-Task Learning with Self-Auxiliaries

Olivier Graffeuille, Yun Sing Koh, Jörg S. Wicker, Moritz K. LehmannarXiv 2024 · DOI

Abstract

Standard Multi-Task Learning (MTL) assumes that if two tasks are related, they should benefit from shared representations symmetrically. However, task relationships are often asymmetric, where one task provides useful features for another but suffers from performance degradation when forced to share parameters. This paper introduces Self-Auxiliary Asymmetric Learning (SAAL), a framework that utilizes "cloned" auxiliary tasks to enable directed knowledge transfer. By decoupling training signals from primary task representations, SAAL allows a source task to inform a target task without being compromised by the target's conflicting gradients. Evaluated on NYUv2, Cityscapes, and CelebA benchmarks, SAAL consistently outperforms state-of-the-art MTL optimization methods by effectively mitigating negative transfer.

Introduction

In Multi-Task Learning, the primary goal is to achieve positive transfer, where learning multiple tasks simultaneously improves performance across the board. Despite this, practitioners frequently encounter negative transfer, where task objectives clash, leading to suboptimal results compared to single-task learning (STL) baselines.

Most existing MTL architectures, such as "shared-bottom" models, assume task relationships are symmetric. The authors of this paper argue that this is a fundamental flaw. For instance, while "surface normal estimation" might provide excellent features for "depth estimation," the specific gradient requirements of depth estimation might scramble the features necessary for accurate surface normals. SAAL addresses this by allowing for one-way knowledge streets.

Methodology: Self-Auxiliary Asymmetric Learning (SAAL)

The core innovation of SAAL is the introduction of Self-Auxiliaries. Instead of forcing two primary tasks to share a single bottleneck, the system creates auxiliary "clones" of tasks during the training phase.

Schematic of the SAAL architecture showing the directed flow from a source task to a target task via a self-auxiliary path.

Directed Knowledge Flow

As shown in the architecture diagram, if Task 1 is intended to help Task 2 asymmetrically, a self-auxiliary version of Task 1 is created ($T_{1 \to 2}$). This auxiliary task uses Task 2’s specific decoder modules. This allows Task 1's data to influence the parameters that Task 2 relies on, effectively "teaching" Task 2. Crucially, because this is an auxiliary task, its gradients do not flow back to overwrite the primary Task 1's specialized modules, preserving its performance.

Optimization Strategies

The authors propose three variants to determine optimal transfer weights:

  • SAALe (Enumeration): A brute-force approach testing task pairs.
  • SAALw (Loss Weighting): A meta-learning style approach using bi-level optimization to learn transfer weights automatically.
  • SAALew (Combined): A hybrid strategy for maximum stability.

At the end of training, the auxiliary modules are discarded, resulting in a standard, efficient model for inference.

Key Insights and Results

The researchers evaluated SAAL on three major benchmarks: NYUv2 (dense prediction), Cityscapes (urban scenes), and CelebA (facial attributes).

The "One-Way Street" Discovery

A critical finding in the NYUv2 dataset was that normal estimation is a "giver"—it significantly aids other tasks but is highly sensitive to negative transfer. In a typical shared-bottom setup, increasing the number of shared layers causes normal estimation performance to plummet. SAAL successfully harvests the benefits of normal estimation for depth and segmentation while maintaining the integrity of the normal estimation task itself.

Comparison of task performance between a typical shared-bottom setup and the proposed asymmetric transfer with self-auxiliaries.

Performance Benchmarks

SAAL consistently outperformed state-of-the-art optimization methods like PCGrad and CAGrad:

  • NYUv2: The SAALew strategy achieved a 12.14% average relative improvement over STL baselines, more than doubling the gains of previous methods like CAGrad (5.75%).
  • Cityscapes: SAALe excelled at mitigating the negative transfer that typically plagues semantic segmentation in urban scene datasets.
  • CelebA: SAALw proved most effective for large-scale classification, demonstrating that automated weight learning scales well to many tasks.

Limitations and Future Work

While effective, SAAL introduces higher computational costs during training. The SAALw strategy can be 6-8 times slower than standard training due to the meta-gradient calculations required. Furthermore, because the framework considers pairwise relationships, the number of potential auxiliaries grows quadratically ($T^2$) with the number of tasks. Future research will focus on more efficient pruning of task relationships and direct signal transfer to reduce the need for task cloning.

Summary updated

BibTeX
@misc{graffeuille2024enabling,
  author = {Olivier Graffeuille and Yun Sing Koh and Jörg S. Wicker and Moritz K. Lehmann},
  title = {{Enabling Asymmetric Knowledge Transfer in Multi-Task Learning with Self-Auxiliaries}},
  year = {2024},
  eprint = {2410.15875},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15875},
}
Figure