Asynchronous deep reinforcement learning

Asynchronous training of deep neural networks by multiple workers on a single machine addresses high communication and memory costs, enhancing the efficiency of reinforcement learning systems.

JP2024149491AActive Publication Date: 2024-10-18ジーディーエム·ホールディング·エルエルシー
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024107334
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2015-11-12
Filing Date
2024-07-03
Publication Date
2024-10-18
Estimated Expiration
2036-11-11

AI Technical Summary

Technical Problem

Existing reinforcement learning systems face challenges in efficiently training deep neural networks due to high communication costs and memory requirements when parallelizing training across multiple machines.

Method used

Implementing a system with multiple workers on a single machine that asynchronously train deep neural networks by interacting with environment replicas, reducing the need for replay memory and parallelizing training, thereby lowering communication costs and memory requirements.

Benefits of technology

Faster training of neural networks is achieved with reduced memory usage, enabling more efficient action selection by agents in reinforcement learning systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024149491000001_ABST
    Figure 2024149491000001_ABST
Patent Text Reader

Abstract

To provide techniques for asynchronously training a deep neural network used by a reinforcement learning system to select actions to be performed by an agent when interacting with an environment.SOLUTION: One of systems includes one or more computers configured to implement a plurality of workers, each worker being configured to operate independently of each other and being associated with a respective actor that interacts with a respective replica of an environment during training of a deep neural network. Aspects of the present disclosure have a technical effect of faster training of a neural network and / or reduced memory requirements for the training.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This specification relates to Reinforcement Learning. [Background technology]

[0002] In a reinforcement learning system, an agent interacts with an environment by performing actions that are selected by the reinforcement learning system in response to receiving observations that characterize the current state of the environment.

[0003] Some reinforcement learning systems select actions to be performed by an agent in response to receiving a given observation depending on the output of a neural network.

[0004] Neural networks are machine learning models that use one or more layers of nonlinear units to predict an output for a received input. Some neural networks are deep neural networks that include one or more hidden layers in addition to an output layer. The output of each hidden layer is used as an input to the next layer in the network, i.e., the next hidden layer or the output layer. Each layer of the network generates an output from the received input according to the current values ​​of a respective set of parameters. Summary of the Invention [Means for solving the problem]

[0005] This specification describes technologies related to reinforcement learning. In particular, this specification describes techniques for asynchronously training deep neural networks used by reinforcement learning systems to select actions to be performed by agents when interacting with an environment. Aspects of this specification have the technical effect of faster training of neural networks and / or reduced memory requirements for training.

[0006] One or more computer systems being configured to perform a particular operation or behavior means that the system has installed thereon software, firmware, hardware, or a combination thereof that, during operation, causes the system to perform an operation or behavior. One or more computer programs being configured to perform a particular operation or behavior means that one or more programs contain instructions that, when executed by a data processing device, cause the device to perform an operation or behavior.

[0007] The subject matter described herein may be implemented in certain embodiments to achieve one or more of the following advantages: By parallelizing training, neural networks used by reinforcement learning systems may be trained faster. More specifically, by parallelizing training using multiple Workers operating independently on a single machine, communication costs incurred as a result of parallelization may be reduced. In addition, memory requirements for training may be reduced by eliminating the need for Workers to store Experience Tuples in a Replay Memory or other storage, as is typically required in parallelization techniques involving multiple Workers on multiple machines, and On-Policy reinforcement learning methods may be used.

[0008] Details of one or more embodiments of the subject matter herein are set forth in the accompanying drawings and the following description. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. For example, the present specification provides methods, systems, and apparatuses including a computer program encoded on a computer storage medium for performing any of the techniques disclosed herein. In some embodiments, the computer program includes instructions that, when executed by a computing device, cause the computing device to perform any of the techniques disclosed herein. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram of an example neural network training system. [Diagram 2] 1 is a flow diagram of an example process for training a deep neural network. [Diagram 3] 1 is a flow diagram of an example process for performing iterations of a Q-learning technique. [Figure 4] 1 is a flow diagram of an exemplary process for performing an iteration of the SARSA technique. [Diagram 5] 1 is a flow diagram of an exemplary process for training a Policy neural network. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Like reference numbers and designations in the various drawings indicate like elements.

[0011] This document describes techniques related to Asynchronous Deep Reinforcement Learning in general. In particular, this document describes how multiple workers can asynchronously train deep neural networks that are used by a reinforcement learning system to select actions to be performed by an agent that interacts with an environment.

[0012] In some implementations, the environment is a simulated environment and the agent is implemented as one or more computer programs that interact with the simulated environment. For example, the simulated environment can be a video game and the agent can be a simulated user playing the video game. As another example, the simulated environment can be a motion simulation environment, e.g., a driving simulation or a flight simulation, and the agent is a simulated vehicle that moves by the motion simulation. In these implementations, the actions can be control inputs for controlling the simulated user or the simulated vehicle.

[0013] In some other implementations, the environment is a real-world environment and the agent is a mechanical agent that interacts with the real-world. For example, the agent may be a robot that interacts with the environment to accomplish a specific task. As another example, the agent may be an autonomous or semi-autonomous vehicle that moves through the environment. In these implementations, the actions may be control inputs for controlling the robot or autonomous vehicle.

[0014] In general, a reinforcement learning system receives observations that characterize the current state of the environment and uses the observations to select an action to be performed by an agent. In response to the agent performing the selected action, the environment transitions to a new state and the reinforcement learning system receives a reward. The reward is a numerical value that is a function of the state of the environment. While interacting with the environment, the reinforcement learning system attempts to maximize the long-term reward received by the agent in response to the actions performed by the agent.

[0015] In particular, in response to a given observation, the reinforcement learning system selects an action to be performed by the agent according to the output generated by the deep neural network.

[0016] To enable the reinforcement learning system to effectively select actions to be performed by the agent, the neural network training system trains the deep neural network to adjust values ​​of parameters of the deep neural network from initial values ​​of the parameters.

[0017] In particular, the neural network training system includes multiple workers that asynchronously train deep neural networks by selecting actions to be performed by Actors that interact with a replica of an environment.

[0018] Each actor is an instance of an agent that operates independently of each other instance. For example, when the agent is a mechanical agent, each actor is also a separate mechanical agent that is the same or nearly the same as the agent, e.g., has the same or nearly the same characteristics, can perform the same actions as the agent, and operates independently of each other actor.

[0019] 1 illustrates an exemplary neural network training system 100. Neural network training system 100 is an example of a system in which the systems, components, and techniques described below are implemented, implemented as a computer program on one or more computers at one or more locations.

[0020] The neural network training system 100 includes a number of workers 102A-N and a shared memory 110. Each of the workers 102A-N is associated with a respective actor 104A-N that interacts with a corresponding environment replica 106A-N. For example, the worker 102A is associated with the actor 104A that interacts with the environment replica 106A.

[0021] In some implementations, each of the workers 110A-N is implemented on the same computer, but executes within a separate thread, process, or other hardware or software within the computer that can perform computations for the workers independently. In these implementations, the shared memory 110 is memory of the computer that is accessible to each of the workers 102A-N. In implementations where the environment is a virtualized environment, copies of the actors and environment associated with a given worker also execute within the same thread or other hardware or software as the given worker.

[0022] Each of the workers 102A-102N holds an instance of the deep neural network being trained and accesses the shared memory 110 to obtain current values ​​of the deep neural network parameters stored in the shared memory 110. Each worker then uses the worker's instance of the deep neural network to select an action to be performed by the actor associated with the worker in response to the current values ​​of the neural network parameters obtained from the shared memory 110.

[0023] In particular, during training, each worker receives observations characterizing a state of the copy of the environment associated with the worker, and in response to each observation, uses a deep neural network to select an action to be performed by an actor associated with the copy of the environment. The worker then receives a next observation characterizing a next state of the copy of the environment, i.e., a state to which the copy of the environment will transition as a result of the actor performing the selected action, and a reward that results as a result of the actor performing the selected action. The worker determines a gradient using the reward and the next observation, and periodically uses the gradient determined by the worker to update parameter values ​​stored in the shared memory 110. Determining gradients and updating parameter values ​​stored in the shared memory is described in more detail below with reference to FIG. 2.

[0024] By each of the workers 102A-102N repeatedly and asynchronously updating parameter values ​​stored in the shared memory 110, the workers 102A-102N collectively train the deep neural network to determine trained values ​​for the parameters of the deep neural network.

[0025] 2 is a flow diagram of an example process 200 for training a deep neural network. For convenience, process 200 is described as being performed by a worker, e.g., one of workers 102A-N of FIG.

[0026] The worker determines the current values ​​of the parameters of the deep neural network (step 202).

[0027] In some implementations, a worker obtains the current value from a memory that is shared among all of the workers, such as shared memory 110 in FIG.

[0028] In some other implementations, the workers obtain the current values ​​from memory only after updating the shared memory as described below and write those current values ​​to local memory. In these implementations, the workers determine that the current values ​​are the values ​​to be stored in local memory.

[0029] A worker receives current observations that characterize the current state of a replica of the environment being interacted with by the actor associated with the worker (step 204).

[0030] The worker uses the deep neural network to select a current action to be performed by the actor when the environment is in the current state (step 206).

[0031] In particular, in some implementations, the deep neural network is a Q-Network configured to receive observations and actions as inputs and process the inputs according to current values ​​of parameters of the Q-Network to generate an output of the neural network. The output of the neural network, which will be referred to herein as a Q-Value, is an estimate of the long-term reward that would result from the agent or actor performing the input actions when the environment is in a state characterized by the input observations.

[0032] In these implementations, for each action in a predetermined set of actions, a worker processes the action and the current observations using a Q-network to generate a respective current Q-value for each action.

[0033] The worker then uses the current Q-value to select an action from a predetermined set of actions as the current action to be executed by the actor, according to an action selection policy for the worker.

[0034] In general, the action selection policy for a given worker is different from the action selection policy for each other worker. For example, in some implementations, the action selection policy for each worker is an ε-greedy policy in which the worker randomly selects an action from a predetermined set of actions with probability ε and selects the action with the highest Q-value with probability 1-ε, where the value of ε is different for each worker. For example, each worker may periodically sample a value for ε for the worker from a distribution of possible values ​​of ε for the worker to determine which ε is used in the action selection policy. As another example, a worker may select an action by applying a Softmax nonlinearity to the Q-value and sampling an action from the resulting distribution. Each worker may then use a different Temperature parameter in Softmax to ensure that each worker had a different action selection policy.

[0035] The worker receives a next observation and an actual reward (step 208). The next observation characterizes the next state of the environment replica, i.e., the state to which the environment replica transitioned as a result of the actor associated with the worker taking the current action. The actual reward is a numerical value received from the environment replica as a result of the transition from the current state to the next state.

[0036] The worker runs an iteration of the reinforcement learning procedure to determine the current gradient using the actual reward and the next observation (step 210), which is the gradient of the loss function being optimized to train the deep neural network.

[0037] The loss function and how the workers determine the gradients depend on the reinforcement learning procedure being used to train the deep neural network, which in turn depends on how the deep neural network is constructed.

[0038] For example, when the deep neural network is a Q-network, the workers may use the Q-learning technique or the SARSA technique. Performing iterations of the Q-learning technique is described below with reference to Figure 3. Performing iterations of the SARSA technique is described below with reference to Figure 4.

[0039] The worker updates the accumulated gradient with the current gradient to determine an updated accumulated gradient (step 212). That is, the worker stores the gradient in local memory and updates the stored gradient with the new gradient each time a new gradient is calculated, e.g., by adding the new gradient to the accumulated gradient.

[0040] The worker determines whether a criterion for updating the current values ​​of the neural network's parameters is satisfied (step 214). For example, the criterion for updating the current values ​​may specify that the worker updates the current values ​​after the worker has performed a specified number of reinforcement learning iterations since the worker most recently updated the parameter values. As another example, the criterion may specify that the worker updates the current values ​​when the total number of reinforcement learning iterations performed by all of the multiple workers since the worker most recently updated the parameter values ​​exceeds a specified threshold.

[0041] If the criteria are met, the worker determines updated parameter values ​​using the accumulated gradients (step 216) and writes the updated parameter values ​​to the shared memory (step 218). In particular, the worker determines parameter value updates from the accumulated gradients, accesses the current values ​​in the shared memory, and then updates those values ​​using the parameter value updates. In some examples, the worker multiplies the accumulated gradients by a learning rate parameter and then sums the current parameter values ​​and the parameter value updates to determine updated parameter values. In some other examples, the worker updates the parameter values ​​using an asynchronous variation of the RMSProp optimization procedure.

[0042] After a worker writes the updated parameter values ​​to the shared memory, the worker clears the accumulated gradients, so that no gradients are retained by the worker when the next iteration of process 200 begins.

[0043] If the criteria are not met, the worker refrains from writing anything to the shared memory (step 220), that is, the worker begins executing another iteration of the process 200 without updating the current parameter values.

[0044] Each of the multiple workers may asynchronously and repeatedly execute process 200 to collectively determine trained values ​​for the parameters of the deep neural network. Once the trained values ​​are determined, the reinforcement learning system may select values ​​to be executed by the agents using the deep neural network by the agents interacting with the environment, i.e., by using the deep neural network to process the neural network's inputs according to the trained values ​​of the parameters of the neural network. In some other cases, the reinforcement learning system selects values ​​to be executed by the agents using the deep neural network while the workers continue to execute process 200, i.e., by periodically retrieving the values ​​stored in the shared memory and using those values ​​to select actions to be executed by the agents.

[0045] In some cases, once the trained values ​​are determined, they are stored and then transmitted over the network to another system for use in instantiating a trained version of the deep neural network, i.e., to enable the agent to effectively select actions as it interacts with its environment.

[0046] 3 is a flow diagram of an example process 300 for performing iterations of the Q-learning technique. For convenience, the process 300 is described as being performed by a worker, e.g., one of the workers 102A-N of FIG.

[0047] The worker obtains the current observation, the current action, the actual reward, and the next observation (step 302), i.e., as described above with reference to FIG. 2.

[0048] The workers determine 304 the maximum output of the Target Network when the replica of the environment is in a state characterized by the following observations. The Target Network is the same neural network as the Q-Network, i.e., it has the same neural network architecture / morphology, but possibly different parameter values. In particular, each worker periodically synchronizes the values ​​of the parameters of the Target Network with the current values ​​of the parameters of the Q-Network stored in the shared memory. However, in general, the workers synchronize the values ​​of the parameters of the Target Network less frequently than the workers update the parameter values ​​stored in the shared memory, and as a result, the Target Network and the Q-Network will often have different parameter values.

[0049] For each action in the predetermined set of actions, the worker determines a maximum output of the goal network by processing the action in combination with the next observation using the goal network to determine an output of the goal network for the action. The system then selects the maximum of the outputs of the goal network for the actions in the predetermined set of actions as the maximum output of the goal network.

[0050] The worker determines an error from the maximum output of the goal network, the actual reward, and the current Q value previously determined for the current action when the environment was in the current state, i.e., the current Q value used to select the current action as the action to be executed when the environment was in the current state (step 306). In some implementations, the error E is E = r + γmax(Q target ) - Q current where r is the actual reward, γ is a predetermined discount factor, max(Q target ) is the maximum output of the goal network, and Q current is the current Q value previously determined for the current action when the environment was in its current state.

[0051] The worker uses the determined error to determine the current gradient (step 308), i.e., the worker updates the value using backpropagation, where the backpropagated error is the determined error for the selected action and zero for all other actions.

[0052] 4 is a flow diagram of an exemplary process 400 for performing iterations of the SARSA technique. For convenience, process 400 is described as being performed by a worker in a neural network training system, such as one of workers 102A-N in neural network training system 100 of FIG.

[0053] The worker receives the current observation, the current action, the actual reward, and the next observation (step 402).

[0054] The worker selects a next action to be performed by the actor when the copy of the environment is in the next state (step 404). The worker selects the next action as described above with reference to step 206. That is, for each action in the predetermined set of actions, the worker processes the action and the next observation using the Q-network to generate a respective next Q-value for each action. The worker then uses the next Q-value to select an action from the predetermined set of actions as the next action to be performed by the actor in accordance with the action selection policy for the worker.

[0055] The worker determines the output of the goal network for the next action (step 406), i.e., the worker processes the next action and the next observation using the goal network to determine the outcome of the goal network for the next action.

[0056] The worker determines an error from the output of the goal network for the next action, the actual reward, and the current Q value previously determined for the current action (step 408). In some implementations, the error E is E = r + γQ target - Q current where r is the actual reward, γ is a pre-determined discount rate, Q target is the output of the goal network for the next action, and Q current is the current Q value previously determined for the current action when the environment was in its current state.

[0057] The worker uses the determined error to determine the current gradient (step 410).

[0058] When performing either process 300 or process 400, the worker further determines whether a criterion for synchronizing the parameters of the target network with the parameters in the shared memory is met. For example, the criterion may be the same as the criterion described above in connection with step 216, except that the specified threshold or the specified number of times is greater than the value or number of times used to determine whether to update the parameters stored in the shared memory. Thus, the worker synchronizes the values ​​of the parameters of the target network less frequently than the worker updates the parameter values ​​stored in the shared memory, resulting in the target network and the Q network having different parameter values ​​more often.

[0059] The above description describes an implementation in which the deep neural network is a Q-network. However, in some other implementations, the deep neural network is a policy neural network that receives input observations and outputs a respective score for each action in a predetermined set of actions, each score representing the likelihood that the corresponding action is the action that should be executed to maximize the long-term reward that results from the environment being in a state characterized by the input observations.

[0060] In these implementations, to select an action in response to a given observation, a reinforcement learning system processes the given observation using a policy neural network and selects an action to be performed by the agent by sampling from the actions according to their scores.

[0061] To ensure that each worker has a different action selection policy, each worker may use a different random seed when sampling from actions, or alternatively, each worker may have a different temperature on the output layer of the policy neural network that generates the score for the action.

[0062] 5 is a flow diagram of an example process 500 for training a policy neural network. For convenience, process 500 is described as being performed by a worker in a neural network training system, such as one of workers 102A-N in neural network training system 100 of FIG.

[0063] A worker determines the current values ​​of the parameters of the policy neural network, step 502. In particular, the worker obtains the current values ​​from a memory that is shared among all of the workers, such as shared memory 110 of FIG.

[0064] The workers also retrieve from the shared memory the current values ​​of the parameters of a baseline neural network. The baseline neural network is a neural network configured to receive input observations and generate baseline scores that represent estimated long-term rewards that would be received by the agent starting from a state characterized by the input observations. In some implementations, the baseline and policy networks share some of their parameters.

[0065] The worker receives observations characterizing the state of the copy of the environment and selects an action to be performed by the actor according to the current values ​​of the parameters of the policy neural network (step 504) until the copy of the environment transitions to a state that satisfies a certain criterion. That is, for each observation, the worker processes the observation using the policy neural network according to its current values ​​and selects an action to be performed by the agent by sampling from the actions according to their scores. For example, the certain criterion may be a given number t max may be filled after an observation is received or until a predetermined end state is reached.

[0066] In particular, for each received observation characterizing the state of the replica of the environment, the worker processes the observation using the policy neural network in accordance with current values ​​of the parameters of the policy neural network to generate a respective score for each action in a predetermined set of actions, and selects an action to be executed by the actor by sampling from the distribution.

[0067] For each received observation, the worker processes the action and also the observation using the underlying neural network according to the current values ​​of the parameters of the underlying neural network to generate a baseline score for the observation.

[0068] In some implementations, one or both of the basis neural network and the policy neural network may be recurrent neural networks.

[0069] The worker determines the actual long-term reward for each received observation (step 506).

[0070] That is, for the last observation received, the system sets the actual long-term reward to, for example, the basis score predicted by the underlying neural network.

[0071] For a given observation other than the last observation, the system sets the actual long-term reward for the given observation as the reward received when the replica of the environment transitioned to the state characterized by the last observation plus the discounted sum of the actual long-term rewards for observations received after the actor performed the action selected in response to receiving the given observation.

[0072] For each observation, the worker determines a respective gradient update for the policy neural network and a respective gradient update for the basis neural networks (step 510).

[0073] In particular, the observations t The latest information on the gradient of the policy neural network is

number

number

[0074] Observation results t For the latest information on the gradients of the underlying neural network,

number

number

[0075] The worker updates the accumulated gradients for the policy neural network with the latest gradient information for the policy neural network to determine updated accumulated gradients for the policy neural network, e.g., by adding the new gradients for each neural network to the accumulated gradients for the neural network, and updates the accumulated gradients for the base neural networks with the latest gradient information for the base neural networks to determine updated accumulated gradients for the base neural networks (step 512).

[0076] The worker determines whether the criteria for updating the current values ​​of the parameters of the basis neural network and the policy neural network are met (step 514).

[0077] For example, the criteria for updating the current value may specify that the worker updates the current value after the worker has performed a specified number of iterations of step 504 since the worker most recently updated the parameter value.

[0078] As another example, a criterion might specify that a worker updates the current value when the total number of iterations of step 504 performed by all of a plurality of workers since the worker most recently updated the parameter value exceeds a specified threshold.

[0079] If the criteria are met, the worker determines updated parameter values ​​for the basis neural network and the policy neural network using the corresponding accumulated gradients (step 516), e.g., as described above in connection with steps 216 and 218, and writes the updated parameter values ​​to the shared memory (step 518).

[0080] After a worker writes the updated parameter values ​​to the shared memory, the worker clears the accumulated gradients, so that no gradients are retained by the worker when the next iteration of process 500 begins.

[0081] If the criteria are not met, the worker refrains from writing anything to the shared memory (step 520), that is, the worker begins executing another iteration of the process 500 without updating the current parameter values.

[0082] The embodiments and functional operations of the subject matter described herein may be implemented in digital electronic circuitry, including structures disclosed herein and their structural equivalents, or tangibly embodied computer software or firmware, computer hardware, or a combination of one or more of them. The embodiments of the subject matter described herein may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier for execution by or to control the operation of a data processing apparatus. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, generated to encode information for transmission to a receiver device suitable for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0083] The term "data processing apparatus" refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. The apparatus may also be or further include dedicated logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). Optionally, the apparatus may include, in addition to hardware, code that creates an execution environment for a computer program, e.g., code that constitutes a processor's firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.

[0084] A computer program (which may also be called or referred to as a program, software, software application, module, software module, script, or code) may be written in any form of programming language, including compiled or interpreted, or declarative or procedural, and may be arranged in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may, but does not necessarily, correspond to a file in a file system. A program may be stored as part of a file that holds other programs or data, e.g., one or more scripts stored in a markup language document, a single file dedicated to the program in question, or in multiple organized files, e.g., files that store one or more modules, subprograms, or portions of code. A computer program may be arranged to be executed on one computer or on multiple computers that are located at one location or distributed at multiple locations and connected together by a communication network.

[0085] The processes and logic flows described herein may be performed by one or more programmable computers executing one or more computer programs that perform functions by performing operations on input data and generating output, and the processes and logic flows may also be performed by, and apparatus may be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[0086] A computer suitable for executing a computer program may include, and may be based, for example, on a general-purpose or dedicated microprocessor or both, or any other type of central processing unit. In general, the central processing unit receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for carrying out or executing instructions, and one or more memory devices for storing instructions and data. In general, a computer also includes one or more mass storage devices, such as magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to the mass storage devices, or both. However, a computer may not have such devices. Furthermore, a computer may be incorporated in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name just a few.

[0087] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and the memory may be supplemented by, or incorporated in, dedicated logic circuitry.

[0088] To provide for interaction with a user, embodiments of the subject matter described herein may be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user, as well as a keyboard and a pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices may also be used to provide interaction with a user, e.g., feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user may be received in any form, including acoustic, speech, or tactile input. In addition, a computer may interact with a user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.

[0089] Embodiments of the subject matter described herein may be implemented in a computing system that includes back-end components, e.g., as data servers, or includes middleware components, e.g., application servers, or includes front-end components, e.g., a client computer having a Relationship Graphical User Interface or a web browser through which a user can interact with an implementation of the subject matter described herein, or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication, e.g., a communications network. Examples of communications networks include local area networks ("LANs") and wide area networks ("WANs"), e.g., the Internet.

[0090] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

[0091] Although this specification contains many specific implementation details, these should not be considered as limitations on the scope of any invention or what may be claimed, but rather as descriptions of features that may be specific to certain embodiments of a particular invention. Certain features described herein in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as operating in a particular combination, and may even be initially claimed as such, one or more features of the claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination, or a variation of the subcombination.

[0092] Similarly, although operations are shown in a particular order in the figures, this should not be understood as requiring such operations to be performed in the particular order shown, or in a sequential order, or that all of the operations shown be performed to achieve a desired result. In certain situations, multitasking and parallel processing may be advantageous. Furthermore, the division of various system modules and components in the above-described embodiments should not be understood as requiring such division in all embodiments, and it should be understood that the described program components and systems may generally be integrated together in a single software product or packaged in multiple software products.

[0093] Certain embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. By way of example, the processes depicted in the accompanying figures do not necessarily need to be in the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous. [Explanation of symbols]

[0094] 100 Neural Network Training System 102A~N Worker 104A~N Actors 106A~106N Environment duplication 110 Shared Memory 200 processes 300 processes 400 processes 500 processes

Claims

1. 1. A system for training a deep neural network used to select actions to be performed by an agent that interacts with an environment by performing actions selected from a predetermined set of actions, comprising: one or more computers configured to implement a plurality of workers, each worker configured to operate independently of each other worker, each worker associated with a respective actor that interacts with a respective copy of the environment during training of the deep neural network, each worker comprising: determining current values ​​of parameters of the deep neural network; receiving current observations characterizing a current state of a copy of the environment interacted with by the actor associated with the worker; selecting a current action to be performed by the actor associated with the worker in response to the current observations according to a respective action selection strategy for the worker, using one or more outputs generated by the deep neural network according to the current values ​​of the parameters; determining an actual reward that would result from said actor performing said current action when said replica of the environment is in said current state; an operation of receiving a next observation characterizing a next state of the replica of the environment interacted with by the actor, the replica of the environment transitioning from the current state to the next state in response to the actor performing the current action; performing an iteration of a reinforcement learning technique to determine a current gradient using the actual reward and the next observation; updating an accumulated gradient with the current gradient to determine an updated accumulated gradient; determining whether a criterion for updating the current values ​​of the parameters of the deep neural network has been met; when the criteria for updating the current values ​​of the parameters of the deep neural network are met, determining updated values ​​of the parameters using the updated accumulated gradients; and storing the updated values ​​in a shared memory accessible to all of the plurality of workers.

2. 2. The system of claim 1, wherein each worker executes independently of each other worker on the same computer.

3. 3. The system of claim 1 or 2, wherein the respective action selection strategies for each worker are different from the respective action selection strategies for each other worker.

4. 4. The system of claim 1, wherein the operations further comprise an operation of clearing the updated accumulated gradients when the criterion for updating the current values ​​of the parameters of the deep neural network is met.

5. 5. The system of claim 1, wherein the operation of determining whether the criteria for updating the current value of the parameter of the deep neural network has been satisfied comprises determining that a specified number of iterations of the reinforcement learning technique have been performed since a previous update of the value of the parameter of the deep neural network.

6. a Q-network configured to receive input observations characterizing an input state of the environment and an input action, and to generate a Q-value that is an estimate of a long-term reward that would result from performing the input action when the environment is in the input state; and selecting the current action to be performed by the actor in response to the current observations comprises: for each action in the predetermined set of actions, processing the current observations and the action using the deep neural network according to the current values ​​of the parameters of the deep neural network to generate a Q-score for the action; and selecting an action from the predetermined set of actions in accordance with the action selection strategy for the worker using the Q-value for the action.

7. The reinforcement learning technique is a Q-learning technique, and the operation of performing the iterations is determining a maximum output of a target network for any of said actions in said predetermined set of actions when said replica of the environment is in said next state, said target network being the same neural network as said Q-network, but possibly with different parameter values; determining an error from the maximum output of the goal network, the actual reward, and the Q value for the current action; and determining the current slope using the error.

8. The reinforcement learning technique is a SARSA technique, and the operation of performing the iteration is selecting a next action to be performed by the actor associated with the worker in response to the next observation according to the respective action selection policy for the worker; processing the next action and the next observation using a goal network to determine an output of the goal network for the next action, the goal network being the same neural network as the Q-network, but possibly with different parameter values; determining an error from the output of the goal network for the next action, the actual reward, and the Q-value for the current action; and determining the current slope using the error.

Citation Information

Patent Citations

  • Smoothed Sarsa: Reinforcement Learning for Robot Delivery Tasks

    US20100094786A1

  • Parallelizing the training of convolutional neural networks

    US20150294219A1