Reinforcement learning
An agent learns to act by trial and error to maximise cumulative reward.
Edited by Alex C, EduAlx · Sources cited below
Explanation
Formalised as Markov decision processes. Q-learning (Watkins, 1989) learns action values; policy gradient methods learn policies directly. Deep RL (DQN playing Atari, 2015; AlphaGo, 2016) combined it with neural networks. Barto and Sutton received the 2024 Turing Award. RL from human feedback aligns language models.
Example
Code
# Q-learning update Q[s][a] += alpha * (r + gamma * max(Q[s2]) - Q[s][a])
How it works, step by step
- Observe state s
- Choose action a (explore or exploit)
- Receive reward r and next state s′
- Update value estimates
- Repeat over many episodes
Open the interactive page with diagrams →
People behind it
- Richard Sutton (b. 1957), Artificial intelligence, USA / Canada: Pioneer of reinforcement learning (temporal-difference learning). Turing Award 2024 with Andrew Barto.
- Andrew Barto
- Christopher Watkins
- Demis Hassabis (b. 1976), Artificial intelligence, UK: Co-founder of DeepMind (AlphaGo, AlphaFold). Nobel Prize in Chemistry 2024 for protein structure prediction.
References
- V. Mnih et al., Nature 2015, 518, 529–533.
- R. S. Sutton, A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
Textbooks
- Reinforcement Learning: An Introduction, Richard S. Sutton, Andrew G. Barto (MIT Press, 2nd ed. 2018; free online). The reinforcement learning textbook.
- Artificial Intelligence: A Modern Approach, Stuart Russell, Peter Norvig (Pearson, 4th ed. 2020). The standard AI text.
Related topics
Machine learningNatural language processingNeural networks and backpropagationComputer vision and convolutional neural networksTransformers and large language modelsArtificial intelligence: search and the Turing testDecision trees and ensemble methodsClustering and unsupervised learningPython programming essentialsSearch engines and PageRank