The History of Reinforcement Learning

Matt George
Matt George

Fractional CTO · Founder of Injuria.ai

The History of Reinforcement Learning

Reinforcement learning (RL) is the computational study of how an agent can learn to make decisions to achieve a goal. Unlike other forms of machine learning, it does not learn from labeled data sets. Instead, an RL agent learns from the consequences of its actions, through a process of trial and error guided by a scalar reward signal. The objective is not to find a single correct action, but to learn a policy, a mapping from situations to actions, that maximizes a cumulative reward over time. This simple-sounding paradigm has proven to be extraordinarily powerful, enabling computers to achieve superhuman performance in complex games and to solve challenging real-world problems in robotics and optimization.

The history of reinforcement learning is not a single, linear story. It is the story of three distinct research threads, often pursued in isolation, that only began to converge in the 1980s. The first thread is trial-and-error learning, rooted in the psychology of animal behavior. The second is the problem of optimal control, which emerged from control theory and applied mathematics and relied on a complete model of the environment. The third, which provided the crucial link between the other two, is temporal-difference learning, a novel method for learning from delayed rewards. The synthesis of these ideas, and their later combination with the representational power of deep neural networks, has led to the breakthroughs that define modern artificial intelligence.

Foundational Concepts (1911 to 1959)

The conceptual underpinnings of reinforcement learning long predate computers. The core idea of learning through trial and error was first formalized in psychology. In 1911, Edward Thorndike published his work on animal learning, proposing the Law of Effect[1]. This principle states that responses that produce a satisfying effect in a particular situation become more likely to occur again in that situation, while responses that produce a discomforting effect become less likely. This is a clear, non-computational statement of the reinforcement principle: rewarding consequences strengthen the behavior that produced them.

As computer science emerged in the mid-20th century, pioneers of artificial intelligence independently arrived at similar ideas. In his 1948 report "Intelligent Machinery," Alan Turing proposed a "pleasure-pain system" for a learning machine, where actions could be modified based on whether they led to desired or undesired outcomes. In his 1954 PhD dissertation, Marvin Minsky described the Stochastic Neural-Analog Reinforcement Calculator (SNARC). This machine, built from vacuum tubes and motors, modeled a network of artificial neurons that learned to solve a simple maze by adjusting connection strengths based on reinforcement signals. Minsky's work was one of the first attempts to build a physical learning machine based on trial-and-error principles.

Parallel to these developments in AI, a separate and more mathematically rigorous thread was being developed under the name of optimal control. The central figure in this area was Richard Bellman[2]. In the 1950s, he developed a method he called dynamic programming[3] to solve problems of sequential decision-making. In his 1957 book, Dynamic Programming, he introduced a mathematical formalism for these problems, including the foundational concept now known as the Bellman equation[4]. This equation expresses the value of a state as a function of the values of subsequent states, providing a recursive method for finding optimal policies. The framework of Markov Decision Processes (MDPs), which is central to modern RL, arose from this work. However, dynamic programming had a critical limitation: it required a perfect and complete model of the environment's dynamics, and its computational complexity grew exponentially with the number of state variables, a problem Bellman termed the "curse of dimensionality".

The Threads Diverge (1960 to 1979)

During the 1960s and 1970s, the trial-and-error learning thread and the optimal control thread proceeded largely independently, with little interaction. The field of artificial intelligence, dominated by symbolic logic and supervised learning approaches like the perceptron, paid little attention to trial-and-error methods.

The Trial-and-Error Thread

Despite being outside the AI mainstream, a few researchers continued to explore learning through reinforcement. In 1961, Donald Michie, a British computer scientist, created the Matchbox Educable Noughts and Crosses Engine (MENACE)[5]. This was a purely mechanical learning machine, composed of 304 matchboxes, that learned to play Tic-Tac-Toe. Each matchbox corresponded to a specific board state, and inside were colored beads representing possible moves. After a game, beads were added to or removed from the boxes corresponding to the moves made, reinforcing winning paths and punishing losing ones. After hundreds of games, MENACE became a proficient player. It was a tangible demonstration of reinforcement learning in action.

Another key figure in this period was Harry Klopf. In a series of papers starting in the early 1970s, he developed a theory of learning based on the idea of "hedonistic neurons". Klopf argued that the fundamental drive of all adaptive creatures, biological or artificial, was to seek pleasure (reinforcement) and avoid pain (punishment). He made a crucial distinction between learning systems that try to achieve a predefined goal set by a supervisor (as in supervised learning) and those that have their own internal goals of maximizing reinforcement. His work emphasized that reinforcement was a primary, driving force for learning, not just an error signal, a perspective that was essential for the eventual development of modern RL.

The Optimal Control Thread

Meanwhile, the optimal control community continued to refine dynamic programming. Researchers like Ronald Howard developed algorithms for policy iteration in 1960, providing a practical method for solving MDPs when a model was available. The field was highly successful in domains where such models existed, such as aerospace engineering and industrial process control. However, the reliance on a perfect model and the inability to cope with large state spaces meant that its methods were not applicable to the kinds of problems AI researchers were interested in, such as game playing or robotics in unstructured environments. The two fields used different terminology and focused on different aspects of the problem, creating a cultural and technical gap that prevented them from recognizing their shared foundations.

Convergence and Synthesis (1980 to 1997)

The 1980s marked a turning point where the disparate threads began to weave together, largely through the work of Andrew Barto, Richard Sutton, and Chris Watkins. This decade saw the introduction of the key concepts that would unify the field: temporal-difference learning and Q-learning.

Actor-Critic and Temporal-Difference Learning

In 1983, Andrew Barto, Richard Sutton, and Charles Anderson published a paper titled "Neuronlike Adaptive Elements That Can Solve Difficult Learning Control Problems." They introduced a method they called the Actor-Critic architecture[6] and demonstrated it on the classic cart-pole balancing problem. The system consisted of two components. The "Actor" was responsible for selecting actions (the policy), while the "Critic" learned to evaluate the states encountered by the actor (the value function). The critic's evaluation was then used to update the actor's policy, reinforcing actions that led to better-than-expected outcomes. This approach effectively combined policy learning with value function learning, forming a bridge between trial-and-error search and the value-based methods of dynamic programming.

The theoretical breakthrough that underpinned this work was formalized by Sutton in his 1988 paper, "Learning to Predict by the Methods of Temporal Differences". Temporal-Difference (TD) learning provided a way to learn value functions directly from experience without a model of the environment. Unlike Monte Carlo methods, which wait until the end of an episode to update values based on the final outcome, TD learning updates its estimates at every step. It uses the current estimate of the next state's value to update the current state's value, a process called bootstrapping. This allows learning to happen more efficiently and online. TD learning was the missing link. It showed how the computationally expensive, model-based updates of dynamic programming could be approximated using cheap, model-free samples from trial-and-error experience.

Q-Learning: A Major Breakthrough

In 1989, Chris Watkins completed his PhD thesis, "Learning from Delayed Rewards," at Cambridge University. In it, he introduced an algorithm he called Q-learning[7]. This was a monumental development. Q-learning is a model-free, off-policy TD control algorithm that directly learns the optimal action-value function, denoted Q(s, a). The Q-function represents the expected cumulative reward of taking action 'a' in state 's' and then following the optimal policy thereafter. The beauty of Q-learning is its simplicity and power. Its update rule elegantly combines the Bellman equation with a TD-like update, allowing an agent to learn the optimal policy by simply exploring the environment and observing the rewards for state-action pairs, without ever needing to build a model of the environment's dynamics.

Q-learning provided a clear, provably convergent algorithm that unified the ideas of Bellman's optimal control with the model-free, trial-and-error approach. It solved a key problem in RL: how to find an optimal policy without first learning a model. This breakthrough laid the groundwork for many of the practical applications that would follow.

Consolidation and a Landmark Success (1992 to 2004)

The 1990s saw the consolidation of reinforcement learning as a recognized field of study and produced its first spectacular success story.

In 1992, Gerald Tesauro, a researcher at IBM, developed TD-Gammon[8], a program that learned to play backgammon. TD-Gammon used a neural network to represent the value function, which it trained using TD learning by playing hundreds of thousands of games against itself. It started with random weights and received only the final win/loss signal as reinforcement. Without any human-provided knowledge about backgammon strategy, it reached a level of play that was competitive with the world's best human players. This was a stunning demonstration of what was possible when TD learning was combined with a nonlinear function approximator like a neural network. It showed that RL could achieve high performance in a complex, stochastic domain that was too large for classic dynamic programming or exhaustive search.

This period culminated in the publication of the first edition of Reinforcement Learning: An Introduction[9] by Richard Sutton and Andrew Barto in 1998. This book was instrumental in defining the field. It provided a clear and comprehensive account of the history, tracing the convergence of the three threads. It established a common vocabulary and mathematical framework based on Markov Decision Processes. The book became the standard textbook and reference, training a new generation of researchers and solidifying RL's identity as a distinct and important branch of machine learning.

Despite these successes, RL remained a somewhat niche area in the early 2000s. The computational demands were high, and applying RL to new problems often required significant feature engineering and careful tuning. The combination of RL with neural networks, as seen in TD-Gammon, was powerful but notoriously difficult to stabilize. For a time, other machine learning methods like Support Vector Machines gained more prominence.

The Deep Reinforcement Learning Era (2013 to Present)

The landscape of artificial intelligence was transformed by the deep learning revolution, which began in the late 2000s and exploded into prominence with the success of AlexNet[10] in the 2012 ImageNet competition. Deep neural networks provided a way to automatically learn hierarchical representations from high-dimensional, raw data like images or audio. This was precisely the tool reinforcement learning needed to overcome the curse of dimensionality and scale to previously unsolvable problems.

Deep Q-Networks and AlphaGo

In 2013, a team at a small London-based startup named DeepMind[11] published a paper on the arXiv preprint server that would ignite the field of deep reinforcement learning. They combined Watkins's Q-learning algorithm with a deep convolutional neural network. The resulting system, which they called a Deep Q-Network (DQN)[12], could learn to play a wide variety of Atari 2600 video games directly from the raw pixel data. It took the screen pixels as input (the state) and outputted a Q-value for each possible joystick action. In a landmark 2015 paper in the journal Nature, they showed that a single DQN agent, without any game-specific information, could learn to play 49 different games and achieve superhuman performance on many of them. They overcame the instability of combining RL with neural networks by introducing two key techniques: experience replay, which stored and re-used past experiences to break temporal correlations, and a fixed target network for the Q-value updates.

DeepMind, now a part of Google, followed this with an even more impressive feat. In March 2016, their program AlphaGo[13] defeated Lee Sedol, one of the world's strongest players of the ancient game of Go, in a 4-1 match. The complexity of Go, with its vast search space, had made it a grand challenge for AI, one that experts believed was at least a decade away from being solved. AlphaGo's architecture was a sophisticated blend of techniques. It used deep neural networks trained on human expert games to learn a policy network (predicting the next move) and a value network (predicting the winner from a board position). It then refined these networks through reinforcement learning by playing games against itself. During play, it combined these networks with a powerful Monte Carlo Tree Search (MCTS) algorithm to intelligently explore the massive tree of possible moves.

Subsequent versions demonstrated the power of pure reinforcement learning. AlphaGo Zero (2017) dispensed with the human data entirely. Starting with only the rules of the game and a random policy, it learned to play Go solely through self-play. After just three days of training, it surpassed the abilities of the AlphaGo version that had beaten Lee Sedol. AlphaZero[14] (2018) generalized this approach, mastering not only Go but also chess and shogi, becoming the strongest player in all three games after just a few hours of self-play training for each.

Policy Gradients and Robotics

While DQN and AlphaGo demonstrated the power of value-based methods, another class of deep RL algorithms, known as policy gradient methods, also rose to prominence. These methods, which have roots in the REINFORCE algorithm from 1992, directly optimize the policy network to produce actions that lead to higher rewards. Algorithms like Trust Region Policy Optimization (TRPO) and Proximal Policy Optimization (PPO) provided more stable ways to update policies, making them particularly effective for problems with continuous action spaces, which are common in robotics. Researchers at organizations like OpenAI used these methods to achieve remarkable results, such as training a robotic hand, Dactyl[15], to solve a Rubik's Cube with unprecedented dexterity, all learned in simulation and transferred to the real world.

Current State and Future Directions

Today, reinforcement learning is a central and vibrant area of AI research and application. Its principles are being applied to a wide range of real-world problems. Google has used RL to optimize the cooling of its data centers, reducing energy consumption. It has also been used in chip design, with an RL agent learning to place components on a chip more effectively than human designers, as seen in the design process for Google's TPU-v5e. In robotics, RL is used to train robots for manipulation and locomotion. Perhaps most consequentially, RL has become a critical component in aligning large language models (LLMs) with human intentions through a process called Reinforcement Learning from Human Feedback (RLHF)[16]. In RLHF, a reward model is trained on human preferences, and this model is then used to fine-tune the language model's policy using RL, encouraging it to generate more helpful, harmless, and honest responses.

Despite these successes, significant challenges remain. RL algorithms are often sample inefficient, requiring millions or billions of interactions to learn effectively. Designing a good reward function that captures the true goal without creating unintended loopholes is a difficult art. Ensuring the safety and predictability of RL agents, especially in high-stakes environments, is a critical open problem. The gap between performance in simulation and the real world, the sim-to-real problem, continues to be a hurdle for robotics applications.

A common misconception is that RL is a form of artificial general intelligence. It is not. RL is a mathematical framework for optimizing a policy to maximize a specific, pre-defined cumulative reward signal. Its success is entirely dependent on the quality of that signal and the environment in which it operates. The future of the field lies in addressing its core challenges: improving data efficiency through model-based and offline RL methods, developing more robust and scalable algorithms, and creating safer and more reliable methods for specifying goals and ensuring aligned behavior. The synthesis of reinforcement learning with other areas of machine learning, especially with large-scale generative models, continues to be one of the most promising frontiers in the quest to build more capable and beneficial artificial intelligence.

Sources (16)
  1. Law of effect - Wikipedia
  2. Richard E. Bellman - Wikipedia
  3. Dynamic programming - Wikipedia
  4. Bellman equation - Wikipedia
  5. Matchbox Educable Noughts and Crosses Engine - Wikipedia
  6. Neuronlike adaptive elements that can solve difficult learning control problems - IEEE Xplore
  7. Learning from Delayed Rewards by Christopher J.C.H. Watkins - University of London
  8. TD-Gammon - ACM Digital Library
  9. Reinforcement Learning: An Introduction by Richard S. Sutton, Andrew G. Barto (1998) - Google Books
  10. AlexNet - Wikipedia
  11. DeepMind - Wikipedia
  12. Deep Q-learning - Wikipedia
  13. AlphaGo - Wikipedia
  14. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play - Science
  15. Learning Dexterity - OpenAI Blog
  16. Reinforcement learning from human feedback - Wikipedia