TL;DR
This paper introduces CAPGD, a novel and efficient adversarial attack specifically designed for deep learning models working with tabular data. By overcoming limitations of previous methods, CAPGD significantly improves the ability to generate realistic adversarial examples that respect data constraints, highlighting the vulnerability of these models in critical applications.
What Problem Does This Paper Address?
Deep learning models are increasingly used for tabular data in critical sectors like finance and healthcare. However, evaluating their robustness against adversarial attacks is challenging due to the unique nature of tabular data. Unlike images or text, tabular data has complex inter-feature relationships, categorical variables, and immutability constraints that traditional adversarial attack methods (often designed for computer vision) struggle to handle. Existing attacks for tabular data either fail to respect these crucial constraints or are computationally too expensive. This paper aims to bridge this gap by developing an efficient and effective whitebox attack that can generate realistic adversarial examples for constrained tabular deep learning models.
Methods
The core contribution is CAPGD (Constrained Adaptive PGD), a new adversarial attack method. CAPGD builds upon the Projected Gradient Descent (PGD) framework but introduces several key innovations to address the limitations of prior work:
- Adaptive Step Size: Instead of a fixed decay schedule, CAPGD dynamically adjusts its step size based on the optimization trend. If the loss increases, the step size is maintained; otherwise, it's halved. This helps prevent the attack from getting stuck in suboptimal regions.
- Momentum: CAPGD incorporates momentum to accelerate convergence and improve the attack's ability to explore the search space effectively.
- Repair Operator: A novel "repair" operator is introduced to project generated adversarial examples back into the valid data space, ensuring that all constraints (like feature immutability or specific value ranges) are satisfied.
- Random Initialization: CAPGD explores two initial states for the attack: the original example and a random example sampled from a perturbation ball. This helps mitigate the risk of being trapped in local optima that only contain invalid examples.
These adaptive mechanisms aim to make the attack more efficient and successful in generating valid adversarial examples compared to existing constrained gradient-based methods.
Datasets
The authors evaluated CAPGD on four real-world tabular datasets:
- URL: A dataset of legitimate and phishing URLs, characterized by linear domain constraints.
- LCLD: A credit-scoring dataset featuring non-linear constraints.
- WiDS: A dataset containing medical data on ICU patient survival, with linear domain constraints.
- CTU: A dataset of legitimate and botnet traffic, notable for its large number of linear domain constraints.
These datasets were chosen to represent a range of complexity in terms of feature types and constraint structures, allowing for a comprehensive evaluation of the attack's effectiveness.
Key Insights and Ideas
- Tabular Data's Unique Challenges: The paper strongly emphasizes that tabular data's inherent constraints (feature relationships, immutability, categorical types) are not mere footnotes but fundamental challenges that require specialized adversarial attack techniques.
- Gradient-Based Attacks Still Relevant: Despite the complexity, the research shows that carefully adapted gradient-based methods, like CAPGD, can be highly effective for tabular data, challenging the notion that only heuristic or evolutionary methods are suitable.
- The Importance of "Repair": The introduction of a "repair" operator is crucial. It highlights that simply ensuring a perturbation is within an L2-ball isn't enough; the resulting example must be valid according to domain-specific rules to be considered a realistic adversarial example.
- CAPGD's Superiority: The findings suggest that CAPGD's adaptive mechanisms are not just incremental improvements but lead to a significant leap in attack effectiveness, generating adversarial examples that other methods miss entirely.
Key Results
CAPGD demonstrated significant improvements in generating adversarial examples:
- Effectiveness: CAPGD significantly outperforms existing gradient-based attacks like CPGD and LowProFool. It reduced the robust accuracy on the URL, LCLD, and WIDS datasets to as low as 10.9%, 0.2%, and 10.2% respectively, indicating a highly effective attack.
- Complementarity: A Venn diagram analysis showed that CAPGD generates adversarial examples for 6597 original examples that neither CPGD nor LowProFool could attack. Furthermore, all successful adversarial examples generated by CPGD and LowProFool were also generated by CAPGD, suggesting CAPGD subsumes the capabilities of these prior gradient-based attacks.
- Efficiency: CAPGD is described as parameter-free (except for the number of iterations) and efficient, making it practical for evaluating robustness.
Limitations and Future Work
- Whitebox Assumption: The current attack is a whitebox attack, meaning it requires full knowledge of the target model. This limits its direct applicability in scenarios where the model is a blackbox.
- L2 Norm: The study primarily uses the L2 norm for measuring perturbations. While suitable for numerical and categorical features, exploring other norms or more domain-specific imperceptibility metrics could be a future direction.
- Future Work: The authors suggest that their work is a first step in understanding adversarial robustness for constrained tabular deep learning. Future research could focus on developing more sophisticated adaptive mechanisms, exploring blackbox variants of CAPGD, and investigating defense strategies against such adaptive attacks.
Summary updated