Adversarial Robustness in Multi-Task Learning: Promises and Illusions

Salah Ghamizi, Maxime Cordy, Mike Papadakis, Yves Le Traon

Introduction

Multi-Task Learning (MTL) has become a cornerstone of modern deep learning, particularly in complex domains like autonomous driving and robotics. By training a single shared encoder to perform multiple related tasks—such as depth estimation, semantic segmentation, and edge detection—practitioners aim to improve computational efficiency and leverage shared features. Historically, it was widely believed that this multi-task setup provided a natural "regularization" effect, making models more resilient to adversarial attacks. However, this paper challenges that assumption, demonstrating that the perceived robustness of MTL is often an illusion caused by gradient masking and specific evaluation metrics.

The Illusion of Robustness

Previous research suggesting MTL's inherent robustness often relied on narrow experimental settings, such as $l_2$ distance metrics or smaller model architectures. This study reveals that under the more standard $l_\infty$ norm—where an attacker can subtly perturb every pixel—the robustness benefits of MTL frequently vanish.

A critical finding is the "One Bad Apple" effect: the overall robustness of a multi-task model is not determined by the number of tasks, but by the marginal vulnerability of the individual tasks included. Adding a highly vulnerable task, such as semantic segmentation, can drastically increase the vulnerability of the entire system, even if the other tasks are individually robust.

Adversarial vulnerability spikes as specific vulnerable tasks are added to the combination.

As shown in the figure above, vulnerability does not decrease linearly with the number of tasks. Instead, certain combinations remain stable until a specific "weak link" task is introduced, at which point the adversarial vulnerability of the entire shared encoder skyrockets.

Methodology and Adaptive Attacks

To rigorously test MTL robustness, the authors introduced several new tools:

  1. Relative Task Vulnerability: A metric to normalize and compare errors across disparate tasks (e.g., classification vs. regression).
  2. Weighted Gradient Descent (WGD): A novel adaptive attack designed to bypass simple defense mechanisms like task-weight tuning.

The study found that adjusting task weights often results in "gradient masking" rather than true defense. While a model might appear robust against standard Projected Gradient Descent (PGD), the WGD attack—which adjusts its focus based on the model's internal weighting—can successfully find adversarial examples. For instance, against models performing "Normal Estimation," WGD was found to be twice as effective as standard PGD, proving that weighting is a mask, not a shield.

Efficient Selection via Proxies

One of the primary challenges in MTL is the combinatorial explosion of possible task pairings. Training and testing every combination on massive architectures like ResNet152 is computationally prohibitive. To address this, the authors investigated whether "cheaper" indicators could predict the robustness of the final model.

Pearson correlation coefficients for various robustness proxies.

The results, summarized in the table above, are highly encouraging for practitioners. They found a remarkably high Pearson correlation (0.94) between the robustness of a small surrogate model (ResNet18) and a large target model (ResNet50). Furthermore, there is a strong correlation (0.98) between a model's "clean" (non-attacked) performance and its eventual robustness. This suggests that model designers can use early-training results or smaller models to efficiently filter for the most robust task combinations.

Conclusion

This research provides a necessary reality check for the Multi-Task Learning community. While MTL offers significant architectural benefits, its role as a security defense is complex and often overstated. Robustness in MTL is highly dependent on task selection and the specific attack vectors used. By utilizing marginal vulnerability metrics and efficient proxies, researchers can move past the illusions of gradient masking and build systems that are truly resilient to adversarial interference.

Summary updated

BibTeX
@inproceedings{ghamizi2022adversarial,
  author = {Salah Ghamizi and Maxime Cordy and Mike Papadakis and Yves Le Traon},
  title = {{Adversarial Robustness in Multi-Task Learning: Promises and Illusions}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.19950},
}
Figure