What is the exploration–exploitation dilemma, and why can a purely greedy agent get stuck choosing a poor action?
Reinforcement learning, Exploration
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you understand that the agent learns only from the actions it tries, so it must sometimes try actions that look worse.
Key idea
Exploitation picks the action with the best current estimate. Exploration tries other actions to improve the estimates. A greedy agent never corrects an early under-estimate of a good action, because it never tries that action again.
Steps
- Set up a two-armed example. Arm A pays with probability . Arm B pays with probability . The agent does not know these numbers.
- Suppose the first pull of B pays and the first pull of A pays . The greedy agent now estimates and .
- The greedy agent now pulls A forever. is never updated, so the wrong belief is never corrected, even though B is better.
- State the dilemma: exploiting gives reward now, exploring gives information that may raise future reward, and every pull spent on one is not spent on the other.
- Name the standard fixes: -greedy (explore at random with probability ), optimistic initial values, upper confidence bound (UCB) and Thompson sampling.
Common mistakes
- Saying exploration is only needed at the start. If the environment can change, or estimates are noisy, some exploration must continue.
- Thinking the dilemma is about the learning rate. It is about which data the agent collects.
- Claiming exploration always costs reward. It costs reward in the short term and usually pays back in the long term.
How long your answer should be
4–5 sentences with the two-arm example.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: In reinforcement learning, what are the agent, environment, state, action, reward and policy, and how do they interact in one step of the loop?
Next in Reinforcement learning: Why do we use a discount factor in reinforcement learning?