Efficient and Optimal Policy Gradient Algorithm for Corrupted Multi-armed Bandits

Jiayuan Liu, Siwei Wang, Zhixuan Fang

Abstract

In the field of online learning, the Multi-armed Bandit (MAB) problem serves as a fundamental framework for decision-making under uncertainty. However, real-world applications often face adversarial attacks where rewards are "corrupted" to mislead the learner. While existing algorithms offer a trade-off between computational efficiency and theoretical optimality, this paper demonstrates that the Stochastic Approximation Markov Bandit Algorithm (SAMBA) bridges this gap. We show that SAMBA, a policy gradient-based method, is the first combinatorial algorithm to achieve the optimal regret bound of $O(\frac{K}{\Delta} \log T + \frac{C}{\Delta})$ in corrupted bandit settings, outperforming existing baselines in both speed and accuracy.

Introduction

The Multi-armed Bandit (MAB) problem is a classic paradigm in reinforcement learning, where an agent must balance exploring different options (arms) and exploiting the best-known option to maximize cumulative rewards. In many practical scenarios—such as recommendation systems, federated learning, and sensor networks—the environment is not perfectly stochastic. Instead, it may be subject to adversarial corruption, where an attacker manipulates rewards to trick the algorithm into selecting suboptimal arms.

In these "Corrupted MAB" settings, the goal is to minimize regret—the difference between the reward of the optimal arm and the reward actually received—even when an adversary has shifted rewards by a total amount $C$ (the corruption level). Historically, researchers faced a binary choice: utilize fast, "combinatorial" algorithms that suffer from loose regret bounds (often $O(\log^2 T)$), or employ complex optimization methods like Online Mirror Descent (OMD) that achieve optimal $\log T$ bounds but are computationally prohibitive for large-scale applications.

The SAMBA Algorithm

This research focuses on SAMBA (Stochastic Approximation Markov Bandit Algorithm), a policy gradient method. Unlike traditional algorithms that might rely on complex epoch-based structures to detect corruption, SAMBA maintains a probability distribution over the available arms and updates these probabilities continuously based on observed rewards.

The Markovian Advantage

The defining characteristic of SAMBA is its Markovian property. The distribution of the arm to be chosen at time $t+1$ depends solely on the distribution at time $t$ and the most recent observation. This property is crucial for resilience against corruption. Because the algorithm does not maintain a long-term memory of past rewards in a way that can be easily exploited, the influence of a specific corruption event naturally decays over time. The researchers discovered that the "blast radius" of corruption in SAMBA is linear: the time it takes for the algorithm to recover from an attack is proportional to the cost the adversary spent on that attack ($O(c(t)/\Delta)$).

Theoretical Contributions

The primary contribution of this work is the rigorous mathematical proof that SAMBA achieves the optimal regret bound of:

$$R(T) = O\left(\frac{K}{\Delta} \log T + \frac{C}{\Delta}\right)$$

This result is significant for several reasons:

  1. Elimination of the Log Factor: Previous combinatorial algorithms like BARBAR required $O(\log T)$ samples per phase to detect corruption, leading to an overall $O(\log^2 T)$ regret. SAMBA’s continuous update mechanism removes this overhead.
  2. Matching the Lower Bound: This bound matches the theoretical lower limit for corrupted bandits, proving that SAMBA is as efficient as any non-combinatorial optimization method.
  3. Linear Dependence on Corruption: The regret scales linearly with the total corruption $C$, ensuring that the algorithm's performance degrades gracefully as the environment becomes more adversarial.

Empirical Evaluation

To validate the theoretical findings, the authors conducted extensive synthetic simulations. SAMBA was tested against several baselines, including Fast-Slow AAE and BARBAR, across four distinct corruption strategies:

  • Consecutive Corruption: Attacks concentrated at the beginning of the time horizon.
  • Even-Step Corruption: Attacks occurring at regular intervals.
  • Concentrated Corruption: A massive burst of attacks in the middle of the timeline.
  • Random Corruption: Attacks distributed randomly throughout the initial 10% of the horizon.

The simulations involved $K$ ranging from 6 to 30 arms and a time horizon $T$ of 100,000 steps.

Key Results

  • Computational Efficiency: SAMBA proved to be over 500x faster than non-combinatorial methods like OMD. While OMD requires solving a convex optimization problem at every step, SAMBA uses simple gradient updates.
  • Regret Performance: Across all corruption schemes, SAMBA consistently achieved lower cumulative regret than traditional combinatorial baselines, particularly in scenarios with low to moderate corruption levels.

Conclusion and Future Work

This work establishes SAMBA as a powerful tool for robust online learning, providing a rare combination of computational simplicity and theoretical optimality. By leveraging the Markovian property of policy gradients, the algorithm effectively "forgets" adversarial manipulations without the need for complex detection subroutines.

Future research directions include extending this analysis to more complex bandit structures, such as Linear Bandits or Combinatorial Bandits, where the action space is significantly larger. Additionally, applying SAMBA to real-world datasets involving click-fraud or manipulated user feedback would provide further insights into its practical robustness.

Summary updated

BibTeX
@inproceedings{liu2025efficient,
  author = {Jiayuan Liu and Siwei Wang and Zhixuan Fang},
  title = {{Efficient and Optimal Policy Gradient Algorithm for Corrupted Multi-armed Bandits}},
  booktitle = {AAMAS},
  year = {2025},
}
Figure