Deep reinforcement learning for robotic manipulation

The QT-Opt method solves the problem of insufficient generalization capabilities of robot strategy models in the existing technology through Q-learning's continuous action generalization and distributed asynchronous training, achieves high-success rate grabbing tasks and simplifies the training process.

CN112313044BActive Publication Date: 2024-10-25GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980040252.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-15
Filing Date
2019-06-14
Publication Date
2024-10-25
Estimated Expiration
2039-06-14

AI Technical Summary

Technical Problem

Existing technologies make it difficult to train robot strategy models that can generalize to unseen objects and environments, and large-scale autonomous data collection and training take a long time and occupy real-world robot resources.

Method used

The QT-Opt method is adopted, taking advantage of the continuous action generalization of Q-learning, selecting actions and target Q-values ​​through random optimization, avoiding the need for a second maximizer network, and training the policy model in a distributed asynchronous system, integrating multiple Experience with robotics and experiments.

Benefits of technology

It achieves high-success rate grabbing tasks on unseen objects and environments, simplifies the training process, improves training efficiency and model generalization capabilities, and avoids high resource usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112313044B_ABST
    Figure CN112313044B_ABST
Patent Text Reader

Abstract

Large-scale reinforcement learning is used to train a policy model that can be used by a robot to perform a robotic task in which the robot interacts with one or more environmental objects. In various embodiments, the policy model is trained using off-policy deep reinforcement learning, and the off-policy deep reinforcement learning is based on self-supervised data collection. The policy model can be a neural network model. An embodiment of reinforcement learning utilized in training the neural network model utilizes a continuous action variant of Q-learning. Through the techniques disclosed herein, embodiments can learn policies that effectively generalize to previously unseen objects, previously unseen environments, and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to deep reinforcement learning for robotic manipulation. Background Art

[0002] Many robots are explicitly programmed to manipulate one or more environmental objects using one or more end effectors. For example, a robot may utilize a grasping end effector such as an "impact" gripper or an "ingressive" gripper (e.g., physically penetrating an object using a nail, needle, etc.) to pick up an object from a first location, move the object to a second location, and drop the object at the second location. Some additional examples of robot end effectors that can grasp objects include an "astrictive" end effector (e.g., using suction or vacuum to pick up an object) and one or more "contigutive" end effectors (e.g., using surface tension, freezing, or adhesives to pick up an object), to name a few. Summary of the invention

[0003] Some embodiments disclosed herein relate to using large-scale reinforcement learning to train a policy model that can be used by a robot to perform a robotic task in which the robot interacts with one or more environmental objects. A non-limiting example of such a robotic task is robotic grasping, which is described in the various examples presented herein. However, embodiments disclosed herein can be used to train policy models for other non-grasping robotic tasks such as opening a door, pitching a ball, pushing an object, etc.

[0004] In embodiments disclosed herein, off-policy deep reinforcement learning is used to train a policy model, and off-policy deep reinforcement learning is based on self-supervised data collection (e.g., using only self-supervised data). On-policy deep reinforcement learning can also be used to train a policy model, and can optionally be interspersed with the off-policy deep reinforcement learning described herein. The self-supervised data utilized in off-policy deep reinforcement learning can be based on sensor observations from a real-world robot when performing a scenario of a robot task, and it can optionally be supplemented with self-supervised data from a robot simulation of a scenario of performing a robot task. Through off-policy training, large-scale autonomous data collection, and / or other techniques disclosed herein, embodiments can learn strategies that effectively generalize to previously unseen objects, previously unseen environments, and the like.

[0005] The policy model can be a machine learning model, such as a neural network model. Moreover, as described herein, the implementation of reinforcement learning used in training the neural network model utilizes a continuous action variant of Q learning. Therefore, the policy model can represent a Q function. The embodiments disclosed herein train and utilize a policy model to perform closed-loop vision-based control, wherein the robot continuously updates its task strategy based on the most recent visual data observations to optimize long-horizon task success. In some of these embodiments, the policy model is trained to predict the value of an action in view of current state data. For example, a policy model can be used to process both action and state data to generate a value that is a prediction of the value in view of the current state data.

[0006] As described above, the current state data may include visual data captured by the robot's visual component (e.g., a 2D image from a monographic camera, a 2.5D image from a stereo camera, and / or a 3D point cloud from a 3D laser scanner). The current state data may include only visual data, or may optionally include additional data, such as whether the robot's gripping end effector is open or closed. The action may include a pose change of the robot's component, such as a pose change of the robot's gripping end effector in Cartesian space. The pose change may be defined by the action as, for example, a translation difference (indicating a desired change in position) and a rotation difference (indicating a desired change in azimuth). The action may also include, for example, a component action command that specifies a target state of a dynamic state of the component, wherein the dynamic state is a state other than the translation and rotation of the object. For example, the component action command may specify whether the gripper is to be opened, closed, or adjusted to a target state between open and closed (e.g., partially closed). The action may further include a termination command that specifies whether to terminate the execution of the robot task.

[0007] As described herein, a policy model is trained in view of a reward function that can assign a positive reward (e.g., "1") or a negative reward (e.g., "0") at the last time step of an episode in which a task is performed. The last time step is a time step at which a termination action occurs as a result of an action determined based on the policy model indicating termination or based on the occurrence of a maximum number of time steps. Rewards can be assigned using various self-supervisory techniques. For example, for a grasping task, at the end of an episode, the grasper can be moved out of the field of view of the camera and a first image is captured while it is out of the field of view. The grasper can then return to its previous position and "open" (if closed at the end of the episode), thereby dropping any grasped object, and capturing a second image. Background subtraction and / or other techniques can be used to compare the first image and the second image to determine whether the grasper is grasping an object (e.g., the object will be present in the second image, but not in the first image) - and to assign an appropriate reward to the last time step. In some embodiments, the reward function can assign a small penalty (e.g., -0.05) to all time steps in which a termination action is not taken. This small penalty can motivate the robot to perform the task quickly.

[0008] In order to enable the policy model to learn generalizable policies, it is trained on a diverse dataset representing a variety of objects and / or environments. For example, a diverse set of objects may be required to enable the policy model to learn generalizable policies for grasping, such as picking up new objects, performing pre-grasp manipulations, and / or handling dynamic disturbances using vision-based feedback. It may be impractical to collect such data in a single on-policy training run. For example, collecting such data in a single on-policy training run may require a large amount of "clock on the wall" training time, and the resulting occupation of a real-world robot.

[0009] Thus, embodiments disclosed herein utilize a continuous-action generalization of Q-learning, sometimes referred to herein as “QT-Opt.” Unlike other often unstable continuous-action Q-learning methods, QT-Opt dispenses with the need to train explicit actors, and instead uses stochastic optimization to select actions (during inference) and target Q-values ​​(during training). QT-opt can execute off-policy, which makes it possible to pool experience from multiple robots and multiple experiments. For example, data for training a policy model can be collected by multiple robots operating over long durations. Even fully off-policy training can provide improved performance in task execution, while a moderate amount of on-policy fine-tuning using QT-opt can further improve performance. QT-opt maintains the generality of non-convex Q-functions while avoiding the need for a second maximizer network.

[0010] In various embodiments, during inference, stochastic optimization is used to randomly select actions to be evaluated given the current state and using a policy model—and to randomly select a given action to be realized (from the evaluated actions) given the current state. For example, the stochastic optimization can be a derivative-free optimization algorithm such as the cross-entropy method (CEM). CEM samples a batch of N values at each iteration, fits a Gaussian distribution to the best M < N of these samples, and then samples the next batch of N from that Gaussian. As a non-limiting example, N can be 64, and M can be 6. During inference, CEM can be used to select 64 candidate actions that are evaluated given the current state and using the policy model, and 6 best actions (e.g., the 6 with the highest Q-values generated using the policy model) can be selected. A Gaussian distribution can be fit to these 6 actions, and 64 more actions can be selected from that Gaussian. These 64 actions can be evaluated given the current state and using the policy model, and the best one action (e.g., the action with the highest Q-value generated using the policy model) can be selected as the action to be realized. The previous example is a two-iteration method with N = 64 and M = 6. Additional iterations, and / or alternative N and / or M values can be utilized.

[0011] In various embodiments, during training, stochastic optimization is used to determine a target Q-value that is used to generate a loss for state, action pairs to be evaluated during training. For example, the stochastic optimization can be used to randomly select actions to be evaluated given the "next state" corresponding to the state, action pair and using the policy model—and to randomly select a Q-value corresponding to a given action (from the evaluated actions). The target Q-value can be determined based on the selected Q-value. For example, the target Q-value can be a function of the selected Q-value and the reward (if any) of the evaluated state, action pair.

[0012] The foregoing description is provided only as an overview of some embodiments disclosed herein. These and other embodiments are described in more detail herein.

[0013] In some embodiments, a method implemented by one or more processors of a robot during execution of a robotic task is provided, the method comprising: receiving current state data of the robot and selecting a robotic action to be performed for the robotic task. The current state data comprises current visual data captured by a visual component of the robot. Selecting the robotic action comprises: performing optimization on candidate robotic actions using a trained neural network model representing a Q function and trained using reinforcement learning as an objective function, wherein performing the optimization comprises generating Q values ​​for a subset of candidate robotic actions considered in the optimization. Generating each Q value is based on processing of the state data and a corresponding one of the candidate robotic actions in the subset using the trained neural network model. Selecting the robotic action also comprises selecting the robotic action from the candidate robotic actions based on the Q values ​​generated for the robotic action during the optimization performed. The method further comprises providing a command to one or more actuators of the robot to cause execution of the selected robotic action.

[0014] These and other implementations may include one or more of the following features.

[0015] In some embodiments, the robot action includes a pose change of a component of the robot, wherein the pose change defines a difference between a current pose of the component of the robot and a desired pose of the component. In some of these embodiments, the component is an end effector, and the pose change defines a translation difference of the end effector and a rotation difference of the end effector. In some versions of these embodiments, the end effector is a gripper, and the robot task is a grasping task.

[0016] In some embodiments, the robot action includes a termination command that specifies whether to terminate the execution of the robot task. In some of these embodiments, the robot action also includes a component action command that specifies a target state for a dynamic state of the component, wherein the dynamic state is a state other than translation and rotation of the component. In some versions of these embodiments, the component is a gripper, and the target state specified by the component action command indicates that the gripper is to be closed. In some versions of these embodiments, the component action command includes an open command and a close command, which together define the target state as open, closed, or between open and closed.

[0017] In some embodiments, the current state data also includes the current state of a component of the robot. In some of these embodiments, the component of the robot is a gripper, and the current state indicates whether the gripper is open or closed.

[0018] In some embodiments, the optimization is a stochastic optimization. In some of these embodiments, the optimization is a derivative-free method, such as a cross entropy method (CEM).

[0019] In some embodiments, performing optimization on candidate robotic actions includes: selecting an initial batch of candidate robotic actions; generating a corresponding one of the Q-values ​​for each candidate robotic action in the initial batch; selecting an initial subset of candidate robotic actions in the initial batch based on the Q-values ​​for the candidate robotic actions in the initial batch; fitting a Gaussian distribution to the selected initial subset of candidate robotic actions; selecting a next batch of candidate robotic actions based on the Gaussian distribution; and generating a corresponding one of the Q-values ​​for each candidate robotic action in the next batch. In some of these embodiments, the robotic action is one of the candidate robotic actions in the next batch, and, based on the Q-values ​​generated for the robotic action during the optimization being performed, selecting the robotic action from the candidate robotic actions includes: selecting the robotic action from the next batch based on the Q-value generated for the robotic action being a maximum Q-value among the corresponding Q-values ​​in the next batch.

[0020] In some embodiments, generating each Q-value based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model includes: processing the state data using a first branch of the trained neural network model to generate a state nesting; processing a first one of the candidate robot actions in the subset using a second branch of the trained neural network model to generate a first nesting; generating a combined nesting by tiling the state nesting and the first nesting; processing the combined nesting using an additional layer of the trained neural network model to generate a first Q-value in the Q-values. In some of these embodiments, generating each Q-value based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model also includes: processing a second one of the candidate robot actions in the subset using the second branch of the trained neural network model to generate a second nesting; generating an additional combined nesting by reusing the state nesting and tiling the reused state nesting and the first nesting; and processing the additional combined nesting using an additional layer of the trained neural network model to generate a second Q-value in the Q-values.

[0021] In some embodiments, a method for training a neural network model representing a Q function is provided. The method is implemented by multiple processors, and the method includes: retrieving a robot transition, the robot transition generated based on data from an episode of a robot performing a robot task. The robot transition includes: state data, the state data including visual data captured by a visual component at a state of the robot during the episode; next state data, the next state data including next visual data captured by a visual component at a next state of the robot during the episode, the next state being transitioned to from the state; an action performed to transition from the state to the next state; and a reward for the robot transition. The method also includes determining a target Q value for the robot transition. Determining the target Q value includes: performing optimization on candidate robot actions using a version of the neural network model representing the Q function as an objective function. Performing the optimization includes generating Q values ​​for a subset of candidate robot actions considered in the optimization, wherein generating each Q value is based on processing the next state data and a corresponding one of the candidate robot actions in the subset using the version of the neural network model. Determining the target Q value also includes: selecting a maximum Q value from the generated Q values, and determining the target Q value based on the maximum Q value and the reward. The method further includes: storing in a training buffer: state data, actions, and target Q values; retrieving from the training buffer: state data, actions, and target Q values; and generating predicted Q values. Generating the predicted Q values ​​includes processing the retrieved state data and the retrieved actions using a current version of the neural network model, wherein the current version of the neural network model is updated relative to the version. The method further includes generating a loss based on the predicted Q values ​​and the target Q values; and updating the current version of the neural network model based on the loss.

[0022] These and other implementations of the present technology may include one or more of the following features.

[0023] In some embodiments, the robot transition is generated based on offline data and retrieved from an offline buffer. In some of these embodiments, retrieving the robot transition from the offline buffer is based on a dynamic offline sampling rate for sampling from the offline buffer, wherein the dynamic offline sampling rate decreases as the duration of training the neural network model increases. In some versions of these embodiments, the method further includes generating the robot transition by accessing an offline database storing offline episodes.

[0024] In some embodiments, the robot transitions are generated based on online data and retrieved from an online buffer, wherein the online data is generated by an episode of the robot performing a robot task using the robot version of the neural network model. In some of these embodiments, retrieving the robot transitions from the online buffer is based on a dynamic online sampling rate for sampling from the online buffer, wherein the dynamic online sampling rate increases as the duration of training the neural network model increases. In some versions of these embodiments, the method further includes updating the robot version of the neural network model based on the loss.

[0025] In some embodiments, the action comprises a pose change of a component of the robot, wherein the pose change defines a difference between a pose of the component in the state and a next pose of the component in the next state.

[0026] In some implementations, when the next state is a terminal state of the episode, the action includes a terminate command.

[0027] In some implementations, the action includes a component action command that defines a dynamic state of the component at a next state of the plot, the dynamic state being a state other than translation and rotation of the component.

[0028] In some embodiments, performing optimization on the candidate robotic actions includes: selecting an initial batch of candidate robotic actions; generating a corresponding one of the Q-values ​​for each candidate robotic action in the initial batch; selecting an initial subset of candidate robotic actions in the initial batch based on the Q-values ​​for the candidate robotic actions in the initial batch; fitting a Gaussian distribution to the selected initial subset of candidate robotic actions; selecting a next batch of candidate robotic actions based on the Gaussian distribution; and generating a corresponding one of the Q-values ​​for each candidate robotic action in the next batch. In some of these embodiments, the maximum Q-value is one of the Q-values ​​for the candidate robotic actions in the next batch, and the maximum Q-value is selected based on the maximum Q-value being the maximum Q-value among the corresponding Q-values ​​of the next batch.

[0029] In some embodiments, a method implemented by one or more processors of a robot during performance of a robotic task is provided, the method comprising: receiving current state data of the robot, the current state data comprising current sensor data of the robot; and selecting a robotic action to be performed for the robotic task. Selecting the robotic action comprises: performing an optimization on candidate robotic actions using a trained neural network model representing a learned optimal policy as an objective function, wherein performing the optimization comprises generating values ​​for a subset of candidate robotic actions considered in the optimization, and wherein generating each value is based on processing the state data and a corresponding one of the candidate robotic actions in the subset using the trained neural network model. Selecting the robotic action also comprises selecting the robotic action from the candidate robotic actions based on the values ​​generated for the robotic action during the performed optimization. The method further comprises providing a command to one or more actuators of the robot to cause performance of the selected robotic action.

[0030] In some embodiments, a method for training a neural network model representing a policy is provided. The method is implemented by multiple processors, and the method includes: retrieving a robot transformation, the robot transformation is generated based on data from an episode of a robot performing a robot task, and the robot transformation includes state data and an action. The method also includes determining a target value for the robot transformation. Determining the target value includes performing an optimization on candidate robot actions using a version of the neural network model representing the policy as an objective function. The method also includes: storing in a training buffer: state data, actions, and target values; retrieving from the training buffer: state data, actions, and target values; and generating predicted values. Generating predicted values ​​includes processing the retrieved state data and the retrieved actions using a current version of the neural network model, wherein the current version of the neural network model is updated relative to the version. The method also includes generating a loss based on the predicted value and the target value; and updating the current version of the neural network model based on the loss.

[0031] Other embodiments may include a non-transitory computer-readable storage medium storing instructions executable by one or more processors (e.g., central processing unit(s) (CPUs), graphics processing unit(s) (GPUs), and / or tensor processing units (TPUs)) to perform methods such as one or more of the methods described above and / or elsewhere herein. Still other embodiments may include a system of one or more computers and / or one or more robots including one or more processors operable to execute stored instructions to perform methods such as one or more of the methods described above and / or elsewhere herein.

[0032] It should be understood that all combinations of the foregoing concepts and additional concepts described in more detail herein are considered to be part of the subject matter disclosed herein. For example, all combinations of the claimed subject matter appearing at the end of this disclosure are considered to be part of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 An example environment is shown in which implementations disclosed herein may be implemented.

[0034] Figure 2 Shows Figure 1 The components of the sample environment and the various interactions that can occur between these components.

[0035] Figure 3 is a flow chart illustrating an example method of converting stored offline episode data into transitions and pushing the transitions into an offline buffer.

[0036] Figure 4 is a flow chart illustrating an example method of executing a policy-directed mission scenario and pushing data from the policy-directed mission scenario into an online buffer and optionally into an offline database.

[0037] Figure 5 is a flow chart illustrating an example method of using data from an online buffer or an offline buffer when filling a training buffer with data that can be used to train a policy model.

[0038] Figure 6 is a flow chart illustrating an example method of training a policy model.

[0039] Figure 7 is a flow chart illustrating an example method for performing a robotic task using a trained policy model.

[0040] Fig. 8A and Figure 8B Shown are the architecture of an example policy model, example state data and action data that may be applied as input to the policy model, and example output that may be generated based on processing the input using the policy model.

[0041] Fig. 9 An example architecture of a robot is schematically depicted.

[0042] Fig.10 An example architecture of a computer system is schematically depicted. DETAILED DESCRIPTION

[0043] Figure 1A robot 180 is shown, which includes robots 180A, 180B and optionally other (not shown) robots. Robots 180A and 180B are "robot arms" with multiple degrees of freedom to enable gripping end effectors 182A and 182B to traverse any of multiple potential paths to position the gripping end effectors 182A and 182B at a desired location. Robots 180A and 180B each further control two opposing "claws" of their corresponding gripping end effectors 182A, 182B to actuate the claws between at least an open position and a closed position (and / or optionally multiple "partially closed" positions).

[0044] exist Figure 1 Also shown in FIG. 1 are example visual components 184A and 184B. Figure 1 , vision component 184A is mounted in a fixed attitude relative to a base or other fixed reference point of robot 180A. Vision component 184B is also mounted in a fixed attitude relative to a base or other fixed reference point of robot 180B. Vision components 184A and 184B each include one or more sensors and can generate visual data related to the shape, color, depth and / or other features of (one or more) objects within the line of sight of the sensor. Vision components 184A and 184B can be, for example, thematic cameras, stereo cameras and / or 3D laser scanners. A 3D laser scanner includes one or more lasers that emit light and one or more sensors that collect data related to reflections of the emitted light. The 3D laser scanner can be, for example, a time-of-flight 3D laser scanner or a triangulation-based 3D laser scanner, and can include a position sensitive detector (PSD) or other optical position sensor.

[0045] Vision component 184A has a field of view of at least a portion of the workspace of robot 180A, such as a portion of the workspace that includes example object 191A. Figure 1 The resting surface(s) of the objects 191A are not shown, but the objects may be resting on a table, tray, and / or other surface(s). Objects 191 include a spatula, a stapler, and a pencil. In other embodiments, more objects, fewer objects, additional objects, and / or alternative objects may be provided during all or part of a grasping episode (or other task episode) of the robot 180A, as described herein. Furthermore, in many embodiments, the objects 191A may be periodically replaced with different sets of objects (e.g., by a human or by another robot) to provide diverse training data.

[0046] Vision component 184B has a field of view of at least a portion of the workspace of robot 180B, such as that portion of the workspace that includes example object 191B. Figure 1The resting surfaces of the objects 191B are not shown, but they may be resting on a table, tray, and / or other surface(s). Objects 191B include pencils, staplers, and glasses. In other embodiments, more objects, fewer objects, additional objects, and / or replacement objects may be provided during all or part of a grasping episode (or other task episode) of the robot 180B, as described herein. Furthermore, in many embodiments, objects 191B may be periodically replaced with different sets of objects (e.g., by a human or by another robot) to provide diverse training data.

[0047] Despite Figure 1 Specific robots 180A and 180B are shown in the drawings, but additional and / or alternative robots may be utilized, including additional robotic arms similar to robots 180A and 180B, robots having other robotic arm forms, robots having humanoid forms, robots having animal forms, robots that move via one or more wheels (e.g., self-balancing robots), underwater vehicles, unmanned aerial vehicles (“UAVs”), etc. Figure 1 Although a particular grasping end-effector is shown in the drawings, additional and / or alternative end-effectors may be utilized, such as alternative impact grasping end-effectors (e.g., grasping end-effectors with grasping "plates," grasping end-effectors with more or fewer "fingers" / "claws"), "intrusive" grasping end-effectors, "retracting" grasping end-effectors, or "contacting" grasping end-effectors or non-grasping end-effectors. Figure 1 Specific mountings of vision sensors 184A and 184B are shown in FIG, but additional and / or alternative mountings may be utilized. For example, in some embodiments, the vision sensors may be mounted directly to the robot, such as on a non-actuable component of the robot or on an actuable component of the robot (e.g., on an end effector or on a component near an end effector). Additionally, for example, in some embodiments, the vision sensors may be mounted on a non-fixed structure separate from the robot with which they are associated and / or may be mounted in a non-fixed manner on a structure separate from the robot with which they are associated.

[0048] As described herein, robots 180A, 180B, and / or other robots may be used to perform a large number of grasping episodes, and data associated with the grasping episodes may be stored in an offline episode data database 150 and / or provided for inclusion in an online buffer 112 (of a corresponding one of playback buffers 110A-N). As described herein, robots 180A and 180B may optionally initially perform grasping episodes (or other task episodes) according to a scripted exploration strategy to bootstrap data collection. The scripted exploration strategy may be randomized, but biased toward reasonable grasps. Data from such scripted episodes may be stored in an offline episode data database 150 and utilized in initial training of a strategy model 152 to bootstrap initial training.

[0049] Robots 180A and 180B may additionally or alternatively use policy model 152 to execute grasping scenarios (or other task scenarios) and provide data from such scenarios to be included in online buffer 112 during training and / or provided in offline scenario data database 150 (and extracted during training for use in populating offline buffer 114). For example, robots 180A and 180B may utilize policy model 152 when executing such scenarios. Figure 4 14. The episodes provided for inclusion in the online buffer 112 during training will be online episodes. However, the version of the policy model 152 utilized in generating a given episode will still be somewhat behind the version of the policy model 152 trained based on instances from that episode. The episodes stored for inclusion in the offline episode data database 150 will be offline episodes, and instances from that episode will be pulled later during training and used to generate transitions stored in the offline buffer 114.

[0050] The data generated by the robot 180A or 180B during an episode may include state data, actions, and rewards. Each instance of the state data for an episode includes at least vision-based data for the instance of the episode. For example, when the robot's vision component is a thematic camera, an instance of the state data may include a 2D image. Each instance of the state data may include only the corresponding visual data, or may optionally include additional data, such as whether the robot's gripping end effector is open or closed at that instance. More formally, a given state observation may be represented as s∈S.

[0051] Each action of a scenario defines an action that is implemented in the current state to transition to the next state (if there is any next state). An action may include a pose change of a component of the robot, such as a pose change of a gripping end effector of the robot in Cartesian space. A pose change may be defined by an action as, for example, a translation difference (indicating a desired change in position) and a rotation difference (indicating a desired change in azimuth). An action may also include, for example, a component action command that specifies a target state for a dynamic state of a component, where the dynamic state is in addition to the translation and rotation of the object. For example, a component action command may indicate whether a gripper is to be opened, closed, or adjusted to a target state between open and closed (e.g., partially closed). An action may further include a termination command that specifies whether to terminate the execution of the robot task. The termination state of the scenario will include an affirmative termination command to specify the termination of the execution of the robot task.

[0052] More formally, a given state observation can be represented as a∈A. In some implementations, for a grasping task, A comprises a vector t∈R in Cartesian space indicating the desired change in the grasper position 3 , the change in azimuth angle r∈R encoded via sine-cosine coding 3 , the binary gripper opening and closing commands gopen and gclose and the termination command e that ends the episode, so that a = (t,r,gopen and gclose,e).

[0053] Each reward may be assigned according to a reward function that may assign a positive reward (e.g., "1") or a negative reward (e.g., "0") at the last time step of an episode in which the task is performed. The last time step is the time step at which a termination action occurs as a result of an action determined based on the policy model indicating termination or based on the maximum number of time steps occurring. A variety of self-supervised techniques may be used to assign rewards. For example, for a grasping task, at the end of an episode, the grasper may move out of the field of view of the camera and capture a first image while it is out of view. The grasper may then return to its previous position and "open" (if closed at the end of the episode), thereby dropping any grasped object, and capturing a second image. Background subtraction and / or other techniques may be used to compare the first image and the second image to determine whether the grasper is grasping an object (e.g., the object will be present in the second image, but not in the first image) - and to assign an appropriate reward to the last time step. In some embodiments, the reward function may assign a small penalty (e.g., -0.05) to all time steps in which a termination action is not taken. This small penalty can motivate the robot to perform the task quickly.

[0054] Figure 1Also shown in FIG. 1 are offline episode data database 150, log readers 126A-N, playback buffers 110A-N, Bellman updaters 122A-N, training workers 124A-N, parameter servers 128A-N, and policy model 152. Note that Figure 1 All components of are used to train the policy model 152. However, once the training model is trained (e.g., deemed optimized according to one or more criteria), the robot 180A and / or 180B can use the policy model 152 and in the absence of Figure 1 The robot performs the task without the need for other components.

[0055] As described herein, policy model 152 may be a deep neural network model, such as in Fig. 8A and 8B The policy model 152 can be represented as Q θ (s, a), where θ represents the learned weights in the neural network model. The reinforcement learning described in this paper seeks the optimal Q function (Q θ (s,a)), the Bellman error is given by:

[0056] ε(θ)=E (s,a,s')~p(s,a,s') [D(Q θ (s,a),Q T (s,a,s'))] (1)

[0057] Among them, Q T (s,a,s')=r(s,a)+γV(s') is the target value, and D is some kind of divergence metric.

[0058] This corresponds to double Q-learning with a target network that is a variant of the standard Bellman error, where is the lagged target network. The expectation is taken under some data distribution (which is actually just the distribution over all previously observed transitions). Once the Q function is learned, the policy can be recovered according to π(s) = arg max a Q(s,a).

[0059] Q-learning with deep neural network function approximators provides a simple and practical solution for reinforcement learning with image observations and lends itself to straightforward parallelization. However, incorporating continuous actions, such as continuous gripper motion in a grasping task, poses a challenge to this approach. Some prior art has attempted to address this challenge by using a second network that acts as an approximate maximizer or by constraining the Q-function to be convex in a, making analytical maximization tractable. However, such prior art can be unstable, which makes it problematic for large-scale reinforcement learning tasks where running a hyperparameter sweep is prohibitively costly. Thus, such prior art may not be suitable for complex manipulation tasks, such as grasping, where the Q-function is far from convex in the inputs. For example, for an action of reaching towards an object, the Q-value may be high, but for the gap between objects, the Q-value may be low.

[0060] Accordingly, the QT-Opt method described herein is an alternative approach that avoids the need for a second maximizer network while maintaining the generality of non-convex Q-functions. In the QT-Opt method, a state s and an action a are input into a policy model, and the maximum in Equation (3) below is evaluated by means of a stochastic optimization algorithm that can handle non-convex and multimodal optimization scenarios.

[0061]

[0062] Formally, let π θ (s) be the policy implicitly induced by the Q-function Q θ (s,a). Equation (3) can be recovered by replacing the arg max argument of the target Q-function with the optimal policy π θ (s) = arg max a Q θ (s,a). In QT-Opt, instead, π θ (s) is evaluated by running a stochastic optimization over a using Q θ (s,a) as the target value. The cross-entropy method (CEM) is one algorithm for performing such optimization, which is easy to parallelize and has modest robustness to local optima for low-dimensional problems. CEM is a simple derivative-free optimization algorithm that samples a batch of N values in each iteration, fits a Gaussian distribution to the best M < N of these samples, and then samples the next batch of N from that Gaussian. In some embodiments, N = 64 and M = 6, and two iterations of CEM are performed. As described herein, this process can be used to compute targets during training and can be used to select actions for exploration in the real world.

[0063] Now turning to Figure 2 , showing Figure 1 The components of an example environment of , and various interactions that may occur between the components. These interactions may occur during reinforcement learning to train the policy model 152 according to the embodiments disclosed herein. Large-scale reinforcement learning that requires generalization on new scenes and new objects requires a large amount of diverse data. Such data may be collected by operating the robots 180 for long durations (e.g., several weeks on 7 robots) and storing the episode data in an offline episode data database 150.

[0064] To efficiently ingest and train on such a large and diverse dataset, a distributed asynchronous implementation of QT-Opt can be utilized. Figure 2 The implementation of the system is summarized. Multiple log readers 126A-N operating in parallel read historical data from the offline plot data database 150 to generate transitions, which are pushed by the log readers 126A-N to the offline buffer 114 of the playback buffer. In some implementations, the log readers 126A-N can each execute Figure 3 In some embodiments, 50, 100, or more log readers 126A-N may operate in parallel, which may help decouple dependencies between consecutive episodes in offline episode data database 150 and result in improved training (e.g., faster convergence and / or better performance of the trained policy model).

[0065] Additionally, online transitions may optionally be pushed from the robot 180 to the online buffer 112. Online transitions may also optionally be stored in the offline episode data database 150 and later read by the log readers 126A-N, at which point they will be offline transitions.

[0066] Multiple Bellman updaters 122A-N operating in parallel sample transitions from the offline buffer 114 and the online buffer 112. In various embodiments, this is a weighted sampling (e.g., a sampling rate of the offline buffer 114 and a separate sampling rate of the online buffer 112) that can vary with the duration of training. For example, early in training, the sampling rate of the offline buffer 114 can be relatively large, and can be reduced with the duration of training (and as a result, the sampling rate of the online buffer 112 can be increased). This can avoid overfitting to initially scarce on-policy data, and can accommodate the much lower generation rate of on-policy data.

[0067] Bellman updaters 122A-N label the sampled data with corresponding target values ​​and store the labeled samples in training buffer 116, which may operate as a ring buffer. When labeling a given instance of sampled data with a given target value, one of Bellman updaters 122A-N may perform a CEM optimization process using the current policy model (e.g., with currently learned parameters). Note that one result of this asynchronous process is that the samples in training buffer 116 are labeled with different lagged versions of the current model. In some embodiments, Bellman updaters 122A-N may each perform Figure 5 One or more steps of method 500.

[0068] Multiple training workers 124A-N operate in parallel and randomly extract labeled transitions from training buffer 116 and use them to update policy model 152. Each of training workers 124A-N calculates gradients and asynchronously sends the calculated gradients to parameter servers 128A-N. In some embodiments, Bellman updaters 122A-N may each execute Figure 6 One or more steps of method 600 of . Training workers 124A-N, Bellman updaters 122A-N, and robots 180 may extract model weights from parameter servers 128A-N periodically, continuously, or at other regular or irregular intervals, and may each update their own local versions of policy model 152 using the extracted model weights.

[0069] Reference below Figure 3-7 Flowchart that can be Figure 1 and 2 Additional descriptions of embodiments of the methods implemented by various components.

[0070] Figure 3 is a flow chart illustrating an example method 300 that converts stored offline plot data into transitions and pushes the transitions into an offline buffer. For convenience, the operations are described with reference to a system that performs the operations of the flow chart. The system may include one or more components of one or more computer systems, such as log readers 126A-N ( Figure 1 ) of one or more processors. In addition, although the operations of method 300 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0071] At block 302, the system starts log reading. For example, log reading may be initialized at the beginning of reinforcement learning.

[0072] At box 304, the system reads data from past episodes. For example, the system can read data from an offline episode data database that stores states, actions, and rewards from past episodes of robot execution of the task. The past episode can be an episode executed by the corresponding real physical robot based on a past version of the policy model. In some embodiments and / or situations (e.g., at the beginning of reinforcement learning), the past episode can be an episode that was executed based on a scripted exploration strategy, a task-based demonstration (e.g., through virtual reality, kinesthetic teaching, etc.), etc. Such scripted exploration execution and / or demonstration execution can be beneficial for guiding the reinforcement learning described herein.

[0073] At block 306, the system converts the data into transitions. For example, the data read may be from two time steps in the past episode and may include state data from a state (e.g., visual data), state data from a next state, the action taken to transition from that state to the next state (e.g., gripper translation and rotation, gripper opening / closing, and whether the action resulted in termination), and a reward for the action. The reward may be determined as described herein, and may optionally be previously determined and stored with the data.

[0074] At block 308, the system pushes the transition into the offline buffer. The system then returns to block 304 to read data from another past episode.

[0075] In various implementations, method 300 may be parallelized across multiple separate processors and / or threads. For example, method 300 may be performed simultaneously by 50, 100, or more separate workers.

[0076] Figure 4 is a flow chart illustrating an example method 400 that performs a policy-guided mission scenario and pushes data from the policy-guided mission scenario into an online buffer and optionally into an offline database. For convenience, the operations are described with reference to a system that performs the operations of the flow chart. The system may include one or more components of one or more robots, such as one or more processors of one of robots 180A and 180B. In addition, although the operations of method 400 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0077] At block 402, the system begins a policy-directed mission scenario.

[0078] At block 404, the system stores a state of the robot. For example, the state of the robot may include at least visual data captured by a vision component associated with the robot. For example, the state may include images captured by the vision component at corresponding time steps.

[0079] At block 406, the system selects an action using the current robot policy model. For example, the system may utilize a stochastic optimization technique (e.g., the CEM technique described herein) to sample multiple actions using the current robot policy model, and may select the sampled action with the highest value generated using the current robot policy model.

[0080] At block 408, the system performs an action using the current robot policy model. For example, the system may provide commands to one or more actuators of the robot to cause the robot to perform the action. For example, the system provides commands to the robot's actuator(s) to cause the gripper to translate and / or rotate as specified by the action, and / or to cause the gripper to close or open as specified by the action (and if different from the gripper's current state). In some implementations, the action may include a termination command (e.g., a termination command indicating whether the episode should terminate), and if the termination command indicates that the episode should terminate, the action at block 408 may be termination of the episode.

[0081] At block 410, the system determines a reward based on the system executing the action using the current robot policy model. In some embodiments, when the action is a non-terminal action, the reward may be, for example, a "0" reward - or a small penalty (e.g., -0.05) to incentivize faster robot task completion. In some embodiments, when the action is a terminal action, the reward may be "1" if the robot task is successful, and "0" if the robot task is not successful. For example, for a grasping task, the reward may be "1" if the object is grasped successfully, and "0" otherwise.

[0082] The system can utilize a variety of techniques to determine whether a grasping or other robotic task was successful. For example, for grasping, at the termination of an episode, the grasper can be moved out of the camera's field of view and a first image captured while it is out of view. The grasper can then return to its previous position and "open" (if closed at the end of the episode), thereby dropping any grasped object, and capturing a second image. Background subtraction and / or other techniques can be used to compare the first and second images to determine whether the grasper is grasping an object (e.g., the object will be present in the second image but not in the first image) - and to assign an appropriate reward to the final time step. In some embodiments, the height of the grasper and / or (one or more) other metrics can also optionally be considered. For example, a grasp can only be considered if the height of the grasper is above a certain threshold.

[0083] At block 412, the system pushes the state of block 404, the action selected at block 406, and the reward of block 410 to an online buffer for use as online data during reinforcement learning. The next state (from the next iteration of block 404) may also be pushed to the online buffer. At block 412, the system may also push the state of block 404, the action selected at block 406, and the reward of block 410 to an offline buffer for subsequent use as offline data during reinforcement learning (e.g., for use in future iterations of many time steps). Figure 3 300).

[0084] At block 414, the system determines whether to terminate the episode. In some embodiments and / or situations, the system may terminate the episode if the action at the most recent iteration of block 408 indicates termination. In some additional or alternative embodiments and / or situations, the system may terminate the episode if a threshold amount of iterations of blocks 404-412 have been performed for the episode and / or if other heuristic-based termination conditions have been met.

[0085] If at block 414 the system determines not to terminate the episode, the system returns to block 404. If at block 414 the system determines to terminate the episode, the system proceeds to block 402 to begin a new policy-directed mission episode. At block 416, the system may optionally reset the counter used in block 414 to determine whether a threshold amount of iterations of blocks 404-412 have been performed.

[0086] In various embodiments, method 400 can be parallelized across multiple separate real and / or simulated robots. For example, method 400 can be performed simultaneously by each of 5, 10, or more separate real robots. In addition, although method 300 and method 400 are shown in separate figures herein for clarity, it should be understood that in many embodiments, methods 300 and 400 are performed in parallel during reinforcement learning.

[0087] Figure 5 1 is a flowchart illustrating an example method 500 for using data from an online buffer or an offline buffer when filling a training buffer with data that can be used to train a policy model. For convenience, the operations are described with reference to a system that performs the operations of the flowchart. The system may include one or more components of one or more computer systems, such as one or more processors of one of the playback buffers 110A-N. In addition, although the operations of method 500 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0088] At block 502 , the system begins training buffer filling.

[0089] At block 504, the system retrieves the robot transformation. The robot transformation can be retrieved from an online buffer or an offline buffer. The online buffer can be based on Figure 4 The method 400 fills the buffer. The offline buffer may be based on Figure 3 The method 300 fills the buffer. In some embodiments, the system determines whether to retrieve the robot transition from the online buffer or the offline buffer based on the respective sampling rates of the two buffers. As described herein, the sampling rates of the two buffers can change as reinforcement learning progresses. For example, as reinforcement learning progresses, the sampling rate of the offline buffer may decrease, while the sampling rate of the online buffer may increase.

[0090] At block 506, the system determines a target Q-value based on the robot transition information retrieved from block 504. In some implementations, the system determines the target Q-value using a stochastic optimization technique as described herein. In some implementations, the stochastic optimization technique is CEM, and in some of these implementations, block 506 may include one or more of the following sub-blocks.

[0091] At sub-box 5061, the system selects N actions for the robot, where N is an integer.

[0092] At subblock 5062, the system generates a Q-value for each action by processing each of the robot's N actions using a version of the policy model and processing the next state data to which the robot transitions (of block 504).

[0093] At sub-box 5063, the system selects M actions from the N actions based on the generated Q values, where M is an integer.

[0094] At sub-block 5064, the system selects N actions based on a Gaussian distribution from the M actions.

[0095] At subblock 5065, the system generates a Q-value for each action by processing each of the N actions using the version of the policy model and processing the next-state data.

[0096] At sub-block 5066 , the system selects the maximum Q value from the Q values ​​generated at sub-block 5065 .

[0097] At subblock 5067, the system determines a target Q-value based on the maximum Q-value selected at subblock 5066. In some implementations, the system determines the target Q-value as a function of the maximum Q-value and the reward included in the robot transition retrieved at block 504.

[0098] At block 508, the system stores the state data, the corresponding action, and the target Q value determined at subblock 5067 in a training buffer. The system then proceeds to block 504 to perform another iteration of blocks 504, 506, and 508.

[0099] In various embodiments, method 500 can be parallelized across multiple separate processors and / or threads. For example, method 500 can be executed simultaneously by each of 5, 10, or more separate threads. In addition, although methods 300, 400, and 500 are shown in separate figures herein for clarity, it should be understood that in many embodiments, methods 300, 400, and 500 are executed in parallel during reinforcement learning.

[0100] Figure 6 6 is a flow chart illustrating an example method 600 for training a policy model. For convenience, the operations are described with reference to a system that performs the operations of the flow chart. The system may include one or more components of one or more computer systems, such as one or more processors of one of the training workers 124A-N and / or parameter servers 128A-N. In addition, although the operations of method 600 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0101] At block 602, the system begins training a policy model.

[0102] At block 604 , the system retrieves the robot's state data, the robot's motion data, and the robot's target Q-value from the training buffer.

[0103] At block 606, the system generates a predicted Q-value by processing the robot's state data and the robot's actions using the current version of the policy model. It should be noted that in various implementations, the current version of the policy model used to generate the predicted Q-value at block 606 will be updated relative to the model used to generate the target Q-value retrieved at block 604. In other words, the target Q-value retrieved at block 604 will be generated based on a lagged version of the policy model.

[0104] At block 608, the system generates a loss value based on the predicted Q value and the target Q value. For example, the system can generate a logarithmic loss based on these two values.

[0105] At block 610, the system determines whether there is additional state data, action data, and target Q-values ​​to retrieve for the batch (where batching techniques are utilized). If it is determined that there is additional state data, action data, and target Q-values ​​to retrieve for the batch, the system performs another iteration of blocks 604, 606, and 608. If it is determined that there is no additional batch for training the policy model, then the system proceeds to block 612.

[0106] At block 612, the system determines a gradient based on the loss(s) determined in the iteration(s) of block 608, and provides the gradient to the parameter server for updating the parameters of the policy model based on the gradient. The system then proceeds back to block 604 and performs additional iterations of blocks 604, 606, 608, and 610, and determines additional gradients at block 612 based on the loss(s) determined in the additional iteration(s) of block 608.

[0107] In various embodiments, method 600 can be parallelized across multiple separate processors and / or threads. For example, method 600 can be executed simultaneously by each of 5, 10, or more separate threads. Furthermore, although methods 300, 400, 500, and 600 are shown herein in separate figures for clarity, it should be understood that in many embodiments, methods 300, 400, 500, and 600 are executed in parallel during reinforcement learning.

[0108] Figure 7 is a flow chart illustrating an example method 700 of performing a robotic task using a trained policy model. The trained policy model is considered optimal according to one or more criteria and may be based, for example, on Figure 3-6 Methods 300, 400, 500, and 600 are used to train a trained policy model. For convenience, the operations are described with reference to a system that performs the operations of the flowchart. The system may include one or more components of one or more robots, such as one or more processors of one of robots 180A and 180B. In addition, although the operations of method 700 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0109] At block 702, the system begins execution of a robotic task.

[0110] At block 704 , the system receives current state data of a robot for performing a robotic task.

[0111] At block 706, the system selects a robot action to perform the robot task. In some embodiments, the system selects the robot action using the stochastic optimization technique described herein. In some embodiments, the stochastic optimization technique is CEM, and in some of these embodiments, block 706 may include one or more of the following sub-blocks.

[0112] At sub-box 7061, the system selects N actions for the robot, where N is an integer.

[0113] At sub-block 7062, the system generates a Q-value for each action by processing each of the robot's N actions using the trained policy model and processing the current state data.

[0114] At sub-box 7063, the system selects M actions from the N actions based on the generated Q values, where M is an integer.

[0115] At sub-block 7064, the system selects N actions based on a Gaussian distribution from the M actions.

[0116] At subblock 7065, the system generates a Q-value for each action by processing each of the N actions using the trained policy model and processing the next state data.

[0117] At sub-block 7066 , the system selects the maximum Q value from the Q values ​​generated at sub-block 7065 .

[0118] At block 708, the robot performs the selected robot action.

[0119] At block 710, the system determines whether to terminate execution of the robotic task. In some embodiments and / or situations, the system may terminate execution of the robotic task if the action at the most recent iteration of block 706 indicates termination. In some additional or alternative embodiments and / or situations, the system may terminate the episode if a threshold amount of iterations of blocks 704, 706, and 708 have been performed for the execution and / or if other heuristic-based termination conditions have been met.

[0120] If at block 710 the system determines not to terminate the selected robotic action, the system performs another iteration of blocks 704, 706, and 708. If at block 710 the system determines to terminate the selected robotic action, the system proceeds to block 712 and ends execution of the robotic task.

[0121] Fig. 8A and Figure 8B The structure of an example policy model 800, example state data and action data that can be applied as input to the policy model 800, and example output 880 that can be generated based on processing the input using the policy model 800. The policy model 800 is Figure 1 In addition, the policy model 800 is an example of a neural network model that can be trained using reinforcement learning to represent the Q function. In addition, the policy model 800 is an example of a neural network model that can be trained using reinforcement learning to represent the Q function. Figure 7 An example of a policy model utilized by method 700).

[0122] exist Fig. 8AIn the embodiment of the present invention, the state data includes current vision data 861 and optionally includes a gripper open value 863 indicating whether the robot gripper is currently open or closed. In some embodiments, additional or alternative state data may be included, such as a state value indicating the current height of the robot's end effector (e.g., relative to the robot base).

[0123] exist Fig. 8A In FIG. 8 , the motion data is represented by reference numeral 862 and includes: (t), which is a Cartesian vector indicating the translation of the gripper; (r), which indicates the rotation of the gripper; g open and g close , which may collectively indicate whether the gripper is to be opened, closed, or adjusted to a target state between open and closed (e.g., partially closed); and (e), which specifies whether to terminate execution of the robot task.

[0124] The policy model 800 includes a plurality of initial convolutional layers 864, 866, 867, etc., and interspersed maximum pooling layers 865, 868, etc. Visual data 861 is processed using the initial convolutional layers 864, 866, 867, etc. and the maximum pooling layers 865, 868, etc.

[0125] The policy model 800 also includes two fully connected layers 869 and 870, followed by a reshaping layer 871. The actions 862 and the optional grabber open value 863 are processed using the fully connected layers 869, 870 and the reshaping layer 871. Fig. 8A The output from the processing of visual data 861 is concatenated with the output from the processing of action 862 (and optionally the gripper open value 863), as indicated by the "+" in . For example, they can be added point by point by tiling.

[0126] Now go to Figure 8B , and the cascaded values ​​are then processed using additional convolutional layers 872, 873, 875, 876, etc., and interspersed maximum pooling layers 874, etc. The final convolutional layer 876 is fully connected to the first fully connected layer 877, which in turn is fully connected to the second fully connected layer 878. The output of the second fully connected layer 878 is processed using a sigmoid function 879 to generate a predicted Q-value 880. During inference, the predicted Q-value can be used in a stochastic optimization process to determine whether to select an action 862 as described herein. During training, the predicted Q-value can be compared to a target Q-value 881 generated based on the stochastic optimization process described herein to generate a logarithmic loss 882 to update the policy model 800.

[0127] Fig. 9An example architecture of a robot 925 is schematically depicted. The robot 925 includes a robot control system 960, one or more operating components 940a-940n, and one or more sensors 942a-942m. The sensors 942a-942m may include, for example, vision sensors, light sensors, pressure sensors, pressure wave sensors (e.g., microphones), proximity sensors, accelerometers, gyroscopes, thermometers, barometers, and the like. Although the sensors 942a-942m are depicted as being integrated with the robot 925, this is not meant to be limiting. In some embodiments, the sensors 942a-942m may be located external to the robot 925, such as as a stand-alone unit.

[0128] The operating components 940a-940n may include, for example, one or more end effectors and / or one or more servo motors or other actuators to achieve movement of one or more components of the robot. For example, the robot 925 may have multiple degrees of freedom, and each actuator may control actuation of the robot 925 in one or more degrees of freedom in response to a control command. As used herein, the term actuator also encompasses a mechanical or electrical device (e.g., a motor) for producing motion in addition to any (one or more) drivers that may be associated with the actuator and convert a received control command into one or more signals for driving the actuator. Thus, providing a control command to an actuator may include providing a control command to a driver that converts the control command into an appropriate signal to drive an electrical or mechanical device to produce the desired motion.

[0129] The robotic control system 960 may be implemented in one or more processors such as a CPU, GPU, and / or other controller(s) of the robot 925. In some embodiments, the robot 925 may include a "brainbox" that may include all or some aspects of the control system 960. For example, the brainbox may provide real-time bursts of data to the operating components 940a-940n, where each real-time burst includes a set of one or more control commands that specify, among other things, parameters for the movement (if any) of each of one or more of the operating components 940a-940n. In some embodiments, the robotic control system 960 may perform one or more aspects of the methods 400 and / or 700 described herein.

[0130] As described herein, in some embodiments, all or some aspects of the control commands generated by the control system 960 when performing a robotic task can be based on actions selected based on the current state (e.g., based at least on the current visual data) and based on the use of the trained policy model described herein. Stochastic optimization techniques can be used to select actions at each time step in controlling the robot. Although in Fig. 9 925, but in some embodiments, all or some aspects of the control system 960 may be implemented in a component separate from but in communication with the robot 925. For example, all or some aspects of the control system 960 may be implemented on one or more computing devices (such as computing device 1010) that communicate with the robot 925 in wired and / or wireless communication.

[0131] Fig.10 is a block diagram of an example computing device 1010 that can optionally be used to perform one or more aspects of the techniques described herein. For example, in some embodiments, the computing device 1010 can be used to provide (one or more) desired object semantic features for robot 925 and / or other robots to grasp. The computing device 1010 typically includes at least one processor 1014 that communicates with multiple peripheral devices via a bus subsystem 1012. These peripheral devices may include a storage subsystem 1024, such as a memory subsystem 1025 and a file storage subsystem 1026; a user interface output device 1020; a user interface input device 1022; and a network interface subsystem 1016. The input and output devices allow user interaction with the computing device 1010. The network interface subsystem 1016 provides an interface to an external network and is connected to corresponding interface devices in other computing devices.

[0132] The user interface input devices 1022 may include a keyboard, a pointing device such as a mouse, trackball, touchpad or graphic tablet, a scanner, a touch screen incorporated into a display, an audio input device such as a voice recognition system, a microphone, and / or other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and ways to input information into the computing device 1010 or over a communication network.

[0133] User interface output device 1020 may include a display subsystem, a printer, a fax machine, or a non-visual display such as an audio output device. The display subsystem may include a cathode ray tube (CRT), a flat panel device such as a liquid crystal display (LCD), a projection device, or some other mechanisms for creating a visible image. The display subsystem may also provide a non-visual display such as via an audio output device. Typically, the use of the term "output device" is intended to include devices and methods for outputting information from computing device 1010 to all possible types of users or another machine or computing device.

[0134] Storage subsystem 1024 stores programming and data structures that provide the functionality of some or all of the modules described herein. For example, storage subsystem 1024 may include a computer program that executes Figure 3 ,4 , 5, 6 and / or 7 methods of the selected aspects of the logic.

[0135] These software modules are typically executed by the processor 1014 alone or in conjunction with other processors. The memory 1025 used in the storage subsystem 1024 may include multiple memories, including a main random access memory (RAM) 1030 for storing instructions and data during program execution and a read-only memory (ROM) 1032 for storing fixed instructions. The file storage subsystem 1026 may provide persistent storage for program and data files, and may include a hard drive, a floppy disk drive and associated removable media, a CD-ROM drive, an optical drive, or a removable media cartridge. Modules that implement the functionality of certain embodiments may be stored by the file storage subsystem 1026 in the storage subsystem 1024, or in other machines accessible to the processor(s) 1014.

[0136] The bus subsystem 1012 provides a mechanism for the various components and subsystems of the computing device 1010 to communicate with each other as intended. Although the bus subsystem 1012 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.

[0137] The computing device 1010 may be of different types, including a workstation, a server, a computing cluster, a blade server, a server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, the Fig.10 The description of computing device 1010 depicted in FIG. 1 is intended only as a specific example for purposes of illustrating some embodiments. Fig.10 Many other configurations of computing device 1010 are possible with more or fewer components than the computing device depicted.

[0138] Specific examples of some of the embodiments disclosed herein are now described, as well as various advantages that can be achieved according to these and / or other examples.

[0139] Compared to the static learning behavior of selecting a grasp point and then performing the desired grasp, the embodiments disclosed herein enable closed-loop vision-based control, whereby the robot continuously updates its grasping strategy based on recent observations to optimize long-horizon grasp success. These embodiments can utilize QT-Opt, a scalable self-supervised vision-based reinforcement learning framework that can train a deep neural network Q function with a large number of parameters (e.g., more than 500,000 or more than 1,000,000) using thousands (e.g., more than 500,000) of real-world grasp attempts to perform closed-loop real-world grasps that generalize to high grasp success rates (e.g., >90%, >95%) for unseen objects. In addition to achieving very high success rates, grasps using the techniques described herein also exhibit behaviors that are very different from more standard grasping systems. For example, certain techniques can automatically learn re-grasp strategies, explore objects to find the most efficient grasp, learn to reposition objects and perform other non-prehensile pre-grasp manipulations, and / or dynamically respond to disturbances and perturbations.

[0140] Various embodiments utilize observations from a monocular RGB camera and actions including end effector Cartesian motion and gripper open and close commands (and optional termination commands). The reinforcement learning algorithm receives a binary reward for successfully lifting an object, and optionally no other reward shaping (or only a sparse penalty for iterations). The constrained observation space, constrained action space, and / or sparse rewards based on grasping success can make the reinforcement learning techniques disclosed herein suitable for large-scale deployment. Unlike many reinforcement learning tasks, the main challenge of this task is not only to maximize the reward, but also to effectively generalize to previously unseen objects. This requires a very diverse set of objects during training. In order to maximize the use of this diverse dataset, the QT-Opt off-policy training method is utilized, which is based on the continuous action generalization of Q-learning. Unlike other continuous action Q-learning methods that are often unstable due to the instability of the actor-evaluator, QT-Opt eliminates the need to train an explicit actor, but instead uses stochastic optimization on the evaluator to select actions and target values. Even fully off-policy training can outperform strong baselines based on prior work, while a moderate amount of on-policy joint fine-tuning using offline data can improve performance on challenging previously unseen objects.

[0141] The model trained by QT-Opt achieves high success rates on a range of objects not seen during training. Qualitative experiments show that this high success rate is due to the system employing various strategies that would not be feasible without closed-loop vision-based control. The learned strategies exhibit corrective behaviors, re-grasps, exploratory movements to determine the best grasp, non-grasp repositioning of objects, and other features that are only feasible when grasping is formulated as a dynamic, closed-loop process.

[0142] Current grasping systems typically approach grasping tasks as a problem of predicting a grasp pose, where the system views the scene (usually using a depth camera), selects the best location to grasp, and then executes an open-loop planner to reach that location. In contrast, embodiments disclosed herein utilize reinforcement learning with deep neural networks, which enables dynamic closed-loop control. This allows trained policies to perform pre-grasp maneuvers, respond to dynamic disturbances, and learn grasping in a general framework that makes minimal assumptions about the task.

[0143] Compared to framing closed-loop grasping as a servo problem, embodiments disclosed herein use a general reinforcement learning algorithm to solve the grasping task, which enables long-horizon reasoning. In effect, this enables the autonomous acquisition of complex grasping strategies. Furthermore, embodiments can be completely self-supervised, using only automatically obtained grasp result labels to incorporate long-term reasoning through reinforcement learning into a generalizable vision-based system trained on self-supervised real-world data. Still further, embodiments can operate on raw monocular RGB observations (e.g., from an over-the-shoulder camera) without the need for depth observations and / or other supplementary observations.

[0144] The embodiment of the closed-loop vision-based control framework is based on the general formulation of robot manipulation as a Markov Decision Process (MDP). At each time step, the policy observes the image from the robot's camera and selects a gripper command. The task formulation is general and can be applied to a wide variety of robot manipulation tasks other than grasping. The grasping task is simply defined by providing a reward to the learner during data collection: a successful grasp results in a reward of 1, while a failed grasp results in a reward of 0. For example, if the robot keeps the object above a certain height at the end of the episode, the grasp can be considered successful. The framework of MDP provides a powerful formalism for such decision-making problems, but learning in this framework can be challenging. Generalization requires diverse data, but it is impractical to re-collect experience on many different objects after each policy update, thus excluding on-policy algorithms. Instead, the embodiment proposes a scalable off-policy reinforcement learning framework based on continuous generalization of Q-learning. Although the actor-critic algorithm is a popular approach in the continuous action setting, embodiments disclosed herein recognize that a more stable and scalable alternative is to train only the Q-function and implicitly induce a policy by maximizing it using stochastic optimization. To handle large datasets and networks, a distributed collection and training system is utilized that asynchronously updates the target value, collects on-policy data, reloads off-policy data from past experience, and trains the network on two data streams within a distributed optimization framework.

[0145] The QT-Opt algorithm utilized is a continuous action version of Q-learning adapted for scalable learning and optimized for stability, enabling it to handle large amounts of off-policy image data for complex tasks such as grasping. In reinforcement learning, s∈S represents a state. As described herein, in various embodiments, a state may include (or be limited to) image observations, such as RGB image observations from a thematic RGB camera. Additionally, a∈A represents an action. As described herein, in various embodiments, an action may include (or be limited to) a robot arm motion, a grasper command, and an optional termination command. At each time step t, the algorithm chooses an action, transitions to a new state, and receives a reward r(s t ,a t ). The goal of reinforcement learning is to recover a policy that chooses actions that maximizes the total expected reward. One way to obtain such an optimal policy is to first solve for the optimal Q function, sometimes called the state-action value function. The Q function specifies the expected reward that will be received after taking some action a in some state s, while the optimal Q function specifies this value for the optimal policy. In practice, the parameterized Q function Q can be learned θ(s, a), where θ can represent the weight in the neural network. The optimal Q function can be learned by minimizing the Bellman error given by equation (1), where Q T (s,a,s') = r(s,a) + γV(s') is the target value, and D is the divergence measure. The cross entropy function can be used for D because the total return is restricted to [0, 1]. The expectation is taken under the distribution over all previously observed transitions, and V(s') is the target value. By keeping two lagged versions of the parameter vector θ Two target networks may optionally be utilized to improve stability. is an exponential moving average version of θ with an average constant of 0.9999. yes A lagged version of y (e.g., lagged by about 6000 gradient steps). Then the to calculate the target value. This corresponds to a combination of Polyak averaging and clipped double Q-learning. Once the Q function is learned, it can be calculated according to to recover the policy. A practical implementation of this method collects samples from environment interactions and then performs off-policy training on all samples collected so far. A parallel asynchronous version of this process significantly improves the ability to scale up this process for large-scale learning problems of the kind addressed in this paper.

[0146] Q-learning with deep neural network function approximators provides a simple and practical solution for RL (reinforcement learning) with image observations, and is amenable to straightforward parallelization. However, the incorporation of continuous actions (such as continuous gripper motions in grasping applications) poses a challenge to this approach. Existing work has attempted to address this challenge by using a second network that performs amortized maximization or by constraining the Q-function to be convex on a, making it easy to perform analytical maximization. However, the former class of methods is notoriously unstable, which makes it problematic for large-scale reinforcement learning tasks, where running hyperparameter sweeps is prohibitively expensive. Action-convex value functions are not suitable for complex manipulation tasks, such as grasping, where the Q-function is far from convex on the input. For example, the Q-value may be high for an action that reaches for an object, but low for a gap between objects.

[0147] The proposed QT-Opt provides a simple and practical alternative that avoids the need for a second maximizer network while maintaining the generality of non-convex Q functions. The image s and the action a are input to the network, and the arg max in Eq. (1) is evaluated by a stochastic optimization algorithm that can handle non-convex and multimodal optimization situations. Let By Q function The policy is implicitly induced. It can be obtained by replacing the arg max argument of the objective Q function with the optimal policy To recover equation (1). In QT-Opt, we use Run stochastic optimization on a as the target value to evaluate For example, the CEM method may be utilized.

[0148] Learning vision-based policies with reinforcement learning that generalizes to new scenes and objects requires a large amount of diverse data. In order to effectively train on such a large and diverse data set, a distributed asynchronous implementation of QT-Opt is used. The transitions are stored in a distributed replay buffer database, which loads historical data from the disk and can accept online data from real-time experiments across multiple robots. The data in the buffer are continuously labeled with target Q values ​​using a large set (e.g., >500, 1000) of "Bellman Updater" jobs, which perform the CEM optimization process using the current target network, and then store the labeled samples in a second training buffer, which is used as a ring buffer operation. One result of this asynchronous process is that some samples in the training buffer are labeled with a lagged version of the Q network. The training worker randomly extracts the labeled transitions from the training buffer and uses them to update the Q function. Multiple (e.g., >5, 10) training workers can be used, each of which calculates gradients, which are sent asynchronously to the parameter server.

[0149] QT-Opt can be applied to implement dynamic vision-based grasping. This task requires a policy that can find an object, position it for grasping (possibly by performing a pre-grasp maneuver), pick up the object (possibly re-grasping as needed), lift the object, and then signal that the grasp is complete to terminate the episode. To enable self-supervised grasp labeling in the real world, the reward only indicates whether the object was successfully picked up. This represents a completely end-to-end approach to grasping: the model is provided with no prior knowledge about the object, physical phenomena, or motion plans other than what it can autonomously extract from the data.

[0150] In order for the model to learn a generalizable strategy that can pick up new objects, perform pre-grasp manipulation, and handle dynamic disturbances through vision-based feedback, it must be trained on a sufficiently large and diverse set of objects. It would be impractical to collect such data in a single on-policy training run. The off-policy QT-Opt algorithm described in this article makes it possible to pool experience from multiple robots and multiple experiments. Since a completely random initial strategy will produce very low success for such an unconstrained action space, a weakly scripted exploration strategy can be optionally used to guide data collection. The strategy is randomized, but biased towards reasonable grasping and achieves a grasping success rate of about 15-30%. Then, once a threshold success rate (e.g., about 50%) is reached and / or after a threshold number of iterations, a switch to using the learned QT-Opt strategy can be made.

[0151] This distributed design of the QT-Opt algorithm can achieve various benefits. For example, it is not feasible to try to store all transitions in the memory of a single machine. The distributed playback buffer adopted makes it possible to store hundreds of thousands of transitions across multiple machines. In addition, for example, the Q network is very large, and by reducing the time to convergence, the distribution of training across multiple GPUs dramatically increases the speed of research. Similarly, in order to support large-scale simulation experiments, the design must support running hundreds of simulated robots that cannot be installed on a single machine. As another example, the training job is decoupled from the data generation job, allowing the training to be regarded as data-agnostic, so that it can be easily switched between simulated data, off-policy real data, and on-policy real data. It can also enable the speed of training and data generation to be scaled independently.

[0152] The online agent (real or simulated robot) collects data from the environment. The strategy used can be Polyak average weighted And the weights are updated every 10 minutes (or at other periodic or aperiodic frequencies). This data is pushed to a distributed playback buffer ("online buffer"), and is also optionally persisted to disk for future offline training.

[0153] To support offline training, a log replay job can be executed. For efficiency reasons, this job reads data sequentially from disk. It replays the saved episodes as if the online agent had collected that data. This enables seamless fusion of off-policy data with on-policy data collected by the online agent. The offline data comes from all previously run experiments. In fully off-policy training, the policy can be trained by loading all the data with a log replay job, allowing training without interacting with the real environment.

[0154] Despite the size of the distributed replay buffer, the entire dataset may still not fit into memory. To enable consistent access to every data point, log replay can be run continuously to refresh the data in memory residing in the replay buffer.

[0155] Initially one can optionally use off-policy training to initialize a good policy, then switch to on-policy joint fine-tuning. To do this, one can perform full off-policy training by replaying episodes from previous experiments using a log replay job. After training off-policy for a sufficient amount of time, one can restart QT-Opt, training with a mix of on-policy and off-policy data.

[0156] The real strategy data is generated by real robots, where the strategy The weights of are updated periodically (e.g., every 10 minutes or other frequency). Compared to the offline dataset, the on-policy data is generated at a much lower rate and the data has less visual diversity. However, the on-policy data also contains real-world interactions that illustrate failures in the current policy. To avoid overfitting to the initially scarce on-policy data, the portion of on-policy data can be gradually increased (e.g., from 1% to 50%) over the gradient update steps (e.g., the first million steps) of the joint fine-tuning training.

[0157] Since real robots can stop unexpectedly (e.g. due to hardware failures), data collection can occur sporadically, and if a failure occurs without any operator present, data collection can have a delay of hours or more. This can unexpectedly lead to a significant reduction in the rate of data collection. To mitigate this, on-policy training can also be gated by a training balancer that enforces a fixed ratio between the number of joint fine-tuning gradient update steps and the number of collected on-policy transitions. This ratio can be defined relative to the speed of the GPU and robot, which can change over time.

[0158] In various embodiments, the target network can be used to stabilize deep Q-learning. Since the target network parameters will typically lag behind the online network when computing the TD error, the Bellman backup can actually be performed asynchronously in a separate process. r(s,a)+γV(s') can be computed in parallel on separate CPU machines, and the outputs of these computations are stored in an additional buffer ("training buffer").

[0159] Note that since multiple Bellman updater replicas are used, each replica will load the new target network at a different time. All replicas push Bellman backups to a shared replay buffer in the "training buffer". This makes the target Q-values ​​effectively generated by an ensemble of recent target networks, sampled from the implicit distribution.

[0160] Distributed replay buffers support named replay buffers, for example: an "online buffer" to hold online data, an "offline buffer" to hold offline data, and a "training buffer" to store the Q target computed by the Bellman updater. The replay buffer interface supports weighted sampling from named buffers, which is useful when doing joint fine-tuning of policies. Distributed replay buffers are distributed across multiple workers, each containing a large number (e.g., thousands) of transitions. All buffers are FIFO buffers, where if the buffer is full, old values ​​are removed to make room for new values.

Claims

1. A method for training a neural network model representing a Q function, the method being implemented by a plurality of processors, and the method comprising: Retrieving a robot transformation, the robot transformation being generated based on data from an episode in which the robot performs a robot task, and the robot transformation comprising: state data, including visual data captured by a vision component at a state of the robot during the episode, next state data, comprising next vision data captured by the vision component at a next state of the robot to which the state is transitioned during the episode, an action to be performed to transition from the state to the next state, and a reward for said robot's transformation; Determine a target Q value for the robot transformation, wherein determining the target Q value comprises: performing an optimization on the candidate robot actions using a version of the neural network model representing the Q-function as the objective function, wherein performing the optimization comprises generating Q-values ​​for a subset of candidate robot actions considered in the optimization, wherein generating each Q-value is based on processing the next state data and a corresponding one of the candidate robot actions in the subset using the version of the neural network model, Select the maximum Q value from the generated Q values, and Determine the target Q value based on the maximum Q value and the reward; Storing in a training buffer: the state data, the action, and the target Q value; Retrieving from the training buffer: the state data, the action, and the target Q value; generating a predicted Q-value, wherein generating the predicted Q-value comprises processing the retrieved state data and the retrieved action using a current version of the neural network model, wherein the current version of the neural network model is updated relative to the version; generating a loss based on the predicted Q-value and the target Q-value; and The current version of the neural network model is updated based on the loss.

2. The method according to claim 1, wherein: The robot transitions are generated based on offline data and retrieved from an offline buffer.

3. The method according to claim 2, wherein: Retrieving the robot transitions from the offline buffer is based on a dynamic offline sampling rate for sampling from the offline buffer, wherein the dynamic offline sampling rate decreases as a duration of training the neural network model increases.

4. The method of claim 3, further comprising generating the robot transformation by accessing an offline database storing offline episodes.

5. The method according to claim 1, wherein: The robot transitions are generated based on online data generated by an episode of a robot performing the robot task using a robot version of the neural network model and retrieved from an online buffer.

6. The method according to claim 5, wherein: Retrieving the robot transitions from the online buffer is based on a dynamic online sampling rate for sampling from the online buffer, wherein the dynamic online sampling rate increases as a duration of training the neural network model increases.

7. The method of claim 5, further comprising updating the robotic version of the neural network model based on the loss.

8. The method according to claim 1, wherein: The action comprises a pose change of a component of the robot, wherein the pose change defines a difference between a pose of the component in the state and a next pose of the component in the next state.

9. The method according to claim 8, wherein: The component is an end effector, and the pose change defines a translation difference of the end effector and a rotation difference of the end effector.

10. The method according to claim 9, wherein: The end effector is a gripper and the robotic task is a grasping task.

11. The method according to claim 8, wherein: When the next state is a terminal state of the scenario, the action further includes a termination command.

12. The method according to claim 8, wherein: The action also includes a component action command, which defines a dynamic state of the component in the next state of the plot, the dynamic state being a state other than translation and rotation of the component.

13. The method according to claim 12, wherein: The component is a gripper, and wherein the dynamic state specified by the component action command indicates that the gripper is to be closed.

14. The method according to claim 1, wherein: The state data also includes the current state of the components of the robot.

15. The method according to claim 14, wherein: The component of the robot is a gripper, and the current state indicates whether the gripper is open or closed.

16. The method according to claim 1, wherein: The optimization is either stochastic optimization or the cross entropy method (CEM).

17. The method according to claim 1, wherein: Optimizing the candidate robot actions includes: selecting an initial batch of candidate robot actions; Generate a corresponding one of the Q-values ​​for each candidate robot action in the initial batch; Selecting an initial subset of candidate robot actions in the initial batch based on the Q values ​​of the candidate robot actions in the initial batch; Fitting a Gaussian distribution to an initial subset of the selected candidate robot actions; selecting a next batch of the candidate robot actions based on the Gaussian distribution; and A corresponding one of the Q-values ​​for each candidate robot action in the next batch is generated.

18. The method according to claim 17, wherein: The maximum Q-value is one of the Q-values ​​of the candidate robot actions in the next batch, and wherein the maximum Q-value is selected based on a maximum Q-value among corresponding Q-values ​​of the next batch.

19. A method for training a neural network model representing a policy, the method being implemented by a plurality of processors, and the method comprising: retrieving a robot transformation, the robot transformation being generated based on data from an episode of a robot performing a robot task, and the robot transformation comprising state data and an action; Determine a target value for the robot transformation, wherein determining the target value comprises: performing an optimization on candidate robot actions using a version of the neural network model representing the policy as an objective function; Storing in a training buffer: the state data, the action, and the target value; retrieving from the training buffer: the state data, the action, and the target value; generating a predicted value, wherein generating the predicted value comprises processing the retrieved state data and the retrieved action using a current version of the neural network model, wherein the current version of the neural network model is updated relative to the version; generating a loss based on the predicted value and the target value; and The current version of the neural network model is updated based on the loss.

20. A method implemented by one or more processors of a robot during performance of a robotic task, the method comprising: receiving current state data of the robot, wherein the current state data includes current sensor data of the robot; Selecting a robot action to be performed for the robot task, wherein selecting the robot action comprises: performing optimization on candidate robot actions using a trained neural network model representing the learned optimal policy and trained using reinforcement learning as an objective function, wherein performing the optimization comprises generating values ​​for a subset of candidate robot actions considered in the optimization, wherein generating each value is based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model, and selecting the robot action from the candidate robot actions based on values ​​generated for the robot actions during the performed optimization; and providing commands to one or more actuators of the robot to cause performance of a selected robotic action, Wherein, training the neural network model includes: retrieving state data, actions and target values ​​from a training buffer; generating prediction values, wherein generating the prediction values ​​includes using a current version of the neural network model to process the retrieved state data and the retrieved actions; generating losses based on the prediction values ​​and the target values; and updating the current version of the neural network model based on the losses.

21. A method implemented by one or more processors of a robot during performance of a robotic task, the method comprising: receiving current state data of the robot, the current state data comprising current visual data captured by a visual component of the robot; Selecting a robot action to be performed for the robot task, wherein selecting the robot action comprises: performing optimization on candidate robot actions using a trained neural network model representing the Q-function and trained using reinforcement learning as the objective function, wherein performing the optimization comprises generating Q-values ​​for a subset of candidate robot actions considered in the optimization, wherein generating each Q-value is based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model, and selecting the robot action from the candidate robot actions based on a Q-value generated for the robot action during the performed optimization; and providing commands to one or more actuators of the robot to cause performance of a selected robotic action, Wherein, training the neural network model includes: retrieving state data, actions and target Q values ​​from a training buffer; generating predicted Q values, wherein generating the predicted Q values ​​includes using a current version of the neural network model to process the retrieved state data and the retrieved actions; generating a loss based on the predicted Q values ​​and the target Q values; and updating the current version of the neural network model based on the loss.

22. The method according to claim 21, wherein: The robot action comprises a pose change of a component of the robot, wherein the pose change defines a difference between a current pose of the component and a desired pose of the component.

23. The method according to claim 22, wherein: The component is an end effector, and the pose change defines a translation difference of the end effector and a rotation difference of the end effector.

24. The method according to claim 23, wherein: The end effector is a gripper and the robotic task is a grasping task.

25. The method according to claim 22, wherein: The robot action also includes a termination command, which specifies whether to terminate the execution of the robot task.

26. The method according to claim 25, wherein: The robot motion also includes a component motion command that specifies a target state of a dynamic state of the component, the dynamic state being a state other than translation and rotation of the component.

27. The method according to claim 26, wherein: The component is a gripper, and wherein the target state specified by the component action command indicates that the gripper is to be closed.

28. The method according to claim 27, wherein: The component action commands include an open command and a close command, which together define the target state as open, closed, or between open and closed.

29. The method according to claim 21, wherein: The current state data also includes the current state of the components of the robot.

30. The method of claim 28, wherein: The component of the robot is a gripper, and the current state indicates whether the gripper is open or closed.

31. The method of claim 21, wherein: The optimization is a stochastic optimization.

32. The method of claim 21, wherein: The optimization is a derivative-free method.

33. The method of claim 32, wherein: The optimization is the Cross Entropy Method (CEM).

34. The method of claim 32, wherein: Optimizing the candidate robot actions includes: selecting an initial batch of candidate robot actions; Generate a corresponding one of the Q-values ​​for each candidate robot action in the initial batch; Selecting an initial subset of candidate robot actions in the initial batch based on the Q values ​​of the candidate robot actions in the initial batch; Fitting a Gaussian distribution to an initial subset of the selected candidate robot actions; selecting a next batch of the candidate robot actions based on the Gaussian distribution; and A corresponding one of the Q-values ​​for each candidate robot action in the next batch is generated.

35. The method of claim 34, wherein: The robot action is one of candidate robot actions in the next batch, and wherein selecting the robot action from the candidate robot actions based on a Q-value generated for the robot action during the performed optimization comprises: Based on the Q value generated for the robot action being a maximum Q value among corresponding Q values ​​in the next batch, the robot action is selected from the next batch.

36. The method of claim 21, wherein: Generating each Q-value based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model comprises: processing the state data using a first branch of the trained neural network model to generate a state embedding; processing a first one of the candidate robotic actions in the subset using a second branch of the trained neural network model to generate a first embedding; Generate a combined nesting by flattening the state nesting and the first nesting; The combined nesting is processed using an additional layer of the trained neural network model to generate a first Q-value of the Q-values.

37. The method of claim 36, wherein: Generating each Q-value based on processing the state data and a corresponding one of the candidate robot actions in the subset using the trained neural network model further comprises: processing a second one of the candidate robotic actions in the subset using the second branch of the trained neural network model to generate a second embedding; generating an additional combined nest by reusing the state nest and tiling the reused state nest and the first nest; and The additional combinatorial nesting is processed using an additional layer of the trained neural network model to generate a second one of the Q-values.

38. A robot comprising: Vision sensors that observe the environment; a trained neural network model stored in one or more non-transitory computer-readable media, the trained neural network model representing a Q function; At least one processor configured to: Performing a method according to any one of claims 20-37.

39. A system for training a neural network model, comprising: Multiple distributed processors, configured as: Perform the method according to any one of claims 1-19.