Online Bandit Learning against an Adaptive Adversary: from Regret to Policy Regret

Raman Arora, Ofer Dekel, Ambuj Tewari

This paper, presented at ICML 2012, tackles a fundamental flaw in how we measure the performance of online learning algorithms when they face an opponent that reacts to their moves. By introducing the concept of Policy Regret, the authors provide a more honest way to evaluate algorithms in dynamic, adversarial environments.

TL;DR

Standard "regret" is a misleading metric against adaptive adversaries because it ignores how an opponent might have changed their strategy if you had played differently. This paper proposes Policy Regret to fix this, proves that sublinear regret is impossible against adversaries with infinite memory, and introduces a "mini-batching" technique to achieve sublinear policy regret against memory-bounded adversaries.

What Problem Does This Paper Address?

In the classic "multi-armed bandit" problem, a player chooses actions and receives rewards (or losses) from an adversary. Traditionally, we measure success using external regret: the difference between the player's total loss and the loss of the best fixed action in hindsight.

However, there is a catch: standard regret assumes the adversary’s sequence of losses is fixed or, at least, that the adversary doesn't change its future behavior based on the player's current choice. In the real world (like high-frequency trading or competitive gaming), adversaries are adaptive.

The authors point out a "regret paradox": an algorithm can achieve "zero regret" by simply playing actions that trick the adversary into being mean to all other possible actions. In this case, the algorithm isn't actually learning to perform well; it's just making its competitors look worse. To solve this, the authors define Policy Regret, which compares the player's loss to the loss they would have suffered had they played a different fixed policy from the very beginning, accounting for the adversary's reaction.

Methods

The paper focuses on the Online Bandit Setting and employs two main strategies:

  1. Impossibility Proof: They first prove a negative result. If an adaptive adversary has unbounded memory (it remembers every move you've ever made), no algorithm can guarantee sublinear policy regret. The adversary can always "trap" the player based on their very first move.
  2. The Mini-Batching Reduction ($A_\tau$): To find a way forward, they assume the adversary has bounded memory ($m$). This means the adversary's current loss function only depends on the player's last $m$ actions.
  3. They propose a general wrapper: take any standard bandit algorithm (like EXP3) and force it to play in "mini-batches" of size $\tau$.
  4. The player picks one action and repeats it for $\tau$ consecutive rounds.
  5. At the end of the batch, the algorithm receives the average loss and updates its internal state.
  6. The Logic: By staying still for $\tau$ rounds (where $\tau > m$), the player "outlasts" the adversary's memory. For most of the batch, the adversary is reacting to a constant action, effectively turning the adaptive adversary into a temporarily oblivious one.

Datasets

As a theoretical machine learning paper, no empirical datasets were used. The results are derived through mathematical proofs and algorithmic analysis.

Key Insights and Ideas

  • The Counterfactual Flaw: Standard regret compares your actual performance to a "ghost" version of the world where the adversary is psychic about your past but ignores your hypothetical changes. Policy regret creates a consistent counterfactual world.
  • Memory as a Resource: The difficulty of the problem scales directly with the adversary's memory $m$. The "cost" of the adversary's memory appears as a multiplicative factor $(m+1)$ in the final regret bounds.
  • Slowing Down to Learn: Counter-intuitively, the way to beat a fast-reacting adversary is to move slowly. By repeating actions in batches, the player forces the environment to stabilize, making it possible to estimate the true value of a policy.

Key Results

The authors show that their mini-batching technique provides sublinear policy regret for several major classes of bandit problems against $m$-memory-bounded adversaries:

  • $k$-armed Bandits: Achieves policy regret of $O(T^{2/3})$.
  • Bandit Convex Optimization: Achieves $O(T^{4/5})$.
  • Bandit Linear Optimization: Achieves $O(T^{3/4})$. If the memory $m$ is known to the player, this can be improved to $O(T^{2/3})$.
  • Bandit Submodular Minimization: Achieves $O(T^{3/4})$.

These results are significant because they provide the first general framework for converting standard bandit algorithms into ones robust against adaptive opponents.

Limitations and Future Work

  • Tightness of Bounds: The authors acknowledge they don't yet have "lower bounds" for policy regret. It is currently unknown if the $T^{2/3}$ or $T^{3/4}$ rates are the best possible, or if more sophisticated algorithms could achieve better rates (like the $T^{1/2}$ often seen in oblivious settings).
  • Necessity of Batching: It remains an open question whether the mini-batching wrapper is strictly necessary. It’s possible that some existing algorithms already minimize policy regret implicitly, but proving it is difficult.
  • Memory Knowledge: While the general reduction works without knowing $m$, the bounds are much better if $m$ is known. Finding ways to adaptively estimate the adversary's memory size is a promising future direction.

Summary updated

Abstract

Online learning algorithms are designed to learn even when their input is generated by an adversary. The widely-accepted formal definition of an online algorithm's ability to learn is the game-theoretic notion of regret. We argue that the standard definition of regret becomes inadequate if the adversary is allowed to adapt to the online algorithm's actions. We define the alternative notion of policy regret, which attempts to provide a more meaningful way to measure an online algorithm's performance against adaptive adversaries. Focusing on the online bandit setting, we show that no bandit algorithm can guarantee a sublinear policy regret against an adaptive adversary with unbounded memory. On the other hand, if the adversary's memory is bounded, we present a general technique that converts any bandit algorithm with a sublinear regret bound into an algorithm with a sublinear policy regret bound. We extend this result to other variants of regret, such as switching regret, internal regret, and swap regret.
BibTeX
@inproceedings{arora2012online,
  author = {Raman Arora and Ofer Dekel and Ambuj Tewari},
  title = {{Online Bandit Learning against an Adaptive Adversary: from Regret to Policy Regret}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
}
Figure