Robust Stochastic Linear Contextual Bandits Under Adversarial Attacks

Qin Ding, Cho-Jui Hsieh, James Sharpnack

Introduction

Stochastic linear contextual bandits are fundamental to modern recommendation systems and online advertising, mapping user and item features to rewards like clicks or purchases. However, these systems are vulnerable to adversarial manipulation. Attackers can perform reward attacks (e.g., click fraud) or context attacks (e.g., spoofing profiles) to mislead the algorithm into favoring sub-optimal "target" arms. Existing robust methods often struggle with unknown attack budgets, context-level attacks, or reliance on "diversity context" assumptions that rarely hold in practice.

This paper introduces RobustBandit, a novel algorithm designed to maintain sub-linear regret under fully adaptive adversarial attacks on both rewards and contexts. By employing a two-layer "Bandit-over-Bandit" (BOB) framework, the algorithm adaptively learns the unknown attack budget and adjusts its exploration strategy accordingly.

Methodology: The RobustBandit Framework

The core philosophy of RobustBandit is that increased exploration serves as the most effective defense against adversarial deception. The algorithm is structured hierarchically:

  1. Bottom Layer: A modified Linear Upper Confidence Bound (LinUCB) algorithm. Unlike standard LinUCB, RobustBandit enlarges the confidence bonus by a factor proportional to a candidate attack budget. This prevents the algorithm from prematurely discarding the true optimal arm if its rewards are suppressed by an attacker.
  2. Top Layer: To handle the unknown true attack budget $C$, the algorithm uses an EXP3 (adversarial Multi-Armed Bandit) algorithm. This layer treats the selection of a "candidate budget" as a separate bandit problem, choosing from a discrete set of potential budgets.
  3. Epoch-based Strategy: The algorithm divides time into epochs. At the start of each, the top layer selects a budget, and the bottom layer restarts its learning process. An empirical variant, BOB-No-Restart, retains history across epochs and often demonstrates superior practical performance.

Experimental Evaluation

The researchers evaluated RobustBandit against synthetic and real-world datasets, including MovieLens 100K and Netflix recommendation data. The experiments compared RobustBandit against standard baselines including LinUCB, Thompson Sampling (LinTS), and Greedy algorithms under two types of attacks: "Garcelon" (noise-based) and "Oracle" (targeted).

Cumulative regret on synthetic data under Garcelon attacks demonstrates the stability of the BOB-No-Restart approach.

Key Results and Insights

The primary theoretical contribution is a sub-linear regret bound of $\tilde{O}(d^{1/2}(C+1)T^{3/4} + d^{3/2}CT^{1/4})$, ensuring the algorithm eventually learns the optimal policy despite attacks. Empirically, RobustBandit and its "No-Restart" variant significantly outperformed all baselines, which often suffered linear regret under even modest attack budgets.

Performance on the Netflix dataset under Oracle attacks shows standard algorithms failing to recover, while RobustBandit maintains low regret.

Key insights include:

  • Exploration as a Shield: Attackers succeed by making the best arm appear inferior. By forcing persistent exploration, the algorithm eventually exhausts the attacker's budget $C$.
  • Agnosticism: The algorithm does not require prior knowledge of the attack budget or the specific target (reward vs. context).
  • Robustness to Bias: Unlike "Greedy" methods, RobustBandit remains stable even when feature vectors are highly biased, bypassing the need for "diversity context" assumptions.

Conclusion and Future Work

RobustBandit provides a significant step forward in securing contextual bandit systems. While it achieves sub-linear regret, a gap remains between the current $T^{3/4}$ bound and the theoretical $T^{1/2}$ lower bound. Additionally, while the BOB-No-Restart variant excels in practice, its theoretical properties require further investigation. Future research will focus on closing these gaps and optimizing the trade-off between exploration costs in clean environments and robustness under attack.

Summary updated

BibTeX
@inproceedings{ding2022robust,
  author = {Qin Ding and Cho-Jui Hsieh and James Sharpnack},
  title = {{Robust Stochastic Linear Contextual Bandits Under Adversarial Attacks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure