Saving Stochastic Bandits from Poisoning Attacks via Limited Data Verification

Anshuka Rangi, Long Tran-Thanh, Haifeng Xu, Massimo Franceschetti

TL;DR

This paper reveals that even a tiny amount of reward poisoning—logarithmic relative to time—can completely break standard multi-armed bandit algorithms. To fix this, the authors introduce a "verification" model where the learner can occasionally pay to see the true reward, proving that just $O(\log T)$ verifications are enough to restore optimal performance even against powerful attackers.

What Problem Does This Paper Address?

Multi-Armed Bandits (MAB) are the workhorses of online decision-making, used in everything from clinical trials to web recommendation engines. However, these systems are often distributed and vulnerable to "Man-in-the-Middle" (MITM) attacks.

In a data poisoning attack, an adversary intercepts the reward signal and adds noise to trick the algorithm into picking a suboptimal choice. The authors address a fundamental tension: How much contamination does it take to ruin a bandit algorithm, and can we defend against it without the prohibitive cost of verifying every single data point?

Specifically, they look at "strong attackers" who can see what the learner chooses and what the true reward was before deciding how to manipulate the signal.

Methods

The paper approaches the problem through both attack and defense lenses:

  1. Attack Characterization: The authors propose a simple "oblivious" attack strategy—setting rewards to zero whenever the learner doesn't pick the attacker's target arm. They use this to prove lower bounds on how much noise is needed to cause linear regret.
  2. Verification Model: They introduce a setting where the learner can choose to "verify" a reward (e.g., via a secure channel or manual audit), receiving the uncontaminated truth.
  3. Secure-ETC (Explore-Then-Commit): A modified version of the classic ETC algorithm where every pull in the exploration phase is verified. Once the best arm is identified with high confidence, the learner "commits" and stops verifying.
  4. Secure-UCB: A more sophisticated version of the Upper Confidence Bound algorithm. It maintains a "secured" empirical mean and uses a dynamic criterion to decide when to verify, ensuring it doesn't get tricked by contaminated data while keeping verification costs low.
  5. Secure-BARBAR: Designed for scenarios with a strictly limited verification budget ($B$). It uses an epoch-based approach to adjust reward estimates based on a fixed number of verified samples per arm.

Datasets

This is a theoretical paper focused on algorithmic proofs and regret analysis. As such, it does not use standard real-world datasets. The proofs assume rewards are drawn from fixed, bounded distributions (like Bernoulli distributions), which is standard for stochastic bandit research.

Key Insights and Ideas

  • The $O(\log T)$ Fragility: The most striking insight is that an attacker only needs to contaminate a logarithmic number of rounds to force a learner into linear regret (total failure). In a million rounds, just a few dozen well-placed attacks can be catastrophic.
  • UCB’s Natural Shield: The authors discovered a "conservativeness" property in the standard UCB algorithm. Because UCB is designed to explore arms it hasn't seen much, it is naturally more robust than other algorithms, requiring at least $\Omega(\log T)$ contamination to be successfully attacked.
  • The Logarithmic Cure: You don't need to verify everything. The paper proves that $\Theta(\log T)$ verifications are both necessary and sufficient to recover optimal $O(\log T)$ regret. This means the "security overhead" scales at the same rate as the "learning regret."
  • Breaking the $\Omega(C)$ Barrier: In previous literature without verification, regret was always at least proportional to the total contamination $C$. The authors show that with even a small verification budget, they can achieve regret that is sub-linear in $C$, effectively "saving" the bandit from heavy poisoning.

Key Results

  • Attack Success: Any $O(\log T)$ regret algorithm can be forced to suffer $\Omega(T)$ regret with only $O(\log T)$ expected contamination.
  • Optimal Defense: Both Secure-ETC and Secure-UCB achieve the order-optimal $O(\log T)$ regret while using only $O(\log T)$ verifications.
  • Verification Necessity: The authors proved a matching lower bound: no algorithm can recover optimal regret with fewer than $\Omega(\log T)$ verifications.
  • Budgeted Performance: Against "weak" attackers (who must place noise before seeing the specific arm pull), Secure-BARBAR achieves $\tilde{O}(\min\{C, T/\sqrt{B}\})$ regret, where $B$ is the verification budget.

Limitations and Future Work

The primary limitation is the distinction between "weak" and "strong" attackers. While the authors provide robust defenses against strong attackers when verification is unlimited, their budgeted algorithm (Secure-BARBAR) is only proven against weak attackers.

The authors identify several open questions:

  1. Can we design efficient budgeted verification schemes against strong attackers with unknown contamination budgets?
  2. How would these results change if the learner only received "partial feedback" (knowing a reward was corrupted but not seeing the true value)?
  3. Can these verification principles be extended to the more complex world of Reinforcement Learning (RL)?

Summary updated

BibTeX
@inproceedings{rangi2022saving,
  author = {Anshuka Rangi and Long Tran-Thanh and Haifeng Xu and Massimo Franceschetti},
  title = {{Saving Stochastic Bandits from Poisoning Attacks via Limited Data Verification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20777},
}
Figure