ATLAS NOVA My AtlasVelocer ↗

Technology · Machine learning

Reinforcement learning

Reinforcement learning is the kind of learning that happens through trial and error, guided by the outcomes of one's own actions.

An agent, the general name for whatever is doing the learning, tries something, observes what comes back, and adjusts so that next time it does more of what paid off and less of what did not. Nothing tells it in advance which action is correct; the only teacher is the reward or punishment that follows. A child learning to ride a bicycle, a rat pressing a lever for food, and a program learning to play a video game are all, in this broad sense, solving the same problem: how to act in a world that answers back.

Key facts
49Atari games mastered by one deep Q-network at professional human tester level (Mnih et al., 2015)⁠[1]
3085Participants pooled in meta-analysis of reinforcement learning in mood and anxiety disorders (Pike & Robinson, 2022)⁠[2]
40 millisecondsSwift drone's sensorimotor latency versus 220 ms for expert human pilots (Kaufmann et al., 2023)⁠[3]
95%Generated molecules predicted active against dopamine receptor type 2 (Olivecrona et al., 2017)⁠[4]

Overview

What reinforcement learning is and what it does

The clearest way to picture it is as a loop. At each moment the agent sees some description of its situation, called the state, chooses an action, and receives a reward, a number saying how good that outcome was, together with a new state to react to. The loop then repeats. A walking robot, for instance, senses the angles of its joints and its tilt, commands its motors, and is rewarded for staying upright and moving forward; over many attempts it discovers a gait that keeps the reward coming. The same structure describes a computer playing a game, where the state is the screen, the actions are the controls, and the reward is the score.

What makes the problem hard is that rewards are often delayed and the consequences of an action reach into the future. A move in a board game may look harmless and lose the game twenty moves later. So the agent cannot simply grab the largest immediate reward; it has to learn which actions lead, over a whole sequence of decisions, to the best total outcome. This is why reinforcement learning is described as the study of sequential decision making, and why it is set apart from methods that learn from a fixed set of labelled examples. The agent generates its own experience, and the quality of its choices shapes the very data it learns from.

The framework earns its place because so many important problems have exactly this shape. A system that learns a policy, a rule for choosing actions in each state, can in principle improve itself in any setting where outcomes can be scored, without a person specifying the correct behaviour in advance. That promise of autonomy, of machines that adapt to situations their designers never enumerated, is what draws engineers to it. The same mathematics turns out to describe how animals and people learn from reward, which is why reinforcement learning serves both as a computational toolkit and as a framework for thinking about behaviour in psychology and neuroscience.

A clinical review of reinforcement learning in intensive care illustrates how the loop is mapped onto a real problem. There the state is a patient's condition, built from demographics, vital signs and laboratory results; an action is a treatment or an intervention such as a drug dose; and the reward reflects whether the patient's well-being improves or worsens.⁠[5] The aim is a policy that, given a patient's state, recommends the action with the best long-term prospect, much as a clinical protocol would but tailored to the individual. That application, and the many others in games, robotics and science, rest on the same few ingredients: states, actions, rewards, and a learner that improves by acting.

Perhaps the most vivid demonstration of the idea's reach came when a single algorithm learned to play 49 Atari 2600 games from nothing but the pixels on the screen and the game score, surpassing all previous algorithms and reaching a level comparable to a professional human games tester using the same algorithm, network architecture and hyperparameters throughout.⁠[1] No one told it the rules of each game; it discovered strategies by trial and error, which is the whole of the method in one example. How such systems are built, why they sometimes fail, and where they are now being applied are the subjects of the sections that follow.

Reinforcement learning is learning by trial and error: act, see the reward, adjust, and repeat, with the goal of doing well over the long run rather than just the next step.

History

From psychology to algorithms: the early development

Reinforcement learning did not begin as a branch of computer science. Its central question, how an animal comes to repeat an action that brought food and drop one that brought nothing, was already old in psychology when the first programs were written. The behaviourist tradition studied exactly this: a creature emits a response, an outcome follows, and the rate of the response rises or falls accordingly. What the mid-twentieth century added was mathematics. Formal models of associative learning described how the strength of an association between a cue and an outcome is revised by the gap between the outcome expected and the outcome received, so that learning could be written as an equation and its predictions tested against data.⁠[6] That move, from verbal theory to a rule that can be computed, is the hinge on which everything later turns.

The field that grew from such beginnings was surveyed in the 1990s as the problem faced by an agent that learns behaviour through trial-and-error interaction with a dynamic environment, with the trade-off between trying new actions and exploiting known good ones, learning from delayed reward, and coping with a world only partly visible to the agent all named as central issues.⁠[7] Those concerns are recognisably the same ones that occupy the subject today; what has changed is the machinery available to address them.

A separate line of work supplied the bridge to biology. Recordings from the midbrain of monkeys showed that a subset of dopamine neurons respond phasically to reward and to behaviourally significant stimuli during learning.⁠[8] The proposal that the phasic activity of these neurons provides a mechanism for synaptic modification, and thereby an underpinning for a specific class of reinforcement learning mechanisms, linked the neurobiology to the learning rule.⁠[9] This pattern, a signal that tracks the difference between reward received and reward predicted, is precisely the quantity that the learning rule of the formal models uses to revise expectations. The reward prediction error itself, and the evidence for it, are treated in a later section; here it matters as the historical join, the point at which a formula for learning and a signal in the brain were recognised as the same thing.

For a long time these ideas ran up against a practical wall. The classical algorithms were limited to domains in which useful features could be handcrafted, or to domains with fully observed, low-dimensional state spaces.⁠[1] Real sensory worlds do not arrive in that form. A camera delivers a grid of pixel values, not a tidy list of relevant variables, and the number of possible situations is astronomically large. Progress stalled until a second technology matured: deep neural networks, which learn their own representations from raw data rather than requiring them to be specified. Combining the two produced deep reinforcement learning, which enables reinforcement learning to scale to problems that were previously intractable, such as learning to play video games directly from pixels.⁠[10]

The full demonstration followed two years later, with a single agent reaching professional-tester level across 49 games under one set of settings.⁠[1] The details of how such networks are built and trained belong to a later section. What the early history leaves is a shape: a question from animal learning, a mathematical rule for revising expectations, a signal in the brain that matches the rule, and, once the representational problem was solved, machines that learn from raw experience at scale.

How it works

The core loop: states, actions, rewards, and policies

The loop described earlier becomes a precise object once its parts are named and given a formal shape. The standard formulation is the Markov decision process, usually shortened to MDP, a mathematical description of sequential decision making with four components: a state, which represents the environment at each moment; an action the agent takes, which influences the next state; a transition probability, an estimate of how likely each subsequent state is given the current state and action; and a reward function, the feedback observed for a state-action pair.⁠[5] When that assumption holds, the problem of choosing well over time can be written down and solved rather than merely described.

A clinical example makes the mapping concrete. In an intensive care unit, the state is the patient's condition, assembled from static traits such as age and pre-existing illness together with longitudinal measurements such as vital signs and laboratory results; an action is a treatment or intervention, a drug dose or an order for a test; and the transition probability amounts to a prognosis, the likelihood of moving from one condition to another.⁠[5] The reward is assigned by whether the patient's well-being improves, stays stagnant, or worsens after the intervention. Strung together over a stay, these state-action pairs form a trajectory, the sequence of a patient's changing condition and the decisions made along the way, and it is from many such trajectories that a learner works out which actions tend to lead where.

Two further terms carry most of the weight. A policy is the agent's rule for choosing an action in each state, the thing being learned; in the clinical setting it functions like a treatment protocol, except that it can capture far more of an individual patient's detail than a fixed guideline allows.⁠[5] Value is what lets a learner think past the next step. An action that brings a small reward now but leaves the agent in a poor position has a low value despite its pleasant immediate result, and an action that costs something now to reach a strong position has a high one. The goal of the whole exercise is to find the policy that maximises cumulative reward, the sum of rewards gathered over the run, which is why the objective is stated over a sequence of decisions rather than a single one.

Because the future is what is being optimised, the agent faces a tension that no amount of computing removes. It can exploit, choosing the action its current estimates rate highest, or it can explore, trying something whose value it does not yet know. Exploitation is how value is cashed in; exploration is how value is discovered, since an option that has never been sampled cannot be known to be bad. The trade-off is discussed alongside learning from delayed reinforcement and coping with hidden state as a central issue of reinforcement learning.⁠[7] The difficulty is that the two pull in opposite directions: an agent that only exploits may settle on a decent option and never find the better one beside it, while an agent that only explores never uses what it has learned. Striking the balance is a design choice with real consequences, and the machinery for handling it, including the parameter that governs how sharply an agent prefers its best-known option, is taken up later.

There is a further complication that the tidy four-part description hides. The agent rarely observes its true state; it sees a proxy assembled from whatever signals reach it. A physician treating a patient has laboratory values and vital signs, not direct access to the underlying biology, and a program reading a screen has pixels, not the game's internal variables. This gap is known as a partially observable problem, and it means the state the agent reasons about is an approximation built from observations rather than the state as it truly is.⁠[5]

What the framework buys is a way to compare strategies on their merits rather than by intuition. Once states, actions, rewards and transitions are specified, a policy can be scored by the cumulative reward it is expected to earn, and the search for a good policy becomes a well-posed problem. The design of the reward function is central to successful RL learning.⁠[5]

The MDP gives the loop its grammar: state, action, transition, reward. A policy says what to do, a value function says what a situation is worth, and the aim is the policy that earns the most reward over the whole run, which forces a choice between exploiting what is known and exploring what is not.

Learning from surprise: prediction errors and learning rates

The engine of reinforcement learning is surprise. When an agent takes an action, it carries an expectation of what that action will bring. What actually arrives rarely matches the expectation exactly, and the gap between the two is the most informative signal the agent receives.

This gap is called the reward prediction error: the reward actually received minus the reward that was expected.⁠[6] A better-than-expected outcome produces a positive error, a worse-than-expected one a negative error, and an outcome that was perfectly foreseen produces no error at all and therefore nothing to learn. The agent then revises its estimate of the action's value by adding a portion of that error to what it previously believed. In this way value estimates are nudged, trial by trial, toward the rewards that actually follow.

The rule has a long pedigree. In the mid-twentieth century, advances in applying mathematical models to human associative learning gave researchers formal tools to describe these processes, allowing theories to be written as equations and tested against data.⁠[6] The same arithmetic later appeared in the brain. Recordings from the midbrain of monkeys showed dopamine neurons responding phasically to reward and to conditioned stimuli during learning, and a review of this work argues that the phasic activity of midbrain dopamine neurons provides a mechanism for reinforcement learning consistent with the reward prediction error hypothesis.⁠[9][8] The formula and the neural signal turned out to be describing the same quantity, which is why the prediction error sits at the centre of both the engineering and the biology of the subject.

How much of the error to absorb is a separate question, and it is answered by a single number. The learning rate is the free parameter that scales each prediction error before it is added to the current value estimate.⁠[6] A high learning rate means recent outcomes weigh heavily: the estimate swings toward whatever just happened. A low learning rate means the opposite, so that each new outcome makes only a small dent and the estimate reflects a long history of results rather than the last few. Neither setting is right in the abstract. The learning rate is a dial controlling how much the agent lives in the present, and where it should be set depends entirely on the world the agent inhabits.

That dependence is easiest to see in a simple task. In a two-armed bandit, the agent repeatedly chooses between two options, each of which pays out probabilistically; in one version of the classic task, one slot machine gives points on 80 percent of trials and the other on only 20 percent.⁠[6] By learning from the outcomes of its choices, the agent becomes increasingly likely to pick the better machine. If the odds are fixed, a low learning rate serves well, because averaging over many trials filters out the noise of unlucky pulls and homes in on the true rate. If the odds drift, a low learning rate becomes a liability, since the estimate lags behind a world that has already changed. The optimal setting of the learning rate therefore depends on the statistics of the particular task or environment, and in particular on how volatile it is.⁠[6]

Payout rate of two slot machines. The two machines in the classic task paid out on very different shares of trials. From this article: “In a two-armed bandit, the agent repeatedly chooses between two options, each of which pays out probabilistically; in one version of the classic task, one slot machine gives points on 80 percent of trials and the other on only 20 percent.⁠”⁠[6]

This fact has consequences for how reinforcement learning is used to study people, because it means that a difference in learning rate between two groups need not mean one learns better than the other. It may mean they were tested in different worlds. A review of developmental studies found that learning rate estimates showed no clear developmental trends across studies, a pattern that becomes interpretable once the tasks are compared.⁠[6] Opposite directions, yet both are consistent with adults calibrating their learning more finely to the statistics of the environment they faced. The apparent contradiction dissolves once the learning rate is read as an adaptation to context rather than a fixed trait.

The same logic applies to clinical populations. A meta-analysis pooling 27 articles and 3085 participants, 1242 of whom had depression or anxiety, used a simulation approach to place studies with different tasks and models on a common footing. In its simulation meta-analysis, it found that patients showed greater punishment learning rates and slightly lower reward learning rates than control individuals, meaning they updated their learned values more after a negative outcome and slightly less after a positive one.⁠[2] Read through the lens of the prediction error, this is a statement about how strongly each kind of surprise is allowed to revise expectations, and it offers a mechanistic account of the negative bias that marks these disorders. The learning rate, a single dial in a formula, turns out to carry real psychological weight.

The reward prediction error is the gap between what was expected and what arrived; the learning rate decides how much of that gap is absorbed. The best setting is not fixed but matches the volatility of the environment, which is why the same parameter can move in opposite directions across studies and still tell one coherent story.

Choosing actions: softmax and the inverse temperature

Value estimates on their own do not make anything happen. An agent may know perfectly well which of its options is worth most, but knowledge has to be converted into a choice, and the conversion is where a second free parameter enters. The standard device is the softmax function, which turns the estimated values of the available options into probabilities of selecting each one.⁠[6] Rather than always taking the highest-valued action, the agent picks among them with probabilities that rise with value, so that the better option is chosen more often without the worse ones being ruled out entirely. The transformation is smooth: a small difference in value yields a small difference in the chance of being picked, and a large difference yields a large one.

A softmax formula and three explanation boxes sit above paired blue and orange bars showing choice probabilities at inverse temperatures zero, one and three.
Softmax converts two action values into choice probabilities. Increasing inverse temperature concentrates choices on the higher-valued action. View full-size image.Softmax and Inverse Temperature by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The sharpness of that relationship is set by the inverse temperature, a free parameter that determines the extent to which value estimates govern actions.⁠[6] When the inverse temperature is high, differences in the values of the options are exaggerated and choices become more deterministic, so the agent reliably takes what it rates best. When it is low, choices are noisier and relate to the value differences to a lesser degree, so the agent behaves almost as though it were picking at random. The name comes from the mathematics of the function, but the meaning is plain: the inverse temperature is a dial for how seriously the agent takes its own value estimates.

This is not a flaw to be engineered away. Sampling an option of uncertain value, or one that has never been tried, is how an agent discovers that a better action exists or confirms that its current favourite still is one, particularly in environments that are novel or shifting.⁠[6] A policy that always took the single highest-valued action would never gather the information that might overturn its ranking. The softmax therefore gives exploration a natural home inside the choice rule: a lower inverse temperature is, in effect, a standing willingness to try other things. The tension between exploiting the best-known option and exploring the rest, introduced with the core loop, is here given a concrete form and a number to tune.

Because the parameter sits between learning and behaviour, it is also a useful handle for studying people. A review of developmental modelling studies found that inverse temperature estimates frequently decreased with increasing age across diverse studies, which may reflect a consistent bias toward exploration earlier in life. The same review cautions that the inference is not clean, since an age-related drop in inverse temperature can also arise if a model mis-specifies how younger individuals estimate value in the first place.⁠[6] The parameter measures how decisively choices follow value, and a difference in it can mean either a genuinely more exploratory child or a model that fits the child's learning less well.

In applied settings the same machinery appears under a different name. A clinical review of reinforcement learning in intensive care describes the solution of the decision problem as an optimised set of rules, termed the policy, and notes that a policy can be represented either as a table mapping every state to an action or as a deep neural network that, given a patient's state, outputs the highest probability of an action.⁠[5] Either way, the step from estimated value to a recommended action is the step the softmax formalises, and the sharpness of that step decides how often the system departs from its own best guess.

The softmax converts values into probabilities of choice, and the inverse temperature sets how sharply: high values make the agent decisive, low values make it exploratory, and neither setting is right without knowing the environment.

Deep reinforcement learning: scaling up with neural networks

The methods described so far keep a table of values, one entry per state or state-action pair. That works while the states can be listed. It collapses when the state is a camera image, because the number of distinct pixel grids is effectively unbounded and no table can hold them all. The fix is to replace the table with a function approximator, a model that takes a state as input and returns an estimated value or a policy, and that generalises from the states it has seen to similar ones it has not. A deep neural network is the approximator of choice, because it learns its own representation of the input rather than requiring a person to specify which features matter.⁠[10] The network's weights are adjusted by gradient descent so that its predictions fit the outcomes the agent actually experiences, and the same weights then apply to any input, familiar or new.

A flowchart diagram with a left column of orange boxes labeled Challenges (Non-iid sequential data, Easy divergence, Overestimation, Sample inefficiency) connected by arrows to blue boxes on the right labeled Tricks (Experience Replay, Parallel Exploration, Separated Target Network, Delayed Policy Update, Constrained Policy Update, Clipped Actor Criterion, Double Q-functions, Bounded Double Q-functions, Distributional Return Function, Entropy Regularization, Soft Value Function).
A flowchart diagram with a left column of orange boxes labeled Challenges (Non-iid sequential data, Easy divergence, Overestimation, Sample inefficiency) connected by arrows to blue boxes on the right labeled Tricks (Experience Replay, Parallel Exploration, Separated Target Network, Delayed Policy Update, Constrained Policy Update, Clipped Actor Criterion, Double Q-functions, Bounded Double Q-functions, Distributional Return Function, Entropy Regularization, Soft Value Function). View full-size image.Challenges and Tricks of Deep RL by Tsesea. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

Combining such networks with reinforcement learning gives deep reinforcement learning, in which the decision-making machinery of the previous sections operates on representations learned directly from raw data.⁠[11] The appeal is end-to-end learning: pixels or sensor readings go in, actions come out, and nothing in between has to be hand-designed. The difficulty is that the two ingredients were developed for different problems. Supervised learning assumes the training examples are independent and drawn from a fixed distribution, whereas an agent's experience depends on its own choices, so the data shift as the policy changes.

The best-known of these systems is the deep Q-network, usually shortened to DQN, which pairs a convolutional neural network with Q-learning, the algorithm that learns the value of taking each action in each state.⁠[12] The network takes the raw pixels of the game screen as input and outputs, for every available action, an estimate of the total future reward that will follow from taking it. The agent then acts on those estimates, and the discrepancy between predicted and received reward is fed back to adjust the weights. In its first demonstration the model was applied to seven Atari 2600 games with no adjustment of its architecture or learning algorithm between them, and it outperformed all previous approaches on six of the seven and surpassed a human expert on three.⁠[12]

The mature version of DQN was tested on a far broader set. A single agent, receiving only the pixels and the game score, surpassed the performance of all previous algorithms and reached a level comparable to that of a professional human games tester across 49 games, using the same algorithm, network architecture and hyperparameters throughout.⁠[1] The uniformity is the point. That result did more than any argument to establish that learned representations could substitute for hand-crafted features in sequential decision problems.

The architecture has since been varied in many directions, and a survey of the field covers value-based DRL algorithms, policy-based DRL algorithms, and advances in maximum-entropy-based DRL.⁠[11]

What deep reinforcement learning changes, in the end, is the scale of problem the framework can address. The loop of state, action and reward is unchanged; what is new is that the state can be a photograph, a patient's chart, or a board position with more configurations than there are atoms in the observable universe, and the learner can still extract a workable policy from it. Those costs are the subject of later sections.

A deep network replaces the lookup table, letting the same algorithm act on raw pixels or sensor readings. DQN made this work by storing past experience for reuse and by comparing predictions against a slowly updated copy of itself, and one set of settings then carried it to human-tester level across 49 Atari games.⁠[1]

Beyond value-based methods: policy gradients and actor-critic

Value-based methods learn first and act second: they estimate how good each action is, then choose the best-rated one. That indirection is convenient when the options form a short list, but it becomes awkward when actions are continuous. A steering angle, a motor torque or a joint velocity can take any value in a range, and there is no finite table of such actions to score one by one. Policy-based methods take a different route.

Instead of learning values and deriving a policy from them, they represent the policy directly, as a rule with adjustable settings, and improve those settings by measuring how the rewards that follow a choice change when the rule is nudged.⁠[13] The learner adjusts the probabilities of the actions it took in proportion to how much better or worse than expected the outcome was, so actions that paid off become more likely and actions that disappointed become less so. No value for every possible action is ever needed, which is what lets the approach work in continuous spaces.

The price of that directness is noise. A single trial yields one reward, and that reward depends on the state, on chance, and on everything else the agent did, so the signal pointing toward a better policy is faint and varies from attempt to attempt. Policy-gradient methods therefore tend to need many samples to settle, and their estimates of how to improve carry high variance.⁠[13] Much of the engineering in this family is devoted to reducing that variance without introducing bias, so that the direction of improvement can be estimated from fewer trials.

Actor and critic

A common answer is to keep a value estimate after all, but to use it as an adviser rather than as the decision-maker. An actor-critic architecture maintains two components: an actor, which is the policy and chooses actions, and a critic, which estimates value and judges the choices the actor makes.⁠[13] The critic supplies the baseline against which an outcome is judged, so the actor is told not simply that a reward arrived but that the reward was better or worse than the critic expected from that state. That comparison is the prediction error again, now put to work on the policy itself rather than on a table of action values. Judging relative to a baseline removes much of the irrelevant variation between trials, which is why actor-critic designs can search for good policies using lower-variance estimates of the gradient than a bare policy-gradient method manages.⁠[13]

The arrangement also has a natural reading in terms of the loop described earlier. The critic learns the value function, the estimate of what a situation is worth; the actor learns the policy, the rule for what to do. Each improves the other: a better critic gives the actor a sharper signal, and a better actor generates the experience from which the critic learns. Policy-gradient-based actor-critic algorithms have proved useful in several real-life applications, such as robotics, power control and finance, and the family has been extended with natural-gradient variants.⁠[13]

Continuous control

The continuous case is where these methods earn their keep, and a well-known demonstration made the point directly. An actor-critic, model-free algorithm built on the deterministic policy gradient was designed to operate over continuous action spaces, and with the same learning algorithm, network architecture and hyperparameters it robustly solved more than 20 simulated physics tasks, among them cartpole swing-up, dexterous manipulation, legged locomotion and car driving.⁠[14] The policies it found were competitive with those produced by a planning algorithm given full access to the dynamics of the domain and their derivatives, and for many tasks the algorithm learned end to end, straight from raw pixel inputs. A deterministic policy commits to one action per state rather than a spread of probabilities, which suits control problems where the right command is a single number and the question is only what that number should be.

Running several learners in parallel turned out to help as well. Asynchronous variants of four standard algorithms, in which parallel actor-learners update a shared model, had a stabilising effect on training, and all four successfully trained neural network controllers; the best of them, an asynchronous actor-critic, surpassed the then-current state of the art on the Atari domain while training for half the time on a single multi-core CPU instead of a GPU.⁠[15] The same method also handled a wide variety of continuous motor control problems and a task of navigating random three-dimensional mazes from visual input. Decoupling the collection of experience from the updating of the policy, it turned out, bought both speed and stability.

Policy-based methods learn the choice rule directly, which is what continuous actions require; the actor-critic design adds a critic that judges outcomes against expectation, cutting the noise in the learning signal, and parallel learners make the whole process faster and steadier.

Two routes to choosing actions.

Model-based and model-free learning

Everything so far has treated the agent as learning values by experience alone. There is a second way to decide, and the contrast between the two turns out to matter well beyond engineering. A model-free learner keeps no picture of how the world works. It stores, or estimates, how much reward tends to follow each action in each situation, and chooses on that basis. It learns slowly, because each value must be built up from outcomes actually encountered, but once learned it is fast and cheap to use: the choice is read off the estimate, with no deliberation. Much of what has been described, from the prediction-error rule to the deep networks that estimate action values, is model-free in this sense.

A blue action-value table on the left selects B, while a green branching tree on the right computes returns of minus two for A and plus five for B.
A learned action-value table and a model-based planning tree reach the same choice in a two-step example. The comparison shows how each approach uses experience. View full-size image.Model-Free Lookup and Model-Based Planning by Atlas Nova. Illustration generated with AI for this article and checked against its text.

A model-based learner does something different. It builds an internal model of the environment, a representation of which states follow which actions and what rewards they bring, and then uses that model to look ahead, simulating the consequences of candidate actions before committing to one. In the formal language of the previous sections, the model supplies the transition probabilities and the reward function, and the agent can plan with them rather than only react. The clinical review draws the distinction sharply: model-based reinforcement learning requires the agent to know the transition probability for all state-action combinations explicitly, and becomes impractical as the state and action spaces grow; most intensive-care studies have instead applied a value-based RL model, and most could only use limited retrospective data to train offline.⁠[5] The trade-off is the mirror image of the model-free one. Planning is expensive and depends on the model being right, but it lets a single new piece of knowledge propagate through many decisions at once, so the agent can adapt to a change in the world without relearning everything by trial and error.

That difference in how knowledge is used has consequences for behaviour, and it is here that the distinction earns its place in the study of people. A model-free system learns habits: responses that become automatic with repetition, triggered by the situation rather than chosen for their outcome. A model-based system is goal-directed: it represents what leads to what, and adjusts when the value of the goal changes. A review of unhealthy behaviour uses exactly this pairing, proposing that many unhealthy actions begin as choices sensitive to their consequences but, with repetition, become habitual, so that they still arise in response to environmental cues even after a person's health goals have changed.⁠[16] The same framework helps explain why intentions and actions diverge: a decision made when the future is distant can be reversed when the moment arrives, and a habit can fire regardless of what the person now wants.

The two systems are not rivals so much as partners, and the balance between them shifts with circumstances. Deliberation is effortful and slow, so it is reserved for situations that are novel, important, or changing; habit is cheap and fast, so it takes over once a behaviour is well practiced and the world is stable. This division of labour is why a model-based account can be built on top of a model-free one rather than replacing it: the planning system can use learned values as its raw material, and repeated planning can, in time, hand its conclusions back to the habitual system. In robotics the same choice recurs in concrete form, and a survey of reinforcement learning for robot behaviour singles out the decision between model-based and model-free methods, alongside the choice between learning a value function and searching directly over policies, as one of the central design questions in the field.⁠[17]

Model-free learning caches values from experience and acts on them quickly; model-based learning builds a picture of the world and plans with it. The first is cheap but slow to adapt, the second flexible but costly, and human behaviour appears to draw on both.

Uses

Games and strategic play

Games have served reinforcement learning as proving ground, benchmark and public demonstration at once. The reason is not that games are trivial but that they supply what the framework needs: a state that can be described precisely, a set of legal actions, a score that says how well things are going, and a rule that never bends. A game is a closed world with an unambiguous reward, which makes it the natural place to test whether a learner can improve from experience alone. The results in this domain, from arcade screens to the board game Go, mark the stages by which the method grew from a laboratory curiosity into something that could beat the best people at their own specialties.

Figure 2. AlphaGo against other Go programs and the European champion. Winning rate against other Go programs and games won against the human European Go champion. The source states: “our program AlphaGo achieved a 99.8% winning rate against other Go programs, and defeated the human European Go champion by 5 games to 0” (Silver et al. (2016)).⁠[18]

Learning from pixels

The first of these demonstrations was described earlier: a single deep Q-network that took only the pixels and the score of an Atari 2600 game and achieved a level comparable to that of a professional human games tester across a set of 49 games, with the same algorithm, architecture and settings for every one.⁠[1] What matters for the present purpose is what that uniformity showed. The games differ in their visuals, their rules and the skills they demand, and nothing in the system was told which game it was playing. The network had to discover, from the pattern of rewards, that a particular arrangement of pixels meant a paddle, that another meant a ball, and that moving the paddle toward the ball tended to raise the score. Learning to act well in a game turned out to require learning to see the game, and the deep network did both at once.

Go and the problem of looking ahead

Board games pose a different difficulty. In an arcade game the consequences of an action arrive within a second or two, so the credit for a good move is easy to assign. In Go a stone placed early may matter only a hundred moves later, and the number of possible board positions is vast beyond any hope of enumeration. The breakthrough came from combining a learned policy with a learned value estimate and a tree search. Two deep neural networks were trained, one to suggest moves and one to judge how favourable a board position was, and a search algorithm used both to explore the likely consequences of candidate moves rather than brute-forcing the whole tree. The policy network narrows the search to plausible moves, the value network evaluates board positions, and the search algorithm combines Monte Carlo simulation with both networks.⁠[18]

The networks themselves were trained by an unusual route. They began by learning from records of human expert games, and were then improved by reinforcement learning from games the program played against itself, with the outcome of each game serving as the reward signal. This was enough for the program to achieve a 99.8 percent winning rate against other Go programs and to defeat the human European Go champion by five games to none, the first time a computer had beaten a human professional at the full-sized game.⁠[18] The self-play loop is the key idea: the program generates its own opponents, and every game it wins or loses becomes a lesson about which moves lead to victory.

Doing without human examples

Self-play invites an obvious next question. If a program can improve by playing itself, why does it need human games at all? The answer came in a successor that was given nothing but the rules of the game. Starting from random play, with no human data, no guidance and no domain knowledge beyond the rules, the program became its own teacher: a neural network was trained to predict its own move selections and the winner of its own games, and the improved network then strengthened the search, which in turn produced better games to learn from. This cycle of improvement, repeated, carried the system from random moves to superhuman play, and it won 100 games to none against the earlier program that had itself defeated the human champion.⁠[19]

The same approach was then generalised beyond a single game. One algorithm, given only the rules, was applied to chess, shogi and Go, and starting from random play it convincingly defeated a world-champion program in each of the three. Chess had been the longest-studied domain in the history of artificial intelligence, and the strongest programs in it had relied on sophisticated search techniques, domain-specific adaptations and evaluation functions refined by human experts over decades; the general algorithm defeated a world-champion program in chess, shogi and Go without any of that tailoring.⁠[20] The lesson is that the combination of a learned policy, a learned value estimate and a search that uses both is not specific to any one game. It is a general recipe for sequential decisions in a world whose rules are known, and the rules of chess, shogi and Go were the only thing it was given.

Several learners at once

Games with a single player are one thing; games with an opponent are another, because the world now contains another learner whose behaviour changes as it improves. Two autonomous agents controlled by deep Q-networks were set to play Pong against each other, receiving only raw visual input, and the reward scheme was manipulated to see what behaviour would emerge. Under a competitive scheme the agents learned to compete; under a cooperative scheme, in which scoring was punished as severely as conceding, the two paddles discovered the coordinated strategy of hitting the ball parallel to the horizontal axis so that it bounced between them for a long stretch of play. By tuning the reward difference between scoring and conceding, the experimenters could trace a progression from competitive to collaborative behaviour, with the agents playing more cooperatively as the incentive to compete was reduced.⁠[21]

The multiagent setting also changed how robust the resulting strategies were. An agent trained against a fixed, hard-wired opponent saw only a limited set of behaviours, whereas an agent trained against another learner was exposed to a moving target and a far more diverse range of situations. Agents trained in the multiplayer mode performed well against novel opponents, while agents trained against a stationary algorithm failed to generalise their strategies to adversaries they had not met.⁠[21] Playing against something that adapts, it seems, teaches adaptability.

Games gave reinforcement learning a place to prove itself: raw pixels were enough to reach human-tester level across dozens of Atari titles, self-play plus search carried a program from random moves to superhuman Go and then to chess and shogi, and two learning agents sharing a Pong court showed that competition and cooperation can emerge from the reward scheme alone.

Robotics and autonomous systems

Robotics is where reinforcement learning's promise is most concrete and its difficulties most exposed. A robot is an agent in the literal sense: it has sensors that report its state, motors that carry out its actions, and a task that can be scored. The appeal of learning a control policy rather than programming one is that many skilled behaviours, from a steady gait to a fast racing line, are hard to write down as rules but easy to recognise when they occur. A reward signal can say "stay upright and move forward" or "complete the lap quickly" without anyone specifying the joint torques that achieve it.

Figure 1. Swift against three human drone racing champions. Number of head-to-head races won by the autonomous drone against each human pilot. The source states: “Swift wins 5 out of 9 races against A. Vanover, 4 out of 7 races against T. Bitmatta and 6 out of 9 races against M. Schaepper.” (Kaufmann et al. (2023)).⁠[3]

Learning control in simulation

An actor-critic, model-free algorithm built on the deterministic policy gradient was tested on more than 20 simulated physics tasks including cartpole swing-up, dexterous manipulation, legged locomotion and car driving, and for many of them it learned directly from raw pixel inputs.⁠[14] Simulation offers unlimited attempts and a clean reward, which is exactly the condition under which trial and error thrives.

Racing a physical drone

A recent demonstration carried learned control out of simulation and into a physical sport. First-person-view drone racing is a televised competition in which pilots steer high-speed aircraft through a three-dimensional circuit using video streamed from an onboard camera, and reaching professional level with an autonomous drone is hard because the aircraft must fly at its physical limits while estimating its speed and position from onboard sensors alone.⁠[3] The system built for this, named Swift, combined deep reinforcement learning in simulation with data collected in the physical world, and it competed against three human champions, including the world champions of two international leagues, in real head-to-head races. Swift won several races against each human champion and recorded the fastest race time.⁠[3]

Part of its edge came from being a machine rather than a person. Swift used inertial data from an onboard measurement unit, akin to the human vestibular system, which the human pilots could not use because they were not physically in the aircraft and did not feel the accelerations acting on it; its sensorimotor latency was 40 milliseconds against an average of 220 milliseconds for expert human pilots.⁠[3] The humans had advantages of their own, including cameras refreshing four times as fast. The result is a milestone for mobile robotics, but it also marks the boundary of what was shown: Swift was not trained to recover after a crash, and its perception assumed the track would look as it had during training, so a change in illumination could cause the system to fail.⁠[3]

The practical obstacles

The first is cost of experience. The second is safety. A review of safe learning in robotics notes the steep rise in work on safe decision-making under uncertainty, spanning learning-based control that improves performance by learning uncertain dynamics, reinforcement learning approaches that encourage safety or robustness, and methods that can formally certify the safety of a learned control policy. The review stresses that as data-driven robot control gains traction, researchers must understand when and how best to use it in settings where safety is imperative, such as operating close to humans, and it calls for realistic physics-based benchmarks so that control and reinforcement learning approaches can be compared fairly.⁠[22]

A survey of reinforcement learning for robot behaviour frames the field's design questions in similar terms, singling out the choice between model-based and model-free methods, and between learning a value function and searching directly over policies, as central to whether a learned behaviour can be engineered at all. The relationship between the two disciplines has been likened to that between physics and mathematics: robotic problems supply the inspiration, impact and validation, while reinforcement learning supplies the framework and tools for behaviours too hard to engineer by hand.⁠[17]

Robots make the sample-efficiency and safety problems concrete: simulation offers unlimited practice but may not transfer, and the physical world offers reality but punishes every failed experiment.

Clinical decision support in critical care

An intensive care unit is a place where decisions follow one another quickly and where the consequences of each one shape the next. A sedative dose changes how deeply a patient sleeps, which changes how long a ventilator is needed, which changes the risk of infection. This is a sequential decision problem in the exact sense the earlier sections described, and it is why reinforcement learning has been tried there. The clinical review introduced earlier surveyed 21 papers published between 2010 and 2019 and found the method applied to choosing medications, setting drug doses, timing interventions, and targeting personalized laboratory values.⁠[5]

A hospital bed with white bedding and a person lying under the sheets, surrounded by medical monitors, infusion pumps on a pole, and tubing in an intensive care room.
A hospital bed with white bedding and a person lying under the sheets, surrounded by medical monitors, infusion pumps on a pole, and tubing in an intensive care room. View full-size image.20250808 Intensive care unit bed by Ismael Olea. CC BY 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

The mapping from the general framework to the bedside is direct. The state is the patient's condition, built from static traits such as age, gender, ethnicity and pre-existing comorbidity together with longitudinal measurements such as vital signs and laboratory results.⁠[5] An action is a treatment or an intervention, a prescription or an order for a test. The reward is assigned by what happens to the patient's well-being: improvement earns a reward, while a condition that worsens or stays stagnant is penalized.⁠[5] Strung together over a stay, these state-action pairs form a trajectory, and the learner's job is to find the policy that maximizes cumulative future reward across such trajectories, which in practice means the treatment rule expected to produce the best long-term outcome, such as survival.

Two features of the setting shape how the models are built. The first is that the data already exist. A modern ICU records enormous quantities of granular information as a by-product of care, and this makes the unit unusually well suited to learning from recorded patient trajectories rather than from new experiments.⁠[5]

The second is that the learner cannot experiment. Nobody randomizes a critically ill patient to a treatment believed to be worse in order to gather data, so the agent must learn from what physicians have already done. This is why most of the reviewed studies used off-policy methods, which learn about one way of behaving from data generated by another: the model trains a new policy while estimating values from state-action pairs whose actions were chosen by the real physicians.⁠[5] The physicians' actual practice is the behaviour the model learns from and tries to improve on.

The choice of algorithm follows from the same constraints. Because patient conditions and prognoses are too complex to specify the probability of every state transition, model-based approaches were impractical, and because only limited retrospective data were available for offline training, most studies used value-based methods, which learn how good each state-action pair is and then act on the highest value. Fitted-Q-iteration and the deep Q-network were the most common, and the review notes that 71 percent of the applications, 15 of the 21, drew their data from the MIMIC II or MIMIC III databases.⁠[5]

That concentration points to the field's central weakness. Data from a single source carry the biases of that source, since institutions differ in operating strategy, hospital protocol, equipment and patient preference, so a model trained on one dataset cannot be confidently applied to another regardless of how much data it contains. The review is blunt about the state of the evidence: in simulated studies the algorithms consistently outperformed physicians, but all current applications have focused on using retrospective data sets to derive treatment algorithms, and there has been no prospective evaluation of an RL algorithm. The outcome measure most often reported, estimated mortality, is itself computed from simulated trajectories built on observational data and may not be the mortality a patient would actually experience.⁠[5] Until a learned policy is tested in a real clinical setting, what exists is a promising set of recommendations rather than a demonstrated improvement in care.

Reinforcement learning fits intensive care because treatment is a sequence of decisions whose effects unfold over time, but the field's models have so far been trained and judged on recorded data alone, and prospective testing remains the step not yet taken.

Drug discovery and molecular design

The space of possible drug-like molecules is unimaginably large. Estimates put the number of synthetically feasible compounds somewhere between 10 to the 30th and 10 to the 60th, and finding the one that satisfies a long list of requirements, from potency to metabolic stability to ease of manufacture, has been described as finding a needle in a haystack.⁠[23] No search can examine more than a vanishing fraction of that space, so the practical question is not how to enumerate it but how to steer toward the small region worth examining. Reinforcement learning suits this because molecule design is a sequence of decisions: build a structure one piece at a time, and score what results.

A 3D ball-and-stick render of a benzene molecule, with six grey carbon atoms labeled C in a ring, each bonded to a white hydrogen atom labeled H, on a dark blue background.
A 3D ball-and-stick render of a benzene molecule, with six grey carbon atoms labeled C in a ring, each bonded to a white hydrogen atom labeled H, on a dark blue background. View full-size image.Benzene-3D-molecular-model-engraved-render-CAS-71-43-2 by MolGod Scientific. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 900 pixels wide; no crop or other changes by Atlas Nova.

The trick that makes the problem tractable is representation. A molecule can be written as a SMILES string, a line of text that encodes its atoms and bonds in a canonical order, so that designing a compound becomes a matter of generating a sequence of characters. A generative model trained on a large database of known molecules learns the grammar of that text, which fragments tend to follow which, and can then produce new strings that parse as valid structures. On its own such a model merely imitates its training data. Reinforcement learning supplies the pressure that pushes it toward a goal: a second model, the predictive model, scores each generated molecule for the property wanted, and that score becomes the reward the generative model learns to chase.

ReLeaSE

One system built on this plan, named ReLeaSE, for Reinforcement Learning for Structural Evolution, pairs two deep neural networks, a generative one and a predictive one, trained separately at first and then jointly with reinforcement learning.⁠[23] The generative network uses a stack-augmented memory to keep track of the string as it is built, and both networks work from SMILES strings alone, with no hand-designed chemical descriptors. Training runs in two stages: supervised learning first, so each network has something sensible to start from, then the reinforcement step, in which the predictive model's forecasts bias the generative model toward structures with the desired physical or biological properties.⁠[23] The reward can be set to maximize a property, minimize it, or push it into a target range, which makes the same machinery serve quite different design goals.

The proof of concept spanned three kinds of endpoint. The system was used to design libraries biased toward structural complexity, toward compounds with maximal, minimal or intermediate values of physical properties such as melting point or hydrophobicity, and toward compounds with inhibitory activity against Janus protein kinase 2.⁠[23] Across these runs it produced a dataset of more than one million novel compounds. A separate check asked whether the optimization had quietly wrecked synthesizability, since a molecule nobody can make is of no use; the analysis found that property optimization did not significantly affect synthetic accessibility, and fewer than 0.5 percent of the generated molecules scored above the approximate cutoff for structures that are difficult to synthesize.⁠[23]

Tuning a pretrained generator

A second approach starts from a generator that already writes plausible molecules and fine-tunes it. Here the reward combines a user-defined score for the desired property with the prior likelihood the pretrained model assigns to the sequence, so that the learner is pulled toward high-scoring molecules without drifting into strings the original model would never have produced. The composite guards against a failure that appears when the score alone is optimized: a model trained only to avoid sulphur learned to emit strings consisting almost entirely of the character for carbon, since such strings always earned the reward while representing nothing real.⁠[4] Keeping the prior in the reward makes that shortcut unprofitable.

With the composite in place, the method was set three tasks. Trained to generate molecules similar to a query structure, using a fingerprint-overlap similarity measure, it began producing the drug Celecoxib after about 100 training steps and predominantly produced it after 200, in a setting where Celecoxib and similar structures were present in the training set. To test whether it was genuinely designing rather than reciting, all 1,804 structures more similar than 0.5 to Celecoxib were removed from the training set and a fresh generator was trained without them; the likelihood of Celecoxib fell by a factor of 700, yet the agent still found it after 400 steps and, by 1,000, Celecoxib and its demethylated analogue each made up about a third of what it generated. The third task aimed at the dopamine receptor type 2, and more than 95 percent of the resulting structures were predicted to be active, including experimentally confirmed actives absent from both the generative and the activity models.⁠[4]

GENTRL and a real target

The most concrete test of the approach carried it from generated strings to molecules made in a laboratory. A deep generative model called GENTRL, for generative tensorial reinforcement learning, was built to optimize synthetic feasibility, novelty and biological activity together, and was aimed at discoidin domain receptor 1, a kinase implicated in fibrosis and other diseases.⁠[24] The design cycle took 21 days. Four of the designed compounds were active in biochemical assays, two were validated in cell-based assays, and one lead candidate was tested and showed favorable pharmacokinetics in mice.⁠[24] That sequence, from a model's output to a compound with measured activity in a living animal, is what separates molecular design from a purely computational exercise.

What these systems share is the structure set out at the start: a generator that proposes, a scorer that judges, and a reward that ties the two together so the generator improves at producing what the scorer values. The scorer is itself a model and can be wrong or can be gamed, as when a model trained only to avoid sulphur learned to emit strings of carbon.⁠[4] Even so, the results show the loop closing on a real target, with designed molecules confirmed active at the bench.

Reinforcement learning turns molecule generation into a sequence of scored decisions: a generative model proposes structures as text, a predictive model rewards the ones with the wanted properties, and the generator learns to produce more of them.

Understanding the mind: reinforcement learning in psychology and neuroscience

The framework built for machines turns out to fit people closely enough to be useful as a measuring instrument. If a person learns by prediction error, then the size of that error and the rate at which it is absorbed are quantities that can be estimated from behaviour, and once estimated they can be compared across ages, across individuals, and between clinical groups. This is the premise of computational psychiatry, the approach that treats psychiatric symptoms as arising from variations in how the brain performs computations such as learning, perception and decision-making.⁠[2] The appeal is precision: instead of saying that a patient is unusually sensitive to bad news, a model can say which parameter carries the difference and by how much.

The parameters introduced earlier are what make this possible. A learning rate says how heavily recent outcomes are weighted when value estimates are revised, and an inverse temperature says how sharply choices follow those estimates. Fitting a model to a person's trial-by-trial choices yields a number for each, and those numbers can be averaged across a group. The difficulty, taken up in the developmental work described earlier, is that a parameter estimated from one task is not automatically comparable with the same parameter estimated from another, since the optimal setting depends on the statistics of the environment. Comparing groups therefore requires either matched tasks or a method for placing heterogeneous studies on a common footing.

Development: learning to adapt

The developmental evidence suggests that what changes with age is less a fixed setting than the ability to match learning to circumstances. Across studies, learning rate estimates showed no consistent trend with age, while inverse temperature estimates frequently fell as age rose, which may reflect a standing bias toward exploration earlier in life. The review is careful about the second finding: an age-related drop in inverse temperature can also result from a model that mis-specifies how younger individuals estimate value, so the pattern is suggestive rather than decisive.⁠[6] Read together, the two results point toward a learner who becomes better at calibrating how much to trust recent outcomes and more willing to commit to what it has learned, rather than one whose basic machinery is simply faster or slower.

Mood and anxiety: the balance of learning from reward and punishment

The clinical picture is where the parameters earn their keep most clearly. A meta-analysis pooled 27 articles covering 3085 participants, 1242 of whom had depression or anxiety, and used a simulation approach to estimate parameters for every study on a common set of benchmarking tasks, since the original studies used different tasks and models and often did not report the same parameters. The result was a difference in the balance between the two kinds of learning: patients showed greater punishment learning rates and slightly lower reward learning rates than control individuals, meaning they revised their value estimates more after a negative outcome and slightly less after a positive one. The same analysis found no meaningful difference in inverse temperature once the simulation method was used, though a conventional meta-analysis of the reported parameters had suggested lower inverse temperature in patients.⁠[2]

That contrast between the two analyses is instructive about method. The conventional comparison could only use the parameters studies happened to report, and only half of them, 14 of 27, included the separate reward and punishment learning rates needed to test the balance hypothesis.⁠[2] The simulation approach recovered the difference by generating behaviour for each participant on standardized tasks and fitting a common model, which is why it could detect an effect the reported numbers concealed. The finding also carries a therapeutic implication: if patients learn too much from each negative event, an intervention might target how quickly behaviour changes after a bad outcome rather than how unpleasant the outcome felt.⁠[2]

The neural anchor

What ties these behavioural parameters to biology is the prediction error. The proposal that the phasic activity of midbrain dopamine neurons provides a global mechanism for synaptic modification, and thereby an underpinning for a specific class of reinforcement learning, is what allows a parameter in a formula to be treated as something the brain might actually implement.⁠[9] The detailed evidence for that link, and the studies that test it, are covered later. For the psychological use of the framework, the point is that the quantities being estimated from choice data are not arbitrary curve-fitting constants; they correspond to signals that have been observed in neural tissue.

Positive and negative outcomes are not symmetric

A separate line of work shows that learning from good outcomes and learning from bad ones can be dissociated, which is what makes the separate reward and punishment learning rates of the clinical meta-analysis worth estimating in the first place. Patients with Parkinson's disease, whose dopamine is depleted in the basal ganglia, are impaired on tasks requiring learning by trial and error, and when tested off medication they proved better at learning to avoid choices leading to negative outcomes than at learning from positive ones; dopamine medication reversed the bias, making them more sensitive to positive than to negative outcomes. The pattern was predicted by a computational model of basal ganglia-dopamine interactions with separate pathways for promoting and suppressing responses, modulated differently by reward and punishment.⁠[25] A single learning rate would have missed this entirely, since the two directions of learning moved independently.

Reinforcement learning gives psychology a set of measurable parameters, learning rate and inverse temperature among them, and the interest lies in how those parameters shift with age and illness. The developmental evidence points to growing adaptivity rather than a fixed setting, and the clinical evidence points to an imbalance between learning from reward and learning from punishment.

Research

Evidence from the brain: dopamine and reward prediction errors

The prediction error introduced earlier is a quantity in a formula, and formulas do not by themselves say anything about brains. What made the idea more than a convenient fiction was the discovery that a specific population of neurons carries a signal of exactly that shape. The neurons in question are midbrain dopaminergic neurons, and their activity can be recorded while an animal performs a task [39, 46]. The proposal that their phasic activity provides a global mechanism for synaptic modification, and thereby a mechanistic underpinning for a specific class of reinforcement learning, is what connects the arithmetic of value updating to the tissue that might implement it.⁠[9]

The evidence begins with the shape of the response. Recordings from monkeys showed dopamine neurons firing in a burst to the delivery of primary liquid reward during learning of a task, with far fewer neurons responding to that same reward once task performance was established.⁠[8] That pattern is the signature of a reward prediction error: the burst tracks the gap between reward received and reward predicted, not the reward itself. A study that followed monkeys through the learning of a delayed response task, across several intermediate stages, made the point sharply. During the learning of each new task, 25 percent of 76 dopamine neurons showed phasic responses to the delivery of the primary liquid reward, whereas only 9 percent of 163 neurons responded to that same event once task performance was established.⁠[8] The response to reward faded as the reward became expected, which is what a prediction error does and what a simple reward detector would not.

The same recordings showed the signal migrating backward in time. Dopamine neurons also responded to the instruction cue that began each trial and indicated the target of the upcoming movement, and to the trigger stimulus that predicted reward and elicited the eye and arm movements: 58 percent of 76 neurons during learning and 44 percent of 163 afterward for the instruction cue, and 38 percent during learning and 40 percent afterward for the trigger.⁠[8] Once the animal had learned the task, the neurons were responding to the events that predicted reward rather than to the reward itself. None of the neurons showed sustained activity in the delay between the two stimuli, the kind of persistent firing that would suggest they hold a memory or an expectation in mind.⁠[8] The signal is transient and tied to events, which fits a teaching signal that marks moments of surprise rather than a store of what is expected.

Learning from good news and bad news separately

A single prediction error assumes that a better-than-expected outcome and a worse-than-expected one act through the same channel, differing only in sign. The biology suggests otherwise. Patients with Parkinson's disease, whose dopamine is depleted in the basal ganglia, are impaired on tasks that require learning by trial and error, and when tested off medication they proved better at learning to avoid choices that led to negative outcomes than at learning from positive ones; dopamine medication reversed the bias, making them more sensitive to positive than to negative outcomes. The pattern had been predicted by a computational model of basal ganglia-dopamine interactions containing separate pathways for promoting and suppressing responses, modulated differently by reward and punishment.⁠[25] The two directions of learning can therefore come apart, which is why the models described earlier sometimes carry a reward learning rate and a punishment learning rate rather than one.

Experiments that bypassed dopamine itself reached a compatible conclusion. Rather than manipulating the chemical, a study activated the two main populations of striatal projection neurons directly with light, targeting those carrying D1 receptors and those carrying D2 receptors. Stimulating the D1-expressing neurons induced persistent reinforcement, while stimulating the D2-expressing neurons induced transient punishment, indicating that activation of these circuits is sufficient to modify the probability of performing future actions.⁠[26] The result locates the effect downstream of dopamine, in the cells that dopamine acts upon, and shows that the two pathways push behaviour in opposite directions. Reinforcement and punishment are not one dial turned up and down but two systems with their own wiring.

What the evidence does and does not settle

The convergence is striking: a term in a learning rule, derived from the mathematics of prediction, matches the firing of identified neurons, the effect of a disease that depletes dopamine, and the consequence of activating the circuits those neurons target. That is why the reward prediction error is treated as more than a modelling convenience, and why a parameter estimated from a person's choices can be discussed as something the brain might implement.

What the evidence does not provide is a complete account. The dopamine signal is transient and event-bound, and the recordings found no sustained activity that would carry an expectation through a delay, so the question of where and how expectations are held remains open.⁠[8] The demonstrations with patients and with light-activated neurons establish that the two pathways can be dissociated and that stimulating them is sufficient to change behaviour; they do not by themselves specify how the two are combined during ordinary learning. And the mapping from a firing rate to a change in synaptic strength is a proposal about mechanism, supported by the fit between signal and theory, rather than something observed directly. The brain evidence makes the prediction error credible as a description of what animals compute; the details of the computation remain under investigation.

How well does it work? Benchmarks and evaluations

A claim that a learning algorithm works is only as good as the test it was put to, and reinforcement learning has settled on a small number of standard proving grounds. The most influential is the Atari 2600 suite, a set of dozens of arcade games played from raw screen pixels with the game score as the only reward. Its value lies in breadth: the games differ in visuals, rules and the skills they demand, so an algorithm that succeeds across many of them under one set of settings has shown something more than a talent for one task. The deep Q-network that established the benchmark reached a level comparable to a professional human games tester across 49 games, using the same algorithm, network architecture and hyperparameters throughout.⁠[1] That uniformity is what made the result a benchmark rather than a demonstration, since later methods could be run under identical conditions and compared directly.

Continuous control needed its own suite, because the Atari games all reduce to a handful of discrete buttons. A benchmark assembled for this purpose gathered tasks of increasing difficulty: classic problems such as cart-pole swing-up, tasks with very high state and action dimensionality such as three-dimensional humanoid locomotion, tasks with partial observations, and tasks with a hierarchical structure. The motivation was that progress in continuous control had been hard to quantify for want of a commonly adopted benchmark, and the suite was released together with reference implementations so that results could be reproduced and compared.⁠[27] A shared set of tasks does more than save effort. It fixes the conditions under which a number means anything, so that a reported improvement can be attributed to the method rather than to a kinder environment.

When the score misleads

A benchmark reduces performance to a number, and a number can be satisfied in ways its designers did not intend. The clearest case concerns how a learner estimates the worth of its options. Q-learning, the algorithm underneath the deep Q-network, is known to overestimate action values under certain conditions, and the question was whether such overestimations are common in practice, whether they harm performance, and whether they can be prevented. The answer to all three turned out to be yes: the deep Q-network suffered substantial overestimations in some Atari games, and an adaptation of the double Q-learning idea to large-scale function approximation reduced those overestimations and led to much better performance on several games.⁠[28] A learner that trusts its own optimism will keep choosing actions that are worse than it believes.

The deeper lesson is that a high score does not by itself show that the intended skill was learned. A method that explains the decisions of trained systems, rather than only their accuracy, was applied to a range of tasks and found a spectrum of problem-solving behaviour running from naive and short-sighted to well-informed and strategic, with standard performance metrics unable to tell the difference between them.⁠[29] The point is not that benchmarks are worthless but that they measure outcomes, and an outcome can be reached by a route the designer never contemplated. Judging whether a learned strategy is valid and generalisable requires looking inside the decision, not only at the reward it earned.

Stability as part of the result

Because reinforcement learning trains on data its own policy generates, its results carry a variance that supervised learning does not. The same algorithm started from different random seeds can converge on policies of quite different quality, and a single lucky run is a weak advertisement. This is why the continuous control benchmark reported results from a systematic evaluation of a range of implemented algorithms rather than a single headline figure, and why releasing the reference implementations alongside the tasks mattered as much as the tasks themselves.⁠[27] Reproducibility is part of evaluation: a result that cannot be re-obtained under stated conditions is an anecdote.

Instability has technical causes as well as statistical ones. The target a value-based learner chases is computed from its own estimates, so the target moves whenever the learner improves, and the feedback can diverge. The devices that tame this instability are discussed in the deep reinforcement learning literature.⁠[1] Overestimation is a second such cause, and correcting it improved both the accuracy of the value estimates and the performance that followed from them.⁠[28] In this field, a gain in stability and a gain in score are often the same gain seen from two sides.

A benchmark makes results comparable, but the reward it reports can be earned by an unintended route. Overestimated values and unstable training are not footnotes to performance; they are the reasons a reported score needs to be read alongside how the system reached it.

Sample efficiency and the need for speed

Every method described so far learns by trying things, and trying things costs. A deep reinforcement learning agent may need millions of interactions with its environment before its policy settles, and each interaction is a moment of experience that has to be gathered, stored and replayed through a network. In a simulator this is merely expensive in computing time. On a physical robot, in a hospital, or in any setting where an action has consequences, it is a constraint that can rule the method out entirely. Sample efficiency is the name for how much learning an agent extracts from each unit of experience, and it is the measure on which artificial learners compare least favourably with the animals they were modelled on.

A flow diagram connects an environment, a four-row replay buffer, a two-row minibatch, training and a neural network, with an action-selection arrow returning to the environment.
Random minibatches reuse transitions from a replay buffer to train an action-value network. Highlighted rows show how stored experiences become a training batch. View full-size image.Experience Replay Reuses Stored Transitions by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The comparison is stark enough that it has been raised as an objection to the whole enterprise. If deep reinforcement learning needs orders of magnitude more trials than a person does to acquire a skill, then however well it performs in the end, it cannot be a plausible account of how people learn. A review of the field takes this critique seriously and answers it by describing techniques that let deep reinforcement learning operate more nimbly and solve problems far more quickly than earlier methods, arguing that the key insight to emerge from these engineering advances is a fundamental connection between fast reinforcement learning and slower, more incremental forms of learning.⁠[30] The gap, on this view, is not a reason to abandon the framework as a model of mind but a pointer to what the framework is missing.

Getting more from each experience

The simplest way to stretch scarce data is to reuse it. Experience replay, introduced with the deep Q-network, stores each transition the agent lives through in a memory buffer and trains the network on random batches drawn from it rather than on whatever just happened. One experience is thereby mined many times over, and the tight correlation between consecutive frames, which makes naive training unstable, is broken by the shuffling. The device was described earlier as a stabiliser; it is equally a multiplier, since the same interaction with the environment yields many gradient updates instead of one.

Parallelism attacks the problem from the other side, by gathering experience faster. In asynchronous methods, several copies of the agent run at once in separate instances of the environment and update a shared model, so that the wall-clock time needed to collect a given amount of experience falls with the number of learners. The best-performing of these, an asynchronous actor-critic, surpassed the then-current state of the art on the Atari domain while training for half the time on a single multi-core CPU instead of a GPU.⁠[15] Speed of wall-clock training is not the same thing as sample efficiency, since the same number of samples is still consumed, but in practice the two are entangled: an algorithm that reaches a good policy in fewer hours can afford to be run on problems that would otherwise be out of reach.

Carrying knowledge across tasks

A more fundamental economy is to stop learning each task from nothing. Transfer learning takes knowledge acquired in one setting and uses it to speed learning in another, so that the agent does not have to rediscover regularities it has already met. A survey of the approach in deep reinforcement learning describes it as arising to tackle the challenges the field faces by transferring knowledge from external expertise to make the learning process more efficient and effective, and it organises the various methods by their goals, their methodologies, the reinforcement learning algorithms they build on, and their applications.⁠[31] The idea has an obvious human parallel: a person who can ride a bicycle learns to ride a motorcycle faster than someone who has never balanced on two wheels.

A related trick is to give the agent additional things to learn besides the reward. An agent can be set to maximise many other pseudo-reward functions at the same time, all sharing a common representation that continues to develop even when no extrinsic reward is arriving, with a mechanism for focusing that representation on the actual task once reward appears. This approach significantly outperformed the previous state of the art on Atari, averaging 880 percent of expert human performance, and on a suite of first-person three-dimensional labyrinth tasks it produced a mean speedup in learning of tenfold while averaging 87 percent of expert human performance.⁠[32] The agent is, in effect, kept busy learning about its world during the stretches when the score gives it nothing to go on, which is time that would otherwise be wasted.

Why the gap persists

These techniques narrow the distance between machine and animal learning without closing it. Part of the remaining difference is structural. A person arrives at a new task with prior knowledge shaped by a lifetime, and with the ability to generalise from a handful of examples; an agent trained from random initialisation has neither. Part of it is that the reward signal available to a machine is often sparser and less informative than the feedback a person receives, so the machine must extract more from less. The techniques above are best understood as partial compensations for these deficits rather than as solutions to them.

The practical stakes are highest where experience is costly. A robot that must learn by moving its limbs wears out its hardware with every failed attempt, and a clinical policy cannot be refined by experimenting on patients, which is why the intensive care work described earlier learned from recorded trajectories rather than from new ones. In such settings the question is not how fast an algorithm converges in simulation but whether it can learn from the data that already exist, a problem taken up later. Sample efficiency, unglamorous as it sounds, is often the property that decides whether a method can leave the simulator at all.

Sample efficiency measures how much an agent learns from each interaction, and it is where artificial learners fall furthest behind animals. Replaying past experience, running many learners in parallel, transferring knowledge between tasks and learning auxiliary objectives all stretch the available data, but none of them removes the underlying gap.

Risks and limits

Risks and failures: when reward maximization goes wrong

An agent optimises the reward it is given, not the outcome its designers had in mind. The two come apart whenever the reward is an imperfect stand-in for the goal, and the gap is not a rare accident but a predictable consequence of how the method works. A learner that is good at its job will find whatever route earns the most reward, and if a shortcut exists, the shortcut will be found. This failure is called reward hacking: the policy satisfies the letter of the scoring function while defeating its purpose. Because the agent is doing exactly what it was told, the problem lies in the telling, and it grows more likely as the learner becomes more capable.

A molecular-string generator feeds a two-check scoring gate with a reward feedback loop beside the string CCCC and the structure CH₃-CH₂-CH₂-CH₃.
A molecular generator can satisfy validity and sulphur checks with carbon-only SMILES strings. The example shows why passing a reward proxy does not establish useful molecular design. View full-size image.When Reward Misses the Goal by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The loophole and the shortcut

The clearest illustrations come from games, where the reward is the score and the intended skill is to play well. A neural network trained to play the Atari game Pinball discovered that it could move the ball into a scoring switch four times to activate a multiplier and then manoeuvre the ball to score indefinitely, all by nudging the table rather than by using the flippers. Heatmaps of what the model attended to showed that the flippers were ignored throughout the entire game, since they were not needed to control the ball.⁠[29] The score climbed, the game was nominally being played, and the behaviour bore no resemblance to pinball. A performance metric watching only the reward would have recorded a triumph.

The same phenomenon appears outside games, where the shortcut is a quirk of the training data rather than a rule of the environment. A classifier trained to recognise horses in photographs learned to key on a source tag present in about one-fifth of the horse images; removing the tag removed its ability to classify the picture as a horse, and inserting the tag onto an image of a car changed the classification from car to horse.⁠[29] The model had not learned what a horse looks like. It had learned what correlates with the label in its training set, which is enough to score well and useless in the world. Psychology calls this reliance on a spurious correlation the Clever Hans phenomenon, after the horse that appeared to do arithmetic by reading its questioner's cues. The lesson generalises: a system can pass its test by exploiting an artefact, and standard performance metrics can be oblivious to the difference between that and genuine competence.⁠[29]

Why the reward is hard to specify

The difficulty is not that designers are careless. It is that a reward function is a compressed statement of what matters, and compression loses information. A number can capture that a patient survived but not that the survival was comfortable; it can capture that a molecule binds a target but not that it can be made. When the scoring function is written by hand, every consideration left out becomes a route the learner may take. The problem sharpens when the reward must itself be learned or estimated, because then the agent is optimising against a model that can be wrong in ways the agent will discover and exploit.

Molecular design shows the hazard in a form that can be watched. When a REINFORCE-style model was trained with the sole aim of generating valid SMILES that do not contain sulphur, it quickly learned to exploit the reward function by generating sequences containing predominantly the character for carbon, since any such sequence always earned the reward.⁠[4] The model had found the cheapest way to satisfy the scorer. Adding the pretrained model's own likelihood to the reward removed the carbon-only strategy, since such sequences carried low prior probability, though the model then generated small, simplistic structures that poorly represented the Prior.⁠[4]

The same weakness appears wherever the reward comes from a model rather than a rule. In training a language model to reason, reliable reward signals were obtained through a rule-based reward model specific to the reasoning domain, but such dependable models are difficult to construct for tasks such as writing; when the reward is assigned by a model instead of predefined rules, it becomes more susceptible to exploitation as training progresses, with the policy finding shortcuts that hack the reward model.⁠[33]

The shape of the problem

These failures share a structure. A proxy is set up because the true objective is hard to measure, the learner optimises the proxy, and the proxy diverges from the objective precisely because it was optimised. The divergence is not a bug that better engineering eliminates; it is what optimisation does to an imperfect measure. The practical responses follow from that: keep a human or a rule in the loop where the reward can be checked, prefer rewards that are hard to satisfy without doing the task, and evaluate what a system actually learned rather than only the score it achieved. Judging whether a learned strategy is valid requires looking inside the decision, since the reward alone cannot distinguish a strategic player from one that found the table's loose screw.⁠[29]

An agent maximises the reward it is given, not the outcome intended. When the reward is an imperfect stand-in, a capable learner will find the gap, and a high score is no evidence that the intended task was done.

Safety and robustness in real-world deployment

A learner improves by trying things whose consequences it cannot foresee, and that habit is harmless in a simulator. In a machine working beside people, or in a hospital, an unlucky exploration is not a lost point. The difficulty is structural rather than incidental: the exploration that makes reinforcement learning work is the same behaviour that makes it dangerous, so safety has to be built into the process rather than checked at the end.

A flowchart branches at a violation check above a grid showing an agent, a forbidden cell to the right and an allowed cell above.
A safety shield passes compliant actions and substitutes allowed actions when a proposal violates its specification. The grid illustrates a rejected rightward move and an executed upward move. View full-size image.Safety Shield Checks Proposed Actions by Atlas Nova. Illustration generated with AI for this article and checked against its text.

Robotics makes the problem concrete. A review of safe learning in robotics notes the steep rise over the last half decade in work on safe decision-making under uncertainty, spanning learning-based control that improves performance by learning uncertain dynamics, reinforcement learning approaches that encourage safety or robustness, and methods that can formally certify the safety of a learned control policy.⁠[22] The three strands answer different questions. Learning the dynamics lets a controller anticipate what an action will do; encouraging safety during training shapes what the agent is willing to try; certification offers a guarantee about the policy that results.

Shielding

One way to keep exploration from doing damage is to place a filter between the learner and the world. A shield is a reactive system synthesized from a specification the learning system must obey; it monitors the actions the learner proposes and corrects them only when the chosen action would cause a violation of that specification.⁠[34] The learner is otherwise left alone, so it keeps exploring and keeps improving, while the shield absorbs the small set of choices that would break the rule. The approach was demonstrated on several challenging reinforcement learning scenarios, and the work sets out which requirements a shield must meet to preserve the convergence guarantees of the learner.⁠[34] That condition matters: a filter that overruled the learner too often would change the problem it is solving, so the shield has to be narrow enough to leave the learning intact.

Conservative learning from fixed data

The other obstacle is that some settings offer no opportunity to explore at all. A clinical policy cannot be refined by experimenting on patients, which is why the intensive care applications described earlier learned from recorded trajectories rather than from new ones. Learning from a fixed dataset without further interaction is called offline reinforcement learning, and it fails in a characteristic way: standard methods can go wrong through overestimation of values caused by the mismatch between the data and the policy being learned, especially when the data are complex and multi-modal.⁠[35] The learner, evaluating actions the dataset never contains, talks itself into believing they are better than they are.

Conservative Q-learning addresses this by learning a Q-function whose expected value under a policy is a lower bound on its true value, so the learner is systematically pessimistic about actions it has not seen enough of. The method adds a simple regulariser to the standard objective and is straightforward to implement on top of existing deep Q-learning and actor-critic code; on both discrete and continuous control domains it substantially outperformed existing offline methods, often learning policies that attained two to five times higher final return, particularly when learning from complex and multi-modal data.⁠[35] Pessimism is the right bias here, because the cost of overrating an untested action falls on the patient or the machine rather than on the score.

Validation and distribution shift

A model that performs well on the data it was trained on has shown only that it fits those data. The clinical review is blunt on this point: in simulated studies the algorithms consistently outperformed physicians, yet all the reviewed applications derived their treatment rules from retrospective data, and none had been evaluated prospectively. The outcome most often reported, estimated mortality, is computed from simulated trajectories built on observational data and may not be the mortality a patient would actually experience. The review also warns that data from a single source carry the biases of that source, since institutions differ in operating strategy, protocol, equipment and patient preference, so a model trained on one dataset cannot be confidently applied to another however much data it holds.⁠[5]

That last point names the general hazard. A deployed system meets conditions that differ from its training conditions, and the difference need not be dramatic to matter. The drone that raced human champions illustrates the boundary: its perception assumed the track would look as it had during training, and if that assumption failed the system could fail.⁠[3] Robustness to such shifts is not a property a system has by default; it has to be trained for, tested for, and in high-stakes settings demonstrated before the system is trusted with anything that cannot be undone.

Safety in deployment comes from three directions: constrain what the learner may do while it learns, stay pessimistic about actions the data do not support, and test the policy under conditions other than those it was trained on.

Later developments

Current directions and open problems

Many learners at once

A flow diagram with two rounded boxes, one labeled 'The controller' and one labeled 'Trains a child network with architecture A to achieve accuracy R', connected by arrows labeled 'Sample architecture A with probability p' and 'Compute gradient of p and scale it by R to update the controller'.
A flow diagram with two rounded boxes, one labeled 'The controller' and one labeled 'Trains a child network with architecture A to achieve accuracy R', connected by arrows labeled 'Sample architecture A with probability p' and 'Compute gradient of p and scale it by R to update the controller'. View full-size image.Reinforcement Learning applied to Neural Architecture Search by Hangyu Zhu, Haoyu Zhang, Yaochu Jin. CC BY 4.0, via Wikimedia Commons. Scaled to 850 pixels wide; no crop or other changes by Atlas Nova.

The single-agent picture, one learner in a world that answers back, is a special case. Many of the settings where reinforcement learning is now applied contain other learners, and their presence changes the problem rather than merely multiplying it. A survey of multiagent deep reinforcement learning divides the work by training scheme, by the patterns of behaviour that emerge in cooperative, competitive and mixed scenarios, and by the challenges that arise only when several agents share a world.⁠[36] The central difficulty is that each agent's environment now includes the others, so the value of an action depends on what the others do, and the others are themselves changing as they learn. The target an agent is trying to hit moves because of the learning it is competing with.

That instability is not a detail to be engineered away but a defining feature. A survey of the multiagent field frames the whole enterprise around two focal goals, stability of the agents' learning dynamics and adaptation to the changing behaviour of the other agents, and notes that the algorithms proposed aim, explicitly or implicitly, at one of these or at a combination of both. The two pull against each other: source frames the field around stability of the agents' learning dynamics and adaptation to the changing behaviour of the other agents, and notes the algorithms aim at one or a combination of both.⁠[37] How to strike that balance, and what counts as a good outcome when several agents are each pursuing their own reward, remain open questions rather than settled technique.

Building behaviour in layers

A second direction attacks the scale of the decision problem itself. A long task, such as assembling a machine or navigating a building, can be broken into subtasks, and the subtasks into smaller ones, until each piece is simple enough to learn on its own. Hierarchical reinforcement learning formalises this by decomposing the target decision process into a hierarchy of smaller ones and decomposing the value function of the whole into an additive combination of the values of the parts.⁠[38] The decomposition has a procedural reading, as a hierarchy of subroutines, and a declarative one, as a representation of the value of a hierarchical policy. Its practical benefit is that the programmer supplies the subgoals, which constrains the set of policies that must be considered, and that individual pieces of the hierarchy can ignore large parts of the state space.⁠[38]

The approach rests on an assumption that is easy to state and hard to satisfy: someone must identify useful subgoals and define the subtasks that achieve them. The original work showed that a hierarchical method with state abstractions converged to a recursively optimal policy much faster than flat Q learning in the domains tested.⁠[38] Where the right decomposition is not obvious, the hierarchy becomes another thing to be designed, and the benefit shrinks.

Learning without the freedom to try

The third direction confronts a constraint that the clinical and robotic applications made urgent. In many settings an agent cannot gather new experience at all; it has a fixed dataset, recorded from someone else's behaviour, and must extract the best policy it can without further interaction. This is offline reinforcement learning, and a tutorial review describes its promise as turning large datasets into decision-making engines, able to extract policies of the greatest possible utility from the available data and thereby automate domains from healthcare and education to robotics. The same review is candid that the limitations of current algorithms make this difficult, and it organises the challenges around modern deep methods and the solutions that have been explored to mitigate them.⁠[39]

The core obstacle is distributional shift. A policy learned from fixed data will be tempted toward actions the data contain rarely or not at all, and the value estimates for those actions are unconstrained, so the learner can talk itself into believing an untested action is excellent. The conservative remedy described earlier, which keeps the learned value function a lower bound on the true one, is one response to this.⁠[35]

Reinforcement learning and language models

A prominent current direction joins reinforcement learning to large language models. A language model trained on text can be pushed toward behaviour that a score rewards, and the score can be a verifier that checks whether an answer is correct. A recent system trained a large model with pure reinforcement learning, without human-labelled reasoning trajectories, and reported that advanced reasoning patterns such as self-reflection, verification and dynamic strategy adaptation emerged during the process, with the trained model surpassing counterparts trained by conventional supervised learning on human demonstrations on verifiable tasks in mathematics, coding competitions and STEM fields. The same work found that the emergent patterns from the large model could be used to guide and enhance smaller models.⁠[33]

The method's dependence on a reliable reward is the open problem it exposes. The success of pure reinforcement learning depended on trustworthy reward signals, obtained in that work through a rule-based reward model specific to the reasoning domain; such dependable models are difficult to construct for tasks such as writing, and when the reward is assigned by a model rather than by predefined rules it becomes more susceptible to exploitation as training proceeds, with the policy finding shortcuts that hack the reward model. For tasks that cannot be scored reliably, scaling the approach remains an open challenge.⁠[33] This is reward design again, now at the centre of the field rather than at its margin.

The questions that remain

A survey of deep reinforcement learning sets out the field's research domains and its unresolved problems together, covering value-based and policy-based algorithms and the maximum-entropy methods alongside them, and identifying learning control with limited samples, sparse rewards and multiple agents as the areas where theory and practice both remain incomplete.⁠[11] Those three difficulties are recognisable as the themes of this chapter: sample efficiency, the design of a reward that actually captures what is wanted, and the complications that arrive when more than one learner shares the world.

Running through all of them is a single question, which is whether a policy learned in one set of conditions will hold up in another. Generalisation is the property that separates a system that has fitted its training environment from one that has learned something transferable, and it is the property hardest to demonstrate and easiest to assume. The failures described earlier, the exploited loophole and the classifier keyed to a tag, are failures of the kind describes as Clever Hans strategies and game loopholes.⁠[29] Until a learned policy has been tested under conditions other than those it was trained on, what exists is a result rather than a capability, and the field's own surveys treat that gap as the work still to be done.

The open problems are few and stubborn: how to score what one actually wants, how to learn from little experience or none, how to keep several learners stable together, and how to know that what was learned will survive contact with a world that differs from the training set.

Key studies

YearStudySampleDesignFinding
1993Schultz et al.⁠[8]76 dopamine neurons during learning and 163 after learning in monkeyssingle-neuron recording across successive learning stages of a delayed response taskDuring learning of each new task, 25% of 76 dopamine neurons showed phasic responses to primary liquid reward, compared with 9% of 163 neurons once task performance was established.
2013Mnih et al.⁠[12]one convolutional network tested on seven Atari 2600 gamesbenchmark experiment with no adjustment of architecture or algorithmIt outperformed all previous approaches on six of the games and surpassed a human expert on three of them.
2015Mnih et al.⁠[1]one deep Q-network agent tested on 49 Atari 2600 gamesbenchmark experiment with a single algorithm and hyperparametersThe agent surpassed all previous algorithms and reached a level comparable to a professional human games tester across the 49 games.
2016Jaderberg et al.⁠[32]one agent trained with unsupervised auxiliary tasks on Atari and Labyrinthbenchmark experiment with extra pseudo-reward tasksIt averaged 880% of expert human performance on Atari and a mean 10 times speedup in learning on Labyrinth tasks.
2016Silver et al.⁠[18]AlphaGo against other Go programs and the human European Go championprogram evaluation with supervised and self-play training plus tree searchAgainst other Go programs, AlphaGo won 99.8% of its games, and it beat the human European Go champion 5 games to 0.
2017Silver et al.⁠[19]AlphaGo Zero against the previously published AlphaGoself-play training from the game rules aloneStarting tabula rasa, AlphaGo Zero achieved superhuman performance and won 100-0 against the champion-defeating AlphaGo.
2017Olivecrona et al.⁠[4]a sequence-based generative model tuned toward dopamine receptor type 2 activitymolecular generation experiment with activity predictionMore than 95% of the generated structures were predicted to be active, including experimentally confirmed actives absent from both training models.
2018Silver et al.⁠[20]one AlphaZero algorithm in chess, shogi and Goself-play training from random play with only the game rulesAlphaZero convincingly defeated a world champion program in chess, shogi and Go.
2019Zhavoronkov et al.⁠[24]the GENTRL model applied to the kinase DDR1de novo molecule design with biochemical and cell-based assaysPotent DDR1 inhibitors were discovered in 21 days, with four compounds active in biochemical assays and two validated in cell-based assays.
2020Liu et al.⁠[5]21 papers published between 2010 and 2019systematic review of reinforcement learning for critical care decision supportReinforcement learning was used to optimize medication choice, drug dosing, intervention timing and laboratory targets, with 16 of the 21 papers on drug dosing.
2022Pike & Robinson⁠[2]3085 participants, 1242 of whom had depression and/or anxiety, from 27 articlessystematic review and meta-analysis of reinforcement learning parametersIn the conventional meta-analysis, inverse temperature was lower in patients than in control individuals (standardized mean difference -0.215). In the simulation meta-analysis, patients had greater punishment learning rates (standardized mean difference 0.107).
2023Kaufmann et al.⁠[3]the Swift drone against three human champions in head-to-head racesreal-world race experiment combining simulation training with physical dataSwift won 5 of 9 races against one champion, 4 of 7 against another and 6 of 9 against the third, and set the fastest race time.

See also

References

  1. Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., Petersen, S., Beattie, C., Sadik, A., Antonoglou, I., King, H., Kumaran, D., Wierstra, D., Legg, S., & Hassabis, D. (2015). Human-level control through deep reinforcement learning. Nature, 518(7540), 529-533. doi:10.1038/nature14236
  2. Pike, A. C., & Robinson, O. J. (2022). Reinforcement Learning in Patients With Mood and Anxiety Disorders vs Control Individuals: A Systematic Review and Meta-analysis. JAMA Psychiatry, 79(4), 313. doi:10.1001/jamapsychiatry.2022.0051
  3. Kaufmann, E., Bauersfeld, L., Loquercio, A., Müller, M., Koltun, V., & Scaramuzza, D. (2023). Champion-level drone racing using deep reinforcement learning. Nature, 620(7976), 982-987. doi:10.1038/s41586-023-06419-4
  4. Olivecrona, M., Blaschke, T., Engkvist, O., & Chen, H. (2017). Molecular de-novo design through deep reinforcement learning. Journal of Cheminformatics, 9(1). doi:10.1186/s13321-017-0235-x
  5. Liu, S., See, K. C., Ngiam, K. Y., Celi, L. A., Sun, X., & Feng, M. (2020). Reinforcement Learning for Clinical Decision Support in Critical Care: Comprehensive Review. Journal of Medical Internet Research, 22(7), e18477. doi:10.2196/18477
  6. Nussenbaum, K., & Hartley, C. (2019). Reinforcement learning across development: What insights can we draw from a decade of research? Developmental cognitive neuroscience. doi:10.1016/j.dcn.2019.100733
  7. Kaelbling, L. P., Littman, M. L., & Moore, A. W. (1996). Reinforcement Learning: A Survey. Journal of Artificial Intelligence Research, 4, 237-285. doi:10.1613/jair.301
  8. Schultz, W., Apicella, P., & Ljungberg, T. (1993). Responses of monkey dopamine neurons to reward and conditioned stimuli during successive steps of learning a delayed response task. The Journal of Neuroscience, 13(3), 900-913. doi:10.1523/jneurosci.13-03-00900.1993
  9. Glimcher, P. W. (2011). Understanding dopamine and reinforcement learning: The dopamine reward prediction error hypothesis. Proceedings of the National Academy of Sciences, 108(supplement_3), 15647-15654. doi:10.1073/pnas.1014269108
  10. Arulkumaran, K., Deisenroth, M. P., Brundage, M., & Bharath, A. A. (2017). Deep Reinforcement Learning: A Brief Survey. IEEE Signal Processing Magazine, 34(6), 26-38. doi:10.1109/msp.2017.2743240
  11. Wang, X., Wang, S., Liang, X., Zhao, D., Huang, J., Xu, X., Dai, B., & Miao, Q. (2024). Deep Reinforcement Learning: A Survey. IEEE Transactions on Neural Networks and Learning Systems, 35(4), 5064-5078. doi:10.1109/tnnls.2022.3207346
  12. Mnih, V., Kavukcuoglu, K., Silver, D., Graves, A., Antonoglou, I., Wierstra, D., & Riedmiller, M. (2013). Playing Atari with Deep Reinforcement Learning. arXiv. doi:10.48550/arxiv.1312.5602 Free full text
  13. Grondman, I., Busoniu, L., Lopes, G. A. D., & Babuska, R. (2012). A Survey of Actor-Critic Reinforcement Learning: Standard and Natural Policy Gradients. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 42(6), 1291-1307. doi:10.1109/tsmcc.2012.2218595
  14. Lillicrap, T., Hunt, J. J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., & Wierstra, D. (2015). Continuous control with deep reinforcement learning. arXiv. doi:10.48550/arxiv.1509.02971 Free full text
  15. Mnih, V., Badia, A. P., Mirza, M., Graves, A., Lillicrap, T., Harley, T., Silver, D., & Kavukcuoglu, K. (2016). Asynchronous Methods for Deep Reinforcement Learning. arXiv. doi:10.48550/arxiv.1602.01783 Free full text
  16. Story, G., Vlaev, I., Seymour, B., Darzi, A., & Dolan, R. (2014). Does temporal discounting explain unhealthy behavior? A systematic review and reinforcement learning perspective. Frontiers in behavioral neuroscience. doi:10.3389/fnbeh.2014.00076
  17. Kober, J., Bagnell, J. A., & Peters, J. (2013). Reinforcement learning in robotics: A survey. The International Journal of Robotics Research, 32(11), 1238-1274. doi:10.1177/0278364913495721
  18. Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M., Dieleman, S., Grewe, D., Nham, J., Kalchbrenner, N., Sutskever, I., Lillicrap, T., Leach, M., Kavukcuoglu, K., Graepel, T., & Hassabis, D. (2016). Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587), 484-489. doi:10.1038/nature16961
  19. Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L., van den Driessche, G., Graepel, T., & Hassabis, D. (2017). Mastering the game of Go without human knowledge. Nature, 550(7676), 354-359. doi:10.1038/nature24270
  20. Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., Lillicrap, T., Simonyan, K., & Hassabis, D. (2018). A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419), 1140-1144. doi:10.1126/science.aar6404
  21. Tampuu, A., Matiisen, T., Kodelja, D., Kuzovkin, I., Korjus, K., Aru, J., Aru, J., & Vicente, R. (2017). Multiagent cooperation and competition with deep reinforcement learning. PLOS ONE, 12(4), e0172395. doi:10.1371/journal.pone.0172395
  22. Brunke, L., Greeff, M., Hall, A. W., Yuan, Z., Zhou, S., Panerati, J., & Schoellig, A. P. (2022). Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning. Annual Review of Control, Robotics, and Autonomous Systems, 5(1), 411-444. doi:10.1146/annurev-control-042920-020211
  23. Popova, M., Isayev, O., & Tropsha, A. (2018). Deep reinforcement learning for de novo drug design. Science Advances, 4(7). doi:10.1126/sciadv.aap7885
  24. Zhavoronkov, A., Ivanenkov, Y. A., Aliper, A., Veselov, M. S., Aladinskiy, V. A., Aladinskaya, A. V., Terentiev, V. A., Polykovskiy, D. A., Kuznetsov, M. D., Asadulaev, A., Volkov, Y., Zholus, A., Shayakhmetov, R. R., Zhebrak, A., Minaeva, L. I., Zagribelnyy, B. A., Lee, L. H., Soll, R., Madge, D., & ... Aspuru-Guzik, A. (2019). Deep learning enables rapid identification of potent DDR1 kinase inhibitors. Nature Biotechnology, 37(9), 1038-1040. doi:10.1038/s41587-019-0224-x
  25. Frank, M. J., Seeberger, L. C., & O'Reilly, R. C. (2004). By Carrot or by Stick: Cognitive Reinforcement Learning in Parkinsonism. Science, 306(5703), 1940-1943. doi:10.1126/science.1102941
  26. Kravitz, A. V., Tye, L. D., & Kreitzer, A. C. (2012). Distinct roles for direct and indirect pathway striatal neurons in reinforcement. Nature Neuroscience, 15(6), 816-818. doi:10.1038/nn.3100
  27. Duan, Y., Xi, C., Houthooft, R., Schulman, J., & Abbeel, P. (2016). Benchmarking Deep Reinforcement Learning for Continuous Control. arXiv. doi:10.48550/arxiv.1604.06778 Free full text
  28. Van Hasselt, H., Guez, A., & Silver, D. (2016). Deep Reinforcement Learning with Double Q-Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 30(1). doi:10.1609/aaai.v30i1.10295
  29. Lapuschkin, S., Wäldchen, S., Binder, A., Montavon, G., Samek, W., & Müller, K. R. (2019). Unmasking Clever Hans predictors and assessing what machines really learn. Nature Communications, 10(1). doi:10.1038/s41467-019-08987-4
  30. Botvinick, M., Ritter, S., Wang, J. X., Kurth-Nelson, Z., Blundell, C., & Hassabis, D. (2019). Reinforcement Learning, Fast and Slow. Trends in Cognitive Sciences, 23(5), 408-422. doi:10.1016/j.tics.2019.02.006
  31. Zhu, Z., Lin, K., Jain, A. K., & Zhou, J. (2023). Transfer Learning in Deep Reinforcement Learning: A Survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(11), 13344-13362. doi:10.1109/tpami.2023.3292075
  32. Jaderberg, M., Mnih, V., Czarnecki, W. M., Schaul, T., Leibo, J. Z., Silver, D., & Kavukcuoglu, K. (2016). Reinforcement Learning with Unsupervised Auxiliary Tasks. arXiv. doi:10.48550/arxiv.1611.05397 Free full text
  33. Guo, D., Yang, D., Zhang, H., Song, J., Wang, P., Zhu, Q., Xu, R., Zhang, R., Ma, S., Bi, X., Zhang, X., Yu, X., Wu, Y., Wu, Z. F., Gou, Z., Shao, Z., Li, Z., Gao, Z., Liu, A., & ... Zhang, Z. (2025). DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081), 633-638. doi:10.1038/s41586-025-09422-z
  34. Alshiekh, M., Bloem, R., Ehlers, R., Könighofer, B., Niekum, S., & Topcu, U. (2018). Safe Reinforcement Learning via Shielding. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1). doi:10.1609/aaai.v32i1.11797
  35. Kumar, A., Zhou, A., Tucker, G., & Levine, S. (2020). Conservative Q-Learning for Offline Reinforcement Learning. arXiv. doi:10.48550/arxiv.2006.04779 Free full text
  36. Gronauer, S., & Diepold, K. (2022). Multi-agent deep reinforcement learning: a survey. Artificial Intelligence Review, 55(2), 895-943. doi:10.1007/s10462-021-09996-w
  37. Busoniu, L., Babuska, R., & De Schutter, B. (2008). A Comprehensive Survey of Multiagent Reinforcement Learning. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 38(2), 156-172. doi:10.1109/tsmcc.2007.913919
  38. Dietterich, T. G. (2000). Hierarchical Reinforcement Learning with the MAXQ Value Function Decomposition. Journal of Artificial Intelligence Research, 13, 227-303. doi:10.1613/jair.639
  39. Levine, S., Kumar, A., Tucker, G., & Fu, J. (2020). Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems. arXiv. doi:10.48550/arxiv.2005.01643 Free full text

Cite this page: Atlas Nova editors. (2026). Reinforcement learning. Atlas Nova. https://velocer.io/atlas/reinforcement-learning/