A General Retraining Framework for Scalable Adversarial Classification

Bo Li, Yevgeniy Vorobeychik, Xinyun ChenarXiv 2016

Abstract

Machine learning models are notoriously vulnerable to evasion attacks, where malicious actors strategically modify data to bypass detection. Existing defenses often lack scalability or are restricted to specific model architectures. This paper introduces RAD (Retraining with ADversarial Examples), a scalable, model-agnostic framework that iteratively injects adversarial examples into the training process. RAD is theoretically shown to minimize an upper bound on adversarial risk. Experiments on the Enron and MNIST datasets demonstrate that RAD achieves state-of-the-art robustness while scaling to thousands of features, significantly outperforming prior bi-level optimization approaches in computational efficiency.

Introduction

The fundamental assumption of machine learning—that training and test data share the same distribution—collapses in security-sensitive applications like spam filtering or malware detection. In these domains, attackers actively manipulate features to evade classifiers. While robust learning algorithms have been developed to counter these "evasion attacks," they typically suffer from two major drawbacks: they are often tailored to specific models (e.g., SVMs) and fail to scale to high-dimensional feature spaces. For instance, prior bi-level optimization methods like SMA become computationally intractable when dealing with more than a few dozen features. This paper addresses the urgent need for a general-purpose, highly scalable defense mechanism.

The RAD Framework

RAD addresses these challenges through an iterative retraining loop that requires zero modifications to the underlying learning algorithm. The process follows a simple yet effective cycle:

  1. Train a baseline classifier on the current dataset.
  2. Generate adversarial examples using an "attacker oracle" that successfully evade the current model.
  3. Retrain the model after appending these new adversarial instances to the training set.

This loop repeats until the attacker can no longer generate cost-effective evasions. To simulate the attacker, the authors introduce a Coordinate Greedy (CG) algorithm with random restarts, which approximates optimal evasion attacks in both continuous and discrete feature spaces. Crucially, the authors provide a theoretical foundation for this approach, proving that the RAD loop minimizes an upper bound on optimal adversarial risk.

Experimental Evaluation

The framework was evaluated using three diverse datasets:

  • Enron Corpus: Spam email classification with 2,000 binary features.
  • MNIST: Handwritten digit recognition with 784 continuous features.
  • Human Subject Evasion Data: Real-world attempts by humans to manipulate emails to evade filters.

Key Results

Scalability and Near-Optimal Performance

RAD demonstrates exceptional scalability compared to existing state-of-the-art defenses. As shown in Figure 1, while the exact SMA method is computationally expensive and limited to low-dimensional data, RAD provides nearly identical F1 scores in a fraction of the time. This efficiency allows RAD to handle datasets with thousands of features where previous methods were non-viable.

Figure 1: Comparison of F1 scores and training time for SVM, SMA, and RAD. RAD achieves performance comparable to the optimal SMA while being significantly more efficient.

Robustness Across Attack Budgets

RAD-trained models exhibit high robustness across varying attack costs (represented by $\lambda$). While baseline models degrade rapidly as the attacker's budget for modifying features increases, models trained with RAD maintain high performance. Figure 5 illustrates that robust models ('rob') maintain near-perfect precision, recall, and accuracy even under conditions where standard models ('adv') fail.

Figure 5: Precision, recall, and accuracy for standard (adv) and robust (rob) models across different attack costs (λ). Robust models maintain high performance regardless of the attacker's budget.

Discussion and Insights

A key finding of the study is that automated, optimization-based attacks are significantly more potent than human attempts. Training against these synthetic adversaries results in models that are highly resilient to real-world human evasion. Furthermore, the authors found that robustness does not necessarily come at the expense of standard accuracy; in many cases, the inclusion of adversarial examples via RAD actually maintained or slightly improved the model's generalizability on clean data.

Conclusion

RAD provides a practical and theoretically sound solution for building robust classifiers at scale. Its model-agnostic nature and efficiency make it a versatile tool for securing machine learning systems against evolving evasion threats. Future work will focus on extending this framework to massive-scale deep learning architectures and exploring more complex, non-convex attack models.

Summary updated

BibTeX
@misc{li2016general,
  author = {Bo Li and Yevgeniy Vorobeychik and Xinyun Chen},
  title = {{A General Retraining Framework for Scalable Adversarial Classification}},
  year = {2016},
  eprint = {1604.02606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.02606},
}
Figure