TL;DR
This paper introduces the first framework for making "Learning-to-Defer" (L2D) systems robust against adversarial attacks in a one-stage, end-to-end training setting. They achieve this by formalizing new attack strategies and proposing novel cost-sensitive adversarial surrogate losses, demonstrating significant improvements in robustness while maintaining performance on standard datasets.
What Problem Does This Paper Address?
Learning-to-Defer (L2D) systems offer a powerful way to combine the predictions of a primary model with those of external experts, deciding when to trust the model and when to "defer" to an expert. This is particularly relevant for safety-critical applications. However, like many machine learning models, L2D systems are vulnerable to adversarial attacks. These attacks can not only fool the primary predictor but also manipulate the deferral decision itself, potentially causing the system to bypass reliable experts or consult unreliable ones. Previous work on L2D robustness has focused on a "two-stage" setting where the experts are fixed and only the deferral policy is learned. This paper addresses the more challenging and realistic "one-stage" setting, where both the predictor and the deferral policy are trained jointly, and adversarial attacks can target both components simultaneously.
Methods
The authors propose a novel framework for adversarial robustness in one-stage L2D. Their approach involves:
- Formalizing Attacks: They introduce both untargeted attacks (aiming to degrade overall performance) and targeted attacks (aiming to steer the system towards a specific outcome or expert) that specifically exploit the one-stage L2D architecture. These attacks can manipulate both prediction and deferral decisions.
- Cost-Sensitive Adversarial Surrogate Losses: To defend against these attacks, they develop "outcome-wise adversarial deferral losses." These losses consider the worst-case scenario across different possible outcomes (predictions or expert deferrals) under adversarial perturbations. They then propose tractable surrogate versions of these losses, which are crucial for enabling practical optimization.
- Theoretical Guarantees: The paper establishes theoretical guarantees for their proposed surrogate losses, including $\mathcal{H}$-consistency for classification and $(\mathcal{R}, \mathcal{F})$-consistency for regression. These guarantees ensure that minimizing the surrogate loss leads to optimal performance for the true adversarial deferral loss. They also address the non-convexity of the problem by introducing smooth relaxations of their surrogate losses.
- Algorithms: They introduce two algorithms, RERM-C (for classification) and RERM-R (for regression), based on regularized empirical risk minimization, to optimize their proposed smooth surrogate losses.
Datasets
The authors evaluate their methods on the following datasets:
- CIFAR-10: A standard image classification benchmark.
- DermaMNIST: A subset of the MedMNIST dataset, focusing on biomedical images for 7-class classification.
- Communities and Crime: A regression dataset.
- Insurance Company Benchmark (COIL 2000): Another regression dataset.
Key Insights and Ideas
- One-Stage L2D is More Vulnerable: The paper highlights that the end-to-end training of one-stage L2D systems makes them inherently more susceptible to adversarial attacks than two-stage settings, as attacks can simultaneously target both prediction and deferral mechanisms.
- Outcome-Wise Adversarial Losses are Crucial: To effectively defend against attacks that can manipulate deferral decisions, it's not enough to consider the worst-case perturbation for a single outcome. The authors' "outcome-wise" approach considers the worst-case across all possible outcomes, leading to more robust defenses.
- Bridging Theory and Practice: The development of tractable, smooth surrogate losses is key to making their theoretically sound framework practically applicable. This allows for efficient optimization while retaining strong robustness guarantees.
Key Results
- Significant Robustness Improvement: On CIFAR-10, their method improved untargeted accuracy by over 24% and targeted accuracy by nearly 49% compared to a strong baseline (Mao et al., 2024d) under adversarial attacks. Similar substantial gains were observed on DermaMNIST and the regression benchmarks.
- Lower Adversarial Deferral Loss: The proposed methods achieved a lower empirical adversarial deferral loss across all tested tasks, indicating better control over deferral decisions under attack.
- Competitive Clean Performance: Importantly, the adversarial robustness improvements did not come at the cost of significant performance degradation on clean (non-adversarial) data.
Limitations and Future Work
- Computational Cost: While the proposed methods are tractable, adversarial training generally incurs higher computational costs than standard training due to the need for inner maximization steps (e.g., PGD). The paper provides complexity analysis for their algorithms.
- Generalization of Attacks: The paper focuses on specific types of adversarial attacks (e.g., p-norm bounded perturbations). Future work could explore robustness against other types of attacks or more sophisticated adaptive attacks.
- Real-World Deployment: While the theoretical guarantees are strong, further research might be needed to fully understand the practical implications and deployment considerations of these robust L2D systems in safety-critical domains.
Summary updated