Deep neural networks are notoriously fragile. A tiny, imperceptible tweak to an image—an adversarial perturbation—can flip a "panda" classification to a "gibbon." To fight back, researchers have turned to probabilistic classifiers. Instead of a single fixed prediction, these models might inject noise into the input or pick one model from a randomized ensemble at inference time.
But does this "rolling of the dice" actually provide a fundamental advantage over traditional deterministic models? A recent paper from researchers at CNRS and Université Paris Dauphine - PSL, titled "On the Role of Randomization in Adversarially Robust Classification," provides a rigorous theoretical answer.
TL;DR
The paper introduces the "Matching Penny Gap" to quantify exactly when randomization improves adversarial robustness. Crucially, it proves that for binary classification, you don't actually need randomness at inference time: for every probabilistic classifier, there exists a deterministic "threshold" classifier that is at least as robust.
What Problem Does This Paper Address?
There has been a long-standing debate in the adversarial machine learning community. Some studies suggest that randomization is a powerful defense because it forces an attacker to "guess" which model or noise state will be active, making it harder to find a single effective perturbation. Others argue that this is just "obfuscated gradients"—a false sense of security that can be bypassed by smarter attacks—and that deterministic models can be just as strong.
The authors set out to reconcile these conflicting findings. They wanted to understand the precise conditions under which a randomized ensemble outperforms its individual members and whether a deterministic counterpart always exists.
Methods
The authors analyze adversarial risk through the lens of game theory and optimal transport. Their key methodological contributions include:
- The Matching Penny Gap ($\pi$): They define this new metric to measure the advantage of randomization. It is inspired by the "matching pennies" game, where one player wins by matching the other's choice (Heads/Heads or Tails/Tails). In this context, the "attacker" wins if their perturbation fools the specific "defender" model chosen by the random process.
- Threshold Hypothesis Sets (THS): For any probabilistic classifier $h$ (which outputs a probability), they define a set of deterministic classifiers $h^\alpha$ that simply threshold that probability at some value $\alpha$.
- Theoretical Proofs: They provide proofs for two main scenarios:
- From Deterministic to Probabilistic: Showing when a mixture of models is strictly better than any single model in the set.
- From Probabilistic to Deterministic: Showing that in binary settings, a deterministic thresholding of a probabilistic model is always superior or equal in robustness.
Datasets
This paper is primarily a theoretical study. Rather than benchmarking on ImageNet or CIFAR-10, the authors use:
- Toy Synthetic Distributions: Discrete data points in 2D space to illustrate "matching penny" configurations where linear classifiers fail individually but succeed as a mixture.
- Mathematical Frameworks: They analyze abstract hypothesis sets like the space of all linear classifiers or all measurable functions.
Key Insights and Ideas
- Diversity is the Key to the Gap: Randomization only helps if the base classifiers are "diverse" in their vulnerabilities. If two models $f_1$ and $f_2$ can both be fooled by the same adversarial point, randomizing between them offers zero benefit. The "Matching Penny Gap" is non-zero only when models are vulnerable at a point, but not at the same time or to the same perturbation.
- Parallel Boundaries Don't Help: If a hypothesis set consists of models with parallel decision boundaries (e.g., just shifting a threshold), randomization provides no robustness gain. This is because their vulnerability regions are nested; if the "stronger" model is fooled, the "weaker" one is guaranteed to be fooled too.
- The Binary Deterministic Guarantee: In binary classification ($K=2$), the authors prove that randomization is technically unnecessary at inference time. You can always find a deterministic "weighted ensemble" or a "randomized smoothing" style classifier that matches the performance of the probabilistic version.
- The Multi-class Exception: The paper highlights that this deterministic guarantee does not hold for multi-class classification ($K > 2$). In multi-class settings, there are cases where the optimal robust classifier must be probabilistic.
Key Results
- Risk Decomposition: The authors proved that the adversarial risk of a randomized mixture is exactly the average risk of its components minus the expected Matching Penny Gap: $$R_\epsilon(h_\mu) = \mathbb{E}_{h \sim \mu}[R_\epsilon(h)] - \mathbb{E}_{(x,y) \sim \rho}[\pi_{h_\mu}(x, y)]$$
- Ensemble Superiority: They showed that for every randomized ensemble, there exists a deterministic weighted ensemble with better adversarial risk.
- Noise Injection: Similarly, for every input noise injection classifier, there exists a deterministic thresholded version (a generalization of randomized smoothing) that is at least as robust.
Limitations and Future Work
- Multi-class Complexity: The most significant limitation is that the "deterministic is enough" result is restricted to binary classification. Characterizing the strictly probabilistic optimal classifiers in the multi-class setting remains an open challenge.
- Model Complexity: While a deterministic counterpart exists, it might be significantly more complex to implement or train than the randomized version (e.g., a massive weighted ensemble vs. a simple noise-injected model).
- Training Diversification: The theory suggests that we should train ensembles to maximize the Matching Penny Gap. The authors note that current training algorithms for randomized ensembles are often inadequate and suggest developing new ones that explicitly promote this specific type of vulnerability diversity.
Summary updated