Exploration in Reinforcement Learning

An agent only learns about actions it tries. If it always exploits its current best guess, it may never discover a better option; if it explores too much, it wastes reward. Managing this trade-off is the exploration problem. In the stateless case this is a multi-armed bandit; reinforcement learning adds the harder wrinkle that actions change future states, so an agent may need a long, deliberate sequence of exploratory actions before any reward appears.

Why Sequential Exploration Is Harder

In a bandit, one pull reveals one reward. In an MDP, the informative reward can be many steps away, so the agent must explore deeply: commit to a novel region long enough to reach the states that carry signal. Naive per-step randomization struggles here because independent random actions rarely chain into a coherent novel trajectory.

Common Strategies

StrategyIdeaStrengthWeakness
-greedyact greedily, but pick a random action with prob. trivial to implementshallow, undirected exploration
Optimistic initstart value estimates high so untried actions look goodfree, drives early coveragefades once estimates settle
Upper confidence boundadd a bonus for uncertain actionsdirected toward informative partsneeds usable uncertainty estimates
Count-based bonusreward rarely visited statesscales to large state spacescounting is hard with raw observations
Curiosity / predictionreward states where a learned model errsworks from pixelscan chase noise (the “noisy TV”)
Entropy regularizationbonus for higher policy entropykeeps stochasticity, easy to addnot targeted at novelty

Optimism and Bonuses

A general recipe augments the reward with an exploration bonus:

where is large for uncertain or novel state-actions and controls exploration strength. Count-based methods set using a visitation count ; in high-dimensional observation spaces this count is replaced by a learned density or hash. Curiosity methods set to the error of a learned dynamics model, so novel transitions are intrinsically rewarding.

Entropy Regularization

Maximum-entropy RL adds a policy-entropy term to the objective:

where is entropy and is a temperature. This keeps the policy stochastic, improves robustness, and is central to soft actor-critic. It encourages breadth of behavior rather than novelty-seeking specifically.

Posterior Sampling

Instead of a per-step bonus, posterior (Thompson) sampling maintains a distribution over models or value functions, samples one, and acts greedily with respect to it for a whole episode. Sampling at the episode level induces the deep, temporally consistent exploration that per-step noise lacks.

Caveats

Exploration bonuses change the effective objective, so they should be annealed or bounded to avoid distracting the agent from real reward. Curiosity can be captured by unpredictable but uncontrollable noise. In safety-critical systems, unconstrained exploration is unacceptable; exploration must respect reward design constraints and often runs only in simulation.

Connections

References