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

  1. Set up a two-armed example. Arm A pays 1 with probability 0.3. Arm B pays 1 with probability 0.7. The agent does not know these numbers.
  2. Suppose the first pull of B pays 0 and the first pull of A pays 1. The greedy agent now estimates Q^(A)=1 and Q^(B)=0.
  3. The greedy agent now pulls A forever. Q^(B) is never updated, so the wrong belief is never corrected, even though B is better.
  4. 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.
  5. Name the standard fixes: ε-greedy (explore at random with probability ε), optimistic initial values, upper confidence bound (UCB) and Thompson sampling.

Common mistakes

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 γ<1 in reinforcement learning?