Efficient Adversarial Attacks on High-dimensional Offline Bandits

Seyed Mohammad Hadi Hosseini, Amir Najafi, Mahdieh Soleymani Baghshah

Introduction

Multi-armed bandit (MAB) algorithms have become the "gold standard" for efficiently evaluating machine learning models without exhaustive comparisons. For example, they are frequently used to determine which version of a generative AI model (like Stable Diffusion) produces the most aesthetically pleasing images. Because running these evaluations live with human feedback is prohibitively expensive, researchers increasingly rely on offline evaluation. This approach uses a pre-collected (logged) dataset and a pre-trained reward model—often publicly hosted on platforms like Hugging Face—to score the outputs and guide the bandit.

However, the reliance on public reward models introduces a critical vulnerability. While previous adversarial research has largely focused on poisoning training data, this paper explores a novel threat model: what if an attacker slightly perturbs the weights of the reward model before the bandit begins its evaluation? The findings reveal that imperceptible tweaks to these weights can completely hijack the bandit, forcing it to identify a sub-optimal AI model as the "best."

Methodology & Attack Strategies

The researchers analyzed vulnerabilities in both linear reward models and non-linear models (such as ReLU neural networks). For complex non-linear networks, they leveraged Neural Tangent Kernel (NTK) theory to treat the network as a linear approximation, enabling the use of efficient Quadratic Programming (QP) to find minimal, targeted perturbations.

The study proposes three distinct attack strategies:

  1. Full Trajectory Attack: Forces the bandit to follow a specific, pre-determined sequence of choices for the entire evaluation.
  2. Trajectory-Free Attack: A more flexible approach that simply ensures the "true" best model is never picked, without dictating which sub-optimal model takes its place.
  3. Online Score-Aware (OSA) Attack: A highly efficient heuristic that only adds constraints when the bandit is about to pick the "correct" arm, drastically reducing the computational cost of the attack.
Comparison of attack times across different strategies for linear and non-linear reward models.

To validate these methods, the authors used synthetic data (to prove theoretical bounds) and GenAI-Bench, a real-world dataset of images generated by five major models (including Stable Diffusion 3 and Midjourney alternatives). They targeted two popular Hugging Face evaluators: an Image Reward model (measuring compositional alignment) and the LAION-AI Aesthetic Predictor.

Key Findings

The Dimensionality "Curse" is an Attacker's Blessing

In traditional machine learning, high dimensionality ($d$) often makes learning more difficult. Surprisingly, the authors prove the opposite is true for this threat model. As the input dimension increases, the size of the perturbation needed to successfully hijack the bandit actually decreases at a rate of $O(d^{-1/2})$. This means the very models we use to evaluate complex, high-resolution images and large language models are the most vulnerable to imperceptible attacks.

High Efficiency and Success Rates

The attacks proved devastatingly effective. In almost all tested scenarios (including UCB, $\epsilon$-greedy, and ETC algorithms), the targeted perturbations achieved a 100% Attack Success Rate (ASR). Furthermore, the OSA attack demonstrated remarkable speed. While a Full Trajectory attack might require thousands of constraints, OSA often achieves the same result with only $O(\log T)$ constraints, making it highly feasible for long-running evaluations.

Crucially, naive random noise fails to break these systems; the attack must be a carefully targeted optimization to remain imperceptible while successfully flipping the leaderboard.

Left: Perturbation norms decrease as data dimensionality increases. Right: Attack Success Rate (ASR) before and after applying the shuffling defense.

Defenses are Difficult

The authors proposed a preliminary defense mechanism: shuffling the order of the logged data before evaluation. While this partially mitigated the attack (as seen in the drop in ASR), it did not stop it entirely, highlighting the difficulty of securing offline bandits against weight-perturbed reward models.

Limitations and Future Work

  • White-Box Assumption: The current attack assumes the adversary has access to the reward model's weights and the offline dataset. While this is a realistic assumption for open-source models on Hugging Face, extending these findings to "black-box" attacks on private APIs remains an open question.
  • Need for Robust Defenses: The proposed shuffling defense is only a partial mitigation. There is an urgent need for more robust, perhaps cryptographic or robust-statistical, defense mechanisms to secure offline bandit evaluations.
  • Dynamic Environments: This study focuses on fixed offline datasets. Future work should explore how these vulnerabilities manifest in "warm-start" or continually updating bandit systems.

Summary updated

BibTeX
@inproceedings{hosseini2026efficient,
  author = {Seyed Mohammad Hadi Hosseini and Amir Najafi and Mahdieh Soleymani Baghshah},
  title = {{Efficient Adversarial Attacks on High-dimensional Offline Bandits}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=yNVoSoxM0u},
}
Figure