Transferable Adversarial Robustness for Categorical Data via Universal Robust Embeddings

Klim Kireev, Maksym Andriushchenko, Carmela Troncoso, Nicolas Flammarion

Introduction

Adversarial robustness research has primarily focused on continuous domains like computer vision and natural language processing. However, tabular data remains the primary format for high-stakes decision-making in finance and healthcare. Applying standard adversarial defense techniques to tabular data is non-trivial due to two primary factors: the discrete nature of categorical features and the prevalence of non-differentiable tree-based models (e.g., XGBoost, Random Forests). Furthermore, traditional $\ell_p$ norm constraints are often meaningless in tabular contexts; instead, a cost-aware threat model is required to reflect realistic adversarial constraints, such as the financial cost of changing an email address or moving to a new city.

Methodology

This work proposes a framework to generate robust representations that can be transferred across different model architectures.

Cat-PGD: Categorical Projected Gradient Descent

To address the discrete nature of categorical data, the authors introduce Cat-PGD. This method utilizes a continuous relaxation, optimizing over the "convex hull" of one-hot encoded vectors. To ensure that adversarial perturbations remain within the valid categorical space and respect the financial budget, the framework employs Dykstra’s projection algorithm.

Universal Robust Embeddings

The core contribution is the development of Universal Robust Embeddings. The training process follows a bilevel alternating minimization framework:

  1. Robust Feature Learning: A neural network (e.g., TabNet) is trained to optimize first-layer embeddings for robustness while maintaining high classification accuracy in the subsequent layers.
  2. Embedding Merging: To facilitate the transfer of these embeddings to tree-based models, the authors propose an Embedding Merging Algorithm. This algorithm clusters embeddings that are proximally close, allowing tree models to group categories with similar robustness profiles.
Algorithm 3: The Embedding Merging Algorithm clusters robust embeddings to improve transferability to non-differentiable models.
  1. Transferability: These robust embeddings serve as input features for standard tree-based ensembles, effectively inheriting the robustness optimized during the neural network training phase without requiring specialized robust tree-training algorithms.

Experimental Evaluation

The framework was evaluated on three large-scale datasets with realistic financial cost models: IEEECIS (fraud detection), BAF (bank account fraud), and Credit (simulated transactions). Costs were assigned to specific adversarial actions, such as changing an email domain or transaction amount.

Performance and Robustness

The proposed Cat-PGD method consistently outperforms existing baselines in both clean and robust accuracy across varying adversarial budgets. As shown in the performance metrics, Cat-PGD maintains a higher accuracy plateau even as the adversary's budget increases.

Performance comparison: Cat-PGD (blue) maintains superior clean and robust accuracy across IEEECIS, Credit, and BAF datasets compared to the baseline (orange).

Transfer to Tree-Based Models

The transfer of robust embeddings yielded significant improvements for tree-based models. On the IEEECIS dataset, the robust accuracy of a LightGBM model increased by 24%. Notably, this approach is significantly more efficient than direct robust training of trees. For the Credit dataset, the embedding-based approach took approximately 3 minutes, whereas competing robust tree-training methods required nearly 3 hours.

Conclusion

This research demonstrates that adversarial robustness in tabular data can be achieved by focusing on robust input representations. By making the first-layer embeddings of a neural network robust and merging them for better clustering, robustness can be effectively transferred to popular tree-based models. This approach circumvents the need for expensive, specialized training for non-differentiable models while respecting the realistic financial constraints of tabular data adversaries.

Summary updated

BibTeX
@inproceedings{kireev2023transferable,
  author = {Klim Kireev and Maksym Andriushchenko and Carmela Troncoso and Nicolas Flammarion},
  title = {{Transferable Adversarial Robustness for Categorical Data via Universal Robust Embeddings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Kig2YJVYfq},
}
Figure