Greedy Algorithm Almost Dominates in Smoothed Contextual Bandits

Manish Raghavan, Aleksandrs Slivkins, Jennifer Wortman Vaughan, Zhiwei Steven Wu

TL;DR

This paper shows that a simple "greedy" algorithm, which always picks the action that currently seems best, can achieve near-optimal performance in contextual bandit problems, even without explicit exploration. This is achieved by leveraging "smoothed analysis" – a technique that shows algorithms perform well on average when problem instances are slightly perturbed, making them less brittle.

What Problem Does This Paper Address?

Online learning algorithms, like those used for personalized recommendations or ad placement, face a fundamental dilemma: exploration vs. exploitation. To learn effectively and improve future decisions, algorithms often need to "explore" by trying actions that might not seem optimal right now. However, explicit exploration can degrade the user experience, add complexity, and even raise ethical concerns. The "greedy" algorithm, which always exploits the current best option, is simpler and avoids these downsides. But it's known to perform poorly in many scenarios.

This paper asks: when can we get away with just being greedy? They investigate this in the context of linear contextual bandits, a popular model where an agent chooses an action based on observed features (context) to maximize a reward. The key challenge is to understand if, under certain conditions, the inherent structure of the problem makes explicit exploration unnecessary, allowing the greedy approach to be nearly as good as any sophisticated exploration strategy.

Methods

The core of the paper's contribution lies in its theoretical analysis, leveraging the concept of smoothed analysis. Instead of considering worst-case scenarios, they analyze how algorithms perform when problem instances are slightly perturbed. Specifically, they introduce a "perturbed context generation" model where context vectors are slightly jiggled.

Their key technical insight is a simulation argument. They show that the data collected by a "batched" greedy algorithm (which processes data in chunks) is rich enough to simulate the behavior of any other algorithm over a shorter time horizon. This allows them to argue that the greedy algorithm, by having access to this simulated information, can achieve regret comparable to any other algorithm.

They analyze two versions of the batched greedy algorithm:

  • Batch-BayesGreedy: Uses a Bayesian prior and posterior to make decisions.
  • BatchFreqGreedy: Uses a frequentist approach (least squares) to estimate parameters.

They also introduce a novel perturbation model that allows for correlations between perturbations across actions, generalizing previous work.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Greedy is (almost) good enough: The paper demonstrates that under smoothed analysis conditions (i.e., with slightly perturbed data), a simple greedy strategy can achieve near-optimal regret. This is a significant finding because it suggests that in many practical scenarios, the complexity of explicit exploration might be avoidable.
  • Smoothed analysis is powerful for bandits: The work highlights the utility of smoothed analysis in understanding the performance of algorithms in bandit settings. It shows that "brittle" worst-case instances are rare and that slightly perturbed instances are more representative of typical performance.
  • Simulation as a proof technique: The core technical contribution is the simulation argument, showing that data collected by a batched greedy algorithm can effectively "mimic" the information available to any other algorithm. This is a powerful tool for proving performance bounds.
  • Data diversity is key: The "smoothed" nature of the data, achieved through perturbations, is crucial. This diversity ensures that the greedy algorithm gathers enough information to make informed decisions, even without actively seeking out novel information.

Key Results

  • The paper proves that under their smoothed analysis framework, both Batch-BayesGreedy and BatchFreqGreedy achieve Bayesian regret that almost matches the best possible regret of any algorithm on the same problem instance, up to polylogarithmic factors.
  • They establish a worst-case Bayesian regret bound for the greedy algorithm of Õ(T¹/³), provided there are only polylog(T) feasible actions. This is a significant improvement over previous bounds.
  • They also provide a lower bound showing that even with fully-action-correlated perturbations, any algorithm incurs Ω(√T) regret in the worst case.
  • For the LinUCB algorithm under action-independent perturbations, they derive a regret bound of Õ(K²/³ T¹/³), where K is the number of actions.

Limitations and Future Work

  • The analysis relies on specific assumptions about the perturbation model (e.g., Gaussian noise, bounded perturbation size). Extending the results to more general noise distributions or perturbation models could be a future direction.
  • The paper focuses on linear contextual bandits. Applying similar smoothed analysis techniques to more complex bandit settings (e.g., non-linear bandits, bandits with delayed feedback) would be valuable.
  • While the paper shows the greedy algorithm is almost optimal, there's still a gap (polylogarithmic factors). Further work could aim to close this gap or understand the precise conditions under which the greedy algorithm truly dominates.
  • The paper mentions that the Õ(T¹/³) regret rate for LinUCB is a "mathematical curiosity" and it's unclear if it's optimal. Investigating this further is a potential avenue.

Summary updated

BibTeX
@article{raghavan2023greedy,
  author = {Manish Raghavan and Aleksandrs Slivkins and Jennifer Wortman Vaughan and Zhiwei Steven Wu},
  title = {{Greedy Algorithm Almost Dominates in Smoothed Contextual Bandits}},
  journal = {SIAM Journal on Computing},
  year = {2023},
  doi = {10.1137/19m1247115},
}
Figure