# US 10,956,820 B2 · Reinforcement learning with auxiliary tasks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,820 B2
- Document ID: US10956820B2
- Status: Granted
- Kind: B2
- Application number: 16/403,385
- Filed: 2019-05-03
- Published: 2019-08-22
- Granted: 2021-03-23
- Earliest claimed: 2016-11-04
- Assignees: DeepMind Technologies Limited
- Applicants: DeepMind Technologies Limited
- Inventors: Volodymyr Mnih; Wojciech Czarnecki; Maxwell Elliot Jaderberg; Tom Schaul; David Silver; Koray Kavukcuoglu
- Web page: https://patentgrep.com/patent/US10956820B2

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/092: Reinforcement learning
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for training a reinforcement learning system. The method includes: training an action selection policy neural network, and during the training of the action selection neural network, training one or more auxiliary control neural networks and a reward prediction neural network. Each of the auxiliary control neural networks is configured to receive a respective intermediate output generated by the action selection policy neural network and generate a policy output for a corresponding auxiliary control task. The reward prediction neural network is configured to receive one or more intermediate outputs generated by the action selection policy neural network and generate a corresponding predicted reward. Training each of the auxiliary control neural networks and the reward prediction neural network comprises adjusting values of the respective auxiliary control parameters, reward prediction parameters, and the action selection policy network parameters.

## Claims

### Claim 1

A computer-implemented method comprising:
training an action selection policy neural network using a first reinforcement learning technique,
wherein the action selection policy neural network has a plurality of action selection policy network parameters and is used in selecting actions to be performed by an agent interacting with an environment,
wherein the action selection policy neural network is configured to receive an input comprising an observation input and to process the input in accordance with the network parameters to generate an action selection policy output, and
wherein training the action selection policy neural network comprises:
receiving main task rewards; and
training the action selection policy neural network to maximize an expected long-term time-discounted main task reward using the first reinforcement learning technique;
during the training of the action selection policy neural network using the first reinforcement learning technique:
training each of one or more auxiliary control neural networks on interactions of the agent with the environment during the training of the action selection policy neural network,
wherein each of the auxiliary control neural networks has respective auxiliary control parameters and corresponds to a respective auxiliary control task and is configured to:
receive a respective intermediate output generated by the action selection policy neural network, and
generate a policy output for the corresponding auxiliary control task in accordance with the respective auxiliary control parameters of the auxiliary control neural network; and
wherein training each auxiliary control neural network comprises:
receiving auxiliary task rewards that are specific to the corresponding auxiliary control task in response to the interactions of the agent with the environment; and
training the auxiliary control neural network to maximize an expected long-term time-discounted auxiliary task reward for the corresponding auxiliary control task using a respective second reinforcement learning technique, comprising:
determining gradients based on policy outputs generated by the auxiliary control neural network, comprising backpropagating gradients computed using the respective second reinforcement learning technique from the auxiliary control neural network into the action selection policy neural network; and
adjusting values of the respective auxiliary control parameters and the action selection policy network parameters using the gradients.

### Claim 2 (depends on 1)

The method of claim 1, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a pixel control neural network that corresponds to a pixel control task that attempts to maximize, for each of one or more regions of each observation image, a change in the pixels in the region, and
wherein, for each observation image, the respective reward for each of the one or more regions is derived from a change in the pixels in the region from the observation image to a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 3 (depends on 2)

The method of claim 2, wherein the pixel control neural network is configured to, for a received observation image:
receive the respective intermediate output for the pixel control neural network; and
process the respective intermediate output to generate, for each of the one or more regions and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the pixels in the region if the agent performs the possible action in response to the received observation image.

### Claim 4 (depends on 2)

The method of claim 2, wherein the pixel control neural network is a deconvolutional neural network.

### Claim 5 (depends on 1)

The method of claim 1, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a feature control neural network that corresponds to a feature control task that attempts to maximize activations generated by one or more units in a particular hidden layer of the action selection policy neural network, and
wherein, for each observation image, the respective reward for each of the one or more units is derived from a change in the activations of the unit from activations generated during processing the observation image to activations generated during processing of a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 6 (depends on 5)

The method of claim 5, wherein the feature control neural network is configured to, for a received observation image:
receive the respective intermediate output for the feature control neural network; and
process the respective intermediate output to generate, for each of the one or more units and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the activations generated by the unit if the agent performs the possible action in response to the received observation image.

### Claim 7 (depends on 1)

The method of claim 1, further comprising, during the training of the action selection policy neural network using the first reinforcement learning technique:
training a reward prediction neural network on interactions of the agent with the environment during the training of the action selection policy neural network,
wherein the reward prediction neural network has reward prediction parameters and is configured to:
receive one or more intermediate outputs generated by the action selection policy neural network that characterize a sequence of observation images received as a result of the interactions of the agent with the environment, and
process the one or more intermediate outputs in accordance with the reward prediction parameters to generate a predicted reward that is an estimate of a reward that will be received with a next observation image that follows a last observation image in the sequence; and
wherein training the reward prediction neural network comprises:
determining gradients based on predicted rewards generated by the reward prediction neural network; and
adjusting values of the reward prediction parameters and the action selection policy network parameters using the gradients.

### Claim 8

A system comprising:
one or more computers; and
one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:
training an action selection policy neural network using a first reinforcement learning technique,
wherein the action selection policy neural network has a plurality of action selection policy network parameters and is used in selecting actions to be performed by an agent interacting with an environment,
wherein the action selection policy neural network is configured to receive an input comprising an observation input and to process the input in accordance with the network parameters to generate an action selection policy output, and
wherein training the action selection policy neural network comprises:
receiving main task rewards; and
training the action selection policy neural network to maximize an expected long-term time-discounted main task reward using the first reinforcement learning technique;
during the training of the action selection policy neural network using the first reinforcement learning technique:
training each of one or more auxiliary control neural networks on interactions of the agent with the environment during the training of the action selection policy neural network,
wherein each of the auxiliary control neural networks has respective auxiliary control parameters and corresponds to a respective auxiliary control task and is configured to:
receive a respective intermediate output generated by the action selection policy neural network, and
generate a policy output for the corresponding auxiliary control task in accordance with the respective auxiliary control parameters of the auxiliary control neural network; and
wherein training each auxiliary control neural network comprises:
receiving auxiliary task rewards that are specific to the corresponding auxiliary control task in response to the interactions of the agent with the environment; and
training the auxiliary control neural network to maximize an expected long-term time-discounted auxiliary task reward for the corresponding auxiliary control task using a respective second reinforcement learning technique, comprising:
determining gradients based on policy outputs generated by the auxiliary control neural network, comprising backpropagating gradients computed using the respective second reinforcement learning technique from the auxiliary control neural network into the action selection policy neural network; and
adjusting values of the respective auxiliary control parameters and the action selection policy network parameters using the gradients.

### Claim 9 (depends on 8)

The system of claim 8, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a pixel control neural network that corresponds to a pixel control task that attempts to maximize, for each of one or more regions of each observation image, a change in the pixels in the region, and
wherein, for each observation image, the respective reward for each of the one or more regions is derived from a change in the pixels in the region from the observation image to a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 10 (depends on 9)

The system of claim 9, wherein the pixel control neural network is configured to, for a received observation image:
receive the respective intermediate output for the pixel control neural network; and
process the respective intermediate output to generate, for each of the one or more regions and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the pixels in the region if the agent performs the possible action in response to the received observation image.

### Claim 11 (depends on 9)

The system of claim 9, wherein the pixel control neural network is a deconvolutional neural network.

### Claim 12 (depends on 8)

The system of claim 8, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a feature control neural network that corresponds to a feature control task that attempts to maximize activations generated by one or more units in a particular hidden layer of the action selection policy neural network, and
wherein, for each observation image, the respective reward for each of the one or more units is derived from a change in the activations of the unit from activations generated during processing the observation image to activations generated during processing of a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 13 (depends on 12)

The system of claim 12, wherein the feature control neural network is configured to, for a received observation image:
receive the respective intermediate output for the feature control neural network; and
process the respective intermediate output to generate, for each of the one or more units and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the activations generated by the unit if the agent performs the possible action in response to the received observation image.

### Claim 14 (depends on 8)

The system of claim 8, wherein the operations further comprise, during the training of the action selection policy neural network using the first reinforcement learning technique:
training a reward prediction neural network on interactions of the agent with the environment during the training of the action selection policy neural network,
wherein the reward prediction neural network has reward prediction parameters and is configured to:
receive one or more intermediate outputs generated by the action selection policy neural network that characterize a sequence of observation images received as a result of the interactions of the agent with the environment, and
process the one or more intermediate outputs in accordance with the reward prediction parameters to generate a predicted reward that is an estimate of a reward that will be received with a next observation image that follows a last observation image in the sequence; and
wherein training the reward prediction neural network comprises:
determining gradients based on predicted rewards generated by the reward prediction neural network; and
adjusting values of the reward prediction parameters and the action selection policy network parameters using the gradients.

### Claim 15

One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
training an action selection policy neural network using a first reinforcement learning technique,
wherein the action selection policy neural network has a plurality of action selection policy network parameters and is used in selecting actions to be performed by an agent interacting with an environment,
wherein the action selection policy neural network is configured to receive an input comprising an observation input and to process the input in accordance with the network parameters to generate an action selection policy output, and
wherein training the action selection policy neural network comprises:
receiving main task rewards; and
training the action selection policy neural network to maximize an expected long-term time-discounted main task reward using the first reinforcement learning technique;
during the training of the action selection policy neural network using the first reinforcement learning technique:
training each of one or more auxiliary control neural networks on interactions of the agent with the environment during the training of the action selection policy neural network,
wherein each of the auxiliary control neural networks has respective auxiliary control parameters and corresponds to a respective auxiliary control task and is configured to:
receive a respective intermediate output generated by the action selection policy neural network, and
generate a policy output for the corresponding auxiliary control task in accordance with the respective auxiliary control parameters of the auxiliary control neural network; and
wherein training each auxiliary control neural network comprises:
receiving auxiliary task rewards that are specific to the corresponding auxiliary control task in response to the interactions of the agent with the environment; and
training the auxiliary control neural network to maximize an expected long-term time-discounted auxiliary task reward for the corresponding auxiliary control task using a respective second reinforcement learning technique, comprising:
determining gradients based on policy outputs generated by the auxiliary control neural network, comprising backpropagating gradients computed using the respective second reinforcement learning technique from the auxiliary control neural network into the action selection policy neural network; and
adjusting values of the respective auxiliary control parameters and the action selection policy network parameters using the gradients.

### Claim 16 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a pixel control neural network that corresponds to a pixel control task that attempts to maximize, for each of one or more regions of each observation image, a change in the pixels in the region, and
wherein, for each observation image, the respective reward for each of the one or more regions is derived from a change in the pixels in the region from the observation image to a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 17 (depends on 16)

The one or more non-transitory computer storage media of claim 16, wherein the pixel control neural network is configured to, for a received observation image:
receive the respective intermediate output for the pixel control neural network; and
process the respective intermediate output to generate, for each of the one or more regions and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the pixels in the region if the agent performs the possible action in response to the received observation image.

### Claim 18 (depends on 16)

The one or more non-transitory computer storage media of claim 16, wherein the pixel control neural network is a deconvolutional neural network.

### Claim 19 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the observation input includes an image,
wherein the auxiliary control neural networks comprise a feature control neural network that corresponds to a feature control task that attempts to maximize activations generated by one or more units in a particular hidden layer of the action selection policy neural network, and
wherein, for each observation image, the respective reward for each of the one or more units is derived from a change in the activations of the unit from activations generated during processing the observation image to activations generated during processing of a next observation image received as a result of the agent performing an action in response to the observation image.

### Claim 20 (depends on 19)

The one or more non-transitory computer storage media of claim 19, wherein the feature control neural network is configured to, for a received observation image:
receive the respective intermediate output for the feature control neural network; and
process the respective intermediate output to generate, for each of the one or more units and for each of a plurality of possible actions to be performed by the agent, an estimate of the long-term time-discounted change in the activations generated by the unit if the agent performs the possible action in response to the received observation image.
