Randomized Prediction Games for Adversarial Machine Learning

Samuel Rota Bulò, Battista Biggio, Ignazio Pillai, Marcello Pelillo, Fabio Roli · DOI

Introduction

Machine learning models are notoriously fragile in adversarial environments. In domains such as spam and malware detection, attackers constantly manipulate their data—a process known as evasion attacks—to bypass filters. While previous research has employed game theory to design "secure" classifiers by modeling the interaction as a competition between a learner and an attacker, these models have remained largely deterministic.

This paper introduces Randomized Prediction Games, a novel game-theoretic framework that incorporates randomization into both the classifier's and the attacker's strategies. By modeling adversarial interactions as a game where players choose probability distributions rather than single deterministic actions, the authors develop a "Randomized Nash SVM" (RNashSVM) that offers superior robustness against unpredictable, real-world evasion attacks.

Methodology

The core contribution is the formalization of the Randomized Prediction Game, where the "l-player" (learner) and the "d-player" (data generator/attacker) choose parameters for probability distributions governing their strategies. Instead of minimizing a simple loss function, players minimize their expected cost over these distributions. The authors provide proofs for the existence and uniqueness of a Nash Equilibrium in this randomized setting.

To implement this, they developed RNashSVM, applying the framework to Support Vector Machines (SVMs). They assume the learner’s weights and the attacker’s data perturbations follow Gaussian distributions. To find the equilibrium, they utilize a modified extragradient descent algorithm, which iteratively updates the parameters of both distributions until a stable point is reached. Furthermore, they demonstrate that this approach can be extended to non-linear classifiers using the "kernel trick," allowing for complex, non-linear decision boundaries.

Experimental Evaluation

The authors evaluated RNashSVM on three distinct tasks:

  1. MNIST Handwritten Digits: Used for visual interpretation of decision boundary shifts.
  2. TREC-07 Email Corpus: A benchmark for spam filtering containing over 75,000 real emails.
  3. PDF Malware Detection: A dataset consisting of 5,993 malicious and 5,951 benign samples, using structural keywords as features.

Key Results and Visual Insights

In all experiments, RNashSVM provided a superior trade-off between the True Positive (TP) rate and the False Positive (FP) rate as attack intensity increased. On the TREC-07 and PDF datasets, RNashSVM maintained a higher detection rate at a 1% false-positive threshold even under heavy attack, significantly outperforming standard SVMs and deterministic NashSVMs.

Visualizing the 'enclosing effect': The green shaded areas represent the randomized decision boundary buffer in linear (top) and kernelized (bottom) settings.

One of the most intuitive findings is the "enclosing" effect. As shown in the figure above, randomization forces the classifier to enclose the legitimate class more tightly. In a deterministic game, a boundary might shift slightly; in a randomized game, the variability of the boundary (the green shaded area) creates a robust buffer. This makes it significantly harder for an attacker to find a single "hole" to slip through without making large, detectable modifications to their samples.

Discussion and Future Work

RNashSVM offers a less pessimistic defense than deterministic models, which often assume the absolute worst-case attack and suffer from high false-positive rates. By using distributions, the randomized model finds a better balance. Crucially, the model exhibits robustness to model mismatch, performing well even when the attacker does not behave exactly as predicted, because the defense is built on a distribution of possibilities.

While the framework is promising, the authors note that finding the equilibrium via extragradient descent is more computationally intensive than training a standard SVM, potentially limiting scalability for real-time systems. Future work may involve extending randomized games to poisoning attacks (where training data is manipulated) and unsupervised learning tasks like clustering.

Summary updated

BibTeX
@article{bulo2016randomized,
  author = {Samuel Rota Bulò and Battista Biggio and Ignazio Pillai and Marcello Pelillo and Fabio Roli},
  title = {{Randomized Prediction Games for Adversarial Machine Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2016},
  doi = {10.1109/tnnls.2016.2593488},
}
Figure