Abstract
We study the problem of adversarially robust learning in the transductive setting. For classes H of bounded VC dimension, we propose a simple transductive learner that when presented with a set of labeled training examples and a set of unlabeled test examples (both sets possibly adversarially perturbed), it correctly labels the test examples with a robust error rate that is linear in the VC dimension and is adaptive to the complexity of the perturbation set. This result provides an exponential improvement in dependence on VC dimension over the best known upper bound on the robust error in the inductive setting, at the expense of competing with a more restrictive notion of optimal robust error.
Introduction
Adversarial robustness is a critical requirement for deploying machine learning in safety-critical domains. However, the standard inductive framework—where a model generalizes from training data to unseen, potentially perturbed test points—presents significant theoretical hurdles. For hypothesis classes with bounded VC dimension, achieving robust generalization in the inductive setting often requires a sample complexity that is exponential in the VC dimension, necessitating complex "improper" learning algorithms. This paper investigates whether shifting to a transductive setting can alleviate these theoretical bottlenecks.
The Transductive Advantage
In the transductive setting, the learner has access to both labeled training data and a batch of unlabeled test data during the training phase. While the test labels are unknown, the locations of the test points (and their potential adversarial neighborhoods) are visible. This paper demonstrates that this shift is not merely a change in data availability but a fundamental change in the complexity of the robust learning problem.
In standard PAC learning, inductive and transductive settings are statistically equivalent via standard reductions. However, the authors show that this equivalence breaks down for adversarial robustness. The transductive setting restricts the adversary's power because the adversary must commit to perturbations on the test set upfront, allowing the learner to leverage the structure of those specific perturbations. This makes robust learning significantly more tractable in the transductive regime.
Methodology
The authors propose a straightforward transductive learning algorithm. Given a hypothesis class $\mathcal{H}$ and a set of allowed adversarial perturbations $\mathcal{U}$, the learner searches for a predictor $h \in \mathcal{H}$ that simultaneously:
- Robustly and correctly fits the labeled training data.
- Robustly labels the unlabeled test data.
To characterize the complexity of this task, the authors introduce a novel complexity measure: the relaxed $\mathcal{U}$-robust shattering dimension ($\text{rdim}_{\mathcal{U}}(\mathcal{H})$). Unlike the standard VC dimension, this measure adapts to the complexity of both the hypothesis class and the specific geometry of the perturbation set $\mathcal{U}$.
Theoretical Guarantees
The core contribution is the proof that transductive robust learning requires only linear sample complexity relative to the VC dimension. To achieve this, the authors relax the competitor: instead of competing with the standard optimal robust risk ($\text{OPT}_{\mathcal{U}}$), the algorithm competes with $\text{OPT}_{\mathcal{U}^{-1}(\mathcal{U})}$, which is the best possible robust risk against a larger, compounded perturbation set.
Key Results
- Realizable Setting: If the optimal robust error against the larger perturbation set is zero ($\text{OPT}_{\mathcal{U}^{-1}(\mathcal{U})} = 0$), the transductive robust risk is bounded by $O\left(\frac{\text{vc}(\mathcal{H}) \log(n)}{n}\right)$.
- Agnostic Setting: If the optimal robust error is non-zero, the robust risk is bounded by $2\text{OPT}_{\mathcal{U}^{-1}(\mathcal{U})} + O\left(\sqrt{\frac{\text{vc}(\mathcal{H})}{n}}\right)$.
- Adaptive Bounds: These bounds can be further tightened by replacing the VC dimension with the newly introduced relaxed robust shattering dimension.
Implications for Robustness
These results highlight several key insights that differentiate transductive robustness from inductive robustness:
- Proper vs. Improper Learning: Previous work proved that inductive robust learning sometimes strictly requires improper learning (outputting a predictor outside the original hypothesis class). In contrast, this paper shows that proper learning is perfectly sufficient in the transductive setting.
- Training Data Poisoning: The proposed transductive learner naturally provides non-trivial guarantees against adversarial perturbations in the training data, a feature rarely addressed in standard robust learning literature.
- Local Robustness: The theoretical results suggest that seeing unlabeled test data allows the model to determine how to be locally robust around specific points. Achieving this local robustness is significantly easier than guaranteeing global robustness everywhere in the input space.
Limitations and Future Work
The primary trade-off in this approach is the "competitor relaxation." The bounds are relative to $\text{OPT}_{\mathcal{U}^{-1}(\mathcal{U})}$ rather than $\text{OPT}_{\mathcal{U}}$. For instance, if $\mathcal{U}$ represents an $\ell_p$-ball of radius $\gamma$, the algorithm's performance is compared against the best possible model's robustness at radius $2\gamma$.
Future research aims to bridge this gap, potentially by exploring improper transductive learners that can compete directly with $\text{OPT}_{\mathcal{U}}$. Additionally, the authors suggest that the insights gained from the transductive setting might eventually be translated back to improve inductive robust learning guarantees.
Summary updated