Abstract
Standard multi-armed bandit (MAB) algorithms are highly vulnerable to adversarial attacks that inject arbitrarily large, unbounded fake rewards. This paper introduces two robust algorithms, med-E-UCB and med-ε-greedy, which utilize the sample median and strategic exploration to maintain optimal logarithmic regret even when an attacker corrupts rewards with a constant probability. We provide theoretical guarantees and empirical validation on both synthetic data and a real-world cognitive radio testbed, showing that our methods effectively neutralize severe adversarial interference where existing robust algorithms fail.
Introduction
In the stochastic multi-armed bandit (MAB) framework, an agent seeks to maximize cumulative rewards by balancing exploration of unknown arms and exploitation of the best-performing arm. Traditional algorithms like UCB and $\epsilon$-greedy rely on the sample mean, a statistic notoriously sensitive to outliers. While prior work has addressed bounded or infrequent corruptions, this paper focuses on a more challenging threat: probabilistic unbounded adversarial attacks. In this model, an adversary can inject arbitrarily large fake rewards (e.g., $-\infty$) with a fixed probability $\rho$. Under such conditions, a single massive attack can permanently bias the sample mean, leading standard and even many "robust" algorithms to suffer linear regret by ignoring the optimal arm indefinitely.
Proposed Methodology
To counter unbounded attacks, we propose replacing the fragile sample mean with the sample median. However, simply swapping the estimator is insufficient because standard exploration policies may not gather enough clean samples for the median to recover from early attacks.
1. med-E-UCB (Median-based Exploration-aided UCB)
Standard UCB is "optimistic" and may stop pulling an arm if its initial rewards are heavily attacked. To prevent this, med-E-UCB incorporates a diminishing periodic exploration phase. By forcing the algorithm to periodically sample all arms, we ensure the collection of enough data for the sample median to eventually concentrate around the true mean, mathematically filtering out probabilistic outliers.
2. med-ε-greedy
The classic $\epsilon$-greedy framework inherently performs random exploration. We demonstrate that this built-in exploration is sufficient to guarantee the concentration of the sample median. Thus, med-ε-greedy simply replaces the mean with the median within the standard $\epsilon$-greedy loop, requiring no additional exploration schedules.
Experimental Evaluation
We evaluated the proposed algorithms against several baselines, including standard UCB, $\epsilon$-greedy, and existing robust methods like EXP3, Cantoni UCB, and RUCB-MAB.
Synthetic Simulations
We simulated a 10-armed bandit with Gaussian rewards. An adversary attacked with probability $\rho$, injecting massive noise values drawn from $(0, 1800)$. As shown in the results, our median-based methods were the only ones to consistently identify the optimal arm under high attack probabilities.
Cognitive Radio Testbed
Using Software Defined Radios (USRP B200), we modeled frequency channel selection under jamming. The "arms" were 5 channels with varying SINR, and the "adversary" was a fixed-power jammer causing a 40dB drop in SINR. Our algorithms successfully maintained communication quality by identifying the best channels despite the jammer.
Key Results and Discussion
The primary theoretical contribution is the proof that both med-E-UCB and med-ε-greedy achieve $\mathcal{O}(\log T)$ pseudo-regret, matching the optimal scaling of attack-free environments. Empirically, the proposed methods demonstrate a clear advantage. While baseline algorithms suffer linear regret—meaning they fail to learn—our algorithms achieve logarithmic regret, indicating successful convergence to the optimal policy.
Conclusion
This work demonstrates that robust statistics like the sample median, when paired with strategic exploration, can effectively defend against catastrophic, unbounded adversarial attacks in bandit problems. Future work will explore extending these median-based exploration techniques to more complex reinforcement learning environments and multi-agent scenarios.
Summary updated