Using Potential Planning Control Agents
Through the combination of self-supervised data learning and potential plan space, potential plans and actions are generated, which solves the shortcomings of existing technologies in handling untrained tasks and environmental disturbances, achieves a high-performance and flexible control system, and improves robustness. reliability and fault recovery capabilities.
Patent Information
- Application Number
- CN202080010498.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-02-19
AI Technical Summary
Existing control systems perform poorly when handling untrained tasks and facing environmental disturbances, and require a large amount of labeled data for training, making it difficult to maintain flexibility and robustness in changing task environments.
It adopts the target condition model of self-supervised data learning, generates latent plans through the latent plan space, uses a single strategy to control the agent under zero-shot learning conditions, achieves high-performance task execution, and generates actions through the latent plan space and policy neural network to improve Robustness to disturbances and fault recovery.
It achieves high-performance control for executing tasks in untrained data, provides flexibility and robustness, reduces dependence on labeled data, and improves robustness to environmental disturbances and natural fault recovery capabilities.
Smart Images

Figure CN113330458B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Patent Application No. 62 / 807,740, filed on February 19, 2019, the entire contents of which are incorporated herein by reference. Background Art
[0002] The present specification relates to controlling an agent, such as a robot, to perform a specific task.
[0003] Typically, an agent interacts with the environment by executing actions selected for the agent by a control system in response to receiving observations that characterize the current state of the environment.
[0004] Some systems select an action for an agent to perform in response to receiving a given observation based on the output of a neural network.
[0005] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict an output given an 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 serves as input to the next layer in the network—the next hidden layer or output layer. Each layer of the network generates an output from a given input based on the current values of its corresponding set of parameters. Summary of the invention
[0006] This specification describes a system implemented as one or more computer programs on one or more computers at one or more locations that controls an agent interacting with an environment to cause the agent to perform a task using a potential plan selected from a potential plan space. Specifically, the system generates a potential plan using a goal observation that characterizes a state that the environment should reach in order to successfully complete the task.
[0007] Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages.
[0008] This specification describes a goal-conditional model learned from self-supervised data that can be effectively used to control an agent, such as a robot, to perform arbitrary tasks, including tasks that were not performed in the agent's training data. Specifically, a user provides data that specifies a target state, and a single policy outputs an action to achieve that state based on its experience acting in the environment. This means that the single policy can be reused to solve new tasks in a zero-shot manner. Specifically, by exploiting a latent state space and selecting potential plans from that space, the described system can control an agent to achieve high performance, even on tasks that were not performed in the training data. In addition, the policy can be used to solve arbitrary goals in the environment, which provides flexibility and robustness, which is critical in settings where tasks change faster than they can be designed. The described model is far more robust to perturbations than models trained only on positive demonstrations, and exhibits natural failure recovery, despite not being explicitly trained as such. Because the model is learned from self-supervised data, the system does not require any labeled data (which may be difficult or computationally expensive to obtain) in order to effectively learn the model.
[0009] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 An example control system is shown.
[0011] Figure 2 is a flow chart of an example process for controlling an agent.
[0012] Figure 3 An example training system is shown.
[0013] Figure 4 is a flowchart of an example process for training a neural network.
[0014] Figure 5 is a graphical representation of the space of latent plans that can be generated as a result of training a neural network.
[0015] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION
[0016] Broadly, this specification describes a control system that controls an agent, such as a robot, that interacts with an environment by selecting actions for the agent to perform and then causing the agent to perform the selected actions. For the agent to interact with the environment, the system receives data representing the current state of the environment and selects actions for the agent to perform in response to the received data. In this specification, data representing the state of the environment is referred to as an observation.
[0017] In some embodiments, the environment is a real-world environment and the agent is a mechanical agent that interacts with the real-world environment. For example, the agent can be a robot that interacts with the environment to complete a specific task, such as locating an object of interest in the environment or moving an object of interest to a specific destination in the environment or navigating to a specific destination in the environment; or the agent can be an autonomous or semi-autonomous land or air or sea vehicle that navigates through the environment.
[0018] In these embodiments, for example, observations may include one or more of: images, object position data, or sensor data captured as the agent interacts with the environment, such as sensor data from images, distance or position sensors, or from actuators.
[0019] For example, in the case of a robot, observations may include data characterizing the current state of the robot, such as one or more of: joint positions, joint velocities, joint forces, torques, or accelerations, such as gravity-compensated torque feedback or the global or relative pose of an object held by the robot.
[0020] In the case of a robot or other mechanical agent or vehicle, observations similarly may include one or more of: position, linear or angular velocity, force, torque or acceleration, and global or relative pose of one or more parts of the agent. Observations may be defined in 1, 2, or 3 dimensions, and may be absolute and / or relative.
[0021] For example, observations may also include sensed electronic signals, such as motor current or temperature signals; and / or image or video data, for example from a camera or LIDAR sensor, such as data from the agent's sensors or from sensors located separately from the agent in the environment.
[0022] In the case of an electronic agent, observations may include data from one or more sensors monitoring portions of a plant or service facility, such as current, voltage, power, temperature, and other sensors and / or electronic signals representative of the functionality of the electronic and / or mechanical products of the equipment.
[0023] In these embodiments, the actions can be control inputs to control a robot, such as torques or higher-level control commands to a joint of the robot, or an autonomous or semi-autonomous land or air or sea vehicle, such as torques or higher-level control commands to a control surface or other control element of the vehicle.
[0024] In other words, for example, an action may include position, velocity, or force / torque / acceleration data for one or more joints of a robot or part of another mechanical agent. The action data may additionally or alternatively include electronic control data, such as motor control data, or more generally data for controlling one or more electronic devices in the environment, the control of which has an effect on the observed state of the environment. For example, in the case of an autonomous or semi-autonomous land or air or sea vehicle, the action may include actions for controlling navigation—e.g., steering—and movement—e.g., braking and / or acceleration of the vehicle.
[0025] In some implementations, the environment is a simulated environment and the agent is implemented as one or more computers that interact with the simulated environment.
[0026] For example, the simulation environment can be a simulation of a robot or vehicle, and one or more neural networks used by the control system can be trained based on the simulation. For example, the simulation environment can be a motion simulation environment, such as a driving simulation or a flight simulation, and the agent is a simulated vehicle that navigates through the motion simulation. In these embodiments, the actions can be control inputs used to control the simulated user or simulated vehicle. Once the neural networks have been trained in the simulation, they can be used to control real-world agents, as described above.
[0027] In another example, the simulated environment may be a video game and the agent may be a simulated user playing the video game.
[0028] In a further example, the environment can be a protein folding environment, such that each state is a corresponding state of a protein chain, and the agent is a computer system for determining how to fold the protein chain. In this example, the actions are possible folding actions for folding the protein chain, and, for example, the results to be achieved can include folding the protein so that the protein is stable so that it performs a specific biological function. As another example, the agent can be a mechanical agent that performs or controls protein folding actions automatically selected by the system without human-computer interaction. Observations can include direct or indirect observations of the states of the protein and / or can be obtained through simulations.
[0029] In a similar manner, the environment can be a drug design environment, such that each state is a corresponding state of a potential medicinal chemical drug, and the agent is a control system for determining the elements of the medicinal chemical drug and / or a synthetic pathway for the medicinal chemical drug. The drug / synthesis can be designed based on the reward obtained from the goal of the drug, such as in a simulation. As another example, the agent can be a mechanical agent that performs or controls the synthesis of the drug.
[0030] Typically, in the case of a simulated environment, an observation may include simulated versions of one or more of the aforementioned observations or observation types, and an action may include simulated versions of one or more of the aforementioned actions or action types.
[0031] In some other applications, the agent may control actions in a real-world environment including items of equipment, such as in a data center or grid power or water distribution system or in a manufacturing plant or service facility. The observations may then be related to the operation of the plant or facility. For example, the observations may include observations of power or water used by the equipment or observations of power generation or distribution control or observations of resource use or waste. The agent may control actions in the environment to improve efficiency, such as by reducing resource usage, and / or reduce the environmental impact of operations in the environment, such as by reducing waste. Actions may include actions to control or impose operating conditions on items of equipment in the plant / facility and / or actions that cause changes in settings in the operation of the plant / facility, such as to adjust or turn on / off components of the plant / facility.
[0032] Optionally, in any of the above embodiments, observations in any given time step may include data from a previous time step that may help characterize the environment, such as actions performed in the previous time step, rewards received in the previous time step, and so on.
[0033] Figure 1 An example control system 100 is shown. Control system 100 is an example of a system implemented as a computer program on one or more computers at one or more locations in which the systems, components, and techniques described below are implemented.
[0034] The control system 100 controls an agent that interacts with an environment, i.e., as described above, using a neural network system in order to cause the agent to perform a specific task that requires the agent to reach a target state in the environment. For example, when the agent is a robot or other mechanical agent, the task may be an industrial robotics task that includes navigating the environment, e.g., reaching a state representing a specific location in the environment, moving an object in the environment, i.e., reaching a state where the object is at a specific location, or both. When the agent is controlling an industrial facility, the task may be controlling the facility to achieve certain performance requirements, e.g., reaching a state of the facility with a certain energy efficiency or power consumption.
[0035] Specifically, to control the agent, the system 100 uses a plan proposal neural network 110 (whose parameters are referred to as "plan proposal parameters") and a policy neural network 120 (whose parameters are referred to as "policy parameters").
[0036] The plan proposal neural network 110 is configured to receive as input: (i) a current observation 102 representing a current state of the environment and (ii) a target observation 104 representing a target state of the environment that results in the agent successfully performing a task, and to process the input to generate data that defines a probability distribution 112 over a potential plan space 114.
[0037] In some cases, current observation 102 includes more information than target observation 104. For example, in some embodiments, current observation 102 includes both an image of the state of the environment and proprioceptive data or other measurement data that characterizes the agent or other data at the time the image was taken. In these embodiments, target observation 104 may only include an image of the target state of the environment.
[0038] Each latent plan is an ordered collection of values (eg, vectors) in a space of predetermined dimension (the "space of latent plans").
[0039] In some embodiments, the data defining the probability distribution over the latent plan space is the mean and variance of a multivariate distribution—ie, a distribution that, when sampled from vectors in the latent plan space 114 , produces vectors in the latent plan space 114 .
[0040] The proposed neural network 110 may have any suitable architecture that allows the neural network to map two observations to data defining a probability distribution.
[0041] As an example, the plan suggestion neural network 110 may include an encoder subnetwork that maps each observation to a corresponding encoded representation. When the observation includes multiple channels, such as multiple different types of data, the encoder subnetwork may map each data channel to a corresponding encoded representation and then concatenate the resulting encoded representations to generate a final encoded representation of the observation.
[0042] As a specific example, when one of the channels is an image channel, the encoder subnetwork can use a traditional neural network to map the image data to an encoded vector. As another example, when one of the channels is low-dimensional proprioceptive data—e.g., the position and orientation of an agent or various components of an agent—the encoder subnetwork can either use the vector of proprioceptive data directly as an encoded representation of the channel or process the proprioceptive data through one or more fully connected layers to generate a representation.
[0043] The plan suggestion neural network 110 may then concatenate representations of the observations to generate a combined representation, and process the combined representation through a multi-layer perceptron (MLP) to generate parameters of a probability distribution over the latent plan space 114. In other words, in this example, the plan suggestion neural network 110 is a feed-forward neural network that first encodes the observations and then generates data defining a probability distribution from the encoded observations.
[0044] Although the present specification generally describes embodiments in which the potential plan space 114 is continuous and the output of the plan suggestion neural network 110 defines a probability distribution, in other embodiments, the potential space 114 is discrete, i.e., includes a certain number of vectors, and the output of the plan suggestion neural network 110 is a vector of the same dimension as the vectors in the potential plan space 114. In these embodiments, when selecting a potential plan from the space, the system 100 can select the potential plan that is closest to the output of the plan suggestion neural network 110.
[0045] As will be described in more detail below, each potential plan represents a different path through the environment or a different action selection constraint to be imposed on the policy neural network 120 due to the way the network is configured and trained.
[0046] Policy neural network 120 (also called an “action decoder” neural network) is configured to receive a policy input comprising (i) a current observation 102 , (ii) a target observation 104 , and (iii) a potential plan 122 selected from potential plan space 114 , and process the policy input to generate an action output that defines an action 124 to be performed in response to current observation 102 .
[0047] For example, the action output may define a probability distribution over a set of possible actions that may be performed by the agent, i.e., the action output may be a corresponding probability for each of the set of possible actions or may be a parameter of a probability distribution over the set of possible actions. In this example, the action defined by the action output is the action with the highest probability according to the probability distribution or the action generated by sampling from the probability distribution.
[0048] As another example, the action output may directly identify the action to be performed, ie, the action output may be a point in a multi-dimensional action space.
[0049] The policy neural network 120 may have any architecture suitable for mapping observations and potential plans to action selection outputs. As an example, the policy neural network 120 may be a recurrent neural network that conditions the current action selection output on the processing performed on previous observations.
[0050] In this example, the policy neural network 120 can share an encoder subnetwork with the plan proposal neural network 110, i.e., can also encode observations into corresponding encoded observations. The policy neural network 120 can then cascade the encoded observations and the potential plan to generate a combined input, which is then processed through one or more recurrent neural network layers, such as a vanilla recurrent neural network (RNN) or a long short-term memory (LSTM) layer, to update the hidden state of the recurrent layer. The policy neural network 120 can then use the updated hidden state to generate an action selection output, for example, by passing the updated hidden state through one or more fully connected layers that generate parameters of a probability distribution over possible actions. In one example, the action selection output can be parameters of a mixture of discrete streams (MODL) over possible actions.
[0051] To select an action to be performed by the agent in response to current observation 102, system 100 processes current observation 102 and target observation 104 using plan suggestion neural network 110 to generate data defining probability distribution 112 over potential plan space 114, and uses the probability distribution to select a potential plan 122 from potential plan space 114. For example, system 100 can sample potential plans according to the probability distribution.
[0052] The system 100 then processes the policy inputs, which include (i) the current observation 102, (ii) the target observation 104, and (iii) the selected potential plan 122, using the policy neural network 120 to generate a current action output that defines an action 124 to be performed in response to the current observation. The system 100 then causes the agent to perform the action 124 defined by the current action output, i.e., by instructing the agent to perform the action or otherwise transmitting a command to the agent.
[0053] In some cases, the system 100 selects new potential plans only at the beginning of attempting to perform a task, i.e., only for the initial state of the environment at the beginning of a segment of the task. In these cases, when the current observation is not an observation representing the initial state of the environment, the system does not use the plan suggestion neural network 110 in selecting an action to be performed by the agent in response to the current observation, but instead reuses the plan 122 sampled in response to the observation representing the initial state of the environment.
[0054] In some other cases, the system 100 selects a new potential plan in response to each observation received while the agent is performing a task. In these cases, the system samples a new potential plan 122 in response to each received observation received above.
[0055] In other cases, the system 100 selects new potential plans in response to only an appropriate subset of observations received while the agent is performing a task. For example, the system may select a new potential plan for each nth observation, where n is an integer greater than 1, e.g., 5, 10, 20, 30, or 50. As another example, the system may select a new potential plan every k milliseconds—e.g., 100 milliseconds, 500 milliseconds, 1000 milliseconds, or 10,000 milliseconds—while the agent is performing a task. When an observation is received and the criteria for selecting a new potential plan have not been met, the system 100 does not use the planning neural network 110, but instead uses the most recently selected potential plan 122 to select an action to perform in response to the observation.
[0056] exist Figure 1 In the specific example of , actions are selected at a frequency of 30 Hz, while new potential plans are generated at a frequency of only 1 Hz because only the criteria for a proper subset of observations are satisfied. Therefore, the system 100 makes multiple action selections conditional on the same potential plan. However, the system can still recover from the failure by generating a new potential plan every second. That is, even if the previous potential plan used in the previous second is invalid, the system 100 can generate a new plan in the next second and still complete the task.
[0057] To allow the neural network to be used to effectively control the agent, the system 100 or another system training program proposes the neural network 110 and the policy neural network 120 to allow these neural networks to be used to effectively control the agent to perform various user-specified tasks, i.e., tasks specified by providing data defining target observations that characterize target states that need to be achieved in order to complete the tasks.
[0058] A user of the system 100 may provide data specifying a target observation in any manner. For example, the system 100 may provide a user interface for presentation on a user device or other computer that allows the user to submit input defining a target state, e.g., when the agent is a robot for selecting a location in the environment that the robot should reach, or selecting an object in the environment that the robot should locate or move, or submitting another appropriate input that provides sufficient information to generate a target observation. The system 100 may then generate the target observation, e.g., by generating an image of the target state of the environment.
[0059] Specifically, without using a latent plan space, the system is challenged by the fact that there are many valid high-level behaviors that can connect the same current observation-goal observation pair. This presents multiple counteracting action label trajectories, i.e., the training data can include trajectories where the same task is successfully completed using many different high-level behavior sequences. This can hinder learning and prevent the policy neural network 120 from being used to effectively control the agent.
[0060] However, by utilizing the potential plan space, the policy neural network 120 can be provided with a high-level plan, and the policy neural network 120 can condition the action selection on the high-level plan. Specifically, by training the plan suggestion neural network 110 so that the selected potential plan encodes a single high-level behavior among multiple high-level behaviors that can lead to successful execution of the task, the policy neural network 120 can generate an action sequence that executes the high-level behavior encoded by the input potential plan so that the agent completes the task.
[0061] Refer to the following for training the neural network Figure 3 and Figure 4 Described in more detail.
[0062] Figure 2 is a flow chart of an example process 200 for controlling an agent. For convenience, process 200 will be described as being performed by a system of one or more computers located in one or more locations. For example, a suitably programmed control system, such as Figure 1 The control system 100 may perform the process 200 .
[0063] The system may repeatedly perform process 200 in response to received observations so as to cause the agent to complete a specified task, ie, a task that is completed when the environment reaches a target state represented by a target observation.
[0064] The system receives a current observation that characterizes a current state of an environment with which an agent is interacting (step 202).
[0065] In some implementations, when the current observation is received, the system then determines whether the criteria for selecting a new potential plan are met.
[0066] Specifically, as described above, in some embodiments, the system selects a new potential plan at each time step. In these embodiments, the system does not need to check whether the criterion is met, that is, because the criterion is met at each time step.
[0067] In other embodiments, the system selects new potential plans only on a proper subset of observations.
[0068] In some of these embodiments, the system selects a potential plan only at the first time step of a given task segment. In these embodiments, the system determines that the criterion is satisfied only when the observation is the first observation when attempting to perform the task.
[0069] In some other of these embodiments, the system selects a new potential plan for each nth observation. Thus, in these embodiments, the system determines that the criteria are met only at each nth observation.
[0070] In other of these embodiments, when the agent performs the task, the system selects a new potential plan every k milliseconds. Thus, in these embodiments, the system determines that the criterion is satisfied only when at least k milliseconds have passed since the last time a new potential plan was selected.
[0071] The system receives a target observation representing a target state of the environment that results in the agent successfully performing the task (step 204). For example, before the task segment begins, the system can receive input from a user of the system specifying a target state and generate an observation representing the target state. For example, the system can present a user interface that allows the user to select from a plurality of different target states.
[0072] When the criteria have been met, the system processes the current observation and the target observation using a plan proposal neural network to generate data defining a probability distribution over a potential plan space (step 206), and selects a potential plan from the potential plan space using the probability distribution (step 208).
[0073] The system then uses a policy neural network to process a policy input, which includes (i) a current observation, (ii) a target observation, and (iii) a selected potential plan, to generate a current action output that defines an action to be performed in response to the current observation (step 210).
[0074] In response to determining that the criterion has not been met, the system does not use the plan suggestion neural network, but instead uses the policy neural network to process the policy input, including (i) the observation, (ii) the target observation, and (iii) the most recently selected potential plan when executing step 208. That is, the system does not use the plan suggestion neural network to generate a new potential plan, but instead uses the most recently selected potential plan, i.e., the potential plan selected at the most recent time when the criterion was met.
[0075] The system then causes the agent to perform the action defined by the current action output (step 212).
[0076] Figure 3 An example training system 300 is shown. Training system 300 may be the same as control system 100 or may be implemented as a different system of computer programs on one or more computers in one or more locations where the systems, components, and techniques described below are implemented.
[0077] System 300 trains plan suggestion neural network 110 and policy neural network 120 together with plan identifier neural network 310 .
[0078] Plan recognizer neural network 310 is a neural network having parameters (referred to in this specification as "plan recognizer parameters") and configured to receive observation-action pair sequence 304 as input and to process at least the observations in the observation-action pair sequence to generate data defining a probability distribution over potential plan space 114. In other words, plan recognizer neural network 310 receives sequence 304 as input, which includes a sequence of observations starting with an initial observation and ending with a final observation. In some embodiments, for each observation except the final observation, the sequence also includes an action performed by the agent or another similar agent that causes the environment to transition from a state represented by the observation to a state represented by the next observation in the sequence. In other embodiments, plan recognizer processes only observations, and as described above, the observations may include the most recent action performed before the observation was received.
[0079] As with the output of the plan proposal neural network 110 , the data defining the probability distribution may also be parameters of the probability distribution, such as the mean and variance of a multivariate distribution over the potential plan space 114 .
[0080] The plan identifier neural network 310 can have any suitable architecture that allows the neural network to map a sequence to data that defines a probability distribution. For example, the plan identifier neural network 310 can be a recursive neural network that processes each observation in the sequence. As a specific example, the plan identifier neural network 310 can use an encoder subnetwork to generate a corresponding encoded representation for each observation in the sequence. The plan identifier neural network 310 can then use one or more recursive neural network layers, such as a vanilla RNN or LSTM layer, to process the encoded representation to generate an updated hidden state, and use one or more fully connected layers to process the updated hidden state, i.e., the hidden state after the last observation in the sequence, to generate parameters of the probability distribution. In some embodiments, the plan identifier neural network 310 is a bidirectional recursive neural network, and one or more of the recursive neural network layers are bidirectional recursive layers.
[0081] Specifically, system 300 trains neural networks 110, 120, and 310 based on training data 302 that includes a plurality of such sequences 304. For example, sequences 304 have been generated from the interaction of an agent or different agents when under the control of different control policies, i.e., when the agent is not controlled based on outputs from policy neural network 120. For example, the different control policies may be fixed, hard-coded control policies, different machine learning control policies, or other control methods by remote operation or a user that attempt to control the agent so that the agent performs a variety of different tasks in an environment.
[0082] Advantageously, system 300 does not require that sequences 304 in training data 302 be labeled in any way in order for system 300 to effectively train neural networks 110, 120, and 310 using sequences 304. Thus, system 300 can learn effective control policies for agents based entirely on self-supervised data.
[0083] To train the neural network based on the sequence 304 , the system 300 uses the plan identifier neural network 310 and processes the sequence 304 based on the current values of a plurality of plan identifier parameters to generate first data that defines a first probability distribution over the potential plan space 114 .
[0084] The system 300 then uses the plan proposal neural network 110 and processes the first observation in the sequence and the last observation in the sequence according to the current values of the plan proposal parameters to generate a second probability distribution over the potential plan space 114. Thus, the plan identifier neural network 310 is provided with the complete sequence of observations, while the plan proposal neural network 110 is provided with only the first observation in the sequence and the last observation in the sequence to effectively treat the last observation in the sequence as the target observation.
[0085] The system 300 then samples potential plans 320 from a first probability distribution generated based on the output of the plan identifier neural network 310—ie, generated based on the complete sequence 304 of observations and actions.
[0086] For each observation-action pair in sequence 304, the system uses policy neural network 120 and processes inputs including observation 322 in the pair, last observation 324 in the sequence, and potential plan 320 according to the current values of policy parameters to generate an action probability distribution for the pair. Thus, system 300 generates a corresponding action probability distribution for each observation-action pair in sequence 304.
[0087] The system then updates the values of the parameters of the neural network by determining the gradient of a loss function with respect to the policy parameters, the plan identifier parameters, and the plan suggestion parameters, the loss function comprising: (i) an action likelihood term 350 which, for each observed action pair, depends on the probability of the action in the observed action pair in the action probability distribution assigned to the observed action pair; and (ii) a divergence minimization term 360 which measures the difference between a first probability distribution generated based on the output of the plan identifier neural network 310 and a second probability distribution generated based on the output of the plan suggestion neural network 110.
[0088] For example, the loss function may be in the form of L1+B*L2, where L1 is the action likelihood term 350, L2 is the divergence minimization term 360, and B is a constant weight value. In some cases, to prevent posterior collapse, the system sets B to a constant value less than 1.
[0089] For example, the divergence minimization term 360 may be the Kullback-Leibler (KL) divergence between the first probability distribution and the second probability distribution.
[0090] As another example, the action likelihood term 350 may be a maximum likelihood loss. Although the action likelihood term 350 is used when the output of the policy neural network 120 defines a probability distribution over a set of possible actions, when the action selection output is a different kind of output, the system may use a different type of loss that measures the error between the action selection output and the action in the observed action pair.
[0091] By training the neural network according to this loss function, the system 300 trains the plan suggestion neural network 110 to generate an output that is a prediction of the output generated by the plan identifier neural network 310 by processing the complete sequence of observations. Thus, the system 300 trains the plan suggestion neural network 110 to predict, from only the first and last observations, the type of potential plans that can be followed that result in the state represented by the last observation being reached. After training, when an input potential plan is selected from the probability distribution generated using the output of the neural network 110, the selected potential plan will therefore accurately encode one of the potential plans.
[0092] At the same time, the system 300 trains the policy neural network 120 to effectively condition the adopted potential plan to generate an action selection output that causes the final state represented by the last observation in the sequence to be reached, i.e., causes the task to be successfully completed by executing the high-level behavior encoded by the sampled potential plan.
[0093] Figure 4 is a flow chart of an example process 400 for training a plan suggestion neural network, a policy neural network, and a plan identifier neural network based on a sequence of observed action pairs. For convenience, process 400 will be described as being performed by a system of one or more computers located in one or more locations. For example, a suitably programmed control system—e.g., Figure 1 The control system 100—can perform process 400.
[0094] The system can repeatedly perform process 400 for different observation input sequences to train the neural network. After training, the system can use only the plan suggestion neural network and the policy neural network to control the agent, that is, the plan identifier neural network is only used to improve the training of the plan suggestion neural network and the policy neural network, rather than being directly used to control the agent after training.
[0095] The system obtains a sequence of observation-action pairs, for example, by sampling the sequence from training data (step 402). The sequence typically includes a set of observation-action pairs and a final observation, which are generated due to the interaction of the agent (or another similar agent) with the environment.
[0096] The system processes at least observations in a sequence of observation-action pairs using a plan identifier neural network and based on current values of a plurality of plan identifier parameters to generate first data that defines a first probability distribution over a space of potential plans (step 404).
[0097] The system uses the plan suggestion neural network and processes the first observation in the sequence and the last observation in the sequence (but not any actions or any intermediate observations in the sequence) based on the current values of the plan suggestion parameters to generate a second probability distribution over the potential plan space (step 406).
[0098] The system samples potential plans from a first probability distribution—that is, from a probability distribution generated using all observations in the sequence (step 408).
[0099] For each observation-action pair in the sequence, the system uses the policy neural network and processes the input, including the observation in the pair, the last observation in the sequence, and the potential plan according to the current values of the policy parameters to generate an action probability distribution for the pair (step 410).
[0100] The system then determines the gradient of a loss function with respect to the policy parameters, the plan identifier parameters, and the plan suggestion parameters, the loss function comprising: (i) a first term, for each observation-action pair, that depends on the probability of the action in the observation-action pair in the action probability distribution assigned to the observation-action pair; and (ii) a second term that measures the difference between the first probability distribution and the second probability distribution (step 412).
[0101] The system then uses the gradients to update the current values of the parameters according to an update rule. The update rule can be any suitable update rule that maps gradients to parameter value updates, such as, for example, an rmsProp update rule, an Adam optimizer update rule, a learning update rule, and an update rule based on a stochastic gradient descent learning rate. In some cases, the system first performs process 400 for multiple different sequences, then averages the gradients of the sequences, and then applies the update rule to the averaged gradients to update the current values.
[0102] The system determines training values for plan suggestion parameters, strategy parameters, and plan identifier parameters by repeatedly performing process 400. The system (or another system) can then use the training values for plan suggestion parameters and strategy parameters to control the agent after training.
[0103] Figure 5 is a graphical representation of a potential plan space 114 that may be generated as a result of training a neural network as described above. Figure 5 In the example above, a neural network has been trained based on training data consisting of multiple sequences in which a robot is controlled to complete a variety of different tasks. Figure 5Each sequence in the training data is represented as a point in a space of latent plans, i.e., a point in the space is shown that is sampled for each training sequence, e.g., based on a probability distribution generated by a plan proposal neural network or a plan recognition neural network after those networks have been trained.
[0104] from Figure 5 As can be seen in Figure 1, different regions of the space correspond to different types of tasks. For example, one region corresponds to a grasping sequence (which results in the agent grasping one or more objects in the environment), another region corresponds to a button pressing sequence (which results in the agent pressing one or more buttons located in the environment), another region corresponds to a drawer sequence (which results in the agent manipulating a drawer), and yet another region corresponds to a clearing sequence (which results in the agent clearing one or more objects from a surface). Thus, Figure 5 We show that even without labels for training, the plan identifier and plan proposal neural networks generate latent plans that effectively embed task information, e.g. Figure 5 This is reflected by the functional organization of the latent plan space shown in . This learned functional organization allows the sampled latent plans to be used to effectively condition the trained policy neural network.
[0105] This specification uses the term "configuration" in relation to system and computer program components. For a system of one or more computers to be configured to perform a particular operation or action, it means that the system has software, firmware, hardware, or a combination thereof installed thereon that causes the system to perform the operation or action when run. For one or more computer programs to be configured to perform a particular operation or action, it means that the one or more computer programs include instructions that, when executed by a data processing device, cause the device to perform the operation or action.
[0106] This method of training a neural network for an object interaction task may reduce the number of task segments required to train the neural network and may result in an improved trained neural network without requiring additional supervision of the training process. Thus, the training of the neural network for the object interaction task may require less computational resources. The improved trained object interaction task neural network may facilitate improved robot control.
[0107] The embodiments of the subject matter and functional operations described in this specification may be implemented in a digital electronic circuit system, in a tangibly embodied computer software or firmware, in computer hardware including the structures disclosed in this specification and their structural equivalents, or in a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs. One or more computer programs may include one or more modules of computer program instructions, which are encoded on a tangible, non-transitory storage medium for execution by a data processing device or for controlling the operation of a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or in addition, the program instructions may be encoded on an artificially generated propagation signal, for example, a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information transmitted to a suitable receiver device for execution by a data processing device.
[0108] The term "data processing apparatus" refers to data processing hardware and covers all kinds of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or a plurality of processors or computers. The apparatus may also be or further include a dedicated logic circuit system, for example, an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus may optionally include code that creates an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0109] A computer program—which may also be referred to or described as a program, software, software application, application, module, software module, script, or code—may be written in any form of programming language, including compiled or interpreted languages or declarative or procedural languages, and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a file that holds portions of other programs or data—e.g., one or more scripts stored in a markup language document, a single file dedicated to the program in question, or multiple coordinated files—e.g., a file storing portions of one or more modules, subroutines, or code. A computer program may be deployed to execute on one computer or on multiple computers located on one station or distributed across multiple stations and interconnected by a data communications network.
[0110] In this specification, the term "database" is used broadly to refer to any collection of data; the data need not be structured in any particular way or at all, and it may be stored on a storage device in one or more locations. Thus, for example, an index database may include multiple collections of data, each of which may be organized and accessed differently.
[0111] Similarly, in this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed on and run on the same one or more computers.
[0112] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a special purpose logic circuit, for example, an FPGA or ASIC, or a combination of a special purpose logic circuit and one or more programmed computers.
[0113] A computer suitable for executing a computer program may be a central processing unit based on a general or special microprocessor or both or any other kind. Typically, a central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for performing or executing instructions and one or more storage devices for storing instructions and data. The central processing unit and the memory may be supplemented by or incorporated into a special logic circuit. Typically, a computer will also include one or more mass storage devices for storing data—for example, a magnetic disk, a magneto-optical disk, or an optical disk, or be operably coupled to receive data from the mass storage device or transfer data to the mass storage device or perform both operations. However, a computer does not need to have such a device. In addition, a computer may be embedded in another device, for example, a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device—for example, a universal serial bus (USB) flash drive, to name just a few examples.
[0114] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices—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.
[0115] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device for displaying information to the user—e.g., a CRT (cathode ray tube) or an LCD (liquid crystal display)—as well as a keyboard and pointing device, such as a mouse or trackball, through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and the input from the user may be received in any form including sound input, voice input, or tactile input. In addition, a computer may interact with a user by sending documents to a device used by the user and receiving documents from the device, such as by sending a web page to a web browser on the user's device in response to a request received from the web browser. Similarly, a computer may interact with a user by sending a text message or other form of message to a personal device, such as a smart phone running a messaging application, and receiving a response message from the user in reply.
[0116] For example, a data processing apparatus for implementing a machine learning model may also include a dedicated hardware accelerator unit for processing the general and computationally intensive parts of machine learning training or production, i.e., inference, workloads.
[0117] The machine learning model can be implemented and deployed using a machine learning framework such as the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework.
[0118] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component—e.g., as a data server, or includes a middleware component—e.g., an application server, or includes a front-end component, such as a client computer having a graphical user interface, a web browser, or an application 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 components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication—e.g., a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0119] A computing system may include a client and a server. The client and the server are usually remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by means of computer programs that run on corresponding computers and have a client-server relationship with each other. In some embodiments, the server transmits data, for example, an HTML page, to a user device, for example, in order to display data to a user interacting with the device acting as a client and receive user input from the user. Data generated at the user device, for example, the result of the user interaction, can be received from the device at the server.
[0120] Although this specification contains many specific implementation details, these details should not be viewed as limitations on the scope of any invention or the scope of what may be claimed, but rather as descriptions of features that may be specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as functioning in certain embodiments, and may even be initially claimed as such, one or more features from a claimed combination may be deleted from the combination in some cases, and a claimed combination may involve a sub-combination or a variation of a sub-combination.
[0121] Similarly, although operations are depicted in the drawings and described 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 a sequential order, or that all of the operations shown be performed to obtain the desired result. In some cases, multitasking and parallel processing can be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0122] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions referenced in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily need to be in the specific order shown or in a sequential order to achieve the desired results. In some cases, multitasking and parallel processing can be advantageous.
Claims
1. A computer-implemented method of controlling an agent interacting with an environment to perform a task, the method comprising: receiving a current observation characterizing a current state of the environment; receiving a target observation representing a target state of the environment, the target state causing the agent to successfully perform the task; processing the current observation and the target observation using a trained plan proposal neural network having a plurality of plan proposal parameters and configured to generate data defining a probability distribution over a space of potential plans; selecting a potential plan from the space of potential plans using the probability distribution; processing a policy input using a trained policy neural network, the policy input comprising (i) the current observation, (ii) the target observation, and (iii) a selected potential plan, the trained policy neural network having a plurality of policy parameters and configured to generate a current action output, the current action output defining an action to be performed in response to the current observation; as well as Causes the agent to perform the action defined by the current action output.
2. The method according to claim 1, further comprising: receiving a subsequent observation representing a subsequent state of the environment following the current state; processing a policy input using the policy neural network to generate a subsequent action output, the policy input comprising (i) the subsequent observation, (ii) the target observation, and (iii) a selected potential plan, the subsequent action output defining an action to be performed in response to the subsequent observation; as well as The agent is caused to perform the action defined by the subsequent action output.
3. The method according to claim 2, further comprising: upon receiving the subsequent observation, determining that criteria for selecting a new potential plan are not met; as well as In response to determining that the criterion is not met, processing a policy input using the policy neural network, the policy input comprising (i) the subsequent observation, (ii) the target observation, and (iii) the selected potential plan.
4. The method according to claim 1, wherein: Selecting a potential plan from the space of potential plans using the probability distribution includes sampling potential plans according to the probability distribution.
5. The method according to claim 1, wherein: The current action output defines a probability distribution over the set of actions that can be performed by the agent.
6. The method according to claim 1, wherein: The data defining the probability distribution over the potential plan space are the mean and variance of a multivariate distribution.
7. The method according to claim 1, wherein: The plan proposal neural network and the policy neural network have been jointly trained through self-supervised learning.
8. The method according to claim 1, wherein: The proposed neural network is a feed-forward neural network.
9. The method according to claim 8, wherein: The project proposes that the neural network include a multi-layer perceptron (MLP).
10. The method according to claim 1, wherein: The policy neural network is a recurrent neural network.
11. A method of training a plan suggestion neural network and a policy neural network according to any one of claims 1 to 10 in conjunction with a plan identifier neural network, the plan identifier neural network having a plurality of plan identifier parameters and configured to receive a sequence of observation action pairs as input and process the sequence of state action pairs to generate data, the data defining a probability distribution over the potential plan space, the method comprising: obtaining a sequence of observation-action pairs, the sequence of observation-action pairs generated as a result of the agent's interaction with the environment; processing at least the observations in the sequence of observation-action pairs using the plan identifier neural network and based on current values of the plurality of plan identifier parameters to generate first data defining a first probability distribution over the space of potential plans; processing a first observation in the sequence and a last observation in the sequence using the plan proposal neural network and based on current values of the plan proposal parameters to generate a second probability distribution over the potential plan space; sampling potential plans from the first probability distribution; for each observation-action pair in the sequence, using the policy neural network and processing inputs according to current values of the policy parameters to generate an action probability distribution for the pair, the inputs comprising the observation in the pair, the last observation in the sequence, and the potential plan; as well as Determine the gradient of a loss function with respect to the policy parameters, the plan identifier parameters, and the plan suggestion parameters, the loss function comprising: (i) a first term, for each observation-action pair, which depends on the probability of the action in the observation-action pair in the action probability distribution assigned to the observation-action pair; and (ii) a second term, which measures the difference between the first probability distribution and the second probability distribution.
12. The method according to claim 11, wherein: The second term is the KL divergence between the first probability distribution and the second probability distribution.
13. The method according to claim 11, wherein: The first term is the maximum possible loss term.
14. The method according to claim 11, wherein: The loss function is in the form of L1+BL2, where L1 is the first term, L2 is the second term, and B is a constant weight value.
15. The method according to claim 14, wherein: B is less than 1.
16. The method according to claim 11, wherein: The plan identifier neural network is a recurrent neural network.
17. The method according to claim 16, wherein: The plan identifier neural network is a bidirectional recurrent neural network.
18. The method according to any one of claims 11 to 17, wherein: The environment is a real-world environment and the agent is a mechanical agent that interacts with the real-world environment.
19. One or more computer-readable storage media storing instructions, which, when executed by one or more computers, cause the one or more computers to perform corresponding operations of any one of the methods according to any one of claims 1 to 18.
20. A system comprising one or more computers and one or more storage devices, wherein the one or more storage devices store instructions, which when executed by the one or more computers cause the one or more computers to perform corresponding operations of any one of the methods according to any one of claims 1 to 18.
Citation Information
Patent Citations
Training action selection neural networks
WO2018083532A1
