Constrained Adaptive Attack: Effective Adversarial Attack Against Deep Neural Networks for Tabular Data

Thibault Simonetto, Salah Ghamizi, Maxime Cordy

Introduction

Adversarial robustness is a cornerstone of trustworthy machine learning, yet its application to tabular data has lagged behind fields like Computer Vision. Tabular data is the primary format for critical industries, including finance and healthcare, where model reliability is paramount. This paper introduces the Constrained Adaptive Attack (CAA), a novel framework designed to evaluate and challenge the robustness of deep learning models on tabular data by respecting complex real-world constraints.

The Challenge of Tabular Data

Attacking tabular models is significantly more complex than attacking image-based models. While image perturbations involve small changes to pixel values, tabular features must adhere to strict constraints:

  • Categorical Features: Variables like "Gender" or "Zip Code" cannot be modified by continuous gradients.
  • Immutability: Real-world attackers cannot change features like "Age" or "Historical Credit Score."
  • Logical Interdependencies: Features often have functional relationships; for instance, "Total Income" must logically relate to "Tax Paid."

Existing attacks often fail because they produce "adversarial examples" that are physically or logically impossible, or they are too computationally expensive for practical use.

Proposed Method: CAA

The authors propose a nested ensemble strategy that combines efficiency with high success rates.

CAPGD: Constrained Adaptive PGD

At the heart of CAA is CAPGD (Constrained Adaptive PGD). Unlike standard PGD, which often gets "stuck" in invalid regions of the feature space, CAPGD introduces:

  • Adaptive Step Sizes: The algorithm halves the step size only when optimization plateaus, ensuring better convergence.
  • Momentum: This helps the gradient descent navigate the complex, non-convex loss surfaces typical of tabular data.
  • Repair Operator: A critical component that projects perturbed data back into a valid state, ensuring all logical and physical constraints are satisfied.

CAA Ensemble

CAA uses a "best of both worlds" approach. It first attempts to find an adversarial example using the fast CAPGD. If this gradient-based approach fails, it hands the sample to MOEVA, a powerful but slower genetic search algorithm. This allows CAA to reserve its most expensive computations for the most difficult samples.

Experimental Setup

The framework was evaluated on four diverse datasets: URL (phishing detection), LCLD (credit scoring), WiDS (ICU survival prediction), and CTU-13 (botnet detection). These datasets feature between 14 and 360+ linear and non-linear constraints. The attacks were tested against state-of-the-art tabular architectures, including TabNet, TabTransformer, and VIME.

Key Results and Discussion

CAA outperformed all existing attacks in 17 out of 20 experimental settings, leading to accuracy drops of up to 96.1 percentage points.

Subsumption of Previous Methods

A significant finding is that CAPGD is so effective it largely renders previous gradient-based attacks obsolete. As shown in Figure 1, CAPGD successfully identified thousands of adversarial examples that methods like CPGD and LowProFool could not find.

Venn diagram illustrating the number of successful adversarial examples found by CAPGD compared to CPGD and LowProFool.

Efficiency and Parameter Sensitivity

The ensemble approach makes CAA up to five times faster than using search-based methods like MOEVA alone. This efficiency stems from the "Easy" vs. "Hard" sample split: most adversarial examples can be found quickly via gradients, leaving only a small fraction for the genetic algorithm. Figure 6 demonstrates the attack's performance across different perturbation budgets (epsilon) and iteration counts, showing consistent effectiveness across various model architectures.

Robust accuracy of various models under different attack parameters: (a) perturbation budget, (b) gradient iterations, and (c) search iterations.

Conclusion

The Constrained Adaptive Attack (CAA) sets a new benchmark for adversarial evaluation in tabular machine learning. By proving that gradient-based attacks can be highly effective when combined with adaptive mechanisms and repair operators, the authors highlight a significant vulnerability in current tabular deep learning models. Future work will focus on developing robust defenses that do not sacrifice clean accuracy and extending these attacks to black-box settings.

Summary updated

BibTeX
@inproceedings{simonetto2024constrained,
  author = {Thibault Simonetto and Salah GHAMIZI and Maxime Cordy},
  title = {{Constrained Adaptive Attack: Effective Adversarial Attack Against Deep Neural Networks for Tabular Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ZtTWKr51yH},
}
Figure