Adversarially Robust Multi-task Representation Learning

Austin Watkins, Thanh Nguyen-Tang, Enayat Ullah, Raman AroraNeurIPS 2024

In the high-stakes domains of healthcare, autonomous driving, and finance, machine learning models must be more than just accurate—they must be resilient. While transfer learning has become the standard strategy for training models on data-scarce tasks by leveraging knowledge from related source tasks, a critical vulnerability remains: inference-time adversarial attacks. Malicious agents can introduce tiny, often imperceptible perturbations to inputs, easily flipping a model's predictions.

Achieving adversarial robustness typically requires massive amounts of training data, far exceeding what is available for a single data-scarce target task. A new paper from researchers at Johns Hopkins University and Meta provides a rigorous theoretical foundation for Adversarially Robust Multi-task Representation Learning (MTRL). The authors demonstrate that training across diverse source tasks does more than improve standard accuracy—it builds a "robust shield" that protects new, unseen tasks even when target data is severely limited.

The Multi-Task Representation Learning (MTRL) Framework

The core challenge addressed by this research is the scarcity of high-quality labeled data for specific target tasks in adversarial environments. To solve this, the authors focus on the MTRL framework, which splits a model into a complex, shared representation function ($h$) and simple, task-specific linear predictors ($f$).

The proposed approach follows a two-stage learning procedure:

  1. Stage 1 (Representation Learning): The shared representation $h$ and source-specific predictors are trained using adversarial training across all available source tasks.
  2. Stage 2 (Transfer): The learned representation $h$ is frozen, and a new, simple predictor is trained for the target task using its limited labeled data.

Theoretical Innovations

Because this is a purely theoretical paper, it does not rely on empirical datasets like ImageNet or CIFAR. Instead, it establishes mathematical bounds on how error decreases as the number of tasks ($t$), samples per source task ($n$), and target task samples ($m$) increase. To prove the efficacy of MTRL, the authors introduce several novel theoretical tools:

  • Robust Task Diversity: A new metric designed to quantify how related various tasks are specifically within an adversarial context.
  • Fat-Shattering Dimension Analysis: The authors utilize a sophisticated "covering number" argument to account for the "inflation" of data complexity caused by adversarial attacks.
  • Decoupling Technique: By employing a celebrated inequality from probability theory (Rudelson and Vershynin), the researchers successfully separate the complexity of the model from the complexity of the adversarial attack. This allows for significantly more general results than previous studies, including applicability to attack models where the adversarial loss class itself is not Lipschitz-continuous.

Key Findings and Error Bounds

The paper's primary contribution is a set of upper bounds on the excess adversarial transfer risk. The theory confirms that pooling data from $nt$ total source samples allows the model to learn a feature function that is highly resistant to adversarial noise.

Bridging the Dimensionality Gap

The authors show that the shared representation effectively bridges the dimensionality gap between source and target tasks. For Lipschitz losses, the error on the target task is bounded by a term that scales with $\sqrt{k/m}$, where $k$ is the representation dimension. The source tasks pay a sample complexity price based on the full input dimension ($d$), while the target task only pays based on the much smaller representation dimension ($k$).

The "Adversarial Tax"

The theory rigorously quantifies the cost of robustness. For many common adversarial attacks, the sample complexity increases by a factor of roughly $\sqrt{d \log d}$ compared to standard, non-robust learning.

Optimistic "Fast" Rates

For smooth, non-negative losses, the authors demonstrate an optimistic scenario: if a perfectly robust model actually exists for the given tasks, the error rate drops much faster—scaling at $1/m$ instead of $1/\sqrt{m}$. This "fast rate" mathematically rewards well-behaved problem settings.

Limitations and Future Directions

While the paper establishes a strong theoretical baseline, the authors note a few limitations that pave the way for future research:

  • Input Domain Constraints: The current theory assumes the adversary cannot perturb an input outside of the valid input domain $\mathcal{X}$. While natural (e.g., a modified image must still mathematically represent an image), relaxing this assumption could yield even broader theoretical guarantees.
  • Optimal Task Selection: The framework assumes the source tasks are pre-determined. A highly practical future direction involves determining how to optimally select or weight source tasks to maximize the robustness of a specific target task.
  • Computational Efficiency: As a theoretical work, the focus remains on statistical learnability. Bridging these theoretical bounds with specific, high-speed adversarial training algorithms will be a crucial next step for real-world deployment.

Summary updated

BibTeX
@inproceedings{watkins2024adversarially,
  author = {Austin Watkins and Thanh Nguyen-Tang and Enayat Ullah and Raman Arora},
  title = {{Adversarially Robust Multi-task Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=w2L3Ll1jbV},
}
Figure