Imagine you walk into a casino with a row of slot machines. Each machine has a different — and unknown — payout rate. You have a fixed number of pulls. Waste too many on bad machines and you lose money. Never try unfamiliar machines and you might miss the best one.
This is the multi-armed bandit problem, and it is far older and more serious than any casino. Every time a doctor chooses between treatments with uncertain success rates, every time a website tests which headline converts better, every time a recommendation engine picks a video to show you — the same tension arises: explore (gather information) or exploit (use what you already know is good).
Random guessing is obviously wasteful. Pure exploitation — always picking the current best estimate — gets stuck on a mediocre option forever if you were unlucky at the start. The question is: is there a provably good strategy?
The answer is yes, and the two most influential strategies are Upper Confidence Bound (UCB) and Thompson Sampling. Both achieve logarithmic regret — meaning the gap between your total reward and what the best arm would have given you grows only as log(n) with the number of pulls, which is provably optimal (Lai and Robbins, 1985).
Comments
Loading comments...