Adaptive Adversarial Multi-task Representation Learning

Yuren Mao, Weiwei Liu, Xuemin Lin

TL;DR

Adversarial Multi-task Representation Learning (AMTRL) is a powerful way to boost model performance by forcing different tasks to share a common feature space. This paper provides the first rigorous theoretical explanation for why this works—viewing it through the lens of Lagrangian duality—and introduces an adaptive algorithm that automatically tunes task weights and adversarial penalties, outperforming existing state-of-the-art methods.

The Challenge of Multi-task Representation Learning

Multi-task Representation Learning (MTRL) aims to learn multiple related tasks simultaneously by sharing a common "internal representation" (like the hidden layers of a neural network). Recently, researchers started adding an adversarial module—a task discriminator—to ensure that these shared features look the same regardless of which task they came from.

While this "Adversarial" MTRL (AMTRL) works well in practice, it has historically faced two major hurdles:

  1. Lack of Theory: There was no rigorous mathematical explanation for why forcing identical distributions in the representation space improved generalization.
  2. Manual Tuning: Existing methods rely on a hyperparameter ($\lambda$) to balance the main task loss and the adversarial loss. Finding the right $\lambda$ is a "black art" that requires tedious manual tuning.

Methods and Architecture

Adversarial Multi-task Representation Learning Architecture

The authors bridge the theoretical and practical gaps with three key contributions:

  • Theoretical Generalization Bound: They prove that AMTRL works by restricting the "hypothesis class." By forcing tasks to share an identical distribution in the representation space, the model's search space is narrowed. This constraint provides a stronger "inductive bias," effectively telling the model to find a way to solve these tasks using universal features, which tightens the generalization error bound compared to standard MTRL.
  • Task Relatedness Metric: They propose a novel way to measure how similar two tasks are in the representation space using the output of the task discriminator. If the discriminator can't tell two tasks apart, they are highly related ($R_{ij} \approx 1$). This metric is computationally "free" because it uses the existing task discriminator's predictions rather than calculating expensive correlation coefficients.
Task Relatedness Metric via Discriminator
  • Adaptive AMTRL (AAMTRL): Instead of manual tuning, they formulate AMTRL as a constrained optimization problem. They use the Augmented Lagrangian Method to dynamically update the adversarial penalty and a Weight Adaptation strategy based on their relatedness metric. By using the Augmented Lagrangian rather than the standard one, the authors account for the non-convex nature of neural networks, reducing the "duality gap" and leading to more stable, optimal solutions. Tasks that are more "central" or related to others are given higher weights to accelerate convergence.

Datasets

The researchers evaluated their approach on two classic multi-task benchmarks:

  • Amazon Product Reviews: A sentiment analysis dataset spanning 14 domains (e.g., Books, DVD, Kitchen). Each domain is treated as a separate binary classification task.
  • 20 Newsgroups: A topic classification dataset. The authors formulated this into four 4-class classification tasks (Comp, Rec, Sci, Talk).

Key Results

  • Superior Accuracy: AAMTRL consistently outperformed baselines like Single-Task learning, Uniform Scaling, and even sophisticated methods like MGDA (Multi-Gradient Descent Algorithm).
  • Faster Convergence: The weight adaptation strategy significantly smoothed and accelerated the training process of the adversarial module.
  • Task Scaling: Interestingly, the results showed that in AMTRL, simply adding more tasks doesn't automatically decrease error (a common assumption in MTRL). Performance depends heavily on the initial relatedness of the tasks. If tasks are not closely related, multi-task strategies might not beat simple single-task learning.

Limitations and Future Work

The authors note that the performance of MTRL is highly dependent on the initial relatedness of tasks. In cases where tasks are fundamentally unrelated (as seen in some topic classification experiments), even adversarial methods struggle to outperform independent single-task models.

Future work could explore how to handle "negative transfer" more robustly when tasks are highly dissimilar, or extend this Lagrangian framework to other types of adversarial learning, such as domain adaptation.

Summary updated

BibTeX
@inproceedings{mao2020adaptive,
  author = {Yuren Mao and Weiwei Liu and Xuemin Lin},
  title = {{Adaptive Adversarial Multi-task Representation Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure