Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: mab

Multi-Armed Bandit (MAB)

多臂老虎机 MAB
🎯Core Definition
The Multi-Armed Bandit (MAB) is a single-state, no-state-transition online decision problem: at each round pick an action ata_t among KK arms and observe a stochastic reward rtr_t (e.g., Bernoulli click rtBernoulli(μat)r_t \sim \text{Bernoulli}(\mu_{a_t})). The core metric is regret: RT=TμE[t=1Tμat]R_T = T\mu^* - \mathbb{E}[\sum_{t=1}^T \mu_{a_t}], where μ=maxaμa\mu^* = \max_a \mu_a is the best arm's mean — the expected gap between your total reward and always playing the optimal arm.
💡Use Cases
traffic allocation and cold-start in recsys/ads, an online alternative to A/B testing, AutoML hyperparameter search, clinical trials; in interviews it is the entry point for "RL with a single state" and the exploration-exploitation trade-off vs Q-Learning.
Key Problems Solved
static A/B testing wastes samples on inferior variants via fixed split ratios; MAB adaptively shifts traffic toward good arms from live feedback, achieving the optimal O(lnT)O(\ln T) regret with UCB/Thompson sampling (vs O(T)O(\sqrt{T}) in general), delivering significantly higher cumulative reward than uniform/random allocation under the same budget.
🎯5 High-Frequency Exam Points
1
Write the regret definition and explain each term: why use the best arm's mean μ\mu^* instead of realized rewards?
2
Numerical: 3 arms with μ=(0.8,0.5,0.3)\mu=(0.8, 0.5, 0.3); over 100 rounds arm1 is chosen 60 times, arms 2/3 20 each — compute the regret?
3
How does MAB differ from full RL (MDP)? How does it degenerate from an MDP?
4
Core ideas and regret orders of ε-greedy, UCB, and Thompson sampling?
5
Lower bound: why is any algorithm's worst-case regret at least Ω(KT)\Omega(\sqrt{KT})?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Multi-Armed Bandit (MAB)"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardMulti-Agent RL (CTDE)Next CardUCB1 (Upper Confidence Bound)

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticBehavioral CloningContextual BanditCoT & Reasoning RL