[Paper Review] Adversarial Attacks on Linear Contextual Bandits
This paper proposes adversarial attacks on linear contextual bandit algorithms by manipulating rewards or contexts to force the algorithm to select a target arm with high frequency. It shows that attackers can achieve near-optimal pulling of desired arms with only logarithmic cumulative cost, and demonstrates effective attacks even when modifying only a single user's context or only rewards.
Contextual bandit algorithms are applied in a wide range of domains, from advertising to recommender systems, from clinical trials to education. In many of these domains, malicious agents may have incentives to attack the bandit algorithm to induce it to perform a desired behavior. For instance, an unscrupulous ad publisher may try to increase their own revenue at the expense of the advertisers; a seller may want to increase the exposure of their products, or thwart a competitor's advertising campaign. In this paper, we study several attack scenarios and show that a malicious agent can force a linear contextual bandit algorithm to pull any desired arm $T - o(T)$ times over a horizon of $T$ steps, while applying adversarial modifications to either rewards or contexts that only grow logarithmically as $O(\log T)$. We also investigate the case when a malicious agent is interested in affecting the behavior of the bandit algorithm in a single context (e.g., a specific user). We first provide sufficient conditions for the feasibility of the attack and we then propose an efficient algorithm to perform the attack. We validate our theoretical results on experiments performed on both synthetic and real-world datasets.
Motivation & Objective
- To investigate how malicious agents can manipulate linear contextual bandit algorithms to favor specific arms through reward or context perturbations.
- To analyze the feasibility and cost of attacks when only the context of a single user is modifiable, simulating real-world scenarios like RAT compromises.
- To evaluate the robustness of common bandit algorithms—LinUCB, LinTS, and ε-greedy—under such adversarial manipulations.
- To develop efficient attack algorithms with sublinear cost that still achieve high success rates in forcing target arm pulls.
- To validate the theoretical findings empirically on both synthetic and real-world datasets (e.g., MovieLens, Jester)
Proposed method
- Formalize the attack problem in three settings: reward manipulation, context manipulation across all users, and context manipulation on a single target user.
- Propose a ContextualConic attack method that formulates the attack as a convex optimization problem to minimize perturbation norm while ensuring target arm selection.
- Introduce relaxed and non-relaxed variants of the attack to balance feasibility and success rate, particularly for stochastic bandit algorithms.
- Derive sufficient conditions for attack feasibility based on the geometry of feature vectors and the convex hull of arm representations.
- Use subgaussian noise assumptions and bounded feature norms to ensure theoretical guarantees on attack cost and algorithm behavior.
- Implement and evaluate attacks on LinUCB, LinTS, and ε-greedy using synthetic data and real-world datasets (MovieLens, Jester)
Experimental results
Research questions
- RQ1Can an attacker force a linear contextual bandit to select a specific target arm O(T) times over a T-step horizon with sublinear cost?
- RQ2What are the sufficient conditions for successful context-based attacks when only a single user's context is modifiable?
- RQ3How does the performance of different bandit algorithms (LinUCB, LinTS, ε-greedy) vary under reward and context-based adversarial attacks?
- RQ4What is the relationship between the geometric structure of feature vectors (e.g., convex hull) and the feasibility of context-based attacks?
- RQ5Can attacks be constructed with minimal cumulative perturbation cost while maintaining high success rates in real-world datasets?
Key findings
- The ContextualConic attack successfully forces LinUCB and LinTS to select target arms in 98.5% of cases on synthetic data, with only O(log T) cumulative reward perturbation cost.
- On the MovieLens dataset, the attack achieves over 95% success rate for LinUCB and LinTS, with total attack cost growing logarithmically with T.
- For single-context attacks, LinUCB and ε-greedy achieve over 90% success rate across all datasets, with non-relaxed attacks being more effective than relaxed ones.
- The Jester dataset is particularly vulnerable due to well-separated feature vectors—only 5% of arms lie within the convex hull of others, enhancing attack feasibility.
- Surprisingly, ε-greedy also exhibits high susceptibility to attacks, suggesting that exploration mechanisms do not fully mitigate adversarial context or reward manipulation.
- The cost of attacks on LinTS is higher than on LinUCB due to the need to ensure high-probability selection of the target arm, reflecting its more conservative sampling strategy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.