Research Article

A Comparison of ε-Greedy and Thompson Sampling in Multi-Armed Bandit Problems

Ruihan Yu*
Ocean University of China

* Corresponding author: [email protected]

Abstract

The multi-armed bandit problem is a fundamental framework for sequential decision-making under uncertainty, widely applied in online advertising, recommendation systems, and clinical trials. Balancing exploration and exploitation is crucial for maximizing cumulative rewards. This paper compares two popular algorithms: the ε-greedy strategy and Thompson Sampling. Through a literature review and theoretical analysis, this paper examines their exploration mechanisms, learning efficiency, and practical applicability. Although the ε-greedy approach is straightforward and computationally effective, its reliance on fixed random exploration may result in less than ideal performance. In contrast, Thompson Sampling uses Bayesian inference to adaptively explore based on posterior uncertainty, achieving a more effective trade-off. Empirical results from Bernoulli bandit simulations show that Thompson Sampling accumulates significantly lower cumulative regret over time. A side-by-side comparison table highlights key differences in adaptivity, computational cost, and asymptotic regret. This study also discusses recent advances and provides guidance for algorithm selection in real-world applications.

Keywords: Multi-Armed Bandit; Thompson Sampling; ε-Greedy; Exploration-Exploitation; Bayesian Learning
Published: May 6, 2026
DOI: 10.54254/2755-2721/2026.CH33252
Volume: ACE Vol.232
pp. 22-28
Download PDF

References

  1. Sutton, R. S., & Barto, A. G. (2018). Reinforcement Learning: An Introduction (2nd ed.). MIT Press, Cambridge, MA.
  2. Thompson, W. R. (1933). On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25(3–4), 285–294.
  3. Chapelle, O., & Li, L. (2011). An empirical evaluation of Thompson sampling. In Advances in Neural Information Processing Systems (NIPS 2011) (pp. 2249–2257).
  4. Letard, A., Gutowski, N., Camp, O., & Amghar, T. (2024). Bandit algorithms: A comprehensive review and their dynamic selection from a portfolio for multicriteria top-k recommendation. Expert Systems with Applications, 246, Article 123207.
  5. Robbins, H. (1952). Some aspects of the sequential design of experiments. Bulletin of the American Mathematical Society, 58(5), 527–535.
  6. Russo, D. J., Van Roy, B., Kazerouni, A., Osband, I., & Wen, Z. (2018). A tutorial on Thompson sampling. Foundations and Trends in Machine Learning, 11(1), 1–96.
  7. Auer, P., Cesa-Bianchi, N., & Fischer, P. (2002). Finite-time analysis of the multiarmed bandit problem. Machine Learning, 47(2), 235–256.
  8. Le, D. H. (2023). Exploration-exploitation trade-off approaches in multi-armed bandit. Master's thesis, Department of Information Technology, Uppsala University.
  9. Liu, K., & Maghsudi, S. (2024). Budgeted recommendation with delayed feedback. arXiv preprint, arXiv: 2405.11417.
  10. Jin, T., Yang, X., Xiao, X., & Xu, P. (2023). Thompson Sampling with less exploration is fast and optimal. In Proceedings of the 40th International Conference on Machine Learning (ICML 2023) (pp. 15200–15217).