Practical Adversarial Attacks on Stochastic Bandits via Fake Data Injection

Qirun Zeng, Eric He, Richard Hoffmann, Xuchuang Wang, Jinhang ZuoSubmission to ICLR 2026 · Rejected

TL;DR

Standard adversarial attacks on multi-armed bandits unrealistically assume the attacker can intercept and rewrite every single reward with unbounded values. This paper introduces the Fake Data Injection model—where attackers instead inject realistic, bounded fake interactions (like fake reviews or click fraud) on arbitrary arms under rate constraints. The authors prove that even under these strict real-world limits, both UCB and Thompson Sampling algorithms can be tricked into choosing a bad arm almost indefinitely with only sublinear attack cost.

What Problem Does This Paper Address?

Multi-armed bandits (MAB) power recommendation engines, online advertising, and clinical trials by balancing exploration (trying new choices) and exploitation (picking the best known choice). Prior theoretical work showed that adversaries can steer algorithms like Upper Confidence Bound (UCB) and Thompson Sampling (TS) toward a suboptimal target arm.

However, existing attack models rely on three deeply impractical assumptions:

  1. Per-round control: The attacker must intercept and rewrite genuine user rewards in real time at every single time step.
  2. Action restriction: The attacker can only alter feedback for the arm the learner just pulled.
  3. Unbounded rewards: Perturbations can take arbitrarily large negative or positive values.

In real systems (e.g., Yelp or Amazon), an attacker cannot tamper with authentic user feedback. Instead, they register fake accounts to submit fabricated ratings on arbitrary items within bounded ranges (e.g., 1 to 5 stars), often constrained by cooldown periods or batch limits to avoid anomaly detection. The authors introduce a threat model that captures this exact reality.

Methods

In the Fake Data Injection Threat Model, the adversary injects up to $N^F$ fake interaction tuples $(a_i^F, r_i^F)$ into the learner’s history. The rewards must lie in a bounded range $[\tilde{a}, \tilde{b}]$, and the learner updates its empirical counts and means as if genuine users made those pulls.

The paper develops three attack strategies:

  • Least Injection (LI) (Unbounded Warm-up): The attacker waits until a non-target arm has been pulled $\lceil (\log T)/\delta_0^2 \rceil$ times, then injects a single, heavily negative fake reward. This pushes the arm's empirical mean below the lower confidence bound of the target arm.
  • Simultaneous Bounded Injection (SBI): When individual rewards must remain within $[\tilde{a}, \tilde{b}]$, a single unbounded penalty is impossible. SBI replaces it by injecting a batch of $\tilde{n}$ bounded fake samples at the minimum reward value $\tilde{a}$ all at once.
  • Periodic Bounded Injection (PBI): To bypass batch-size limits and anomaly filters, PBI injects at most $f$ fake samples at a time, enforcing an analytically derived cooldown period of $R_i$ rounds between injections on arm $i$ while preventing the arm's confidence bound from rebounding.

All three algorithms are tailored and theoretically proven for both UCB and Thompson Sampling.

Datasets

  • MovieLens 25M: Used to simulate realistic recommendation interactions with $K = 10$ arms, deriving reward distributions from real movie ratings across a horizon of $T = 100,000$ rounds (with per-batch injection limit $f = 5$).
  • Synthetic Data: Simulated multi-armed bandit settings with sub-Gaussian reward distributions used to validate theoretical bounds.

Key Insights and Ideas

  • The Exponential Suppression Lemma: A single well-timed drop in an arm’s empirical mean suppresses its selection for an exponential number of rounds (up to $\exp(N_i(t)\delta_0^2)$). Because the confidence interval shrinks slowly while the mean remains depressed, non-target arms essentially freeze without requiring continuous intervention.
  • Bounded batches match unbounded efficiency: Even though bounded injections require more individual samples ($\tilde{n}$ samples instead of 1), carefully tuning the confidence parameter $\delta_0 = \Theta(\sqrt{\log T})$ keeps the total attack cost bounded at $\mathcal{O}(\sqrt{\log T})$, matching known theoretical lower bounds for unbounded per-round attacks.
  • Cooldown scheduling preserves stealth: Under rate limits, partial injections still weaken the UCB index enough to buy time. Calculating cooldown intervals $R_i$ based on worst-case partial suppression prevents arms from ever being re-selected before the next injection batch arrives.

Key Results

  • Theoretical Guarantees: For both UCB and Thompson Sampling, the proposed attacks force the algorithm to pick the target arm for at least $T - \mathcal{O}(K \log T / \delta_0^2)$ rounds with an optimal sublinear cumulative cost of $\mathcal{O}(\sqrt{\log T})$.
  • Empirical Performance on MovieLens 25M ($T = 100,000$):
  • Both SBI and PBI rapidly force the bandit learner to converge on the target arm early in the horizon (matching the selection ratio of the unbounded LI baseline).
  • PBI achieves lower total attack cost than SBI at smaller values of $\delta_0$, proving that spreading bounded injections over time is not only stealthier against detection systems, but also cost-efficient.

Limitations and Future Work

  • Passive Learner Assumption: The algorithms assume the learner blindly incorporates all feedback without robust filtering, outlier rejection, or anomaly detection.
  • Setting Constraints: The current framework is analyzed for stochastic multi-armed bandits; extensions to contextual bandits and reinforcement learning (RL) are identified as open problems.
  • Future Defenses: The authors highlight the need for arm-level auditing and anomaly-detection defenses to counter periodic injection attacks in practical deployments.

Summary updated

Abstract

Adversarial attacks on stochastic bandits have traditionally relied on some unrealistic assumptions, such as per-round reward manipulation and unbounded perturbations, limiting their relevance to real-world systems. We propose a more practical threat model, Fake Data Injection, which reflects realistic adversarial constraints: the attacker can inject only a limited number of bounded fake feedback samples into the learner’s history, simulating legitimate interactions. We design efficient attack strategies under this model, explicitly addressing both magnitude constraints (on reward values) and temporal constraints (on when and how often data can be injected). Our theoretical analysis shows that these attacks can mislead both Upper Confidence Bound (UCB) and Thompson Sampling algorithms into selecting a target arm in nearly all rounds while incurring only sublinear attack cost. Experiments on synthetic and real-world datasets validate the effectiveness of our strategies, revealing significant vulnerabilities in widely used stochastic bandit algorithms under practical adversarial scenarios.
BibTeX
@inproceedings{zeng2026practical,
  author = {Qirun Zeng and Eric He and Richard Hoffmann and Xuchuang Wang and Jinhang Zuo},
  title = {{Practical Adversarial Attacks on Stochastic Bandits via Fake Data Injection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rmGDkBbxpE},
}
Figure