Research Article

Optimization strategy for the pull arm function in the Multi-Armed Bandit algorithm

Shaozhi Pi*
Viterbi School of Engineering, University of Southern California, Los Angeles, 90005, United States

* Corresponding author: [email protected]

Abstract

Within the domain of Multi-Armed Bandit (MAB) quandaries, the efficacy exhibited by the arm-pulling function stands as a determinant factor governing algorithmic performance. This study undertakes a systematic exploration of enhancing this function's optimization vis-à-vis the MovieLens dataset, with a specific focus on three prominent MAB algorithms: Upper Confidence Bound (UCB), Explore-Then-Commit (ETC), and Thompson Sampling (TS). The present exposition introduces an innovative methodology tailored to the Python 3.11 computational environment. Central to this approach is the pre-calculation of arm-specific reward frequencies, obviating the necessity for dataset look-up and thereby streamlining the reward selection process. Subsequently, a binomial distribution is fitted to these frequencies, ensuring rapid and accurate reward sampling. When benchmarked, the optimized version of the pull arm function showcased a remarkable reduction in execution time compared to their initial counterparts, all while maintaining algorithmic accuracy. The Thompson Sampling algorithm notably outperformed the others, exhibiting the lowest cumulative regret across diverse trial sizes. This research emphasizes the significance of refining core components in MAB algorithms and paves the way for practical enhancements in real-world applications.

Keywords: Multi-Armed Bandit; UCB; ETC; TS; reinforcement learning; optimization
Published: February 4, 2024
DOI: 10.54254/2755-2721/34/20230321
Volume: ACE Vol.34
pp. 170-178
Download PDF

References

  1. Robbins H 1952 Some aspects of the sequential design of experiments.
  2. Kuleshov V and Doina P 2014 Algorithms for multi-armed bandit problems
  3. Kawale J and Elliot C 2018 A MultiArmed Bandit Framework for Recommendations at Netflix
  4. Wang Y 2023 A Review of Multi-Armed Bandits Applications at Lyft
  5. Auer P Cesa-Bianchi N and Fischer P 2002 Finite-time analysis of the multiarmed bandit problem (Machine learning) 47 235-256.
  6. Perchet V Rigollet P Chassang S and Snowberg E 2016 Batched bandit problems
  7. Garivier A Lattimore T and Kaufmann E 2016 On explore-then-commit strategies (Advances in Neural Information Processing Systems) p 29
  8. Agrawal S and Goyal N 2012 Analysis of thompson sampling for the multi-armed bandit problem (JMLR Workshop and Conference Proceedings) pp 39-1
  9. Yu Q Wang J Jin Z et al 2022 Pose-guided matching based on deep learning for assessing quality of action on rehabilitation training Biomedical Signal Processing and Control 72: 103323
  10. Beltratti A Margarita S Terna P 1996 Neural networks for economic and financial modelling London UK: International Thomson Computer Press