Offline Learning for Robot Control Using Reward Prediction Models

The system enhances robot control by training a policy neural network with a reward prediction model to annotate unlabeled data, addressing sparse reward signals and complex observations, resulting in superior performance with unlabeled data utilization.

JP7551895B2Active Publication Date: 2024-09-17ジーディーエム·ホールディング·エルエルシー
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023506025
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-28
Filing Date
2021-07-27
Publication Date
2024-09-17
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

Existing robot control methods face challenges with sparse or unavailable reward signals and complex visual observations, limiting the effectiveness of behavioral cloning agents, which fail to leverage large amounts of unlabeled data for training.

Method used

A system that trains a policy neural network using a reward prediction model to annotate unlabeled data, enabling offline reinforcement learning, allowing the network to generate task-specific rewards and improve performance with a combination of expert and unlabeled experiences.

Benefits of technology

The described technique significantly outperforms conventional methods by utilizing unlabeled data, achieving an order of magnitude improvement in performance with a comparable number of demonstrations and demonstrating robustness to low-quality trajectories.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551895000004
    Figure 0007551895000004
  • Figure 0007551895000003
    Figure 0007551895000003
  • Figure 0007551895000005
    Figure 0007551895000005
Patent Text Reader

Abstract

A method, system, and apparatus, including a computer program encoded on a computer storage medium, for offline learning using a reward prediction model includes acquiring robot experience data, training a reward prediction model for a first subset of the robot experience data, the reward prediction model receiving reward inputs including input observations and generating as output reward predictions, the reward predictions being predictions of task-specific rewards for particular tasks to be assigned to the input observations, processing experiences in the robot experience data using the trained reward prediction model to generate respective reward predictions for each of the processed experiences, and training a policy neural network on (i) the processed experiences and (ii) the respective reward predictions for the processed experiences.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of the filing date of U.S. Provisional Patent Application No. 63 / 057,850, filed July 28, 2020, which is incorporated by reference herein in its entirety.

[0002] This specification relates to controlling robots using neural networks. [Background technology]

[0003] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict an output for a received input. Some neural networks contain one or more hidden layers in addition to an output layer. The output of each hidden layer is used as the input to the next layer of the network, i.e. the next hidden layer or the output layer. Each layer of the network generates an output from the received input according to the current values ​​of its respective set of weights. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Sascha Lange, Thomas Gabel, and Martin Riedmiller, Batch reinforcement learning, Reinforcement learning, pp. 45–72, Springer, 2012 [Non-Patent Document 2] Gabriel Barth-Maron, Matthew W. Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva TB, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap, Distributed distributional deterministic policy gradients, International Conference on Learning Representations, 2018 [Non-Patent Document 3] Konrad Zolna, Scott Reed, Alexander Novikov, Sergio Gomez Colmenarej, David Budden, Serkan Cabi, Misha Denil, Nando de Freitas, and Ziyu Wang, Task-relevant adversarial imitation learning, Supplementary Materials B, CoRL, 2020 [Non-Patent Document 4] Critical regularized regression by Ziyu Wang, Alexander Novikov, Konrad Zolna, Jost Tobias Springenberg, Scott Reed, Bobak Shahriari, Noah Siegel, Josh Merel, Caglar Gulcehre, Nicolas Heess, et al. Summary of the Invention [Means for solving the problem]

[0005] This specification describes a system, implemented as a computer program on one or more computers at one or more locations, that trains a policy neural network that is used to control a robot to perform a particular task, i.e., to select actions to be taken by the robot as it interacts with its environment.

[0006] Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages.

[0007] Robot manipulation tasks may have sparse or unavailable reward signals and complex visual observations. Existing behavior cloning (BC) agents can sometimes solve these tasks by supervised learning on expert demonstrations from pixels, without rewards. However, supervised policies only regress on expert trajectories, and therefore do not leverage potentially large amounts of data from other agents and other tasks. This paper describes techniques for training policies on both demonstrations and large amounts of unlabeled trajectories, as follows: (1) learn a reward function by contrasting expert and unlabeled observations, (2) annotate some or all of the data with the learned reward function, and (3) train an offline reinforcement learning agent on the annotated data. Across several continuous control tasks, the described techniques consistently outperform BC with comparable numbers of demonstrations and no task rewards. Moreover, the performance of the described techniques scales by orders of magnitude with the number of unlabeled trajectories. In addition, in some tasks the described techniques outperform BC with only 10% of the demonstrations. Furthermore, the described technique is robust to low-quality unlabeled trajectories.

[0008] In one example described herein, a method includes acquiring robot experience data characterizing a robot interaction with an environment. The robot experience data may include a plurality of experiences including (i) observations characterizing a state of the environment, and (ii) actions taken by the respective robot in response to the observations. The experiences include expert experiences from episodes of a particular task being performed by an expert agent and unlabeled experiences. At least some of the unlabeled experiences may include experiences that are not related to or cannot be identified as related to a particular task. The method includes training a reward prediction model for a first subset of the robot experience data, the reward prediction model receiving a reward input including the input observations and generating as an output a reward prediction that is a prediction of a task-specific reward for a particular task to be assigned to the input observations. Training the reward prediction model includes optimizing an objective function including a first term that prompts the reward prediction model to assign a first reward value to an observation from the expert experience that indicates successful completion of the particular task after the environment is in a state characterized by the observation, and a second term that prompts the reward prediction model to assign a second reward value to an observation from the unlabeled experience that indicates successful completion of the particular task after the environment is in a state characterized by the observation. Experiences in the robot experience data are processed using the trained reward prediction model to generate a respective reward prediction for each of the processed experiences, and a policy neural network is trained on (i) the processed experiences and (ii) the respective reward predictions for the processed experiences, the policy neural network being configured to receive a network input including the observations and generate a policy output that defines a control policy for the robot performing the particular task.

[0009] The robot may be controlled using a trained policy neural network while performing a particular task. For example, observations may be obtained from one or more sensors sensing a real-world environment, and the observations may be provided as inputs to the trained policy neural network. The inputs may be used by the policy neural network to generate outputs, and the outputs of the trained policy neural network may be used to select actions for controlling the robot to perform a particular task.

[0010] Data specifying a trained policy neural network may be provided for use in controlling the robot while the robot performs a particular task.

[0011] The first subset may include expert experience and a proper subset of unlabeled experience.

[0012] The objective function may include a third term that prompts the reward prediction model to assign a second reward value to the observation from the expert's experience. The first and second terms may have a different sign than the third term in the objective function.

[0013] The objective function includes a fourth term (in addition to or instead of the third term) that applies a penalization to the reward prediction model for accurately distinguishing expert experiences from unlabeled experiences based on the first predetermined number of observations of an episode of a particular task being made by the expert agent.

[0014] Training the policy neural network may include training the policy neural network on (i) the experiences and (ii) respective reward predictions for the experiences using an offline reinforcement learning technique. The offline reinforcement learning technique may be an offline actor-critic technique. The offline reinforcement learning technique is Critic-Regularized Regression (CRR).

[0015] Training the reward prediction model may include applying data augmentation to experiences in the robot experience data used to train the reward prediction model.

[0016] At least a portion of the experiences of the first subset of the robot experience data relate to a real-world environment.

[0017] In another example described herein, a system is a system comprising one or more computers and one or more storage devices storing instructions operable, when executed by the one or more computers, to cause the one or more computers to perform any of the operations of the methods described herein.

[0018] A computer storage medium may be provided that is encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform any of the operations of the methods described herein.

[0019] The details of one or more embodiments of the subject matter herein are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. [Brief description of the drawings]

[0020] [Figure 1] FIG. 1 illustrates an exemplary neural network training system. [Diagram 2] 1 is a flow diagram of an example process for training a policy neural network. [Diagram 3] FIG. 1 illustrates a comparison of the performance of the described training process against a conventional training process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

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

[0023] The system 100 trains a policy neural network 110 that is used to control the robot 112 to perform a particular task, i.e., to select actions to be taken by the robot 112 while it interacts with an environment 114.

[0024] For example, a particular task may include having the robot 112 navigate to different locations within an environment, having the robot 112 locate different objects, having the robot 112 pick up different objects, or moving different objects to one or more designated locations, etc.

[0025] References herein to controlling a robot should be understood to include control of any type of physical (i.e., real-world) agent. The agent may be a mechanical agent, e.g., an autonomous vehicle, a control system for an industrial facility, e.g., a data center or power grid, an individual actuator or multiple distributed actuators. The physical agent may be electrical. For example, the techniques described herein may be used to control the generation of voltage or current in one or more components of a system, e.g., controlling lamps such as LEDs or X-rays, controlling the generation of electromagnetic fields, or any other control of electrical components. For example, a sensor may monitor the condition of an object in an X-ray machine, such as a human or animal patient, and the policy neural network 110 may control the generation of X-rays in the X-ray machine.

[0026] The techniques described herein may also be used to train policy neural networks for controlling software agents, such as policy neural networks for controlling simulated robots or vehicles in a virtual environment, or policy neural networks for controlling a user interface.

[0027] A software agent may be controlled based on real-world input, such as sensor data from a real-world sensor, or based on virtual input, e.g., output from a virtual sensor that obtains input from a virtual environment. Similarly, a real-world agent may be controlled based on real-world input or virtual input. A virtual environment may be constructed based on real-world input. For example, sensor data related to a real-world environment may be obtained and the sensor data may be used to create a virtual environment.

[0028] Each input to the policy neural network 110 may include an observation that characterizes the state of the environment being interacted with by the agent, and the output of the policy neural network (the "policy output") may define an action to be taken by the agent in response to the observation, e.g., an output that defines a probability distribution over possible actions to be taken by the agent.

[0029] The observations may include, for example, one or more of images, object position data, and sensor data to capture the observations as the agent interacts with the environment, e.g., sensor data from image, distance, or position sensors or from actuators. For example, in the case of a robot, the observations may include data characterizing the current state of the robot, e.g., one or more of joint positions, joint velocities, joint forces, torques, or accelerations, e.g., gravity-compensated torque feedback, and global or relative poses of items grasped by the robot. In other words, the observations may similarly include one or more of positions, linear or angular measures, forces, torques, or accelerations, and global or relative poses of one or more parts of the agent. The observations may be defined in one, two, or three dimensions, and may be absolute and / or relative observations. The observations may also include sensed electronic signals, e.g., motor currents or temperature signals, and / or images or video data, e.g., from cameras or LIDAR sensors, e.g., data from sensors on the agent or from sensors remote from the agent in the environment.

[0030] An action may be a control input for controlling a robot, e.g., torques at the joints of the robot, or a higher level control command, or an autonomous or semi-autonomous land, air, or sea vehicle, e.g., torques to a control surface or other control element of the vehicle, or a higher level control command.

[0031] In other words, behavior may include, for example, position, velocity, or force / torque / acceleration data for one or more joints of a robot or part of another mechanical agent. Behavioral data may additionally or alternatively include electronic control data, such as motor control data, or more generally, data for controlling one or more electronic devices in the environment, the control of which affects the observed state of the environment.

[0032] In one example, the observations each include one or more images of the environment captured by one or more cameras, e.g., a camera sensor on the robot, one or more cameras external to the robot and located at different locations in the environment, or both, and lower-level proprioceptive features of the robot.

[0033] As a particular example, each input to the policy neural network 110 may include an action and an observation, and the output of the policy neural network 110 may be a Q-value representing the predicted return received by the robot as a result of taking an action in response to the observation.

[0034] Return refers to a cumulative measure of rewards, e.g., a time-discounted sum of rewards, received by the agent 112. Generally, rewards are scalar numerical values, e.g., characterizing an agent's progress toward completing a task.

[0035] As a particular example, the reward may be a sparse binary reward that is zero if the task is not completed successfully and one if the task is completed successfully as a result of the action being taken.

[0036] As another particular example, the reward may be a dense reward that measures the robot's progress toward completing the task from the time of each observation received during an episode of attempting to complete the task, i.e., each observation may be associated with a non-zero reward value that indicates the robot's progress toward completing the task when the environment is in a state characterized by the observation.

[0037] The system 100 may thus control the robot 112 based on the Q-values ​​for the actions in the set of actions, for example by selecting the action with the highest Q-value as the action to be performed by the robot 112.

[0038] As another particular example, each input to the policy neural network 110 can be an observation, and the output of the policy neural network 110 can be a probability distribution over a set of actions, with the probability for each action representing the likelihood that performing the action in response to the observation maximizes a predicted return. The system 100 can thus control the robot 112 based on probability, e.g., by selecting the action with the highest probability as the action to be taken by the robot 112, or by sampling actions from the probability distribution.

[0039] In some cases, to allow fine-grained control of the agent, the system 100 may treat the space of actions taken by the robot, i.e., the set of possible control inputs, as a continuous space. Such settings are called continuous control settings. In these cases, the output of the policy neural network 110 may be the parameters of a multivariate probability distribution over the space, e.g., the mean and covariance of a multivariate normal distribution.

[0040] The policy neural network 110 may have any suitable architecture that enables the policy neural network 110 to process the observations to generate policy outputs.

[0041] As a particular example, when the observations include high-dimensional sensor data, e.g., image or laser data, the policy neural network 110 can be a convolutional neural network. As another example, when the observations include only relatively low-dimensional inputs, e.g., sensor readings characterizing the current state of the robot, the policy neural network 110 can be a multi-layer perceptron. As yet another example, when the observations include both high-dimensional sensor data and low-dimensional inputs, the policy neural network 110 can include a convolutional encoder that encodes the high-dimensional data, a fully-connected encoder that encodes the low-dimensional data, and a policy sub-network that operates on a combination, e.g., concatenation, of the encoded data to generate a policy output.

[0042] To enable the system 100 to train the neural network 110, the system 100 obtains robot experience data 120. In general, the robot experience data 120 is data that characterizes a robot's interaction with the environment 114.

[0043] In some cases, the robot experience data 120 characterizes a real-world interaction of a real-world robot with a real-world environment.

[0044] In some other cases, the robot experience data 120 characterizes interactions of a simulated version, which is a computer simulation of the robot 112, with a simulated environment, which is a computer simulation of the environment 114. After training using the simulated experience data, the policy neural network 110 may then be used to control a real-world robot 112 in the real-world environment 114. Training in a simulated environment may enable the neural network 110 to learn from large amounts of simulated training data while avoiding the risks associated with training in a real-world environment, such as damage to the robot from making poor choices or overall wear and tear on the robot from repeated interactions with the real-world environment.

[0045] The robot experience data 120 includes experiences 122 that in turn each include an observation and an action taken by the robot in response to the observation.

[0046] This robot experience data 120 may include a large amount of experience 122 collected while one or more robots perform a variety of different tasks or randomly interact with an environment. However, the robot experience data 120 is generally not associated with rewards for specific tasks that are needed to train the policy neural network 110 through reinforcement learning. That is, task-specific rewards for specific tasks are needed to train the policy neural network 110 to control the robot 112 to perform specific tasks, but such rewards are not available in the robot experience data 120.

[0047] More specifically, the robot experience data 120 will generally include a small amount of expert experience data 124 collected while an expert agent, e.g., a robot controlled by a user or by an already learned policy, successfully performs a particular task.

[0048] Additionally, the robot experience data 120 will generally also include a large amount of unlabeled experiences 126. Unlabeled experiences are experiences for which the system 100 does not have available rewards for a particular task and for which there is no indication of whether the experience was collected while successfully performing a particular task.

[0049] For example, unlabeled experience may include experience collected while one or more robots are performing different tasks or randomly interacting with the environment. As a particular example, robot experience data 120 may include data collected from the interaction of multiple robots while performing multiple different tasks. For example, system 100 may have pre-trained one or more other policy neural networks for controlling robots to perform other tasks, and robot experience data 120 may include any data collected as a result of the pre-training.

[0050] As another example, unlabeled experience may include experience collected while one or more robots attempt to perform a particular task, but with no indication of whether the particular task was successfully performed during the corresponding trajectory for a given unlabeled experience.

[0051] Thus, while a large amount of data 120 may be available to the system 100, the system 100 cannot directly use the data 120 to train the policy neural network 110 because the experiences in the experience data 120 are not associated with rewards for specific tasks.

[0052] To enable the system 100 to train the policy neural network 110 using the data 120, the system uses the empirical data 120 to train a reward prediction model 140 that takes as inputs input observations and produces as output reward predictions that are predictions of task-specific rewards for particular tasks to be assigned to the input observations.

[0053] Thus, after training, the trained reward prediction model 140 can predict task-specific rewards for observations, even if those observations were not generated while the robot was performing a particular task.

[0054] Reward prediction model 140 may have any suitable architecture that enables model 140 to process observations to generate reward predictions. In particular, reward prediction model 140 may have an architecture similar to policy neural network 110, but with a different output layer that enables reward prediction model 140 to generate an output that is single valued rather than a policy output that may be multi-valued.

[0055] The system 100 uses the reward prediction model 140 to generate task-specific training data 150 for a particular task that associates each of the multiple experiences 122 in the experience data 120 with a task-specific reward for the particular task.

[0056] In particular, for each experience in the second subset of experiences 122 in the robot experience data 120, the system 100 processes the observations in the experience using the reward prediction model 140 to generate a reward prediction and associates the reward prediction with the experience.

[0057] By generating training data 150 in this manner, system 100 is able to generate a large amount of training data for a particular task from only a small amount of expert experience.

[0058] The system 100 then trains the policy neural network 110 on task-specific training data 150 for the particular task, for example using offline reinforcement learning. If training is performed completely offline, the system can train the policy neural network 110 on large amounts of data without additional robot-environment interaction, i.e., without environment interaction in addition to the interactions already reflected in the robot experience data 120. Avoiding this additional robot-environment interaction may allow the robot to be trained to interact with a real-world environment without requiring additional wear and tear on the robot and without additional actions being taken that are unsafe and may result in damage to the robot, the environment, or both.

[0059] In some implementations, the system 100 first trains and completes the reward prediction model 140, and then trains the policy neural network 110 using the reward prediction model 140 after the reward prediction model 140 has been trained and completed.

[0060] In some other implementations, system 100 iteratively updates both reward prediction model 140 and policy neural network 110 at each of multiple training iterations. That is, system 100 performs multiple training iterations during training of policy neural network 110, updates reward prediction model 140 at each iteration, and then uses the updated reward prediction model 140 to generate task-specific training data 150 and update policy neural network 110 at the iteration.

[0061] The operation of the system 100 for training the policy neural network 110 starting from robot experience data 120 is described in more detail below with reference to FIG.

[0062] After the system 100 trains the policy neural network 110, the system 100 can use the trained policy neural network 110 to control the robot 112 while the robot 112 performs a particular task.

[0063] Alternatively or additionally, the system may provide data specifying the trained policy neural network 110, i.e., trained values ​​of the parameters of the neural network, for use in controlling the robot while the robot performs a particular task. For example, the system may provide data specifying the trained policy neural network, e.g., trained parameter values ​​of the parameters of the policy neural network 110, to other systems over a data communications network or over a wired connection to enable the other systems to control the robot while the robot performs a particular task.

[0064] In any of these cases, the system 100 can then capture the experience generated as a result of controlling the robot using the trained policy neural network 110 to perform a particular task, and add this experience to the robot experience data 120. In this manner, the experience becomes available for use in training another neural network to control the robot to perform another task. Thus, even if none of the experience data 120 is associated with a task reward for the new task, or was generated while the robot was performing the new task, the amount of experience in the robot experience data 120 continues to grow and may continue to be reused by the system 100 to learn new tasks.

[0065] 2 is a flow diagram of an exemplary process 200 for training a policy neural network using a reward prediction model. For convenience, process 200 is described as being performed by one or more computer systems at one or more locations. For example, a suitably programmed neural network training system, such as neural network training system 100 of FIG. 1, may perform process 200.

[0066] The system obtains robot experience data that characterizes the robot's interaction with the environment (step 202).

[0067] In particular, the data includes experiences, each of which in turn includes observations and actions taken by the respective robot in response to the observations.

[0068] More specifically, the robot experience data includes expert experience from episodes of a particular task being performed by an expert agent, and unlabeled experience that is not associated with an indication of whether the experience was collected while a particular task was being successfully performed.

[0069] The system trains a reward prediction model on the subset of the robot experience data (step 204). The reward prediction model receives reward inputs including the input observations and generates as an output a reward prediction that is a prediction of a task-specific reward for a particular task to be assigned to the input observations, i.e., a numerical value representing a prediction of the task-specific reward value for the particular task.

[0070] In general, the subset of the robot experience data used to train the reward prediction model includes all of the expert experiences in the robot experience data obtained in step 202 and a suitable subset of the unlabeled experiences obtained in step 202.

[0071] More specifically, the system trains a reward prediction model to optimize an objective function.

[0072] The objective function includes a first term that prompts the reward prediction model to assign a first reward value to an observation from the expert's experience, e.g., a value of 1 or another positive value indicating that a particular task was successfully completed after the environment was in a state characterized by the observation.

[0073] The objective function also includes a second term that prompts the reward prediction model to assign a second reward value to the observation from the unlabeled experience, e.g., a second reward value indicating that a particular task was not completed successfully after the environment became in the state characterized by the observation, e.g., a value of negative 1 or a value of 0.

[0074] For example, the objective function may be a loss function L that satisfies:

[0075]

number

[0076] where E is the expectation operator and s t is the reward prediction model R with parameters Ψ Ψ The experience of the experts used to train D E are observations from experience sampled from the set of R Ψ (s t ) is the observation s t is the reward prediction generated by the reward prediction model by processing an input including s' t is the reward prediction model R Ψ The unlabeled experience used to train D U are observations from experience sampled from the set of R Ψ (s' t ) is the observation s' t is a reward prediction generated by the reward prediction model by processing an input including:

[0077] The above loss function is minimized when, after the observations are received, the reward prediction model assigns 1 to all observations from all expert experiences and 0 to all observations from unlabeled experiences, i.e., assigns all observations from unlabeled experiences a reward value indicating that the task is not performed successfully. However, while the system does not have access to labels for unlabeled experiences, the unlabeled experience data may contain successful experiences that occurred during trajectories where the task was performed successfully in addition to unsuccessful experiences. In other words, the unlabeled experience data may contain "false negatives", i.e. unlabeled experiences that should be assigned a reward value of 1, even if the loss function prompts the reward prediction model to assign them a reward value of 0. The presence of these false negatives may, in some cases, reduce the usefulness of the trained reward prediction model when training a policy neural network.

[0078] To eliminate this, in some implementations, in addition to the first and second terms, the objective function also includes a third term that prompts the reward prediction model to assign a second reward value to the observation from the expert's experience. In these implementations, the third term can have an opposite sign to the first and second terms, and the first term can be scaled relative to the second term, i.e., has a lower weight in the loss function than the second term. By modifying the objective function in this way, i.e., by scaling the first term and adding a third term that is also scaled relative to the second term but has an opposite sign to the second term, the system can effectively take into account the presence of false negatives in the unlabeled experience data. As a specific example, in these implementations, the objective function can be a loss function L that satisfies the following:

[0079]

number

[0080] where η is a hyperparameter set to a positive value between 0 and 1.

[0081] In some implementations, instead of or in addition to the third term, the reward function includes a fourth term that penalizes the reward prediction model to accurately distinguish whether early observations at the very beginning of an episode come from expert experience or from unlabeled experience. As used herein, an "episode" is a set of experiences arranged in time in which a robot attempts to perform some task starting from a corresponding initial environmental state, or a set of experiences arranged in time in which a robot randomly interacts with an environment starting from a corresponding initial environmental state.

[0082] That is, early observations in an interaction episode generally do not reflect task-specific behavior, i.e., at the start of an interaction episode, the robot has not yet performed any meaningful actions that would indicate whether the agent will successfully perform a particular task later in the episode. In other words, the same early observations may be received whether the agents are interacting randomly, performing different tasks, or performing a particular task.

[0083] As a particular example, the system may identify the first n observations in a given episode as early observations, e.g., the first 5, 10, or 20 observations. The system may then sample early observations from one unlabeled episode and one expert episode, and calculate the average of reward predictions generated by the reward model for the early observations from the unlabeled episodes (the "unlabeled mean"), and the average of reward predictions generated by the reward model for the early observations from the expert episodes (the "expert mean").

[0084] If the expert mean is not as high as the unlabeled mean, the system sets the fourth term to zero.

[0085] If the expert mean is higher than the unlabeled mean, the system sets the fourth term equal to the negative of the loss above calculated on the early observations from the expert episodes and the unlabeled episodes, e.g., a loss with only the first and second terms, or a loss with the first, second, and third terms.

[0086] Thus, the system uses the early observations to first control if the reward model is overfitted to the early observations, i.e., by the expert mean being higher than the unlabeled mean, and if so, the system uses the early observations again to compute a reversed loss that regularizes the training of the reward model.

[0087] The system can train the reward prediction model to optimize the reward prediction objective function using a suitable neural network training technique, for example any gradient-based technique, such as stochastic gradient descent, techniques using the Adam optimizer, the rmsprop optimizer, etc.

[0088] In some implementations, prior to training the reward prediction model on the subset of experiences, the system applies data augmentation to the experiences in the robot experience data used to train the reward prediction model. In some cases, given that the size of the expert's experiences may be very limited, the reward model may achieve "high" performance by simply memorizing all of the expert's states and blindly assigning a reward of 0 to all other states. Applying data augmentation to the experiences used to train the reward model may help alleviate this problem. In general, data augmentation may include using techniques to increase the number of experiences or modify the experiences in the expert's experiences and possibly unlabeled experiences. For example, images may be distorted, rotated, cropped, and sensor inputs (e.g., from sensors) may be dropped or augmented with random noise. Examples of specific data augmentation techniques that may be applied are described in Konrad Zolna, Scott Reed, Alexander Novikov, Sergio Gomez Colmenarej, David Budden, Serkan Cabi, Misha Denil, Nando de Freitas, and Ziyu Wang, Task-relevant adversarial imitation learning, Supplementary Materials B, CoRL, 2020.

[0089] The system processes each of the experiences in the robot experience data using the trained reward prediction model to generate a respective reward prediction for each of the experiences (step 206). That is, for each experience, the system processes a reward input including observations from the experience using the reward model after training in step 204 has occurred to generate a respective reward prediction for the experience.

[0090] The system trains a policy neural network on (i) the experiences and (ii) the respective reward predictions for the experiences (step 208).

[0091] In general, the system can use an off-policy reinforcement learning technique to train a policy neural network on (i) experiences and (ii) respective reward predictions for the experiences. Because this technique is "off-policy," i.e., any experiences for which the neural network is trained do not need to be generated using a current version of the neural network, the system can train the policy neural network on task-specific training data completely "off-line," i.e., without the need to control a robot using a neural network to perform a specific task.

[0092] The system may use any suitable off-policy reinforcement learning technique to train the policy neural network.

[0093] As one particular example, the system can use an offline actor-critic technique in which a critic neural network is trained together with a policy neural network. One example of such a technique is the critic regularized regression (CRR) technique. CRR is described in more detail in Critic regularized regression by Ziyu Wang, Alexander Novikov, Konrad Zolna, Jost Tobias Springenberg, Scott Reed, Bobak Shahriari, Noah Siegel, Josh Merel, Caglar Gulcehre, and Nicolas Heess.

[0094] As another specific example, the system can use batch reinforcement techniques that rely on distributional policy gradients to update the policy neural network, or those that rely on non-distributional deterministic policy gradients to update the policy neural network. Batch reinforcement learning is described in more detail by Sascha Lange, Thomas Gabel, and Martin Riedmiller, Batch reinforcement learning, Reinforcement learning, pp. 45-72, Springer, 2012. Distributional and non-distributional deterministic policy gradients are described in more detail by Gabriel Barth-Maron, Matthew W. Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva TB, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap, Distributed distributional deterministic policy gradients, International Conference on Learning Representations, 2018.

[0095] In some implementations, the system first trains and completes the reward prediction model, and then trains the policy neural network using the reward prediction model after the reward prediction model is trained and completed. In other words, the system performs a single iteration of process 200 to complete training of the reward prediction model and the policy neural network, and the policy neural network is trained on the full set of robot experience data available to the system in step 208.

[0096] In some other implementations, the system iteratively updates the reward prediction model and the policy neural network by performing process 200. That is, the system performs multiple iterations of process 200 during training of the policy neural network, and in each iteration, the system trains the reward prediction model, which starts from the values ​​of the respective parameters at the previous iteration.

[0097] In these implementations, at each iteration, the system can obtain a portion of the entire set of robot experience data. As a specific example, the system can sample a batch of expert experiences and a number of batches of unlabeled experiences from the entire set of robot experience data. The system can then use one of the batches of expert experiences and the batches of unlabeled experiences as a subset of the subjects on which the reward prediction model is trained, and the entire batch of expert experiences and the batches of unlabeled experiences as the data on which the policy neural network is trained.

[0098] FIG. 3 is a graph 300 illustrating a comparison of the performance of the described training process versus a conventional training process.

[0099] 3 illustrates the average return 310 of an episode in which a particular task is performed as reflected in the expert experience data of a particular set of robot experience data. Since the expert experience data is collected from an expert agent, the average return 310 represents the performance of the expert agent for the particular task.

[0100] Figure 3 also shows the average return 320 of episodes performed as reflected in the unlabeled experience of a particular set of robot experience data. As can be seen from Figure 3, and for the reasons explained above, the average expert episode has a much higher return than the average unlabeled episode.

[0101] Figure 3 also shows the performance of the described technique (also called Offline Reinforced Imitation Learning (ORIL)) relative to a current state-of-the-art technique (Behavioral Cloning (BC)) that also does not rely on existing task rewards.

[0102] In particular, the y-axis of graph 300 shows the average return, and the x-axis of graph 300 shows the number of unlabeled experiences in the robot experience data. For every amount of unlabeled experience data, there is the same relatively small number of expert experiences (189).

[0103] FIG. 3 shows the performance of ORIL as curve 330 and the performance of BC as curve 340.

[0104] As can be seen from Figure 3, ORIL can learn to leverage a larger number of unlabeled experiences to approach expert-level performance, i.e., curve 330 approaches mean return 310 as the number of unlabeled experiences increases, but BC performance degrades when there are significantly more unlabeled experiences than expert experiences in the robot experience data.

[0105] This specification uses the term "configured" in connection with systems and computer program components. A system of one or more computers configured to perform a particular operation or behavior means that the system has installed thereon software, firmware, hardware, or a combination thereof that, when operated, causes the system to perform the operation or behavior. A system of one or more computer programs configured to perform a particular operation or behavior means that one or more programs contain instructions that, when executed by a data processing device, cause the device to perform the operation or behavior.

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

[0107] The term "data processing apparatus" refers to data processing hardware and encompasses any kind of apparatus, device, and machine for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. An apparatus may also be or further include dedicated logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). In addition to hardware, an apparatus may possibly include code that creates an execution environment for a computer program, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of these.

[0108] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, script, or code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and may be deployed in any form, such as as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in part of a file with other programs or data, e.g., one or more scripts stored in a markup language document, in a single file dedicated to the program, or in multiple cooperating files, e.g., files storing one or more modules, subprograms, or portions of code. A computer program may be deployed to be executed on one computer, or on multiple computers located at one site or distributed across multiple sites and interconnected by a data communications network.

[0109] As used herein, the term "database" is used broadly to refer to any collection of data, which need not be structured in any particular way, or at all, and may be stored on a storage device in one or more locations. Thus, for example, an index database may contain multiple collections of data, each of which may be organized and accessed differently.

[0110] Similarly, the term "engine" is used broadly herein to refer to a software-based system, subsystem, or process programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers at one or more locations. In some cases, one or more computers will be dedicated to a particular engine, and in other cases, multiple engines may be installed and operating on the same computer or computers.

[0111] The processes and logic flows described herein may be performed by one or more programmable computers executing one or more computer programs that perform functions by operating on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuitry, e.g., FPGAs or ASICs, or by a combination of special purpose logic circuitry and one or more programmed computers.

[0112] A computer suitable for executing a computer program may be based on a general-purpose or special-purpose microprocessor, or both, or other types of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory, or a random access memory, or both. The essential elements of a computer are a central processing unit for performing or executing instructions, and one or more memory devices for storing instructions and data. The central processing unit and memory may be supplemented by or incorporated in special-purpose logic circuitry. Typically, a computer also includes one or more mass storage devices, e.g., magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data therefrom or transfer data thereto, or both. However, a computer need not have such devices. Furthermore, a computer may be embedded in another device, e.g., a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few examples.

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

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

[0115] A data processing apparatus for implementing machine learning models may also include, for example, dedicated hardware accelerator units for handling the common, compute-intensive parts of machine learning training or generation, i.e., inference, workloads.

[0116] The machine learning model can be implemented and deployed using a machine learning framework, for example, the TensorFlow framework.

[0117] An embodiment of the subject matter described herein may be implemented in a computing system that includes a back-end component, e.g., as a data server, or a middleware component, e.g., an application server, or a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app by which a user can interact with an implementation of the subject matter described herein, or any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.

[0118] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data, e.g., HTML pages, to a user device, e.g., to display data to a user interacting with a device acting as a client and to receive user input from the user. Data generated at the user device, e.g., a result of a user interaction, may be received at the server from the device.

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

[0120] Similarly, although operations are shown in the figures and claimed in a particular order, this should not be understood as requiring such operations to be performed in the particular order shown or in sequential order, or that all of the illustrated operations be performed, to achieve desirable results. In some environments, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the program components and systems described may generally be integrated into a single software product or packaged into multiple software products.

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

[0122] 100 Systems 110 Policy Neural Networks 112 Robot 114 Environment 120 Robot Experience Data 122 Experience 124 Expert Experience Data 126 Unlabelled Experiences 130 Annotation Data 140 Reward Prediction Model 150 training data

Claims

1. acquiring robot experience data characterizing robot interaction with an environment, the robot experience data including a plurality of experiences, each of the experiences including (i) observations characterizing a state of the environment and (ii) actions taken by a respective robot in response to the observations, the experiences including: Expert experience from episodes of a particular task being performed by an expert agent; and Label-free experiences and obtaining the signal; training a reward prediction model for a first subset of the robot experience data that receives a reward input including input observations and generates as an output a reward prediction, the reward prediction being a prediction of a task-specific reward for the particular task to be assigned to the input observations, the step of training the reward prediction model comprising: a first term that prompts the reward prediction model to assign, to an observation from an expert's experience, a first reward value that is indicative of successful completion of the particular task after the environment is in the state characterized by the observation; a second term that prompts the reward prediction model to assign, to an observation from unlabeled experience, a second reward value that indicates that the particular task was not successfully completed after the environment entered the state characterized by the observation. training, which includes optimizing an objective function; using the trained reward prediction model to process experiences in the robot experience data to generate a respective reward prediction for each of the processed experiences; (i) training a policy neural network on the processed experiences, and (ii) the respective reward predictions for the processed experiences, the policy neural network being configured to receive network inputs including observations, and to generate policy outputs that define a control policy for the robot performing the particular task; A method comprising:

2. controlling the robot using the trained policy neural network while the robot performs the particular task. The method of claim 1, further comprising:

3. providing data specifying the trained policy neural network for use in controlling the robot while it performs the particular task; The method of claim 1, further comprising:

4. 4. The method of claim 1, wherein the first subset comprises the expert's experiences and a proper subset of the unlabeled experiences.

5. 5. The method of claim 1, wherein the objective function includes a third term that prompts the reward prediction model to assign the second reward value to an observation from an expert's experience.

6. The method of claim 5 , wherein the first and second terms have a different sign than the third term in the objective function.

7. 7. The method of claim 1, wherein the objective function includes a fourth term that applies a penalization to the reward prediction model for accurately distinguishing expert experience from unlabeled experience based on a first predetermined number of observations of an episode of the particular task being made by an expert agent.

8. 8. The method of claim 1, wherein training the policy neural network comprises training the policy neural network on (i) the experiences, and (ii) the respective reward predictions for the experiences, using offline reinforcement learning techniques.

9. The method of claim 8 , wherein the offline reinforcement learning technique is an offline actor-critic technique.

10. The method of claim 8 , wherein the offline reinforcement learning technique is Critic Regularized Regression (CRR).

11. 11. The method of claim 1, wherein training the reward prediction model comprises applying data augmentation to the experiences in the robot experience data used to train the reward prediction model.

12. 12. The method of claim 1, wherein at least some of the experiences of the first subset of robot experience data relate to a real-world environment.

13. A method according to any one of claims 4, 5, 7, 8, 11 and 12 when dependent on claim 2, claim 6 which relies on claim 5 when dependent on claim 2, and claims 9 and 10 which relies on claim 8 when dependent on claim 2, wherein the step of controlling the robot comprises the steps of obtaining observations from one or more sensors sensing a real-world environment, providing the observations to the trained policy neural network, and using an output of the trained policy neural network to select an action for controlling the robot to perform the particular task.

14. A system comprising one or more computers and one or more storage devices storing instructions operable, when executed by the one or more computers, to cause the one or more computers to perform the operations of the respective methods described in any one of claims 1 to 13.

15. A computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform the respective method actions recited in any of claims 1 to 13.