# Q-learning

Date: 1989 · Era: W2 · The second winter · Category: theory · Significance: 4/5
People: Chris Watkins, Peter Dayan
Organisations: University of Cambridge

Canonical: https://shapeofintelligence.com/timeline/1989-q-learning/ · Dataset and text CC BY 4.0

> Chris Watkins's thesis gives an algorithm that learns the value of every action in every state from experience alone, with a proof that it converges to the best policy.

## What had to happen

4 events back to 1943, oldest first. Direct influences are marked *direct*.

- [1948 · A mathematical theory of communication](https://shapeofintelligence.com/md/timeline/1948-shannon-information-theory/)
- [1950 · Programming a computer for playing chess](https://shapeofintelligence.com/md/timeline/1950-shannon-chess/)
- [1959 · Samuel's checkers program coins 'machine learning'](https://shapeofintelligence.com/md/timeline/1959-samuel-machine-learning/)
- [1988 · Temporal-difference learning](https://shapeofintelligence.com/md/timeline/1988-temporal-difference-learning/) *direct*

Temporal-difference learning told you how good a situation was. Chris Watkins's 1989 Cambridge thesis told you what to do about it. Q-learning keeps a table of values, one for each state and each action available in it, and updates each entry towards the reward received plus the best value available from the next state. The agent can behave however it likes while learning, exploring, making mistakes, and the table still converges to the values of the optimal policy. Watkins and Peter Dayan published the convergence proof in 1992.

The algorithm is simple enough to write on an index card and general enough to apply to anything that can be described as states, actions and rewards. Through the 1990s it was used on small problems, elevators, network routing, games with a few thousand states, because the table grew with the world.

Replacing the table with a neural network was the obvious extension and the unstable one, and it took until 2013 for DeepMind to make it work. Their deep Q-network learned to play Atari games from pixels using Watkins's update rule with a convolutional network as the table, and the paper that described it was the founding document of deep reinforcement learning.

## What it led to

45 events downstream, through 2026.

Built on it directly:

- [2010 · DeepMind is founded](https://shapeofintelligence.com/md/timeline/2010-deepmind-founded/)
- [2013 · Deep Q-networks play Atari](https://shapeofintelligence.com/md/timeline/2013-dqn/)

And, through them, by era:

- IV · Deep learning: 3 events
- V · Transformers: 7 events
- VI · Everyone: 19 events
- VII · Agents: 14 events

## Sources

- [Learning from Delayed Rewards (Watkins, PhD thesis, University of Cambridge, 1989)](http://www.cs.rhul.ac.uk/~chrisw/new_thesis.pdf) — paper
- [Q-learning (Watkins and Dayan, Machine Learning, 1992)](https://doi.org/10.1007/BF00992698) — paper

---

The Shape of Intelligence by Jamie McKaye (https://jamiemckaye.com) · Markdown mirror of https://shapeofintelligence.com/timeline/1989-q-learning/

Before: [1989 · ALVINN drives a van with a neural network](https://shapeofintelligence.com/md/timeline/1989-alvinn/) · After: [1989 · The universal approximation theorem](https://shapeofintelligence.com/md/timeline/1989-universal-approximation/)
