# US 2023/0409907 A1 · Distributional reinforcement learning for continuous control tasks

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

- Number: US 2023/0409907 A1
- Document ID: US20230409907A1
- Status: Published application
- Kind: A1
- Application number: 18/303,117
- Filed: 2023-04-19
- Published: 2023-12-21
- Earliest claimed: 2017-10-27
- Assignees: DeepMind Technologies Limited
- Applicants: Deepmind Technologies Limited
- Inventors: David Budden; Matthew William Hoffman; Gabriel Barth-Maron
- Web page: https://patentgrep.com/patent/US20230409907A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 3/0499: Feedforward networks
- G06N 3/092: Reinforcement learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for training an action selection neural network that is used to select actions to be performed by a reinforcement learning agent interacting with an environment. In particular, the actions are selected from a continuous action space and the system trains the action selection neural network jointly with a distribution Q network that is used to update the parameters of the action selection neural network.

## Claims

### Claim 1

(canceled)

### Claim 2

A computer-implemented method for training an action selection neural network having a plurality of action selection parameters and used to select actions to be performed by an agent interacting with an environment, wherein the action selection neural network is configured to receive an input observation characterizing a state of the environment and to map the input observation to an action, the method comprising:
maintaining a respective replica of the action selection neural network;
receiving an observation characterizing a current state of an instance of the environment;
generating a respective transition starting from the received observation by selecting actions to be performed by the agent using the action selection neural network replica and in accordance with current values of the action selection parameters;
storing respective data for the respective transition in a memory; and
using a transition sampled from the memory to train the action selection neural network, the sampled transition comprising at least an observation-action-reward triple, and the training comprising:
processing an observation-action pair in the observation-action-reward triple of the sampled transition to generate, for the triple, a distribution over possible returns that could result if the action is performed in response to the observation; and
determining an update to the action selection parameters using the distribution over the possible returns.

### Claim 3 (depends on 2)

The method of claim 2, wherein processing the observation-action pair in the sampled transition to generate the distribution over the possible returns comprises:
processing the observation-action pair in the sampled transition using a critic model having critic parameters to generate, for the triple, the distribution over possible returns that could result if the action in the triple is performed in response to the observation.

### Claim 4 (depends on 3)

The method of claim 3, wherein the critic model comprises a distributional Q network.

### Claim 5 (depends on 3)

The method of claim 3, wherein determining the update to the action selection parameters comprises:
determining an update to the critic parameters of the critic model based on a target distribution for the triple and the distribution over the possible returns generated by the critic model for the triple; and
determining the update to the action selection parameters using the critic model.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the update to the action selection parameters using the critic model comprises:
processing the observation in the triple using the action selection neural network to generate a predicted action for the observation; and
determining a parameter update for the action selection neural network based on (i) an expectation of a gradient of a critic model output with respect to the predicted action and at an observation—predicted action input pair and (ii) a gradient of the action selection neural network output with respect to the action selection parameters of the action selection neural network taken at the observation.

### Claim 7 (depends on 5)

The method of claim 5, wherein determining the update to the critic parameters of the critic model comprises:
determining a gradient of a critic objective that depends on a distance between the target distribution for the triple and the distribution generated by the critic model for the triple.

### Claim 8 (depends on 5)

The method of claim 5, wherein the sampled transition further comprises a last observation, and the method further comprises:
generating a distribution over possible returns for the last observation that represents a distribution over possible returns that could result if a next action is performed in response to the last observation, wherein the next action has been determined from the last observation using a target action selection network; and
determining the target distribution for the triple from the reward in the triple and the distribution over possible returns for the last observation.

### Claim 9 (depends on 2)

The method of claim 2, wherein the transitions in the memory are each associated with a respective priority, and wherein the sampling is biased by the priorities for the transitions in the memory.

### Claim 10 (depends on 2)

The method of claim 2, wherein the transition is a single step transition.

### Claim 11 (depends on 2)

The method of claim 2, wherein the transition is an N-step transition.

### Claim 12 (depends on 2)

The method of claim 2, wherein:
the distribution over the possible returns is a categorical distribution.

### Claim 13

A computer-implemented system training an action selection neural network having a plurality of action selection parameters and used to select actions to be performed by an agent interacting with an environment, wherein the action selection neural network is configured to receive an input observation characterizing a state of the environment and to map the input observation to an action, the system comprising:
one or more processors; and
one or more storage devices storing instructions that when executed by the one or more computers, cause the one or more processors to perform learner operations comprising:
maintaining a respective replica of the action selection neural network;
receiving an observation characterizing a current state of an instance of the environment;
generating a respective transition starting from the received observation by selecting actions to be performed by the agent using the action selection neural network replica and in accordance with current values of the action selection parameters;
storing respective data for the respective transition in a memory; and
using a transition sampled from the memory to train the action selection neural network, the sampled transition comprising at least an observation-action-reward triple, and the training comprising:
processing an observation-action pair in the observation-action-reward triple of the sampled transition to generate, for the triple, a distribution over possible returns that could result if the action is performed in response to the observation; and
determining an update to the action selection parameters using the distribution over the possible returns.

### Claim 14 (depends on 13)

The system of claim 13, wherein processing the observation-action pair in the sampled transition to generate the distribution over the possible returns comprises:
processing the observation-action pair in the sampled transition using a critic model having critic parameters to generate, for the triple, the distribution over possible returns that could result if the action is performed in response to the observation.

### Claim 15 (depends on 14)

The system of claim 14, wherein the critic model comprises a distributional Q network.

### Claim 16 (depends on 14)

The system of claim 14, wherein determining the update to the action selection parameters comprises:
determining an update to the critic parameters of the critic model based on a target distribution for the triple and the distribution over the possible returns generated by the critic model for the triple; and
determining the update to the action selection parameters using the critic model.

### Claim 17 (depends on 16)

The system of claim 16, wherein determining the update to the action selection parameters using the critic model comprises:
processing the observation in the triple using the action selection neural network to generate a predicted action for the observation; and
determining a parameter update for the action selection neural network based on (i) an expectation of a gradient of the critic model output with respect to the predicted action and at an observation—predicted action input pair and (ii) a gradient of the action selection neural network output with respect to the action selection parameters of the action selection neural network taken at the observation.

### Claim 18 (depends on 16)

The system of claim 16, wherein determining the update to the critic parameters of the critic model comprises:
determining a gradient of a critic objective that depends on a distance between the target distribution for the triple and the distribution generated by the critic model for the triple.

### Claim 19

One or more non-transitory computer-readable storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations for training an action selection neural network having a plurality of action selection parameters and used to select actions to be performed by an agent interacting with an environment, wherein the action selection neural network is configured to receive an input observation characterizing a state of the environment and to map the input observation to an action, the operations comprising:
maintaining a respective replica of the action selection neural network;
receiving an observation characterizing a current state of an instance of the environment;
generating a respective transition starting from the received observation by selecting actions to be performed by the agent using the action selection neural network replica and in accordance with current values of the action selection parameters;
storing respective data for the respective transition in a memory; and
using a transition sampled from the memory to train the action selection neural network, the sampled transition comprising at least an observation-action-reward triple, and the training comprising:
processing an observation-action pair in the observation-action-reward triple of the sampled transition to generate, for the triple, a distribution over possible returns that could result if the action is performed in response to the observation; and
determining an update to the action selection parameters using the distribution over the possible returns.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage media of claim 19, wherein the transitions in the memory are each associated with a respective priority, and wherein the sampling is biased by the priorities for the transitions in the memory.

### Claim 21 (depends on 19)

The non-transitory computer-readable storage media of claim 19, wherein the transition is a single step transition.
