Deep Generative Models as an Adversarial Attack Strategy for Tabular Machine Learning

Salijona Dyrmishi, Mihaela Catalina Stoian, Eleonora Giunchiglia, Maxime Cordy

Abstract

Adversarial attacks on tabular data present unique challenges compared to the computer vision domain, primarily due to mixed data types and strict domain constraints. This paper introduces Adversarial Deep Generative Models (AdvDGMs), a framework that repurposes generative architectures to produce fast, effective, and realistic adversarial examples. By incorporating a novel Constraint Repair Layer, the authors ensure that generated perturbations adhere to real-world physical and logical rules. Experimental results across four datasets demonstrate that AdvDGMs, particularly those based on the WGAN architecture, achieve high success rates while maintaining computational efficiency.

Introduction

Adversarial attacks—small, intentional perturbations designed to deceive machine learning models—have been extensively researched in image processing. However, applying these techniques to tabular data, such as financial records or medical diagnostics, is significantly more complex. Tabular data is characterized by mixed feature types (continuous and categorical) and must often satisfy specific domain constraints (e.g., a debt-to-income ratio cannot be negative).

Existing adversarial methods often produce "impossible" data points that violate these constraints, making them easily detectable or physically irrelevant. Furthermore, traditional optimization-based attacks are computationally expensive. This research explores whether Deep Generative Models (DGMs) can be leveraged to generate high-quality adversarial examples that are both successful in fooling models and compliant with domain-specific rules.

Methodology: Adversarial Deep Generative Models (AdvDGMs)

The authors adapted four prominent tabular generative architectures—WGAN, TableGAN, CTGAN, and TVAE—into adversarial variants. Unlike standard DGMs that generate data from random noise, AdvDGMs take an original data point as input and learn to produce a minimal perturbation that alters the target model's classification.

The Loss Function

The training of AdvDGMs is guided by a composite loss function designed to balance three competing objectives:

  1. Generative Loss: Ensures the output remains consistent with the underlying data distribution.
  2. Adversarial Loss: Maximizes the probability that the target model will misclassify the perturbed input.
  3. Perturbation Loss: Minimizes the distance between the original and adversarial examples to ensure the changes are subtle.

The Constraint Repair Layer (CL)

To address the requirement for realistic data, the authors introduced a differentiable Constraint Repair Layer. This layer checks the generated output against a set of predefined linear inequalities (e.g., $x_1 + x_2 \leq 100$). If a constraint is violated, the layer applies a minimal repair to bring the values back into the feasible region. The study evaluates two implementations:

  • C-AdvDGM: The constraint layer is active during the training phase.
  • P-AdvDGM: The constraint layer is applied only during the final sampling/inference phase.

Experimental Setup

The framework was evaluated using four real-world datasets with known constraints:

  • URL: Malicious website detection.
  • WiDS: Climate and weather data.
  • Heloc: Home Equity Line of Credit applications.
  • FSP: Financial services data.

These attacks targeted three diverse machine learning architectures: TorchRLN, VIME, and TabTransformer.

Key Results and Discussion

Performance and Success Rates

The AdvWGAN architecture emerged as the most effective attack strategy, consistently outperforming more modern architectures like CTGAN and TVAE. On the Heloc dataset, AdvWGAN achieved an Attack Success Rate (ASR) of up to 95% against the TabTransformer model. When compared to state-of-the-art (SOTA) optimization-based attacks like MOEVA, AdvWGAN proved to be a highly competitive alternative, often ranking as the second-best attack method across various benchmarks.

The Impact of Constraints

One of the most significant findings was that enforcing domain constraints often improved the attack success rate. In 38 out of 48 tested scenarios, the P-AdvDGM version (applying constraints during sampling) showed higher ASR than unconstrained versions. This suggests that by narrowing the search space to realistic data regions, the generative model more efficiently identifies vulnerabilities in the target model.

Computational Efficiency

Efficiency is a primary advantage of the DGM approach. While the inclusion of the Constraint Repair Layer increased training time (up to 4.7x in some cases), the impact on sampling was negligible. Once trained, these models can generate adversarial examples in milliseconds—adding at most 0.12 seconds to the process. This speed makes AdvDGMs ideal for adversarial hardening, where models are trained on large volumes of adversarial examples to improve robustness.

Limitations and Future Work

Despite the success of the AdvDGM framework, the researchers noted several areas for further study:

  • Dataset Sensitivity: The models struggled with the WiDS dataset, where success rates were lower than the natural error rate of the target models, indicating that some distributions remain difficult for current DGMs to model for adversarial purposes.
  • Black-Box Scenarios: The current study assumes a white-box or gray-box setting where the target model's loss is known. Future work will explore the effectiveness of these generative attacks in strictly black-box environments.
  • Mechanics of Constraints: The varying effectiveness of the constraint layer between the training and sampling phases warrants deeper investigation to understand why enforcing realism specifically aids the adversarial search process.

Conclusion

This research demonstrates that Deep Generative Models are a powerful and efficient tool for generating adversarial attacks on tabular data. By integrating a Constraint Repair Layer, the authors have bridged the gap between mathematical success and physical feasibility, providing a robust framework for testing and improving the security of tabular machine learning models.

Summary updated

BibTeX
@inproceedings{dyrmishi2024deep,
  author = {Salijona Dyrmishi and Mihaela Catalina Stoian and Eleonora Giunchiglia and Maxime Cordy},
  title = {{Deep Generative Models as an Adversarial Attack Strategy for Tabular Machine Learning}},
  booktitle = {ICMLC},
  year = {2024},
  doi = {10.1109/icmlc63072.2024.10935037},
}
Figure