Adversarial Bandit
An adversarial bandit is a stripped-down decision problem designed for situations where rewards are not generated by a stable, friendly pattern. Each round, an agent picks one option—an “arm”—and sees only the reward or loss from that choice. The unseen options remain a mystery.
What makes it adversarialIn a standard stochastic bandit, each arm has a fixed but unknown reward distribution. In an adversarial bandit, the reward (or loss) for every arm can change arbitrarily from round to round. Think of choosing an online advertisement while competitors, user traffic, or a hostile environment shift in response. The sequence can be preselected by an oblivious adversary, or, under stricter rules, react to earlier actions.
The learning objectiveThe agent cannot identify a permanently “best” arm, because none need exist. Instead, it aims for low regret: after many rounds, its total loss should be close to that of the single best fixed arm in hindsight. Crucially, it receives bandit feedback: only the loss of the chosen action, not a full table of what every action would have produced.
- Choosing known-good actions reduces immediate loss.
- Trying alternatives gathers evidence against a changing or deceptive reward sequence.
- The comparison remains fair: the benchmark must commit to one arm, just as the learner must act without seeing the current losses.
EXP3 is the classic algorithm. It assigns probabilities to arms using exponential weights, samples an arm, and builds an importance-weighted estimate of that arm’s loss. It also preserves explicit exploration probability, so no arm becomes impossible to sample. If exploration becomes too small, these estimates become extremely noisy; if it is too large, the agent wastes reward on poor choices. This setting matters because it gives reinforcement learning a robustness lens: rewards can be nonstationary, strategic, or engineered to exploit a simplistic policy, rather than clean samples from a fixed distribution.
An adversarial bandit is a multi-armed bandit setting in which each action’s rewards can be chosen arbitrarily, potentially in response to the learner’s past behavior, rather than drawn from fixed distributions. After each choice, the learner observes only the selected action’s reward. It matters because it supports algorithms with regret guarantees against the best fixed action in hindsight under worst-case, nonstationary reward sequences.
Imagine choosing among several food stalls each day, but the prices and quality may be changed by a mischievous rival who knows what you tend to pick. Yesterday’s best stall may deliberately become today’s worst.
An adversarial bandit describes this kind of decision problem. A learner repeatedly chooses one option and sees only the result of that choice—not what would have happened with the others. Unlike a fair, predictable setting, the rewards can change in a hostile or carefully arranged way. The goal is to keep making choices that do nearly as well as the best option would have done in hindsight, even when the situation is trying to make learning difficult.