Abstract
This paper presents RobustBandit, a hierarchical algorithm designed for stochastic linear contextual bandits operating under adversarial attacks on both rewards and context features. By employing a "bandit-over-bandit" framework that utilizes the EXP3 algorithm to adaptively select exploration parameters for a modified LinUCB base, the method achieves sub-linear regret without prior knowledge of the adversary's budget. Experimental results on synthetic and real-world datasets (MovieLens, Netflix) confirm the algorithm's effectiveness and its resilience compared to traditional bandit methods like LinUCB and Thompson Sampling.
Introduction
Contextual bandit algorithms are fundamental to modern recommendation systems, online advertising, and clinical trials. These systems learn to map user "contexts" (features) to optimal "arms" (actions) based on observed rewards. However, standard algorithms like LinUCB are notoriously fragile. Even small amounts of adversarial noise—whether injected into the rewards or the feature vectors themselves—can mislead these models into permanently ignoring optimal actions, resulting in linear regret where the system fails to improve over time.
While robustness has been explored in simpler multi-armed bandit settings, the contextual setting introduces unique challenges, particularly when an attacker can manipulate the feature vectors (context) to deceive the learner. This paper addresses these vulnerabilities by introducing a defense mechanism that remains effective even against an omniscient adversary.
Methodology: The RobustBandit Framework
The authors propose a two-layer hierarchical architecture termed RobustBandit:
- Bottom Layer (Modified LinUCB): The core insight is that robustness is tied to exploration. If an attacker makes a good arm look bad, the algorithm must be "suspicious" enough to keep pulling it. The authors prove that if the total attack budget ($C$) were known, a LinUCB variant with a sufficiently enlarged exploration parameter could maintain sub-linear regret.
- Top Layer (EXP3): Since the budget $C$ is typically unknown, the top layer treats the selection of the optimal budget estimate as a separate adversarial bandit problem. It uses the EXP3 algorithm to choose from a discrete set of candidate budget estimates.
- Epoch-Based Restarts: To prevent permanent corruption of the model's memory by an adversary, the timeline is divided into epochs. At the start of each epoch, the top layer selects a new budget estimate, and the bottom layer restarts its LinUCB instance.
Experimental Evaluation
The researchers evaluated RobustBandit across three environments:
- Synthetic Simulation: Controlled environments with uniform distributions for features and parameters.
- MovieLens 100K: Real-world movie rating data transformed via matrix factorization ($d=10$).
- Netflix Dataset: A large-scale dataset filtered for high-quality items with at least 10,000 ratings.
Two primary attack models were tested: Garcelon attacks (replacing rewards with random noise) and Oracle attacks (maliciously degrading the rewards of the best arms to favor sub-optimal ones).
Key Results
The theoretical analysis establishes a sub-linear regret bound of approximately $\tilde{O}(T^{3/4})$, ensuring long-term convergence despite attacks. Empirically, the algorithm demonstrated significant superiority over standard baselines.
As shown in the experimental results, RobustBandit and its variant BOB-No-Restart (which omits the epoch-based restarts to preserve data) consistently outperformed LinUCB, Thompson Sampling (LinTS), and Greedy algorithms. While standard algorithms suffered from skyrocketing regret under context-dilation and reward attacks, RobustBandit maintained a steady, low regret curve. Notably, the "No-Restart" version performed best in practice, suggesting that the information gained from historical data often outweighs the risk of adversarial corruption in these settings.
Conclusion and Future Work
RobustBandit represents a significant milestone as the first algorithm to provide sub-linear regret guarantees for linear contextual bandits under both reward and context attacks. The work highlights that aggressive exploration serves as a vital shield against adversarial manipulation.
Future research directions include closing the gap between the theoretical $\tilde{O}(T^{3/4})$ bound and the standard $\tilde{O}(\sqrt{T})$ non-attacked bound, as well as providing formal theoretical foundations for the empirically superior "No-Restart" variant. Additionally, optimizing the computational overhead of maintaining multiple budget estimates remains an area for further refinement.
Summary updated