Notes

Intrinsic Motivation

When an environment gives useful rewards only rarely, an agent can wander for a very long time without learning anything. Intrinsic motivation gives it an extra reason to investigate: not because exploration immediately achieves the task, but because discovering, learning, or reducing uncertainty is rewarding in its own right.

How it works
In reinforcement learning, the agent receives the environment’s extrinsic reward, such as points for reaching a goal. Intrinsic-motivation methods add an internally computed exploration bonus:

  • Total reward = task reward + a weighted intrinsic reward.
  • The intrinsic reward is high for experiences the agent considers novel, surprising, or hard to predict.
  • As the agent learns those experiences, their bonus falls, encouraging it to move on.

Common signals for curiosity
A simple approach rewards visits to rarely seen states, similar to giving a bonus for entering an unexplored room. In large visual or continuous environments, exact visit counts are impractical. Methods such as Random Network Distillation (RND) reward states whose features a learned predictor cannot yet match; prediction error acts as novelty. The Intrinsic Curiosity Module (ICM) instead rewards transitions whose consequences are difficult for the agent’s dynamics model to predict. These techniques help agents discover useful actions before task reward reveals which ones matter.

Why design details matter
Intrinsic motivation addresses the exploration side of the interaction loop: the agent’s choices determine whether it ever collects informative data. It made sparse-reward benchmarks—such as navigating difficult Gymnasium games—far more learnable than plain greedy reward-seeking. But the bonus must be controlled. A camera pointed at random visual noise, for example, remains unpredictable forever: an agent driven purely by prediction error can become fascinated with this “noisy TV” instead of solving the task. Algorithms such as PPO combine intrinsic and task rewards carefully, reducing or balancing the bonus so curiosity supports the real objective rather than replacing it.

Intrinsic motivation is an internally generated reward signal that encourages an RL agent to seek novelty, uncertainty reduction, learning progress, or controllable states, independent of the environment’s external reward. It drives exploration when task rewards are sparse or delayed, helping the agent collect informative experience and discover behaviours that external rewards alone would not reveal.

Think of a child exploring a new playground. Nobody has to promise a prize for trying the slide, opening a little gate, or seeing what is behind a wall. Curiosity itself encourages exploration.

Intrinsic motivation gives an AI learner a similar nudge. Sometimes the usual reward is rare: a game may offer points only after a long, difficult task. To avoid doing nothing useful, the learner also treats discovering unfamiliar places, surprising outcomes, or new skills as rewarding.

This helps it keep exploring instead of repeating the few actions it already knows. The extra “curiosity” reward is not the final goal; it is a way to help the learner find better paths to that goal.