Nothing Special   »   [go: up one dir, main page]

US11074481B2 - Environment navigation using reinforcement learning - Google Patents

Environment navigation using reinforcement learning Download PDF

Info

Publication number
US11074481B2
US11074481B2 US16/745,757 US202016745757A US11074481B2 US 11074481 B2 US11074481 B2 US 11074481B2 US 202016745757 A US202016745757 A US 202016745757A US 11074481 B2 US11074481 B2 US 11074481B2
Authority
US
United States
Prior art keywords
neural network
action selection
loop closure
agent
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
US16/745,757
Other versions
US20200151515A1 (en
Inventor
Fabio Viola
Piotr Wojciech Mirowski
Andrea Banino
Razvan Pascanu
Hubert Josef Soyer
Andrew James Ballard
Sudarshan Kumaran
Raia Thais Hadsell
Laurent Sifre
Rostislav Goroshin
Koray Kavukcuoglu
Misha Man Ray Denil
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DeepMind Technologies Ltd
Original Assignee
DeepMind Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DeepMind Technologies Ltd filed Critical DeepMind Technologies Ltd
Priority to US16/745,757 priority Critical patent/US11074481B2/en
Assigned to DEEPMIND TECHNOLOGIES LIMITED reassignment DEEPMIND TECHNOLOGIES LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: SOYER, Hubert Josef, VIOLA, Fabio, BANINO, Andrea, KAVUKCUOGLU, KORAY, KUMARAN, Sudarshan, BALLARD, Andrew James, DENIL, Misha Man Ray, GOROSHIN, Rostislav, HADSELL, Raia Thais, MIROWSKI, PIOTR WOJCIECH, SIFRE, LAURENT, PASCANU, Razvan
Publication of US20200151515A1 publication Critical patent/US20200151515A1/en
Application granted granted Critical
Publication of US11074481B2 publication Critical patent/US11074481B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06K9/6262
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • G06K9/00624
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • G06N3/0442Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
    • G06N3/0445
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • G06N3/0454
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/092Reinforcement learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20076Probabilistic image processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Definitions

  • This specification relates to reinforcement learning.
  • 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.
  • Some reinforcement learning systems select the action to be performed by the agent in response to receiving a given observation in accordance with an output of a neural network.
  • Neural networks are machine learning models that employ 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 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 a received input in accordance with current values of a respective set of parameters.
  • This specification describes a reinforcement learning system implemented as computer programs on one or more computers in one or more locations that selects actions to be performed by an agent interacting with an environment.
  • the system uses an action selection policy neural network in selecting actions to be performed in response to observations of the environment.
  • a training engine trains (i) a geometry prediction neural network, (ii) a loop closure prediction neural network, or both, that receive as inputs respective intermediate outputs of the action selection policy neural network.
  • the method comprises: receiving an observation image characterizing a current state of the environment; processing, using the action selection policy neural network and in accordance with current values of the network parameters, an input comprising the observation image to generate an action selection output; processing, using a geometry-prediction neural network, an intermediate output generated by the action selection policy neural network to predict a value of a feature of a geometry of the environment when in the current state; and determining a gradient of a geometry-based auxiliary loss that is based on an actual value of the feature and the predicted value of the feature; and backpropagating 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.
  • the predicted value of the feature of the geometry is a predicted depth of the environment as characterized by the observation image and the actual value of the feature of the geometry is an actual depth of the environment as characterized by the observation image.
  • the auxiliary loss is used for training the system but the predicted value of the feature of the geometry need not be otherwise used.
  • the action selection policy 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 generate an intermediate representation; and an output neural network that processes the intermediate representation to generate the action selection output.
  • the intermediate output comprises the encoded representation.
  • the intermediate output comprises the intermediate representation.
  • the method further comprises: processing the intermediate representation using a loop closure prediction neural network that is configured to generate a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited; determining a gradient of a loop closure auxiliary loss that is based on an actual similarity of the current state to earlier states of the environment and the predicted likelihood; and backpropagating the gradient of the loop closure auxiliary loss into the action selection policy neural network to determine a loop closure auxiliary update for the current values of the network parameters.
  • the intermediate neural network is a recurrent neural network.
  • the intermediate neural network is a feedforward neural network.
  • the method further comprises: selecting an action to be performed by the agent when the environment is in the current state using the action selection output; receiving a reward that is based on progress toward accomplishing the one or more goals; and determining a main update for the network parameters based at least in part on the reward.
  • the method further comprises: using the geometry-based auxiliary update and the main update to update the current values of the network parameters.
  • the method further comprises: updating the current values of the network parameters using the geometry-based auxiliary update to generate updated parameter values; and using the action selection policy neural network to select an action to be performed by the agent in accordance with the updated parameter values.
  • the reinforcement learning system described in this specification can augment the feedback signals received during the training of the action selection policy neural network to improve training.
  • training the geometry prediction neural network or loop closure prediction neural network tunes the values of the action selection policy neural network parameters, causing them to generate more useful representations of observed data and ultimately determine more effective policy outputs to maximize cumulative reward, even when rewards received by the reinforcement learning system are sparse, e.g., are only rarely non-zero.
  • training the geometry prediction neural network tunes the values of the action selection policy neural network parameters to encourage the learning of representations that aid in obstacle avoidance and short-term trajectory planning.
  • training the loop closure prediction neural network tunes the values of the action selection policy neural network parameters to encourage efficient exploration of an environment and spatial reasoning.
  • the reinforcement learning system described in this specification trains the action selection policy neural network faster than conventional reinforcement learning systems that do not include geometry prediction neural networks and loop closure prediction neural networks. Therefore, the reinforcement learning system described in this specification allows more efficient use of computational resources in training. Moreover, the reinforcement learning system described in this specification achieves superior performance to conventional reinforcement learning systems, i.e., allows an agent to more effectively navigate through an environment.
  • FIG. 1 shows an example reinforcement learning system.
  • FIG. 2 is a flow diagram of an example process for training the action selection policy neural network by training a geometry prediction neural network.
  • FIG. 3 is a flow diagram of an example process for training the action selection policy neural network by training a loop closure prediction neural network.
  • FIG. 1 shows an example reinforcement learning system 100 .
  • the reinforcement learning system 100 is an example of a system implemented as computer programs on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.
  • the reinforcement learning system 100 selects actions 110 to be performed by an agent 108 interacting with an environment 102 at each of multiple time steps.
  • the system 100 receives an observation image 104 characterizing the 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 .
  • the environment 102 is a simulated environment and the agent 108 is implemented as one or more computer programs interacting with the simulated environment by navigating through the simulated environment.
  • the simulated environment may be a video game and the agent 108 may be a simulated user playing the video game by navigating through the simulated environment.
  • the simulated environment may be a motion simulation environment, e.g., a driving simulation or a flight simulation, and the agent 108 is a simulated vehicle navigating through the motion simulation environment.
  • the actions 110 may be control inputs to control the simulated user or simulated vehicle.
  • the environment 102 is a real-world environment and the agent 108 is a mechanical agent interacting with the real-world environment.
  • the agent 108 may be an autonomous or semi-autonomous vehicle navigating through the environment.
  • the actions 110 may be control inputs to control the robot or the autonomous vehicle.
  • the observation images 104 may be generated by or derived from sensors of the agent 108 .
  • the observation images 104 may be RGB images captured by a camera of the agent 108 .
  • the observation images 104 may be derived from data captured from a laser sensor of the agent 108 .
  • the observation images may be hyperspectral images captured by a hyperspectral sensor of the agent 108 .
  • 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 the agent 108 accomplishing one or more goals. For example, a goal of the agent may be to navigate to a goal location in the environment 102 .
  • the system 100 uses an action selection policy neural network 112 in selecting actions to be performed by the agent 108 in response to observation images 104 at each time step.
  • the action selection policy neural network 112 is configured to receive an input including an observation image 104 and to process the input in accordance with a set of parameters of the action selection policy neural network to generate a policy output that the system 100 uses to determine an action 110 to be performed by the agent 108 at the time step.
  • the action selection policy neural network 112 is configured to receive additional inputs, including one or more of: agent-relative lateral, rotational velocity, the action performed by the agent at the previous time step, i.e. the time step before the current time step, or the reward received by the system at the previous time step.
  • agent-relative lateral velocity refers to the forward and sideways velocity of the agent as defined in the egocentric reference frame of the agent.
  • the angular velocity refers to the rotational velocity of the agent about the vertical axis.
  • the policy output is a probability distribution over the set of possible actions.
  • the policy output may be a Q-value that is an estimate of the long-term time-discounted reward that would be received if the agent 108 performs a particular action in response to the observation.
  • the policy output may identify a particular action that is predicted to yield the highest long-term time-discounted reward if performed by the agent in response to the observation.
  • the policy output is a combination of the previously described policy outputs.
  • the action selection policy neural network 112 includes a convolutional encoder neural network that generates an encoded representation of the input observation image 104 , an intermediate neural network that processes the encoded representation of the input observation image to generate an intermediate representation, and an output neural network that processes the intermediate representation to generate the policy output.
  • the intermediate neural network is a feedforward neural network.
  • the intermediate neural network may be a multi-layer perceptron (MLP).
  • MLP multi-layer perceptron
  • the intermediate neural network is a recurrent neural network.
  • the intermediate neural network may be a long short-term memory (LSTM) network, or a stack of LSTM networks.
  • a stack of LSTM networks is an ordered set of multiple LSTM networks, where the first LSTM network processes the encoded representation, and each subsequent LSTM network processes the output of the previous LSTM network.
  • the stack of LSTM networks may include skip-connections providing the encoded representation to LSTM networks after the first LSTM network.
  • the output neural network is a feedforward neural network.
  • the output neural network may be a MLP.
  • the additional inputs may be provided as input to the encoder neural network or the intermediate neural network of the action selection policy neural network 112 .
  • the encoded representation of the input observation image and the 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 which also has an input from an output of the first layer. In this way the first layer may make associations between a visual observation and a reward, which are provided to the second layer from which the policy is computed.
  • a training engine 118 trains the action selection policy neural network 112 to generate policy outputs that maximize the expected cumulative reward received by the system 100 , e.g. a long-term time-discounted sum of rewards received by the system 100 , by using a reinforcement learning technique to iteratively adjust the values of the set of parameters of the action selection policy neural network.
  • a reinforcement learning technique is described in Volodymyr Mnih et. al., “Asynchronous methods for deep reinforcement learning,” Proceedings of the 33 rd International Conference on Machine Learning, 2016.
  • the training engine 118 may train the action selection policy neural network 112 by additionally training a geometry prediction neural network 114 that receives as input an intermediate output of the action selection policy neural network 112 .
  • Training the geometry prediction neural network 114 tunes the values of the set of parameters of the action selection policy neural network 112 to cause the action selecting policy neural network 112 to generate more useful representations of observations 104 which aid in obstacle avoidance and short-term trajectory planning and cause the action selection policy neural network 112 to determine more effective policy outputs to maximize expected cumulative reward, even when non-zero rewards are only rarely received.
  • the geometry prediction neural network 114 receives as input an intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input in accordance with the values of a set of parameters of the geometry prediction neural network, to generate as output a predicted value of a feature of a geometry of the environment in the current state.
  • the feature of the geometry of the environment in the current state is the depth of the environment as characterized by the given observation image, i.e. depth values corresponding to pixels of the given observation image, where the depth value for a pixel corresponds to the distance from the agent sensor that captured the given observation image to a surface or object depicted in the given observation image that contains the pixel.
  • the feature of the geometry of the environment in the current state is the distance of the agent 108 from known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the bearing of the agent 108 relative to known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the observation image of the environment in the current state, a predicted future observation image of the environment, or a reconstruction of a past observation image of the environment that was previously received. In some implementations, the feature of the geometry of the environment is some combination of the previously described features of the geometry of the environment. In some implementations, the geometry prediction neural network 114 is a feed-forward neural network. For example, the geometry prediction neural network may be a MLP.
  • An 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 the given observation as input.
  • the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112 .
  • the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112 .
  • the system 100 includes two geometry prediction neural networks, where one geometry prediction neural network receives the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112 as input, and where the other geometry prediction neural network receives the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112 as input.
  • the training engine 118 trains the geometry prediction neural network 114 to generate a predicted value of the feature of the geometry that minimizes a geometry-based auxiliary loss that is based on the actual value of the feature of the geometry. Specifically, the training engine 118 backpropagates the gradient of the geometry-based auxiliary loss to adjust the values of the set of parameters of the geometry prediction neural network 114 , and to adjust the values of some of the set of parameters of the action selection policy neural network 112 , in order to minimize the geometry-based auxiliary loss.
  • the training engine 118 adjusts the parameters of the action selection policy neural network corresponding to (i) the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the geometry prediction neural network, and (ii) units that feed-forward into the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the geometry prediction neural network.
  • a first unit is said to feed-forward into a second unit if the output of the first unit is either directly or indirectly provided as an input to the second unit.
  • the training engine 118 may train the action selection policy neural network 112 by additionally training a loop closure prediction neural network 114 that receives as input an intermediate output of the action selection policy neural network 112 .
  • Training the loop closure prediction neural network 114 tunes the values of the set of parameters of the action selection policy neural network 112 to cause the action selecting policy neural network 112 to generate more useful representations of observations 104 which aid in efficient environment exploration and spatial reasoning, and cause the action selection policy neural network 112 to determine more effective policy outputs to maximize expected cumulative reward, even when rewards are sparse, i.e., non-zero rewards are only rarely received.
  • the loop closure prediction neural network 116 receives as input an intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input in accordance with the values of a set of parameters of the loop closure prediction neural network 116 to generate as output a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited. In some implementations, the agent is considered to have returned to a location in the environment that the agent has already visited only if the agent previously visited the location within a fixed previous number of time steps. In some implementations, the loop closure prediction neural network 116 is a feed-forward neural network. For example, the loop closure prediction neural network 116 may be a MLP.
  • the intermediate output of the action selection policy neural network 112 provided as input to the loop closure prediction neural network 114 is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112 . In some other implementations, the intermediate output of the action selection policy neural network 112 provided as input to the loop closure prediction neural network 114 is the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112 .
  • the training engine 118 trains the loop closure prediction neural network 116 to generate a score that minimizes a loop closure auxiliary loss that is based on an actual similarity of a location of the current state to the locations of earlier states of the environment, and the predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited. Specifically, the training engine 118 backpropagates the gradient of the loop closure auxiliary loss to adjust the values of the set of parameters of the loop closure prediction neural network 116 , and to adjust the values of some of the set of parameters of the action selection policy neural network 112 , in order to minimize the loop closure auxiliary loss.
  • the training engine 118 adjusts the parameters of the action selection policy neural network corresponding to (i) the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the loop closure prediction neural network 116 , and (ii) units that feed-forward into the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the loop closure prediction neural network 116 .
  • An example process for training the action selection policy neural network 112 by training the loop closure prediction neural network 116 is described with reference to FIG. 3 .
  • 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 observations and rewards as they are received. For example, at a given time step, the system 100 may select an action to be performed by the agent 108 based on the policy output generated by the action selection policy neural network 112 , receive a reward 106 , and the training engine 118 may update the values of the parameters of the neural networks of the system 100 through gradient backpropagation based on one or more of the reinforcement learning technique, the auxiliary geometry-based loss, and the loop closure auxiliary loss.
  • the system 100 selects the action to be performed by the agent 108 based on the policy output generated by the action selection policy neural network 112 in accordance with the updated values of the parameters of the action selection policy neural network 112 .
  • the training engine 118 trains the networks from experiences (i.e., tuples including observations, actions, rewards for previous time steps) stored in a replay memory.
  • the training engine 118 may train the networks using on-policy training or off policy training, or any other appropriate reinforcement learning technique.
  • gradient backpropagation based on the reinforcement learning technique, the auxiliary geometry-based loss, and the loop closure auxiliary loss are associated with different weight values that scale the size of the adjustment to the parameters of the networks based on the gradients.
  • FIG. 2 is a flow diagram of an example process 200 for training the action selection policy neural network by training a geometry prediction neural network.
  • the process 200 will be described as being performed by a training engine including one or more computers located in one or more locations.
  • a training engine e.g., the training engine 118 of FIG. 1 , appropriately programmed in accordance with this specification, can perform the process 200 .
  • the training engine performs the process 200 at each of multiple time steps.
  • the system provides inputs to the action selection policy neural network, including an observation image characterizing a current state of the environment, and the action selection policy neural network processes the inputs in accordance with the values of the set of parameters of the action selection policy neural network to generate a policy output (step 202 ).
  • the observation image is an RGB image.
  • the inputs provided to the action selection policy neural network may include additional inputs, such as agent-relative lateral and rotational velocity, the action performed by the agent at the previous time step, and the reward received by the system at the previous time step.
  • the agent-relative lateral and rotational velocity and the reward received by the system by the previous time step may be represented as vectors, and the action performed by the agent at the previous time step may be represented specifically by a one-hot encoding vector.
  • the observation image is provided as input to the convolutional encoder neural network of the action selection policy neural network.
  • the additional inputs may be provided as input to the encoder neural network or the intermediate neural network of the action selection policy neural network.
  • the system provides an intermediate output of the action selection policy neural network as input to the geometry prediction neural network, which processes the input in accordance with the values of the set of parameters of the geometry prediction neural network to generate as output a predicted value of a feature of a geometry of the environment in the current state (step 206 ).
  • the intermediate output of the action selection policy neural network provided as input to the geometry prediction neural network is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network. In some other implementations, the intermediate output of the action selection policy neural network provided as input to the geometry prediction neural network is the intermediate representation generated by the intermediate neural network of the action selection policy neural network. In some other implementations, the system includes two geometry prediction neural networks, where one geometry prediction neural network receives the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network as input, and where the other geometry prediction neural network receives the intermediate representation generated by the intermediate neural network of the action selection policy neural network as input.
  • the feature of the geometry of the environment in the current state may be the depth of the environment as characterized by the given observation image.
  • the value of the feature of the geometry of the environment output by the geometry prediction neural network is represented as an array of non-negative scalar values, where each element of the array has a value corresponding to the predicted depth value of a corresponding pixel of the observation image.
  • the value of the feature of the geometry of the environment output by the geometry prediction neural network is represented as an array of categorical variables, where 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 a corresponding pixel of the observation image.
  • the categorical variables uniformly sub-divide the range of possible depth values. In some other cases, the categorical variables sub-divide the range of possible depth values more coarsely for lower depth values, and more finely for higher depth values.
  • the array has the same dimensionality as the observation image, and in some other implementations the array has a smaller dimensionality than the observation image, for reasons of computational efficiency.
  • the feature of the geometry of the environment in the current state is the distance of the agent from known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the bearing of the agent relative to known landmarks in the environment.
  • the feature of the geometry of the environment in the current state is the observation image of the environment in the current state, a future observation image of the environment, or a past observation image of the environment. In some implementations, the feature of the geometry of the environment is some combination of the previously described features of the geometry of the environment.
  • the engine backpropagates the gradient of the geometry-based auxiliary loss to adjust the values of the set of parameters of the geometry prediction neural network and to adjust the values of some of the set of parameters of the action selection policy neural network, in order to minimize the geometry-based auxiliary loss (step 308 ).
  • the geometry-based auxiliary loss measures a difference between the predicted value of the feature of the geometry generated by the geometry prediction neural network and the actual value of the feature of the geometry. If the predicted value of the feature of the geometry has the form of an array of non-negative scalar values representing predicted depth values for corresponding pixels of the observation, the geometry-based auxiliary loss may be a mean-square error loss between the predicted depth values and the actual depth values. If the predicted value of the feature of the geometry has the form of an array of categorical variables representing predicted depth values for corresponding pixels of the observation, the geometry-based auxiliary loss may be a sum of cross-entropy loss functions for each categorical variable.
  • FIG. 3 is a flow diagram of an example process 300 for training the action selection policy neural network by training a loop closure prediction neural network.
  • the process 300 will be described as being performed by a training engine including one or more computers located in one or more locations.
  • a training engine e.g., the training engine 118 of FIG. 1 , appropriately programmed in accordance with this specification, can perform the process 300 .
  • the training engine performs the process 300 at each of multiple time steps.
  • the system provides inputs to the action selection policy neural network, including an observation image characterizing a current state of the environment, and in some cases one or more additional inputs, and the action selection policy neural network processes the inputs to generate a policy output, similar to step 202 (step 302 ).
  • the system provides an intermediate output of the action selection policy neural network as input to the loop closure prediction neural network, which processes the input in accordance with the values of the set of parameters of the loop closure prediction neural network to generate as output a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited (step 306 ).
  • the agent is considered to have returned to a location in the environment that the agent has already visited only if the agent previously visited the location within a fixed previous number of time steps.
  • the intermediate output of the action selection policy neural network provided as input to the loop closure prediction neural network is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network. In some other implementations, the intermediate output of the action selection policy neural network provided as input to the loop closure prediction neural network is the intermediate representation generated by the intermediate neural network of the action selection policy neural network.
  • the engine backpropagates the gradient of the loop closure auxiliary loss to adjust the values of the set of parameters of the loop closure prediction neural network and to adjust the values of some of the set of parameters of the action selection policy neural network, in order to minimize the loop closure auxiliary loss (step 308 ).
  • the loop closure auxiliary loss is based on an actual similarity of the current state to earlier states of the environment and the predicted likelihood that the agent has returned to a location in the environment that the agent has already visited generated by the loop closure prediction neural network. Additionally or alternatively however a measure of similarity of location may be obtained by integrating the agent-relative lateral velocity to determine whether the agent has returned to a similar location to one previously visited.
  • the loop closure auxiliary loss is a Bernoulli loss between the predicted likelihood generated by the loop closure prediction neural network and a binary label.
  • the binary label has value 1 if the location of the agent at the current time step is within a first threshold distance of the location of the agent at a particular previous time step and if the location of the agent deviated from the current location of the agent at any time step between the particular time step and the current time step by at least a second threshold distance, and has value 0 otherwise.
  • the value of the binary label depends on the second threshold in order to avoid assigning label value 1 to trivial loop closures between consecutive time steps.
  • the loop closure prediction includes a condition that the agent passes through a location greater than the second threshold distance away from a location before returning to the location.
  • gradients from the loop closure loss may be combined in a weighted sum with gradients from the geometry prediction when training the system.
  • the weights may be hyperparameters of the system.
  • Embodiments of the subject matter and the functional operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them.
  • Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by, or to control the operation of, data processing apparatus.
  • the computer storage medium can 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.
  • the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
  • 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 can also be, or further include, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
  • the apparatus can optionally include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
  • a computer program which may also be referred to or described as a program, software, a software application, an app, a module, a software module, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed 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 program may, but need not, correspond to a file in a file system.
  • a program can 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 that store one or more modules, sub-programs, or portions of code.
  • a computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communication network.
  • engine is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions.
  • 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 particular engine; in other cases, multiple engines can be installed and running on the same computer or computers.
  • 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 special purpose logic circuitry, e.g., an FPGA or an ASIC, or by a combination of special purpose logic circuitry and one or more programmed computers.
  • Computers suitable for the execution of a computer program can be based on general or special purpose microprocessors or both, or any other kind of central processing unit.
  • a central processing unit will receive 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 performing or executing instructions and one or more memory devices for storing instructions and data.
  • the central processing unit and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
  • a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks.
  • a computer need not have such devices.
  • a computer can be embedded in another device, e.g., a mobile telephone, 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, e.g., a universal serial bus (USB) flash drive, to name just a few.
  • PDA personal digital assistant
  • GPS Global Positioning System
  • USB universal serial bus
  • 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.
  • semiconductor memory devices e.g., EPROM, EEPROM, and flash memory devices
  • magnetic disks e.g., internal hard disks or removable disks
  • magneto-optical disks e.g., CD-ROM and DVD-ROM disks.
  • embodiments of the subject matter described in this specification can 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 a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer.
  • a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • keyboard and a pointing device e.g., a mouse or a trackball
  • Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.
  • a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's device in response to requests received from the web browser.
  • a computer can interact with a user by sending text messages or other forms of message to a personal device, e.g., a smartphone that is running a messaging application, and receiving responsive messages from the user in return.
  • Data processing apparatus for implementing machine learning models can also include, for example, special-purpose hardware accelerator units for processing common and compute-intensive parts of machine learning training or production, i.e., inference, workloads.
  • Machine learning models can be implemented and deployed using a machine learning framework, e.g., a TensorFlow framework, a Microsoft Cognitive Toolkit framework, an Apache Singa framework, or an Apache MXNet framework.
  • a machine learning framework e.g., a TensorFlow framework, a Microsoft Cognitive Toolkit framework, an Apache Singa framework, or an Apache MXNet framework.
  • Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app 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 can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.
  • LAN local area network
  • WAN wide area network
  • the computing system can include clients and servers.
  • a client and server 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.
  • a server transmits data, e.g., an HTML page, to a user device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device, which acts as a client.
  • Data generated at the user device e.g., a result of the user interaction, can be received at the server from the device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for training a reinforcement learning system. In one aspect, a method of training an action selection policy neural network for use in selecting actions to be performed by an agent navigating through an environment to accomplish one or more goals comprises: receiving an observation image characterizing a current state of the environment; processing, using the action selection policy neural network, an input comprising the observation image to generate an action selection output; processing, using a geometry-prediction neural network, an intermediate output generated by the action selection policy neural network to predict a value of a feature of a geometry of the environment when in the current state; and backpropagating a gradient of a geometry-based auxiliary loss into the action selection policy neural network to determine a geometry-based auxiliary update for current values of the network parameters.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a continuation application of, and claims priority to, patent application Ser. No. 16/403,343, filed on May 3, 2019, which is a continuation application of, and claims priority to, PCT Patent Application No. PCT/IB2017/056907, filed on Nov. 4, 2017, which application claims the benefit under 35 U.S.C. § 119(e) of U.S. Patent Application No. 62/418,074, filed Nov. 4, 2016. The disclosure of each of the foregoing applications is incorporated herein by reference.
BACKGROUND
This specification relates to reinforcement learning.
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.
Some reinforcement learning systems select the action to be performed by the agent in response to receiving a given observation in accordance with an output of a neural network.
Neural networks are machine learning models that employ 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 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 a received input in accordance with current values of a respective set of parameters.
SUMMARY
This specification describes a reinforcement learning system implemented as computer programs on one or more computers in one or more locations that selects actions to be performed by an agent interacting with an environment. Generally, the system uses an action selection policy neural network in selecting actions to be performed in response to observations of the environment. To improve training of the action selection policy neural network, during this training, a training engine also trains (i) a geometry prediction neural network, (ii) a loop closure prediction neural network, or both, that receive as inputs respective intermediate outputs of the action selection policy neural network.
There is provided a method of training an action selection policy neural network having a plurality of network parameters for use in selecting actions to be performed by an agent navigating through an environment to accomplish one or more goals. The method comprises: receiving an observation image characterizing a current state of the environment; processing, using the action selection policy neural network and in accordance with current values of the network parameters, an input comprising the observation image to generate an action selection output; processing, using a geometry-prediction neural network, an intermediate output generated by the action selection policy neural network to predict a value of a feature of a geometry of the environment when in the current state; and determining a gradient of a geometry-based auxiliary loss that is based on an actual value of the feature and the predicted value of the feature; and backpropagating 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.
In some implementations, the predicted value of the feature of the geometry is a predicted depth of the environment as characterized by the observation image and the actual value of the feature of the geometry is an actual depth of the environment as characterized by the observation image. In some implementations the auxiliary loss is used for training the system but the predicted value of the feature of the geometry need not be otherwise used.
In some implementations, the action selection policy 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 generate an intermediate representation; and an output neural network that processes the intermediate representation to generate the action selection output.
In some implementations, the intermediate output comprises the encoded representation.
In some implementations, the intermediate output comprises the intermediate representation.
In some implementations, the method further comprises: processing the intermediate representation using a loop closure prediction neural network that is configured to generate a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited; determining a gradient of a loop closure auxiliary loss that is based on an actual similarity of the current state to earlier states of the environment and the predicted likelihood; and backpropagating the gradient of the loop closure auxiliary loss into the action selection policy neural network to determine a loop closure auxiliary update for the current values of the network parameters.
In some implementations, the intermediate neural network is a recurrent neural network.
In some implementations, the intermediate neural network is a feedforward neural network.
In some implementations, the method further comprises: selecting an action to be performed by the agent when the environment is in the current state using the action selection output; receiving a reward that is based on progress toward accomplishing the one or more goals; and determining a main update for the network parameters based at least in part on the reward.
In some implementations, the method further comprises: using the geometry-based auxiliary update and the main update to update the current values of the network parameters.
In some implementations, the method further comprises: updating the current values of the network parameters using the geometry-based auxiliary update to generate updated parameter values; and using the action selection policy neural network to select an action to be performed by the agent in accordance with the updated parameter values.
Particular embodiments of the subject matter described in this specification can be implemented so as to realize one or more of the following advantages. By training a geometry prediction neural network or a loop closure prediction neural network or both to perform auxiliary prediction tasks, in addition to training the action selection policy neural network to maximize cumulative reward, the reinforcement learning system described in this specification can augment the feedback signals received during the training of the action selection policy neural network to improve training. In particular, training the geometry prediction neural network or loop closure prediction neural network tunes the values of the action selection policy neural network parameters, causing them to generate more useful representations of observed data and ultimately determine more effective policy outputs to maximize cumulative reward, even when rewards received by the reinforcement learning system are sparse, e.g., are only rarely non-zero. For example, training the geometry prediction neural network tunes the values of the action selection policy neural network parameters to encourage the learning of representations that aid in obstacle avoidance and short-term trajectory planning. As another example, training the loop closure prediction neural network tunes the values of the action selection policy neural network parameters to encourage efficient exploration of an environment and spatial reasoning.
The reinforcement learning system described in this specification trains the action selection policy neural network faster than conventional reinforcement learning systems that do not include geometry prediction neural networks and loop closure prediction neural networks. Therefore, the reinforcement learning system described in this specification allows more efficient use of computational resources in training. Moreover, the reinforcement learning system described in this specification achieves superior performance to conventional reinforcement learning systems, i.e., allows an agent to more effectively navigate through an environment.
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, the drawings, and the claims.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows an example reinforcement learning system.
FIG. 2 is a flow diagram of an example process for training the action selection policy neural network by training a geometry prediction neural network.
FIG. 3 is a flow diagram of an example process for training the action selection policy neural network by training a loop closure prediction neural network.
Like reference numbers and designations in the various drawings indicate like elements.
DETAILED DESCRIPTION
FIG. 1 shows an example reinforcement learning system 100. The reinforcement learning system 100 is an example of a system implemented as computer programs on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.
The reinforcement learning system 100 selects actions 110 to be performed by an agent 108 interacting with an environment 102 at each of multiple time steps. In order for the agent 108 to interact with the environment 102, the system 100 receives an observation image 104 characterizing the 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.
In some implementations, the environment 102 is a simulated environment and the agent 108 is implemented as one or more computer programs interacting with the simulated environment by navigating through the simulated environment. For example, the simulated environment may be a video game and the agent 108 may be a simulated user playing the video game by navigating through the simulated environment. As another example, the simulated environment may be a motion simulation environment, e.g., a driving simulation or a flight simulation, and the agent 108 is a simulated vehicle navigating through the motion simulation environment. In these cases, the actions 110 may be control inputs to control the simulated user or simulated vehicle.
In some other implementations, the environment 102 is a real-world environment and the agent 108 is a mechanical agent interacting with the real-world environment. For example, the agent 108 may be an autonomous or semi-autonomous vehicle navigating through the environment. In these cases, the actions 110 may be control inputs to control the robot or the autonomous vehicle.
In some of these implementations, the observation images 104 may be generated by or derived from sensors of the agent 108. For example, the observation images 104 may be RGB images captured by a camera of the agent 108. As another example, the observation images 104 may be derived from data captured from a laser sensor of the agent 108. As another example, the observation images may be hyperspectral images captured by a hyperspectral sensor of the agent 108.
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 the agent 108 accomplishing one or more goals. For example, a goal of the agent may be to navigate to a goal location in the environment 102.
The system 100 uses an action selection policy neural network 112 in selecting actions to be performed by the agent 108 in response to observation images 104 at each time step. In particular, the action selection policy neural network 112 is configured to receive an input including an observation image 104 and to process the input in accordance with a set of parameters of the action selection policy neural network to generate a policy output that the system 100 uses to determine an action 110 to be performed by the agent 108 at the time step. In some implementations, the action selection policy neural network 112 is configured to receive additional inputs, including one or more of: agent-relative lateral, rotational velocity, the action performed by the agent at the previous time step, i.e. the time step before the current time step, or the reward received by the system at the previous time step. The agent-relative lateral velocity refers to the forward and sideways velocity of the agent as defined in the egocentric reference frame of the agent. The angular velocity refers to the rotational velocity of the agent about the vertical axis.
In some implementations, the policy output is a probability distribution over the set of possible actions. In some implementations, the policy output may be a Q-value that is an estimate of the long-term time-discounted reward that would be received if the agent 108 performs a particular action in response to the observation. In some implementations, the policy output may identify a particular action that is predicted to yield the highest long-term time-discounted reward if performed by the agent in response to the observation. In some implementations, the policy output is a combination of the previously described policy outputs.
In general, the action selection policy neural network 112 includes a convolutional encoder neural network that generates an encoded representation of the input observation image 104, an intermediate neural network that processes the encoded representation of the input observation image to generate an intermediate representation, and an output neural network that processes the intermediate representation to generate the policy output. In some implementations, the intermediate neural network is a feedforward neural network. For example, the intermediate neural network may be a multi-layer perceptron (MLP). In some other implementations, the intermediate neural network is a recurrent neural network. In these implementations, the intermediate neural network may be a long short-term memory (LSTM) network, or a stack of LSTM networks. A stack of LSTM networks is an ordered set of multiple LSTM networks, where the first LSTM network processes the encoded representation, and each subsequent LSTM network processes the output of the previous LSTM network. In some implementations, the stack of LSTM networks may include skip-connections providing the encoded representation to LSTM networks after the first LSTM network. In some implementations, the output neural network is a feedforward neural network. For example, the output neural network may be a MLP.
In implementations where the action selection policy neural network 112 is configured to receive inputs additional to the observation image 104, including agent-relative lateral and rotational velocity, the action performed by the agent at the previous time step, and the reward received by the system 100 at the previous time step, the additional inputs may be provided as input to the encoder neural network or the intermediate neural network of the action selection policy neural network 112. Where the additional inputs are provided as input to the intermediate neural network, the encoded representation of the input observation image and the 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 which also has an input from an output of the first layer. In this way the first layer may make associations between a visual observation and a reward, which are provided to the second layer from which the policy is computed.
In general, a training engine 118 trains the action selection policy neural network 112 to generate policy outputs that maximize the expected cumulative reward received by the system 100, e.g. a long-term time-discounted sum of rewards received by the system 100, by using a reinforcement learning technique to iteratively adjust the values of the set of parameters of the action selection policy neural network. An example of a reinforcement learning technique is described in Volodymyr Mnih et. al., “Asynchronous methods for deep reinforcement learning,” Proceedings of the 33rd International Conference on Machine Learning, 2016.
In addition to training the action selection policy neural network 112 to maximize the expected cumulative reward, the training engine 118 may train the action selection policy neural network 112 by additionally training a geometry prediction neural network 114 that receives as input an intermediate output of the action selection policy neural network 112. Training the geometry prediction neural network 114 tunes the values of the set of parameters of the action selection policy neural network 112 to cause the action selecting policy neural network 112 to generate more useful representations of observations 104 which aid in obstacle avoidance and short-term trajectory planning and cause the action selection policy neural network 112 to determine more effective policy outputs to maximize expected cumulative reward, even when non-zero rewards are only rarely received.
The geometry prediction neural network 114 receives as input an intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input in accordance with the values of a set of parameters of the geometry prediction neural network, to generate as output a predicted value of a feature of a geometry of the environment in the current state. In some implementations, the feature of the geometry of the environment in the current state is the depth of the environment as characterized by the given observation image, i.e. depth values corresponding to pixels of the given observation image, where the depth value for a pixel corresponds to the distance from the agent sensor that captured the given observation image to a surface or object depicted in the given observation image that contains the pixel. In some implementations, the feature of the geometry of the environment in the current state is the distance of the agent 108 from known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the bearing of the agent 108 relative to known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the observation image of the environment in the current state, a predicted future observation image of the environment, or a reconstruction of a past observation image of the environment that was previously received. In some implementations, the feature of the geometry of the environment is some combination of the previously described features of the geometry of the environment. In some implementations, the geometry prediction neural network 114 is a feed-forward neural network. For example, the geometry prediction neural network may be a MLP.
An 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 the given observation as input. In some implementations, the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112. In some other implementations, the intermediate output of the action selection policy neural network 112 provided as input to the geometry prediction neural network 114 is the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112. In some other implementations, the system 100 includes two geometry prediction neural networks, where one geometry prediction neural network receives the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112 as input, and where the other geometry prediction neural network receives the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112 as input.
The training engine 118 trains the geometry prediction neural network 114 to generate a predicted value of the feature of the geometry that minimizes a geometry-based auxiliary loss that is based on the actual value of the feature of the geometry. Specifically, the training engine 118 backpropagates the gradient of the geometry-based auxiliary loss to adjust the values of the set of parameters of the geometry prediction neural network 114, and to adjust the values of some of the set of parameters of the action selection policy neural network 112, in order to minimize the geometry-based auxiliary loss. In particular, the training engine 118 adjusts the parameters of the action selection policy neural network corresponding to (i) the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the geometry prediction neural network, and (ii) units that feed-forward into the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the geometry prediction neural network. In this specification, a first unit is said to feed-forward into a second unit if the output of the first unit is either directly or indirectly provided as an input to the second unit. An example process for training the action selection policy neural network 112 by training the geometry prediction neural network 114 is described with reference to FIG. 2.
In addition to training the action selection policy neural network 112 to maximize the expected cumulative reward, the training engine 118 may train the action selection policy neural network 112 by additionally training a loop closure prediction neural network 114 that receives as input an intermediate output of the action selection policy neural network 112. Training the loop closure prediction neural network 114 tunes the values of the set of parameters of the action selection policy neural network 112 to cause the action selecting policy neural network 112 to generate more useful representations of observations 104 which aid in efficient environment exploration and spatial reasoning, and cause the action selection policy neural network 112 to determine more effective policy outputs to maximize expected cumulative reward, even when rewards are sparse, i.e., non-zero rewards are only rarely received.
The loop closure prediction neural network 116 receives as input an intermediate output of the action selection policy neural network 112 when processing a given observation image, and processes the input in accordance with the values of a set of parameters of the loop closure prediction neural network 116 to generate as output a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited. In some implementations, the agent is considered to have returned to a location in the environment that the agent has already visited only if the agent previously visited the location within a fixed previous number of time steps. In some implementations, the loop closure prediction neural network 116 is a feed-forward neural network. For example, the loop closure prediction neural network 116 may be a MLP.
In some implementations, the intermediate output of the action selection policy neural network 112 provided as input to the loop closure prediction neural network 114 is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network 112. In some other implementations, the intermediate output of the action selection policy neural network 112 provided as input to the loop closure prediction neural network 114 is the intermediate representation generated by the intermediate neural network of the action selection policy neural network 112.
The training engine 118 trains the loop closure prediction neural network 116 to generate a score that minimizes a loop closure auxiliary loss that is based on an actual similarity of a location of the current state to the locations of earlier states of the environment, and the predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited. Specifically, the training engine 118 backpropagates the gradient of the loop closure auxiliary loss to adjust the values of the set of parameters of the loop closure prediction neural network 116, and to adjust the values of some of the set of parameters of the action selection policy neural network 112, in order to minimize the loop closure auxiliary loss. In particular, the training engine 118 adjusts the parameters of the action selection policy neural network corresponding to (i) the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the loop closure prediction neural network 116, and (ii) units that feed-forward into the one or more units of the one or more hidden layers of the intermediate output of the action selection policy neural network 112 that the system 100 provides as input to the loop closure prediction neural network 116. An example process for training the action selection policy neural network 112 by training the loop closure prediction neural network 116 is described with reference to FIG. 3.
In some implementations, 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 observations and rewards as they are received. For example, at a given time step, the system 100 may select an action to be performed by the agent 108 based on the policy output generated by the action selection policy neural network 112, receive a reward 106, and the training engine 118 may update the values of the parameters of the neural networks of the system 100 through gradient backpropagation based on one or more of the reinforcement learning technique, the auxiliary geometry-based loss, and the loop closure auxiliary loss. In this example, at the next time step, the system 100 selects the action to be performed by the agent 108 based on the policy output generated by the action selection policy neural network 112 in accordance with the updated values of the parameters of the action selection policy neural network 112. In some implementations, the training engine 118 trains the networks from experiences (i.e., tuples including observations, actions, rewards for previous time steps) stored in a replay memory. The training engine 118 may train the networks using on-policy training or off policy training, or any other appropriate reinforcement learning technique. Moreover, gradient backpropagation based on the reinforcement learning technique, the auxiliary geometry-based loss, and the loop closure auxiliary loss are associated with different weight values that scale the size of the adjustment to the parameters of the networks based on the gradients.
FIG. 2 is a flow diagram of an example process 200 for training the action selection policy neural network by training a geometry prediction neural network. For convenience, the process 200 will be described as being performed by a training engine including one or more computers located in one or more locations. For example, a training engine, e.g., the training engine 118 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 200. In general, the training engine performs the process 200 at each of multiple time steps.
The system provides inputs to the action selection policy neural network, including an observation image characterizing a current state of the environment, and the action selection policy neural network processes the inputs in accordance with the values of the set of parameters of the action selection policy neural network to generate a policy output (step 202). In some implementations, the observation image is an RGB image. In some implementations, the inputs provided to the action selection policy neural network may include additional inputs, such as agent-relative lateral and rotational velocity, the action performed by the agent at the previous time step, and the reward received by the system at the previous time step. The agent-relative lateral and rotational velocity and the reward received by the system by the previous time step may be represented as vectors, and the action performed by the agent at the previous time step may be represented specifically by a one-hot encoding vector. In general, the observation image is provided as input to the convolutional encoder neural network of the action selection policy neural network. Depending on the implementation, the additional inputs may be provided as input to the encoder neural network or the intermediate neural network of the action selection policy neural network.
The system provides an intermediate output of the action selection policy neural network as input to the geometry prediction neural network, which processes the input in accordance with the values of the set of parameters of the geometry prediction neural network to generate as output a predicted value of a feature of a geometry of the environment in the current state (step 206).
In some implementations, the intermediate output of the action selection policy neural network provided as input to the geometry prediction neural network is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network. In some other implementations, the intermediate output of the action selection policy neural network provided as input to the geometry prediction neural network is the intermediate representation generated by the intermediate neural network of the action selection policy neural network. In some other implementations, the system includes two geometry prediction neural networks, where one geometry prediction neural network receives the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network as input, and where the other geometry prediction neural network receives the intermediate representation generated by the intermediate neural network of the action selection policy neural network as input.
In some implementations, the feature of the geometry of the environment in the current state may be the depth of the environment as characterized by the given observation image. In some such implementations, the value of the feature of the geometry of the environment output by the geometry prediction neural network is represented as an array of non-negative scalar values, where each element of the array has a value corresponding to the predicted depth value of a corresponding pixel of the observation image. In some other such implementations, the value of the feature of the geometry of the environment output by the geometry prediction neural network is represented as an array of categorical variables, where 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 a corresponding pixel of the observation image. In some cases, the categorical variables uniformly sub-divide the range of possible depth values. In some other cases, the categorical variables sub-divide the range of possible depth values more coarsely for lower depth values, and more finely for higher depth values. In some of these implementations, the array has the same dimensionality as the observation image, and in some other implementations the array has a smaller dimensionality than the observation image, for reasons of computational efficiency. In some implementations, the feature of the geometry of the environment in the current state is the distance of the agent from known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the bearing of the agent relative to known landmarks in the environment. In some implementations, the feature of the geometry of the environment in the current state is the observation image of the environment in the current state, a future observation image of the environment, or a past observation image of the environment. In some implementations, the feature of the geometry of the environment is some combination of the previously described features of the geometry of the environment.
The engine backpropagates the gradient of the geometry-based auxiliary loss to adjust the values of the set of parameters of the geometry prediction neural network and to adjust the values of some of the set of parameters of the action selection policy neural network, in order to minimize the geometry-based auxiliary loss (step 308). In general, the geometry-based auxiliary loss measures a difference between the predicted value of the feature of the geometry generated by the geometry prediction neural network and the actual value of the feature of the geometry. If the predicted value of the feature of the geometry has the form of an array of non-negative scalar values representing predicted depth values for corresponding pixels of the observation, the geometry-based auxiliary loss may be a mean-square error loss between the predicted depth values and the actual depth values. If the predicted value of the feature of the geometry has the form of an array of categorical variables representing predicted depth values for corresponding pixels of the observation, the geometry-based auxiliary loss may be a sum of cross-entropy loss functions for each categorical variable.
FIG. 3 is a flow diagram of an example process 300 for training the action selection policy neural network by training a loop closure prediction neural network. For convenience, the process 300 will be described as being performed by a training engine including one or more computers located in one or more locations. For example, a training engine, e.g., the training engine 118 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 300. In general, the training engine performs the process 300 at each of multiple time steps.
The system provides inputs to the action selection policy neural network, including an observation image characterizing a current state of the environment, and in some cases one or more additional inputs, and the action selection policy neural network processes the inputs to generate a policy output, similar to step 202 (step 302).
The system provides an intermediate output of the action selection policy neural network as input to the loop closure prediction neural network, which processes the input in accordance with the values of the set of parameters of the loop closure prediction neural network to generate as output a score that represents a predicted likelihood that, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited (step 306). In some implementations, the agent is considered to have returned to a location in the environment that the agent has already visited only if the agent previously visited the location within a fixed previous number of time steps.
In some implementations, the intermediate output of the action selection policy neural network provided as input to the loop closure prediction neural network is the encoded representation generated by the convolutional encoder neural network of the action selection policy neural network. In some other implementations, the intermediate output of the action selection policy neural network provided as input to the loop closure prediction neural network is the intermediate representation generated by the intermediate neural network of the action selection policy neural network.
The engine backpropagates the gradient of the loop closure auxiliary loss to adjust the values of the set of parameters of the loop closure prediction neural network and to adjust the values of some of the set of parameters of the action selection policy neural network, in order to minimize the loop closure auxiliary loss (step 308). In general, the loop closure auxiliary loss is based on an actual similarity of the current state to earlier states of the environment and the predicted likelihood that the agent has returned to a location in the environment that the agent has already visited generated by the loop closure prediction neural network. Additionally or alternatively however a measure of similarity of location may be obtained by integrating the agent-relative lateral velocity to determine whether the agent has returned to a similar location to one previously visited. In some implementations, the loop closure auxiliary loss is a Bernoulli loss between the predicted likelihood generated by the loop closure prediction neural network and a binary label. In these implementations, the binary label has value 1 if the location of the agent at the current time step is within a first threshold distance of the location of the agent at a particular previous time step and if the location of the agent deviated from the current location of the agent at any time step between the particular time step and the current time step by at least a second threshold distance, and has value 0 otherwise. The value of the binary label depends on the second threshold in order to avoid assigning label value 1 to trivial loop closures between consecutive time steps. Thus in some implementations the loop closure prediction includes a condition that the agent passes through a location greater than the second threshold distance away from a location before returning to the location.
In some implementations gradients from the loop closure loss may be combined in a weighted sum with gradients from the geometry prediction when training the system. The weights may be hyperparameters of the system.
This specification uses the term “configured” in connection with systems and computer program components. For a system of one or more computers to be configured to perform particular operations or actions means that the system has installed on it software, firmware, hardware, or a combination of them that in operation cause the system to perform the operations or actions. For one or more computer programs to be configured to perform particular operations or actions means that the one or more programs include instructions that, when executed by data processing apparatus, cause the apparatus to perform the operations or actions.
Embodiments of the subject matter and the functional operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by, or to control the operation of, data processing apparatus. The computer storage medium can 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 in addition, the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
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 can also be, or further include, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). The apparatus can optionally include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
A computer program, which may also be referred to or described as a program, software, a software application, an app, a module, a software module, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed 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 program may, but need not, correspond to a file in a file system. A program can 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 that store one or more modules, sub-programs, or portions of code. A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communication network.
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. Generally, 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 particular engine; in other cases, multiple engines can be installed and running on the same computer or computers.
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 special purpose logic circuitry, e.g., an FPGA or an ASIC, or by a combination of special purpose logic circuitry and one or more programmed computers.
Computers suitable for the execution of a computer program can be based on general or special purpose microprocessors or both, or any other kind of central processing unit. Generally, a central processing unit will receive 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 performing or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by, or incorporated in, special purpose logic circuitry. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, 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, e.g., a universal serial bus (USB) flash drive, to name just a few.
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.
To provide for interaction with a user, embodiments of the subject matter described in this specification can 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 a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's device in response to requests received from the web browser. Also, a computer can interact with a user by sending text messages or other forms of message to a personal device, e.g., a smartphone that is running a messaging application, and receiving responsive messages from the user in return.
Data processing apparatus for implementing machine learning models can also include, for example, special-purpose hardware accelerator units for processing common and compute-intensive parts of machine learning training or production, i.e., inference, workloads.
Machine learning models can be implemented and deployed using a machine learning framework, e.g., a TensorFlow framework, a Microsoft Cognitive Toolkit framework, an Apache Singa framework, or an Apache MXNet framework.
Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app 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 can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.
The computing system can include clients and servers. A client and server 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. In some embodiments, a server transmits data, e.g., an HTML page, to a user device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device, which acts as a client. Data generated at the user device, e.g., a result of the user interaction, can be received at the server from the device.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially be claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above 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 together in a single software product or packaged into multiple software products.
Particular 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 desirable results. As one example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous.

Claims (20)

The invention claimed is:
1. A computer-implemented method of training an action selection neural network having a plurality of network parameters for use in selecting actions to be performed by an agent navigating through an environment to accomplish one or more goals, the method comprising:
receiving an observation characterizing a current state of the environment;
processing, using the action selection neural network and in accordance with current values of the network parameters, an input comprising the observation to generate an action selection output for use in controlling the agent to perform the actions;
processing, using a loop closure prediction neural network, an intermediate output generated by the action selection neural network to predict a value of a loop closure feature that characterizes whether, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited;
determining an actual value of the loop closure feature; and
determining a loop closure-based auxiliary update for the current values of the network parameters of the action selection neural network based on an error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature, comprising:
determining a gradient of a loop closure-based auxiliary loss that is based on the error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature; and
backpropagating the gradient of the loop closure-based auxiliary loss into the action selection neural network to determine the loop closure-based auxiliary update for the current values of the network parameters.
2. The method of claim 1, wherein determining the actual value of the loop closure feature comprises:
determining whether a current location of the agent in the environment at a current time step is within a first threshold distance of a particular previous location of the agent in the environment at a particular previous time step; and
determining whether a location of the agent in the environment deviated from the current location of the agent at a time step between the particular previous time step and the current time step by at least a second threshold distance.
3. The method of 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 generate an intermediate representation, and
an output neural network that processes the intermediate representation to generate the action selection output.
4. The method of claim 3, wherein the intermediate output comprises the encoded representation.
5. The method of claim 3, wherein the intermediate output comprises the intermediate representation.
6. The method of claim 3, wherein the intermediate neural network comprises a recurrent neural network.
7. The method of claim 3, wherein the intermediate neural network comprises a feedforward neural network.
8. The method of claim 1, further comprising:
selecting an action to be performed by the agent when the environment is in the current state using the action selection output;
receiving a reward that is based on progress toward accomplishing the one or more goals; and
determining a main update for the current values of the network parameters of the action selection neural network based at least in part on the reward.
9. The method of claim 8, further comprising:
using the loop closure-based auxiliary update and the main update to update the current values of the network parameters of the action selection neural network.
10. The method of claim 1, further comprising:
updating the current values of the network parameters of the action selection neural network using the loop closure-based auxiliary update to generate updated parameter values; and
using the action selection neural network to select an action to be performed by the agent in accordance with the updated parameter values.
11. A system comprising:
one or more computers; and
one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations for training an action selection neural network having a plurality of network parameters for use in selecting actions to be performed by an agent navigating through an environment to accomplish one or more goals, the operations comprising:
receiving an observation characterizing a current state of the environment;
processing, using the action selection neural network and in accordance with current values of the network parameters, an input comprising the observation to generate an action selection output for use in controlling the agent to perform the actions;
processing, using a loop closure prediction neural network, an intermediate output generated by the action selection neural network to predict a value of a loop closure feature that characterizes whether, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited;
determining an actual value of the loop closure feature; and
determining a loop closure-based auxiliary update for the current values of the network parameters of the action selection neural network based on an error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature, comprising:
determining a gradient of a loop closure-based auxiliary loss that is based on the error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature; and
backpropagating the gradient of the loop closure-based auxiliary loss into the action selection neural network to determine the loop closure-based auxiliary update for the current values of the network parameters.
12. The system of claim 11, wherein determining the actual value of the loop closure feature comprises:
determining whether a current location of the agent in the environment at a current time step is within a first threshold distance of a particular previous location of the agent in the environment at a particular previous time step; and
determining whether a location of the agent in the environment deviated from the current location of the agent at a time step between the particular previous time step and the current time step by at least a second threshold distance.
13. The system of 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 generate an intermediate representation, and
an output neural network that processes the intermediate representation to generate the action selection output.
14. The system of claim 13, wherein the intermediate output comprises the encoded representation.
15. The system of claim 13, wherein the intermediate output comprises the intermediate representation.
16. The system of claim 13, wherein the intermediate neural network comprises a recurrent neural network.
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 use in selecting actions to be performed by an agent navigating through an environment to accomplish one or more goals, the operations comprising:
receiving an observation characterizing a current state of the environment;
processing, using the action selection neural network and in accordance with current values of the network parameters, an input comprising the observation to generate an action selection output for use in controlling the agent to perform the actions;
processing, using a loop closure prediction neural network, an intermediate output generated by the action selection neural network to predict a value of a loop closure feature that characterizes whether, when the environment is in the current state, the agent has returned to a location in the environment that the agent has already visited;
determining an actual value of the loop closure feature; and
determining a loop closure-based auxiliary update for the current values of the network parameters of the action selection neural network based on an error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature, comprising:
determining a gradient of a loop closure-based auxiliary loss that is based on the error between the prediction of the value of the loop closure feature and the actual value of the loop closure feature; and
backpropagating the gradient of the loop closure-based auxiliary loss into the action selection neural network to determine the loop closure-based auxiliary update for the current values of the network parameters.
18. The non-transitory computer storage media of claim 17, wherein determining the actual value of the loop closure feature comprises:
determining whether a current location of the agent in the environment at a current time step is within a first threshold distance of a particular previous location of the agent in the environment at a particular previous time step; and
determining whether a location of the agent in the environment deviated from the current location of the agent at a time step between the particular previous time step and the current time step by at least a second threshold distance.
19. The non-transitory computer storage media 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 generate an intermediate representation, and
an output neural network that processes the intermediate representation to generate the action selection output.
20. The non-transitory computer storage media of claim 19, wherein the intermediate output comprises the encoded representation.
US16/745,757 2016-11-04 2020-01-17 Environment navigation using reinforcement learning Active US11074481B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/745,757 US11074481B2 (en) 2016-11-04 2020-01-17 Environment navigation using reinforcement learning

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201662418074P 2016-11-04 2016-11-04
PCT/IB2017/056907 WO2018083672A1 (en) 2016-11-04 2017-11-04 Environment navigation using reinforcement learning
US16/403,343 US10572776B2 (en) 2016-11-04 2019-05-03 Environment navigation using reinforcement learning
US16/745,757 US11074481B2 (en) 2016-11-04 2020-01-17 Environment navigation using reinforcement learning

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US16/403,343 Continuation US10572776B2 (en) 2016-11-04 2019-05-03 Environment navigation using reinforcement learning

Publications (2)

Publication Number Publication Date
US20200151515A1 US20200151515A1 (en) 2020-05-14
US11074481B2 true US11074481B2 (en) 2021-07-27

Family

ID=60655008

Family Applications (2)

Application Number Title Priority Date Filing Date
US16/403,343 Active US10572776B2 (en) 2016-11-04 2019-05-03 Environment navigation using reinforcement learning
US16/745,757 Active US11074481B2 (en) 2016-11-04 2020-01-17 Environment navigation using reinforcement learning

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US16/403,343 Active US10572776B2 (en) 2016-11-04 2019-05-03 Environment navigation using reinforcement learning

Country Status (7)

Country Link
US (2) US10572776B2 (en)
EP (2) EP4386624A3 (en)
JP (2) JP6728496B2 (en)
KR (1) KR102228503B1 (en)
CN (2) CN110088774B (en)
DE (1) DE202017106697U1 (en)
WO (1) WO2018083672A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230298585A1 (en) * 2019-05-06 2023-09-21 Google Llc Performing subtask(s) for a predicted action in response to a separate user interaction with an automated assistant prior to performance of the predicted action

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3367061B1 (en) * 2017-02-28 2020-07-15 Honda Research Institute Europe GmbH Navigation system based on slow feature gradients
DE102017215007A1 (en) * 2017-08-28 2019-02-28 Bayerische Motoren Werke Aktiengesellschaft Method for situationally controlling a vehicle fleet system
JP7011472B2 (en) * 2018-01-15 2022-01-26 キヤノン株式会社 Information processing equipment, information processing method
CN112106073B (en) * 2018-05-09 2024-08-16 渊慧科技有限公司 Performing navigation tasks using grid code
AU2019284379A1 (en) 2018-06-12 2021-01-28 Intergraph Corporation Artificial intelligence applications for computer-aided dispatch systems
CN109190720B (en) * 2018-07-28 2021-08-06 深圳市商汤科技有限公司 Intelligent agent reinforcement learning method, device, equipment and medium
WO2020064873A1 (en) * 2018-09-27 2020-04-02 Deepmind Technologies Limited Imitation learning using a generative predecessor neural network
CN112771542B (en) * 2018-09-27 2024-03-05 渊慧科技有限公司 Reinforced learning neural network based on learned visual entity
CN109919319A (en) * 2018-12-31 2019-06-21 中国科学院软件研究所 Deeply learning method and equipment based on multiple history best Q networks
US11313950B2 (en) 2019-01-15 2022-04-26 Image Sensing Systems, Inc. Machine learning based highway radar vehicle classification across multiple lanes and speeds
US11587552B2 (en) 2019-04-30 2023-02-21 Sutherland Global Services Inc. Real time key conversational metrics prediction and notability
US11467588B2 (en) * 2019-07-03 2022-10-11 Denso International America, Inc. Systems and methods for controlling an autonomous vehicle using target orientated artificial intelligence
CA3092161A1 (en) * 2019-09-05 2021-03-05 Royal Bank Of Canada System and method for uncertainty-based advice for deep reinforcement learning agents
EP4035078A1 (en) * 2019-09-24 2022-08-03 HRL Laboratories, LLC A deep reinforcement learning based method for surreptitiously generating signals to fool a recurrent neural network
CN110824954A (en) * 2019-10-24 2020-02-21 北京仿真中心 Intelligent agent training method and system, computer equipment and readable storage medium
KR20210064445A (en) 2019-11-25 2021-06-03 삼성전자주식회사 Simulation system for semiconductor process and simulation method thereof
CN111178496A (en) * 2019-11-30 2020-05-19 浙江大学 Method for exchanging knowledge among agents under multi-agent reinforcement learning cooperative task scene
DE102020100641B4 (en) * 2020-01-14 2024-06-27 Bayerische Motoren Werke Aktiengesellschaft System for planning tasks
US11610128B2 (en) * 2020-03-31 2023-03-21 Amazon Technologies, Inc. Neural network training under memory restraint
KR102272501B1 (en) * 2020-04-24 2021-07-01 연세대학교 산학협력단 Apparatus and method for distributed reinforcement learning
CN111496794B (en) * 2020-04-29 2022-04-01 华中科技大学 Kinematics self-grabbing learning method and system based on simulation industrial robot
KR102409041B1 (en) * 2020-05-07 2022-06-15 (주)밸류파인더스 portfolio asset allocation reinforcement learning method using actor critic model
EP3920103B1 (en) * 2020-06-05 2024-08-07 Robert Bosch GmbH Device and method for planning an operation of a technical system
US20210390778A1 (en) * 2020-06-10 2021-12-16 Nvidia Corporation Environment generation using one or more neural networks
KR102345267B1 (en) * 2020-10-12 2021-12-31 서울대학교산학협력단 Target-oriented reinforcement learning method and apparatus for performing the same
KR102236640B1 (en) * 2020-10-28 2021-04-06 주식회사 스파이스웨어 Apparatus and method for random number generation based on reinforcement learning
CN114518762B (en) * 2022-04-20 2022-07-22 长沙小钴科技有限公司 Robot obstacle avoidance device, obstacle avoidance control method and robot
CN116824303B (en) * 2023-07-06 2024-01-26 哈尔滨工业大学 Structure inspection agent navigation method based on damage driving and multi-mode multi-task learning

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180268237A1 (en) * 2014-10-01 2018-09-20 Apple Inc. Method and system for determining at least one property related to at least part of a real environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK3079106T3 (en) * 2015-04-06 2022-08-01 Deepmind Tech Ltd SELECTING REINFORCEMENT LEARNING ACTIONS USING OBJECTIVES and OBSERVATIONS

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180268237A1 (en) * 2014-10-01 2018-09-20 Apple Inc. Method and system for determining at least one property related to at least part of a real environment

Non-Patent Citations (38)

* Cited by examiner, † Cited by third party
Title
Barron et al, "Deep Reinforcement Learning in a 3-D Blockworld Environment," Deep Reinforcement Learning: Frontiers and Challenges, IJCAI 2016, 6 pages.
Cadena et al, "Past, Present, and Future of Simultaneous Localization and Mapping: Toward the Robust-Perception Age," IEEE Transactions on robotics , 2016, pp. 1309-1332.
Cesar Cadena et al: "past, Present, and Future of Simulaneous Localization and Mapping: Toward the Robust-Perception Age". CORR (ARXIV), vol. 1606.05830v2, Jul. 20, 2016 (Jul. 20, 2016), pp. 1-27, XP055448575 (Year: 2016). *
CESAR CADENA, CARLONE LUCA, CARRILLO HENRY, LATIF YASIR, SCARAMUZZA DAVIDE, NEIRA JOSE, REID IAN, LEONARD JOHN J.: "Past, Present, and Future of Simultaneous Localization and Mapping: Toward the Robust-Perception Age", CORR (ARXIV), CORNELL UNIVERSITY LIBRARY, vol. 1606.05830v2, 20 July 2016 (2016-07-20), pages 1 - 27, XP055448575 *
Dissanayake et al, "A solution to the simultaneous localization and map building (slam) problem," EEE Transactions on Robotics and Automation, 2001, pp. 17(3):229-241.
Eigen et al, "Depth map prediction from a single image using a multi-scale deep network," Proc. of Neural Information Processing Systems, 2014, 9 pages.
EP Office Action in European Appln. No. 17812054.9, dated Apr. 15, 2021, 9 pages.
Graves et al, "Hybrid computing using a neural network with dynamic external memory," Nature, 2016, 21 pages.
Graves et al, "Speech recognition with deep recurrent neural networks," Proceedings of the International Conference on Acoustics, 2013, 5 pages.
Guilaume Lample et al: playining FPS Games with Deep Reinforcement Learning:, arxiv.org, Cornell University Liberry, 201 Olin Library Cornell University Ithaca, NY 14853, Sep. 18, 2016 (Sep. 18, 2016), XP080727453 (Year: 2016). *
GUILLAUME LAMPLE; DEVENDRA SINGH CHAPLOT: "Playing FPS Games with Deep Reinforcement Learning", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 18 September 2016 (2016-09-18), 201 Olin Library Cornell University Ithaca, NY 14853, XP080727453 *
Hausknecht & Stone, "Deep recurrent q-learning for partially observable mdps," Proc. of Conf. on Artificial Intelligence, 2015, pp. 29-37.
Ho et al, "Loop closure detection in SLAM by combining visual and spatial appearance" Robotics and Autonomous Systems , 2006, pp. 740-749.
Jaderberg et al, "Reinforcement learning with unsupervised auxiliary tasks," Submitted to Int'l Conference on Learning Representations, 2017, 14 pages.
Koutník et al, "Evolving large-scale neural networks for vision-based reinforcement learning," Proceedings of the 15th annual conference on Genetic and evolutionary computation, 2013, 8 pages.
KR Office Action in Korean Appln. No. 10-2019-7015991, dated Jan. 6, 2021, 5 pages (with English translation).
KR Office Action in Korean Appln. No. 10-2019-7015991, dated Jun. 22, 2020, 13 pages (with English translation).
Kulkarni et al, "Deep successor reinforcement learning," CoRR, abs/1606.02396, 2016, 10 pages.
Lample & Chaplot, "Playing FPS games with deep reinforcement learning," CoRR, 2016, pp. 2140-2146.
Maaten & Hinton, Visualizing data using t-sne. Journal of Machine Learning Research, 2008, pp. 9(Nov):2579-2605.
Mirowski et al, "Dynamic auto-encoders for semantic indexing," NIPS Deep Learning and Unsupervised Learning Workshop, 2010, 9 pages.
Mnih et al, "Human-level control through deep reinforcement learning," Nature, 2015, pp. 518:529-533.
Mnih et. al., "Asynchronous methods for deep reinforcement learning," Proceedings of the 33rd International Conference on Machine Learning, 2016, 10 pages.
Nair et al, "Massively parallel methods for deep reinforcement learning," Proceedings of the International Conference on Machine Learning Deep Learning Workshop, 2015, 14 pages.
Narasimhan et al, "Language understanding for text-based games using deep reinforcement learning," Proc. of Empirical Methods in Natural Language Processing, EMNLP, 2015, 11 pages.
Oh et al, "Control of memory, active perception, and action in minecraft," Proc. of International Conference on Machine Learning, ICML, 2016, 22 pages.
Olton et al, "Hippocampus, space, and memory," Behavioral and Brain Sciences, 1979, pp. 313-322.
Pascanu et al, "How to construct deep recurrent neural networks," arXiv preprint arXiv:1312.6026, 2013, 13 pages.
PCT International Preliminary Report on Patentability in International Appln. PCT/IB2017/056907, dated May 16, 2019, 10 pages.
PCT International Search Report and Written Opinion in International Appln. No. PCT/IB2017/056907, dated Feb. 16, 2018, 16 pages.
Rasmus et al, "Semi-supervised learning with ladder networks," Advances in Neural Information Processing Systems, NIPS, 2015.
Suddarth & Kergosien, "Rule-injection hints as a means of improving network performance and learning time," Neural Networks, 1990, pp. 120-129.
Sutton et al, "Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning," Artificial intelligence, 1999, 112(1):181-211.
Tessler et al, "A deep hierarchical approach to lifelong learning in minecraft," CoRR, abs/1604.07255, 2016.
Weston et al, "Memory networks," arXiv preprint arXiv:1410.3916, 2014, 15 pages.
Zhang et al, "Augmenting supervised neural networks with unsupervised objectives for large-scale image classification," Proc. of International Conference on Machine Learning, ICML, 2016, 10 pages.
Zhao et al, "Stacked what-where auto-encoders," Int'l Conf. on Learning Representations (Workshop), ICLR, 2015.
Zhu et al, "Target-driven visual navigation in indoor scenes using deep reinforcement learning," CoRR, abs/1609.05143, 2016.

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230298585A1 (en) * 2019-05-06 2023-09-21 Google Llc Performing subtask(s) for a predicted action in response to a separate user interaction with an automated assistant prior to performance of the predicted action
US11996102B2 (en) * 2019-05-06 2024-05-28 Google Llc Performing subtask(s) for a predicted action in response to a separate user interaction with an automated assistant prior to performance of the predicted action

Also Published As

Publication number Publication date
US20190266449A1 (en) 2019-08-29
JP2019537137A (en) 2019-12-19
KR20190077067A (en) 2019-07-02
EP3523762B8 (en) 2024-08-14
CN110088774A (en) 2019-08-02
EP4386624A2 (en) 2024-06-19
JP6728496B2 (en) 2020-07-22
CN117371492B (en) 2024-10-29
US20200151515A1 (en) 2020-05-14
DE202017106697U1 (en) 2018-03-09
EP3523762A1 (en) 2019-08-14
CN110088774B (en) 2023-08-18
WO2018083672A1 (en) 2018-05-11
EP3523762B1 (en) 2024-06-12
JP6935550B2 (en) 2021-09-15
US10572776B2 (en) 2020-02-25
CN117371492A (en) 2024-01-09
JP2020170535A (en) 2020-10-15
EP4386624A3 (en) 2024-08-07
KR102228503B1 (en) 2021-03-16

Similar Documents

Publication Publication Date Title
US11074481B2 (en) Environment navigation using reinforcement learning
US11842281B2 (en) Reinforcement learning with auxiliary tasks
US20240320438A1 (en) Action selection based on environment observations and textual instructions
US11868894B2 (en) Distributed training using actor-critic reinforcement learning with off-policy correction factors
US20230090824A1 (en) Action selection for reinforcement learning using a manager neural network that generates goal vectors defining agent objectives
US11604997B2 (en) Training action selection neural networks using leave-one-out-updates
US11727281B2 (en) Unsupervised control using learned rewards
US20190258918A1 (en) Training action selection neural networks
US20220076099A1 (en) Controlling agents using latent plans

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS

STPP Information on status: patent application and granting procedure in general

Free format text: AWAITING TC RESP., ISSUE FEE NOT PAID

STPP Information on status: patent application and granting procedure in general

Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS

STPP Information on status: patent application and granting procedure in general

Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT RECEIVED

STPP Information on status: patent application and granting procedure in general

Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED

STCF Information on status: patent grant

Free format text: PATENTED CASE