A computer-implemented method and system thereof

By introducing geometric prediction and loop prediction neural networks into the reinforcement learning system and adjusting the parameters of the action selection strategy neural network, the problem of low training efficiency when rewards are sparse is solved, more efficient policy output and computing resource utilization are achieved, and improved Navigation performance.

CN117371492BActive Publication Date: 2024-10-29GDM HOLDINGS LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311167238.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-11-04
Publication Date
2024-10-29
Estimated Expiration
2037-11-04

AI Technical Summary

Technical Problem

Existing reinforcement learning systems are difficult to effectively utilize feedback signals during the training process of action selection policy neural networks, especially when rewards are sparse, resulting in low training efficiency and poor policy output.

Method used

The geometric prediction neural network and the loop closure prediction neural network are introduced to adjust the parameters of the action selection strategy neural network through the gradient backpropagation of the auxiliary loss and the loop closure auxiliary loss, enhance the feedback signal during the training process, and promote more effective strategy output.

Benefits of technology

The training efficiency and performance of the action selection strategy neural network are improved, allowing the agent to navigate the environment more effectively, outperforming the computing resource usage and navigation performance of traditional systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117371492B_ABST
    Figure CN117371492B_ABST
Patent Text Reader

Abstract

Methods, systems, and apparatus for training reinforcement learning systems, including computer programs encoded on computer storage media. In one aspect, a method for training an action selection policy neural network for selecting actions to be performed by an agent navigating through an environment to achieve one or more goals includes: receiving an observation image representing a current state of the environment; processing an input including the observation image using an action selection policy neural network to generate an action selection output; processing an intermediate output generated by the action selection policy neural network using a geometry prediction neural network to predict values ​​of geometric features of the environment when in the current state; and back-propagating gradients of a geometry-based auxiliary loss into the action selection policy neural network to determine a geometry-based auxiliary update for current values ​​of network parameters.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with the application date of November 4, 2017, application number 201780078260.2, and invention name “Environmental Navigation Using Reinforcement Learning”. Technical Field

[0002] This specification relates to reinforcement learning. Background Art

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

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

[0005] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict outputs for received inputs. Some neural networks are deep neural networks that include one or more hidden layers in addition to the output layer. The output of each hidden layer is used as the input to the next layer in the network (i.e., the next hidden layer or output layer). Each layer of the network generates an output from the received input according to the current values ​​of the corresponding set of parameters. Summary of the invention

[0006] This specification describes a reinforcement learning system implemented as a computer program on one or more computers in one or more locations that selects actions to be performed by an agent interacting with an environment. Typically, the system uses an action selection policy neural network to select actions to be performed in response to observations of the environment. To improve the training of the action selection policy neural network, during the training, a training engine also trains (i) a geometry prediction neural network, (ii) a loop closure prediction neural network, or both, that receive as input corresponding intermediate outputs of the action selection policy neural network.

[0007] A method for training an action selection policy neural network having a plurality of network parameters for selecting an action to be performed by an agent navigating through an environment to achieve one or more goals is provided. The method includes: receiving an observation image representing a current state of the environment; processing an input including the observation image using the action selection policy neural network and according to current values ​​of network parameters to generate an action selection output; processing an intermediate output generated by the action selection policy neural network using a geometry prediction neural network to predict values ​​of geometric features of the environment when in the current state; and determining a gradient of a geometry-based auxiliary loss based on actual values ​​of the features and predicted values ​​of the features; and back-propagating the gradient of the geometry-based auxiliary loss into the action selection policy neural network to determine a geometry-based auxiliary update for the current values ​​of the network parameters.

[0008] In some embodiments, the predicted value of the geometric feature is the predicted depth of the environment represented by the observed image, and the actual value of the geometric feature is the actual depth of the environment represented by the observed image. In some embodiments, an auxiliary loss is used to train the system, but the predicted value of the geometric feature need not be used separately.

[0009] In some embodiments, the action selection policy neural network includes: a convolutional encoder neural network that generates an encoded representation of an input, an intermediate neural network that processes the encoded representation of the input to generate an intermediate representation; and an output neural network that processes the intermediate representation to generate an action selection output.

[0010] In some implementations, the intermediate output includes an encoded representation.

[0011] In some implementations, the intermediate output includes an intermediate representation.

[0012] In some embodiments, the method further includes: processing the intermediate representation using a loop prediction neural network, the loop prediction neural network being configured to generate a score representing the predicted likelihood that the agent has returned to a location in the environment that the agent has visited when the environment is in a current state; determining a gradient of a loop closure-assisted loss based on the actual similarity and predicted likelihood between the current state of the environment and an earlier state; and back-propagating the gradient of the loop closure-assisted loss into the action selection policy neural network to determine a loop closure-assisted update for current values ​​of network parameters.

[0013] In some embodiments, the intermediate neural network is a recurrent neural network.

[0014] In some embodiments, the intermediate neural network is a feed-forward neural network.

[0015] In some embodiments, the method further includes: using the action selection output to select an action to be performed by the agent when the environment is in the current state; receiving a reward based on progress toward achieving one or more goals; and determining a primary update to a network parameter based at least in part on the reward.

[0016] In some implementations, the method further comprises updating current values ​​of network parameters using the geometry-based auxiliary update and the primary update.

[0017] In some implementations, the method further includes: updating current values ​​of network parameters using the geometry-based auxiliary update to generate updated parameter values; and selecting an action to be performed by the agent based on the updated parameter values ​​using an action selection policy neural network.

[0018] Specific embodiments of the subject matter described in this specification can be implemented to achieve one or more of the following advantages. By training a geometric prediction neural network or a loop closure prediction neural network or both to perform auxiliary prediction tasks, in addition to training an action selection policy neural network to maximize cumulative rewards, the reinforcement learning system described in this specification can enhance the feedback signals received during the training of the action selection policy neural network to improve training. In particular, training a geometric prediction neural network or a loop closure prediction neural network adjusts the values ​​of the action selection policy neural network parameters so that they generate more useful representations of the observed data and ultimately determine a more effective policy output to maximize the cumulative reward, even when the rewards received by the reinforcement learning system are sparse (e.g., only rarely non-zero). For example, training a geometric prediction neural network adjusts the values ​​of the action selection policy neural network parameters to encourage learning representations that help with obstacle avoidance and short-term trajectory planning. As another example, training a loop closure prediction neural network adjusts the values ​​of the action selection policy neural network parameters to encourage effective exploration and spatial reasoning of the environment.

[0019] The reinforcement learning system described in this specification trains an action selection policy neural network faster than a conventional reinforcement learning system that does not include a geometric prediction neural network and a loop prediction neural network. Therefore, the reinforcement learning system described in this specification allows for more efficient use of computing resources in training. In addition, the reinforcement learning system described in this specification achieves performance that is superior to conventional reinforcement learning systems, i.e., allows an agent to navigate through an environment more efficiently.

[0020] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 An example reinforcement learning system is shown.

[0022] Figure 2 is a flow chart of an example process for training an action selection policy neural network by training a geometric prediction neural network.

[0023] Figure 3 is a flowchart of an example process for training an action selection policy neural network by training a loop closure prediction neural network.

[0024] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION

[0025] Figure 1 An example reinforcement learning system 100 is shown. Reinforcement learning system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations that implement the systems, components, and techniques described below.

[0026] The reinforcement learning system 100 selects an action 110 to be performed at each of a plurality of time steps by an agent 108 interacting with an environment 102. In order for the agent 108 to interact with the environment 102, the system 100 receives an observation image 104 representing a current state of the environment 102, and selects an action 110 to be performed by the agent 108 in response to the received observation image 104.

[0027] In some implementations, environment 102 is a simulated environment, and agent 108 is implemented as one or more computer programs that navigate through and interact with the simulated environment. For example, the simulated environment may be a video game, and agent 108 may be a simulated user that navigates through the simulated environment to play the video game. As another example, the simulated environment may be a motion simulation environment, such as a driving simulation or a flight simulation, and agent 108 may be a simulated vehicle that navigates through the motion simulation environment. In these cases, actions 110 may be control inputs that control the simulated user or the simulated vehicle.

[0028] In some other embodiments, environment 102 is a real-world environment and agent 108 is a mechanical agent that interacts with the real-world environment. For example, agent 108 can be an autonomous or semi-autonomous vehicle that navigates through the environment. In these cases, action 110 can be a control input that controls the robot or autonomous vehicle.

[0029] In some of these embodiments, the observed image 104 may be generated by or derived from a sensor of the agent 108. For example, the observed image 104 may be an RGB image captured by a camera of the agent 108. As another example, the observed image 104 may be derived from data captured from a laser sensor of the agent 108. As another example, the observed image may be a hyperspectral image captured by a hyperspectral sensor of the agent 108.

[0030] At each time step, the system 100 receives a reward 106 based on the current state of the environment 102 and the action 110 of the agent 108 at the time step. For example, the system 100 may receive a reward 106 for a given time step based on progress toward achieving one or more goals for the agent 108. For example, a goal of the agent may be to navigate to a target location in the environment 102.

[0031] The system 100 selects an action to be performed by the agent 108 at each time step in response to the observed image 104 using an action selection policy neural network 112. Specifically, the action selection policy neural network 112 is configured to receive an input including the observed image 104 and process the input according to a parameter set of the action selection policy neural network to generate a policy output, wherein the system 100 uses the policy output to determine the action 110 to be performed by the agent 108 at the time step. In some embodiments, the action selection policy neural network 112 is configured to receive additional inputs, wherein the additional inputs include one or more of the following: agent relative lateral velocity, rotational velocity, an action performed by the agent at a previous time step (i.e., a time step before the current time step), or a reward received by the system at a previous time step. Agent relative lateral velocity refers to the forward and sideways velocity of the agent defined in the agent's egocentric reference frame. Angular velocity refers to the rotational velocity of the agent about a vertical axis.

[0032] In some embodiments, the policy output is a probability distribution over a set of possible actions. In some embodiments, the policy output may be a Q-value, where the Q-value is an estimate of the long-term time-discounted reward that the agent 108 will receive if it performs a particular action in response to an observation. In some embodiments, the policy output may identify a particular action that is predicted to produce the highest long-term discounted reward if performed by the agent in response to an observation. In some embodiments, the policy output is a combination of the previously described policy outputs.

[0033] Typically, the action selection policy neural network 112 includes a convolutional encoder neural network, an intermediate neural network, and an output neural network, wherein the convolutional encoder neural network generates an encoded representation of the input observation image 104, the intermediate neural network processes the encoded representation of the input observation image to generate an intermediate representation, and the output neural network processes the intermediate representation to generate a policy output. In some embodiments, the intermediate neural network is a feedforward neural network. For example, the intermediate neural network can be a multi-layer perceptron (MLP). In some other embodiments, the intermediate neural network is a recurrent neural network. In these embodiments, the intermediate neural network can be a long short-term memory (LSTM) network, or a stack of LSTM networks. The stack of LSTM networks is an ordered collection of multiple LSTM networks, wherein the first LSTM network processes the encoded representation, and each subsequent LSTM network processes the output of the previous LSTM network. In some embodiments, the stack of LSTM networks can include a skip connection that provides the encoded representation to the LSTM network after the first LSTM network. In some embodiments, the output neural network is a feedforward neural network. For example, the output neural network can be an MLP.

[0034] In embodiments where the action selection policy neural network 112 is configured to receive inputs in addition to the observed image 104 (including the agent's relative lateral and rotational velocity, the action performed by the agent at a previous time step, and the reward received by the system 100 at a previous time step), the additional inputs may be provided as inputs to an encoder neural network or an intermediate neural network of the action selection policy neural network 112. Where the additional inputs are provided as inputs to the intermediate neural network, the encoded representations of the input observed image and reward may be provided to a first layer of the intermediate neural network, and the additional inputs may be provided to a second layer of the intermediate neural network, where the second layer also has an input of the output from the first layer. In this manner, the first layer may establish an association between the visual observation and the reward, which is provided to the second layer from which the policy is computed.

[0035] Typically, the training engine 118 trains the action selection policy neural network 112 to generate a policy output that maximizes the expected cumulative reward received by the system 100 (e.g., the long-term temporally discounted sum of rewards received by the system 100) by iteratively adjusting the values ​​of the parameter sets of the action selection policy neural network using reinforcement learning techniques. An example of reinforcement learning techniques is described in “Asynchronous methods for deep reinforcement learning” by Volodymyr Mnih et al., in the 2016 Proceedings of the 33rd International Conference on Machine Learning.

[0036] In addition to training the action selection policy neural network 112 to maximize the expected cumulative reward, the training engine 118 may also train the action selection policy neural network 112 by additionally training the geometry prediction neural network 114 that receives as input the intermediate outputs of the action selection policy neural network 112. Training the geometry prediction neural network 114 adjusts the values ​​of the parameter sets of the action selection policy neural network 112 so that the action selection policy neural network 112 generates more useful representations of the observations 104 that facilitate obstacle avoidance and short-term trajectory planning, and so that the action selection policy neural network 112 determines more effective policy outputs to maximize the expected cumulative reward, even if non-zero rewards are rarely received.

[0037] The geometric prediction neural network 114 receives as input the intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input according to the value of the parameter set of the geometric prediction neural network to generate as output the predicted value of the geometric features of the environment in the current state. In some embodiments, the geometric features of the environment in the current state are the depth of the environment represented by the given observation image, that is, the depth value corresponding to the pixel of the given observation image, wherein the depth value of the pixel corresponds to the distance from the agent sensor that captured the given observation image to the surface or object depicted in the given observation image containing the pixel. In some embodiments, the geometric features of the environment in the current state are the distance between the agent 108 and the known landmarks in the environment. In some embodiments, the geometric features of the environment in the current state are the bearing (bearing) of the agent 108 relative to the known landmarks in the environment. In some embodiments, the geometric features of the environment in the current state are the reconstruction of the observed image of the environment in the current state, the predicted future observed image of the environment, or the past observed image of the environment previously received. In some embodiments, the geometric features of the environment are some combination of the geometric features of the environment previously described. In some embodiments, the geometric prediction neural network 114 is a feedforward neural network. For example, the geometric prediction neural network can be an MLP.

[0038] The intermediate output of the action selection policy neural network 112 is a set of activations generated at one or more units of one or more hidden layers of the action selection policy neural network 112 in response to processing a given observation as input. In some embodiments, the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network 112. In some other embodiments, the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is an intermediate representation generated by an intermediate neural network of the action selection policy neural network 112. In some other embodiments, the system 100 includes two geometry prediction neural networks, one of which receives as input an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network 112, and the other of which receives as input an intermediate representation generated by an intermediate neural network of the action selection policy neural network 112.

[0039] The training engine 118 trains the geometry prediction neural network 114 to generate a predicted value for the geometry feature, wherein the predicted value minimizes a geometry-based auxiliary loss based on the actual value of the geometry feature. Specifically, the training engine 118 back-propagates the gradient of the geometry-based auxiliary loss to adjust the values ​​of the parameter set of the geometry prediction neural network 114, and adjusts the values ​​of some of the parameter set of the action selection policy neural network 112 so as to minimize the geometry-based auxiliary loss. In particular, the training engine 118 adjusts the parameters of the action selection policy neural network, wherein the parameters correspond to (i) one or more units of one or more hidden layers of the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network by the system 100, and (ii) one or more units of one or more hidden layers of the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network by the system 100. In this specification, a first unit is said to be fed forward to a second unit if the output of the first unit is directly or indirectly provided as an input to the second unit. Reference Figure 2 An example process for training the action selection policy neural network 112 by training the geometry prediction neural network 114 is described.

[0040] In addition to training the action selection policy neural network 112 to maximize the expected cumulative reward, the training engine 118 may also train the action selection policy neural network 112 by additionally training the loop closure prediction neural network 116 that receives as input the intermediate outputs of the action selection policy neural network 112. Training the loop closure prediction neural network 116 adjusts the values ​​of the parameter sets of the action selection policy neural network 112 so that the action selection policy neural network 112 generates more useful representations of observations that facilitate efficient environment exploration and spatial reasoning, and so that the action selection policy neural network 112 determines more effective policy outputs to maximize the expected cumulative reward, even if the rewards are sparse (i.e., rarely receive non-zero rewards).

[0041] The loop prediction neural network 116 receives as input the intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input according to the values ​​of the parameter set of the loop prediction neural network 116 to generate as output a score representing the predicted likelihood that the agent has returned to a location in the environment that the agent has visited when the environment is in the current state. In some embodiments, the agent is considered to have returned to a location that the agent has visited only if the agent previously visited the location in the environment within a fixed number of previous time steps. In some embodiments, the loop prediction neural network 116 is a feedforward neural network. For example, the loop prediction neural network 116 can be an MLP.

[0042] In some embodiments, the intermediate output of the action selection policy neural network 112 provided as an input to the loop closure prediction neural network 116 is an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network 112. In some other embodiments, the intermediate output of the action selection policy neural network 112 provided as an input to the loop closure prediction neural network 116 is an intermediate representation generated by an intermediate neural network of the action selection policy neural network 112.

[0043] The training engine 118 trains the loop closure prediction neural network 116 to generate a score that minimizes a loop closure assisted loss, where the score of the loop closure assisted loss is based on the actual similarity of the location of the current state to the location of an earlier state of the environment and the predicted likelihood that the agent has returned to a location in the environment that the agent has visited when the environment was in the current state. Specifically, the training engine 118 backpropagates the gradient of the loop closure assisted loss to adjust the values ​​of the parameter set of the loop closure prediction neural network 116 and adjusts the values ​​of some of the parameter set of the action selection policy neural network 112 so as to minimize the loop closure assisted loss. In particular, the training engine 118 adjusts the parameters of the action selection policy neural network, where the parameters correspond to (i) one or more units of one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as an input to the loop closure prediction neural network 116, and (ii) one or more units of one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as an input to the loop closure prediction neural network 116. Reference Figure 3 An example process for training the action selection policy neural network 112 by training the loop closure prediction neural network 116 is described.

[0044] In some embodiments, the training engine 118 trains the action selection policy neural network, the geometry prediction neural network, and the loop closure prediction neural network online (i.e., based on received observations and rewards). For example, at a given time step, the system 100 may select an action to be performed by the agent 108 based on a policy output generated by the action selection policy neural network 112, receive a reward 106, and the training engine 118 may update the parameter values ​​of the neural network of the system 100 through gradient backpropagation, geometry-based auxiliary loss, and loop closure auxiliary loss based on one or more reinforcement learning techniques. In this example, at the next time step, the system 100 selects an action to be performed by the agent 108 based on the policy output generated by the action selection policy neural network 112 according to the updated values ​​of the parameter set of the action selection policy neural network 112. In some embodiments, the training engine 118 trains the network from experience stored in the replay memory (i.e., a tuple including observations, actions, rewards for the previous time step). The training engine 118 may train the network using on-policy training or off-policy training or any other suitable reinforcement learning technique. Additionally, gradient backpropagation based reinforcement learning techniques, geometry-based auxiliary losses, and loop closure auxiliary losses are associated with different weight values ​​that scale the size of adjustments to the network's parameters based on the gradients.

[0045] Figure 22 is a flow chart of an example process 200 for training an action selection policy neural network by training a geometric prediction neural network. For convenience, process 200 will be described as being performed by a training engine comprising one or more computers located in one or more locations. For example, a training engine (e.g., Figure 1 The training engine 118 of the embodiment of the present invention can perform the process 200. Generally, the training engine performs the process 200 at each of a plurality of time steps.

[0046] The system provides an input including an observation image representing the current state of the environment to the action selection policy neural network, and the action selection policy neural network processes the input according to the values ​​of the parameter set of the action selection policy neural network to generate a policy output (step 202). In some embodiments, the observation image is an RGB image. In some embodiments, the input provided to the action selection policy neural network may include additional inputs, such as the relative lateral velocity and rotational velocity of the agent, the action performed by the agent at the previous time step, and the reward received by the system at the previous time step. The relative lateral velocity and rotational velocity of the agent and the reward received by the system at the previous time step can be represented as a vector, and the action performed by the agent at the previous time step can be specifically represented by a one-hot encoding vector. Typically, the observation image is provided as an input to the convolutional encoder neural network of the action selection policy neural network. Depending on the implementation, the additional input may be provided as an input to the encoder neural network or the intermediate neural network of the action selection policy neural network.

[0047] The system provides the intermediate output of the action selection policy neural network as input to the geometry prediction neural network, where the geometry prediction neural network processes the input according to the values ​​of the parameter set of the geometry prediction neural network to generate predicted values ​​of the geometric features of the environment in the current state as output (step 206).

[0048] In some embodiments, an intermediate output of the action selection policy neural network provided as an input to the geometry prediction neural network is an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network. In some other embodiments, an intermediate output of the action selection policy neural network provided as an input to the geometry prediction neural network is an intermediate representation generated by an intermediate neural network of the action selection policy neural network. In some other embodiments, the system includes two geometry prediction neural networks, one of which receives as input an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network, and another of which receives as input an intermediate representation generated by an intermediate neural network of the action selection policy neural network.

[0049] In some embodiments, the geometric feature of the environment in the current state may be the depth of the environment characterized by a given observed image. In some such embodiments, the value of the geometric feature of the environment output by the geometry prediction neural network is represented as an array of non-negative scalar values, wherein each element of the array has a value corresponding to the predicted depth value of the corresponding pixel of the observed image. In some other such embodiments, the value of the geometric feature of the environment output by the geometry prediction neural network is represented as an array of categorical variables, wherein each categorical variable represents a range of possible depth values, and each element of the array contains a categorical variable corresponding to the depth of the corresponding pixel of the observed image. In some cases, the categorical variables uniformly subdivide the range of possible depth values. In some other cases, the categorical variables subdivide the range of possible depth values ​​more coarsely for lower depth values, and subdivide the range of possible depth values ​​more finely for higher depth values. In some of these embodiments, the array has the same dimension as the observed image, and in some other embodiments, the array has a smaller dimension than the observed image for computational efficiency reasons. In some embodiments, the geometric feature of the environment in the current state is the distance between the agent and a known landmark in the environment. In some embodiments, the geometric feature of the environment in the current state is the orientation of the agent relative to the known landmarks in the environment. In some embodiments, the geometric features of the environment in the current state are an observed image of the environment in the current state, a future observed image of the environment, or a past observed image of the environment. In some embodiments, the geometric features of the environment are some combination of geometric features of the environment described previously.

[0050] The engine back-propagates the gradient of the geometry-based auxiliary loss to adjust the values ​​of the parameter set of the geometry prediction neural network and adjusts the values ​​of some of the parameter sets of the action selection policy neural network in order to minimize the geometry-based auxiliary loss (step 208). Typically, the geometry-based auxiliary loss measures the difference between the predicted value of the geometric feature generated by the geometry prediction neural network and the actual value of the geometric feature. If the predicted value of the geometric feature has the form of an array of non-negative scalar values ​​representing the predicted depth value for the observed corresponding pixel, the geometry-based auxiliary loss can be a mean squared error loss between the predicted depth value and the actual depth value. If the predicted value of the geometric feature has the form of an array of categorical variables representing the predicted depth value for the observed corresponding pixel, the geometry-based auxiliary loss can be the sum of the cross-entropy loss functions for each categorical variable.

[0051] Figure 3 3 is a flow chart of an example process 300 for training an action selection policy neural network by training a loop prediction neural network. For convenience, process 300 will be described as being performed by a training engine comprising one or more computers located in one or more locations. For example, a training engine (e.g., Figure 1 The training engine 118 of the embodiment of the present invention can perform the process 300. Generally, the training engine performs the process 300 at each of a plurality of time steps.

[0052] Similar to step 202, the system provides inputs including an observation image characterizing the current state of the environment, and in some cases one or more additional inputs, to the action selection policy neural network, and the action selection policy neural network processes the inputs to generate a policy output (step 302).

[0053] The system provides the intermediate output of the action selection policy neural network as an input to the loop prediction neural network, wherein the loop prediction neural network processes the input according to the values ​​of the parameter set of the loop prediction neural network to generate as an output a score representing the predicted likelihood that the agent has returned to a location in the environment that the agent has visited when the environment is in the current state (step 306). In some embodiments, the agent is considered to have returned to a location in the environment that the agent has visited only if the agent previously visited the location within a fixed number of previous time steps.

[0054] In some embodiments, the intermediate output of the action selection policy neural network provided as an input to the loop closure prediction neural network is an encoded representation generated by a convolutional encoder neural network of the action selection policy neural network. In some other embodiments, the intermediate output of the action selection policy neural network provided as an input to the loop closure prediction neural network is an intermediate representation generated by an intermediate neural network of the action selection policy neural network.

[0055] The engine back-propagates the gradient of the loop-assisted loss to adjust the values ​​of the parameter set of the loop-closure prediction neural network and adjusts the values ​​of some of the parameter sets of the action selection policy neural network so as to minimize the loop-assisted loss (step 308). Typically, the loop-assisted loss is based on the actual similarity of the current state of the environment to an earlier state and the predicted likelihood generated by the loop-closure prediction neural network that the agent has returned to a location in the environment that the agent has visited. However, additionally or alternatively, a measure of location similarity can be obtained by integrating the relative lateral velocity of the agent to determine whether the agent has returned to a similar location previously visited. In some embodiments, the loop-assisted loss is a Bernoulli loss between the predicted likelihood generated by the loop-closure prediction neural network and a binary label. In these embodiments, the binary label has a value of 1 if the agent position at the current time step is within a first threshold distance of the agent position at a particular previous time step and if the agent position deviates from the agent's current position by at least a second threshold distance at any time step between the particular time step and the current time step, otherwise the binary label has a value of 0. The value of the binary label depends on a second threshold to avoid assigning a label value of 1 to trivial loops between consecutive time steps. Thus, in some embodiments, loop closure prediction includes a condition that the agent passes through a location that is greater than a second threshold distance from the location before returning to the location.

[0056] In some embodiments, when training the system, the gradient from the loop closure loss can be combined with the gradient from the geometric prediction in a weighted sum. The weights can be hyperparameters of the system.

[0057] This specification uses the term "configuration" in conjunction with system and computer program components. For a system of one or more computers to be configured to perform a particular operation or action, it means that the system has installed thereon software, firmware, hardware, or a combination thereof that, when operated, causes the system to perform the operation or action. For one or more computer programs to be configured to perform a particular operation or action, it means that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0058] The embodiments of the subject matter and functional operations described in this specification may be implemented in a digital electronic circuit including the structure disclosed in this specification and its structural equivalents, a tangibly embodied computer software or firmware, computer hardware, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs for executing or controlling the operation of a data processing device by a data processing device, that is, one or more computer program instruction modules encoded on a tangible non-temporary storage medium. 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. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal (e.g., a machine-generated electrical, optical or electromagnetic signal), which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device.

[0059] The term "data processing apparatus" refers to data processing hardware and includes all types of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. The apparatus may also or further include a dedicated logic circuit, for example, an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). In addition to hardware, the apparatus may also include code that creates an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.

[0060] A computer program may also be referred to or described as a program, software, software application, application (app), module, software module, script or code, and may be written in any form of programming language including compiled or interpreted languages, or declarative or procedural languages; and it may be deployed in any form including as a stand-alone program or as a module, component, subroutine or other unit suitable for a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines or code portions). A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed over multiple sites and interconnected by a data communications network.

[0061] In this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same computer or multiple computers.

[0062] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a special purpose logic circuit (e.g., an FPGA or ASIC) or a combination of a special purpose logic circuit and one or more programmed computers.

[0063] A computer suitable for executing a computer program can be based on a general or special microprocessor or both, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for executing or running instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by a special logic circuit or incorporated into the special logic circuit. Typically, the computer will also include or be operably coupled to receive data from one or more large-capacity storage devices (such as disks, magneto-optical disks or optical disks) for storing data or transfer data to one or more large-capacity storage devices. However, the computer does not need such a device. In addition, the computer can be embedded in another device (for example, a mobile phone, a personal digital assistant (personal digital assistant, PDA), a mobile audio or video player, a game console, a global positioning system (Global Positioning System, GPS) receiver or a portable storage device (for example, a universal serial bus (universal serial bus, USB) flash drive), just to name a few).

[0064] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM disks.

[0065] To provide interaction with a user, embodiments of the subject matter described in this specification 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, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's device in response to a request received from a network (web) browser. In addition, the computer may interact with the user by sending text messages or other forms of messages to a personal device (e.g., a smart phone running a messaging application) and receiving a response message from the user in return.

[0066] The data processing apparatus for implementing the machine learning model may also include, for example, dedicated hardware accelerator units for processing the common and computationally intensive parts of machine learning training or production (i.e., inference, workloads).

[0067] The machine learning model can be implemented and deployed using a machine learning framework (e.g., the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework).

[0068] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a front-end component (e.g., a client computer with a graphical user interface, a web browser, or an application program through which a user can interact with an implementation of the subject matter described in this specification), or 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 communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs) (e.g., the Internet).

[0069] The computing system may include a client and a server. The client and the server are usually remote from each other and typically interact through a communication network. The relationship between the client and the server is generated by means of computer programs that run on each computer and have a client-server relationship with each other. In some embodiments, the server sends data (e.g., an HTML page) to a user device, for example, for the purpose of displaying data to a user interacting with the device as a client and receiving user input from the user. Data generated at the user device, such as the result of a user interaction, can be received from the device at the server.

[0070] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope that may be claimed, but rather as descriptions of features specific to a particular embodiment. Certain features described in this specification in the context of a separate embodiment may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although the above features may be described as working in certain combinations and even initially claimed as such, one or more features from the claimed combination may be cut out of the combination in some cases, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.

[0071] Similarly, although operations are depicted in the drawings and recited in the claims in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in sequence, or that all of the operations shown be performed to achieve the desired effect. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated in a single software product or packaged into multiple software products.

[0072] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.

Claims

1. A computer-implemented method of training an action selection neural network having a plurality of network parameters for selecting actions to be performed by an agent navigating through an environment to achieve one or more goals, wherein: The environment is a simulated environment or a real-world environment, and wherein the agent is a robot or a vehicle interacting with the environment, the action is a control input to control the robot or the autonomous vehicle, and the method comprises: receiving an observation image representing a current state of an environment; processing an input including the observed image using the action selection neural network and based on current values ​​of the network parameters to generate an action selection output for controlling an agent to perform an action; processing, using a loop prediction neural network, an intermediate output generated by the action selection neural network to generate a predicted likelihood representing whether the agent has returned to a location in the environment that the agent has visited when the environment is in a current state; determining an actual similarity between a current state of the environment and an earlier state; and Determine the gradient of the loop closure based auxiliary loss based on the predicted likelihood and the actual similarity; and The gradient of the loop closure-based auxiliary loss is back-propagated into the action selection neural network to determine a loop closure-based auxiliary update for current values ​​of the network parameters.

2. The method according to claim 1, wherein: Determining actual likelihood involves: determining whether a current position of an agent in the environment at a current time step is within a first threshold distance of a particular previous position of the agent in the environment at a particular previous time step; and A determination is made as to whether a position of an agent in an environment deviates from a current position of the agent by at least a second threshold distance at a time step between a particular previous time step and a current time step.

3. The method according to claim 1, wherein: The action selection neural network comprises: A convolutional encoder neural network that generates an encoded representation of the input, an intermediate neural network that processes the encoded representation of the input to produce an intermediate representation, and The output neural network processes the intermediate representation to produce an action selection output.

4. The method according to claim 3, wherein: The intermediate outputs include the encoded representation.

5. The method according to claim 3, wherein: Intermediate outputs include intermediate representations.

6. The method according to claim 3, wherein: Intermediate neural networks include recurrent neural networks.

7. The method according to claim 3, wherein: Intermediate neural networks include feedforward neural networks.

8. The method according to claim 1, further comprising: Use the action selection output to select an action to be performed by the agent when the environment is in its current state; receive rewards based on progress toward achieving one or more goals; as well as A primary update for a current value of a network parameter of the action-selection neural network is determined based at least in part on the reward.

9. The method according to claim 8, further comprising: The current values ​​of the network parameters of the action selection neural network are updated using loop closure-based auxiliary updates and main updates.

10. The method according to claim 1, further comprising: updating current values ​​of network parameters of the action selection neural network using a loop closure-based auxiliary update to generate updated parameter values; as well as An action selection neural network is used to select the action to be performed by the agent based on the updated parameter values.

11. A system for training an action selection neural network, comprising: one or more computers; as well as One or more storage devices communicatively coupled to 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 for training an action selection neural network having a plurality of network parameters for selecting actions to be performed by an agent navigating through an environment to achieve one or more goals, wherein the environment is a simulated environment or a real-world environment, and wherein the agent is a robot or a vehicle interacting with the environment, the actions are control inputs to control the robot or autonomous vehicle, the operations comprising: receiving an observation image representing a current state of the environment; processing an input including the observed image using the action selection neural network and based on current values ​​of the network parameters to generate an action selection output for controlling an agent to perform an action; processing, using a loop prediction neural network, an intermediate output generated by the action selection neural network to generate a predicted likelihood representing whether the agent has returned to a location in the environment that the agent has visited when the environment is in a current state; determining an actual similarity between a current state of the environment and an earlier state; and Determine the gradient of the loop closure based auxiliary loss based on the predicted likelihood and the actual similarity; and The gradient of the loop closure-based auxiliary loss is back-propagated into the action selection neural network to determine a loop closure-based auxiliary update for current values ​​of the network parameters.

12. The system according to claim 11, wherein: Determining actual likelihood involves: determining whether a current position of an agent in the environment at a current time step is within a first threshold distance of a particular previous position of the agent in the environment at a particular previous time step; and A determination is made as to whether a position of an agent in an environment deviates from a current position of the agent by at least a second threshold distance at a time step between a particular previous time step and a current time step.

13. The system according to claim 11, wherein: The action selection neural network comprises: A convolutional encoder neural network that generates an encoded representation of the input, an intermediate neural network that processes the encoded representation of the input to produce an intermediate representation, and The output neural network processes the intermediate representation to produce an action selection output.

14. The system according to claim 13, wherein: The intermediate outputs include the encoded representation.

15. The system of claim 13, wherein: Intermediate outputs include intermediate representations.

16. The system of claim 13, wherein: Intermediate neural networks include recurrent neural networks.

17. 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 for training an action selection neural network having a plurality of network parameters for selecting actions to be performed by an agent navigating through an environment to achieve one or more goals, wherein The environment is a simulated environment or a real-world environment, and wherein the agent is a robot or a vehicle interacting with the environment, the action is a control input to control the robot or the autonomous vehicle, and the operations include: receiving an observation image representing a current state of an environment; processing an input including the observed image using the action selection neural network and based on current values ​​of the network parameters to generate an action selection output for controlling an agent to perform an action; processing, using a loop prediction neural network, an intermediate output generated by the action selection neural network to generate a predicted likelihood representing whether the agent has returned to a location in the environment that the agent has visited when the environment is in a current state; determining an actual similarity between a current state of the environment and an earlier state; and Determine the gradient of the loop closure-based auxiliary loss between the base prediction likelihood and the actual similarity; and The gradient of the loop closure-based auxiliary loss is back-propagated into the action selection neural network to determine a loop closure-based auxiliary update for current values ​​of the network parameters.

18. The non-transitory computer storage medium of claim 17, wherein: Determining actual likelihood involves: determining whether a current position of an agent in the environment at a current time step is within a first threshold distance of a particular previous position of the agent in the environment at a particular previous time step; and A determination is made as to whether a position of an agent in an environment deviates from a current position of the agent by at least a second threshold distance at a time step between a particular previous time step and a current time step.

19. The non-transitory computer storage medium of claim 17, wherein: The action selection neural network comprises: A convolutional encoder neural network that generates an encoded representation of the input, an intermediate neural network that processes the encoded representation of the input to produce an intermediate representation, and The output neural network processes the intermediate representation to produce an action selection output.

20. The non-transitory computer storage medium of claim 19, wherein: The intermediate outputs include the encoded representation.