Robustness of UCB1 and Thompson Sampling under Varying Arm Counts, Nonstationary Rewards, and Corrupted Feedback
Abstract
Upper Confidence Bound 1 (UCB1) and Thompson Sampling (TS) are two canonical algorithms for the multi-armed bandit problem. However, most empirical comparisons of their relative performance are conducted under idealized, stationary, and carefully controlled environments, leaving their robustness under real-world perturbations underexplored. This paper systematically evaluates the relative robustness of the two algorithms across four perturbation dimensions: increasing arm count, abrupt reward distribution shifts, misspecified exploration hyperparameters or priors, and unreliable observed feedback. We conduct controlled Bernoulli simulation experiments to test sensitivity to arm count, non-stationarity, and hyperparameter/prior misspecification, and complement synthetic tests with a genre-level bandit environment calibrated on the MovieLens 100K dataset. With the canonical UCB1 exploration coefficient c = 2 , TS yields lower mean final cumulative regret across all tested arm counts and in the clean MovieLens environment (160.7 vs. 335.7 for UCB1). In contrast, UCB1 records slightly lower mean final dynamic regret following a single abrupt reversal of reward rankings (306.6 vs. 336.6). This performance reversal is considered instance-specific, as neither stationary baseline incorporates a forgetting mechanism for pre-change observations. Under symmetric feedback corruption, TS maintains lower mean final regret across all tested flip probabilities, but the performance gap between UCB1 and TS narrows monotonically from 174.9 at zero corruption to 37.8 at a flip probability of 0.4. Since symmetric flipping retains the Bernoulli nature of observations while compressing gaps between arm means, this narrowing is consistent with reduced signal informativeness rather than a breakdown of the Beta–Bernoulli observation model. Across the tested stationary environments, TS consistently delivers superior mean-regret performance, while non-stationary environments and unreliable feedback call for specialized extensions with drift adaptation or noise robustness.
References
- Lattimore, T., & Szepesvári, C. (2020).Bandit algorithms. Cambridge University Press. doi: 10.1017/9781108571401.
- Auer, P., Cesa-Bianchi, N., & Fischer, P. (2002). Finite-time analysis of the multiarmed bandit problem.Machine Learning, 47(2–3), 235–256. doi: 10.1023/A:1013689704352.
- 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. doi: 10.1093/biomet/25.3-4.285.
- Chapelle, O., & Li, L. (2011). An empirical evaluation of Thompson sampling. InAdvances in Neural Information Processing Systems 24.
- Agrawal, S., & Goyal, N. (2012). Analysis of Thompson sampling for the multi-armed bandit problem. InProceedings of the 25th Annual Conference on Learning Theory, PMLR, 23, 39.1–39.26.
- 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. https://doi.org/10.1561/2200000070
- Zhong, Z., Cheung, W. C., & Tan, V. Y. F. (2021). Thompson sampling algorithms for cascading bandits.Journal of Machine Learning Research, 22(218), 1–66.
- Kveton, B., Konobeev, M., Zaheer, M., Hsu, C.-W., Mladenov, M., Boutilier, C., & Szepesvári, C. (2021). Meta-Thompson sampling. InProceedings of the 38th International Conference on Machine Learning, PMLR, 139, 5884–5893.
- Besbes, O., Gur, Y., & Zeevi, A. (2014). Stochastic multi-armed-bandit problem with non-stationary rewards. InAdvances in Neural Information Processing Systems 27.
- Kim, B., & Tewari, A. (2020). Randomized exploration for non-stationary stochastic linear bandits. InProceedings of the 36th Conference on Uncertainty in Artificial Intelligence, PMLR, 124, 71–80.
- Lykouris, T., Mirrokni, V., & Paes Leme, R. (2018). Stochastic bandits robust to adversarial corruptions. InProceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing(pp. 114–122).
- Gupta, A., Koren, T., & Talwar, K. (2019). Better algorithms for stochastic bandits with adversarial corruptions. InProceedings of the Thirty-Second Conference on Learning Theory, PMLR, 99(pp. 1562–1578).
- Harper, F. M., & Konstan, J. A. (2015). The MovieLens datasets: History and context.ACM Transactions on Interactive Intelligent Systems, 5(4), Art. 19, 19:1–19:19. https://doi.org/10.1145/2827872