Overview
This paper formalizes the online adversarial attack problem, where an attacker must decide which samples to perturb in a transient, one-pass data stream under a strict budget. The authors introduce VIRTUAL+, a simple yet theoretically grounded algorithm that achieves state-of-the-art performance for small attack budgets by framing the challenge as a variation of the classic "secretary problem."
The Challenge of Streaming Data
Most research on adversarial attacks assumes a static setting: the attacker has a fixed dataset and can take as much time or as many passes as needed to find the "best" samples to attack.
In the real world, data often arrives as a stream (e.g., sensor data in an autonomous car or high-frequency financial trades).
This introduces two major constraints:
- Transiency: Decisions are irrevocable. If you don't attack a data point now, it’s gone forever.
- Online Budget: To avoid detection, an attacker can only perturb a small fraction ($k$) of the total $n$ incoming points.
The authors bridge the gap between adversarial machine learning and optimal stopping theory to determine how an attacker should "wait" for high-value targets in a stream they cannot see in advance.
Methods: The $k$-Secretary Problem
The authors model the attack as a $k$-secretary problem. In the classic secretary problem, you interview $n$ candidates one by one and must decide immediately whether to hire them. Here, the "candidates" are incoming data points, and their "value" is how likely an attack is to succeed (or the loss it induces).
The VIRTUAL+ Algorithm
The paper proposes VIRTUAL+, an improvement over existing online selection algorithms. It operates in two distinct phases:
- Passive Observation Phase: Observe the first $t$ data points without attacking them to establish a "reference list" $R$ of high-value scores.
- Selection Phase: For the remaining points, if a point's value is higher than the lowest value in the reference list, attack it and update the list.
Unlike its predecessor (VIRTUAL), VIRTUAL+ removes a conservative update rule, allowing it to be more aggressive in selecting high-value targets. The authors prove this leads to a better competitive ratio—the performance gap between an online algorithm and an "offline" one that sees the whole stream in advance.
The Stochastic Setting
Since attackers rarely have perfect knowledge of the target model, they use a surrogate model to estimate attack values. The authors formalize this as the stochastic $k$-secretary problem, proving that VIRTUAL+ remains robust even when the observed values are noisy estimates of the true target's vulnerabilities.
Key Insights and Results
The researchers evaluated their approach on MNIST, CIFAR-10, and ImageNet, testing against both standard classifiers and robust models (e.g., Madry Challenge models).
- The "Wait and See" Strategy is Essential: Simply attacking the first $k$ points is highly inefficient. Using a sampling phase to "calibrate" what a good target looks like significantly boosts the success rate.
- Simple Attacks Can Beat Strong Ones: In the online setting, the "weak" FGSM attack sometimes outperforms the "strong" PGD attack. PGD-generated values can be more concentrated, making it harder for the online algorithm to distinguish truly high-value targets from mediocre ones.
- Robust Models Aren't Always Harder to Attack Online: Counter-intuitively, it is sometimes easier to achieve a near-optimal attack rate on robust models because the distribution of "attackability" scores can be more favorable for the selection algorithm.
- Theoretical SOTA: VIRTUAL+ provides the best provable competitive ratio for small budgets ($k < 5$), outperforming previous benchmarks like SINGLE-REF.
- Empirical Gains: On MNIST and CIFAR-10, online algorithms improved the "fool rate" (success rate) by 7.5% to 34.1% compared to a naive baseline that picks points at random. In non-interactive blackbox settings, VIRTUAL+ allowed attackers to approach the performance of an offline oracle.
Limitations and Future Work
- Random Order Assumption: The theory relies on the assumption that data arrives in a random order. If a defender purposefully reorders the stream (adversarial queueing), the secretary problem framework might break down.
- Small $k$ Focus: While the paper provides a tractable formula for any $k$, the strongest theoretical claims are for very small budgets ($k < 5$). Extending these tight bounds to much larger budgets remains an open question.
- Fixed $n$: The algorithm assumes the total number of points $n$ is known in advance. In some streaming scenarios, the length of the stream might be unknown or infinite.
Summary updated