After total pulls, a three-armed bandit with rewards in has pull counts and sample means . Which arm does UCB1 pull next, using the index ? What would a greedy agent do?
Reinforcement learning, Multi-armed bandits
Level L2 Elementary. Length Short. Nature Mat Mathematical.
What's being asked
Whether you can compute upper confidence bounds and see that the bonus favours rarely tried arms.
Key idea
UCB1 pulls the arm with the largest "optimistic" index . The bonus is large for arms that have been tried few times, so uncertain arms get another chance.
Steps
- Compute .
- Arm 1: bonus , index .
- Arm 2: bonus , index .
- Arm 3: bonus , index .
- Decision and long-run behaviour: UCB1 pulls arm 3, which has the lowest mean but the fewest pulls, whereas a greedy agent pulls arm 1 (). Because grows slowly, every arm is revisited occasionally while suboptimal arms are pulled only about times.
Common mistakes
- Using in place of in the numerator. The total count goes on top, the arm's own count goes below.
- Forgetting that rewards must be in for the constant to be correct. Other ranges need rescaling.
- Thinking UCB picks the arm with the largest bonus alone. It adds the bonus to the estimated mean.
How long your answer should be
5–6 lines.
Read this
Previous in Reinforcement learning: A corridor has three non-terminal cells 1, 2, 3 in a row, with a terminal cell L to the left of cell 1 and a terminal cell R to the right of cell 3. The policy moves left or right with probability each. Moving into R gives reward , and every other move gives reward . With and , compute (synchronous sweeps) for cells 1, 2, 3. What do the values converge to?
Next in Reinforcement learning: A deterministic world has a terminal goal G and two states A and B, each with one action, "right". Right from B gives reward and ends at G. Right from A gives reward and moves to B. Start with everywhere, , . The agent experiences and then , each with one Q-learning update, and stores them in a model. Then Dyna-Q does two planning updates, replaying first and second. What are and after each stage, and what did planning achieve?