Training and / or utilizing machine learning model(s) for use in natural language based robotic control
A goal conditioned policy network trained on diverse datasets allows robots to execute tasks in response to free-form natural language inputs, enhancing their flexibility and efficiency in open environments.
Patent Information
- Application Number
- JP2024087083
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-05-14
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-05-14
AI Technical Summary
Robots struggle to perform tasks in response to free-form natural language inputs due to the requirement for clear associations between user interface inputs and specific tasks, limiting their ability to navigate or execute commands without predefined definitions.
Training a goal conditioned policy network using multiple datasets, including target images and natural language text, to enable robots to interpret diverse task descriptions and execute them through multi-context imitation learning, allowing for flexible task performance.
Enables robots to perform a variety of tasks in open environments using natural language instructions, reducing the need for time-consuming human supervision and enabling robust control with minimal data labeling.
Smart Images

Figure 2024123006000001
Abstract
Description
[Background technology]
[0001] Many robots are programmed to perform specific tasks, for example, an assembly line robot may be programmed to recognize specific objects and perform specific operations on those specific objects. Summary of the Invention [Problem to be solved by the invention]
[0002] Furthermore, some robots may be able to perform a particular task in response to an explicit user interface input corresponding to the particular task. For example, a vacuum cleaner robot may be able to perform a general vacuuming task in response to the utterance "Robot, clean." However, a user interface input that causes a robot to perform a particular task must typically be explicitly associated with the task. Thus, a robot may not be able to perform a particular task in response to various free-form natural language inputs of a user attempting to control the robot. For example, a robot may not be able to navigate to a target location based on free-form natural language input provided by a user. For example, a robot may not be able to navigate to a particular location in response to a user request to "go out the door, turn left, and go through the door at the end of the hallway." [Means for solving the problem]
[0003] Techniques disclosed herein are directed to training a goal conditioned policy network based on multiple datasets, where the training task is described differently in each of the datasets. For example, a robot's task may be described using a goal image, using natural language text, using a task ID, using a natural language utterance, and / or using additional or alternative task descriptions. For example, a robot may be trained to perform the task of putting a ball in a cup. An exemplary task goal image description may be a picture of a ball in a cup, a task natural language text description may be a natural language instruction "put the ball in the mug", and a task ID description of the task may be "task id=4", where 4 is the ID associated with the task of putting the ball in the cup. In some implementations, multiple encoders (i.e., one encoder for each dataset) may be trained such that each encoder can generate a shared latent goal space representation of the task by processing the task description. In other words, different ways of describing the same task (e.g., an image of a ball in a cup, a natural language instruction "put the ball in the mug," and / or "task id=4") may be matched to the same latent goal representation based on processing the task description with a corresponding encoder. While the techniques described herein are directed to training a robot to perform a task, this is not intended to be limiting. Additional and / or alternative networks may be trained based on multiple datasets, each with a different context, according to the techniques described herein.
[0004] Additional or alternative implementations are directed to controlling a robot based on the output generated using a goal-conditional policy network. In some implementations, a robot can be trained using multiple datasets (e.g., a target image dataset and a natural language instruction dataset), and only one task description type can be used to describe a task for the robot at inference (e.g., providing the system with only natural language instructions, only target images, only task IDs, etc. at inference). For example, a system can be trained based on a target image dataset and a natural language instruction dataset, and the system is provided with natural language instructions to describe a task for the robot at runtime. Additionally or alternatively, in some implementations, the system can be provided with multiple instruction description types at runtime (e.g., natural language instructions, target images, and task IDs can be provided at runtime, natural language instructions and task IDs can be provided at runtime, etc.). For example, a system can be trained based on a natural language instruction dataset and a target image dataset, and the system can be provided with natural language instructions and / or target image instructions at runtime.
[0005] In some embodiments, the robotic agent may achieve task-independent control using goal-conditional policy networks, where a single robot is capable of reaching any reachable goal state in its environment. In traditional teleoperated multitask demonstrations, the diversity of data collected may be constrained to a priori task definitions (e.g., a human operator is provided with a list of tasks to demonstrate). In contrast, a human operator performing teleoperated "play" is not constrained to a predefined set of tasks when generating play data. In some implementations, the target image dataset may be generated based on teleoperated "play" data. Play data may include a continuous log (e.g., a data stream) of low-level observations and actions collected while a human teleoperates a robot and engages in behaviors that satisfy his or her own curiosity. Collecting play data, unlike collecting expert demonstrations, may not require task segmentation, labeling, or resetting to an initial state, allowing play data to be collected quickly and in large quantities. Additionally or alternatively, play data may be structured based on human knowledge of object affordances (e.g., when people see a button in a scene, they tend to press it). Human operators may try multiple ways to achieve the same result and / or explore new behaviors. In some implementations, play data may be expected to naturally encompass the interaction space of an environment in ways that expert demonstrations cannot.
[0006] In some implementations, the target image dataset may be generated based on the teleoperated play data. A segment of the play data stream (e.g., a sequence of image frames) may be selected as the imitation trajectory, and the last image in the selected segment of the data stream is the target image. In other words, the target image describing the imitation trajectory in the target image dataset may be generated in hindsight, where the target image is determined based on a sequence of actions, as opposed to generating a sequence of actions based on the target image. In some implementations, short-horizon target image training instances can be generated quickly and / or inexpensively based on the data stream of teleoperated play data.
[0007] In some implementations, additionally or alternatively, a natural language instruction dataset may be based on teleoperated play data. A segment of the play data stream (e.g., a sequence of image frames) may be selected as an imitation trajectory. One or more humans may then describe the imitation trajectory, thus generating natural language instructions in hindsight (as opposed to generating an imitation trajectory based on natural language instructions). In some implementations, the collected natural language instructions may encompass functional behaviors (e.g., "open the drawer," "press the green button," etc.), general non-task-specific behaviors (e.g., "move your hand slightly to the left," "do nothing," etc.), and / or additional behaviors. In some implementations, the natural language instructions may be free-form natural language, and no constraints are placed on the natural language instructions that may be provided. In some implementations, multiple humans may describe the imitation trajectory using free-form natural language, which may yield different descriptions of the same object, behavior, etc. For example, the imitation trajectory may capture a robot lifting a wrench. Multiple human writers may provide different free-form natural language instructions for the imitation trajectory, such as "grab the tool," "pick up the wrench," "grab the object," and / or additional free-form natural language instructions. In some implementations, this diversity in free-form natural language instructions may result in a more robust goal-conditional policy network, where a wider range of free-form natural language instructions may be implemented by the agent.
[0008] The target conditional policy network and corresponding encoder may be trained based on the image target dataset and the free-form natural language instruction dataset in various ways. For example, the system may process the target image portion of the target image training instance using the target image encoder to generate a latent target space representation of the target image. The latent target space representation of the target image and an initial frame of the imitation trajectory portion of the target image training instance generate a target image candidate output. A target image loss may be generated based on the target image candidate output and the target image imitation trajectory. Similarly, the system may process the natural language instruction portion of the natural language instruction training instance to generate a latent space representation of the natural language instruction. The natural language instruction and an initial frame of the imitation trajectory portion of the natural language instruction training instance may be processed using the target conditional policy network to generate a natural language instruction candidate output. A natural language instruction loss may be generated based on the natural language instruction candidate output and the imitation trajectory portion of the natural language instruction training instance. In some implementations, the system may generate a target conditional loss based on the target image loss and the natural language instruction loss. One or more portions of the target conditional policy network, the target image encoder, and / or the natural language instruction encoder may be updated based on the target conditional loss. However, this is merely an example of training a target conditional policy network, a target image encoder, and / or a natural language instruction encoder. Additional and / or alternative training methods may be used.
[0009] In some implementations, the target conditional policy network may be trained using target image datasets and natural language instruction datasets of different sizes. For example, the target conditional policy network may be trained based on a first amount of target image training instances and a second amount of natural language instruction training instances, the second amount being 50 percent of the first amount, less than 50 percent of the first amount, less than 10 percent of the first amount, less than 5 percent of the first amount, less than 1 percent of the first amount, and / or more or less than additional or alternative percentages of the first amount.
[0010] Thus, various implementations describe techniques for learning a shared latent goal space for multiple task descriptions for use in training a single goal-conditioned policy network. In contrast, conventional techniques train multiple policy networks, one policy network for each task description type. Training a single policy network allows more diverse data to be utilized in training the network. Additionally or alternatively, the policy network may be trained using a larger amount of training instances of one data type. For example, the goal-conditioned policy network may be trained using hindsight goal image training instances that may be automatically generated from an imitation learning data stream (e.g., hindsight goal image training instances are inexpensive to generate automatically compared to natural language instruction training instances that may require natural language instructions provided by a human). By training the goal-conditional policy network using both the target image dataset and the natural language instruction dataset, the majority of training instances are automatically generated target image training instances, and the resulting goal-conditional policy network can robustly generate behaviors for a robot based on natural language instructions without requiring computing resources (e.g., processor cycles, memory, power, etc.) and / or human resources (e.g., the time required by a group of people to provide natural language instructions) to generate a large natural language instruction dataset.
[0011] The above description is provided only as a summary of some implementations disclosed herein. These and other implementations of the present technology are disclosed in further detail below.
[0012] It should be understood that all combinations of the foregoing concepts, and additional concepts more fully described herein, are considered to be part of the subject matter disclosed herein, for example, all combinations of 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]
[0013] [Figure 1] FIG. 1 illustrates an example environment in which implementations described herein may be implemented. [Diagram 2] FIG. 1 illustrates an example of generating behavioral outputs using a goal-conditional policy network, according to various implementations described herein. [Diagram 3] 1 is a flowchart illustrating an example process of controlling a robot based on natural language instructions, according to various implementations disclosed herein. [Figure 4] 1 is a flowchart illustrating an example process of generating target image training instances according to various implementations disclosed herein. [Diagram 5] 1 is a flowchart illustrating an example process of generating natural language instruction training instances according to various implementations disclosed herein. [Figure 6] 1 is a flowchart illustrating an example process of training a target conditional policy network, a natural language instruction encoder, and / or a target image encoder, according to various implementations disclosed herein. [Figure 7] FIG. 1 illustrates a schematic diagram of an exemplary architecture of a robot. [Figure 8] FIG. 1 is a schematic diagram illustrating an exemplary architecture of a computer system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Natural language is a versatile and intuitive way for humans to communicate tasks to robots. Existing approaches achieve learning diverse robot behaviors from generic sensors. However, each task must be specified with a target image, which is not realistic in an open-world environment. Instead, implementations disclosed herein are directed to simple and / or scalable ways to condition policies with human language. Short robot experiences from play can be paired with relevant human language after the fact. To make this efficient, some implementations utilize multi-context imitation, which can enable training a single agent to follow image or language goals, where only language conditioning is used at test time. This can bring down the cost of language pairing to a small percentage (e.g., less than 10%, 5%, or 1%) of collected robot experiences, with the majority of control still being learned via imitation with self-supervised learning. During testing, a single agent trained in this manner can sequentially execute many different robotic manipulation skills in a 3D environment, specified directly from images and using only natural language (e.g., open the drawer... lift the block... press the green button). In addition, some implementations use techniques to transfer knowledge from large unlabeled text corpora to robot learning. Transfer can greatly improve downstream robotic manipulation. It can also enable an agent to follow thousands of new commands during testing, for example, in zero-shot in multiple different languages.
[0015] A long-term motivation for robotics learning is the idea of a generalist robot: a single agent that can solve many tasks in everyday environments using only common on-board sensors. Along with task and observation space generality, a fundamental but little considered aspect is the specification of a general task, i.e., the ability of an untrained user to direct the agent's behavior using the most intuitive and flexible mechanisms. Thus, it is difficult to imagine a truly generalist robot without imagining a robot that can follow instructions expressed in natural language.
[0016] More broadly, children learn language against the backdrop of rich and relevant sensorimotor experiences. This raises interest in the long-standing question of embodied language acquisition in artificial intelligence: how might intelligent agents embody cognition based on an understanding of language? The ability to relate language to the physical world could enable robots and humans to communicate on a common ground through shared sensory experiences, which could lead to much more meaningful forms of human-machine interaction.
[0017] Moreover, language acquisition, at least in humans, can be a highly social process: infants provide actions in their earliest interactions, and caregivers provide associated words. Although the mechanics of hands-on, real-world learning in humans are not fully understood, implementations disclosed herein explore what robots can learn from similar paired data.
[0018] However, even following simple commands can pose notoriously difficult learning problems in AI, and involves many long-term issues. For example, a robot given the command "Put the block away in the drawer" must be able to associate language with low-level cognition (What does the block look like? What is a drawer?). It must perform visual reasoning (What does it mean for the block to be in the drawer?). In addition, it must solve complex sequential decision problems (What command do I send to the arm to "put it away?"). Note that while these questions extend beyond a single task, the generalist robot environment requires a single agent to perform multiple tasks.
[0019] In some implementations, an environment of free robot manipulation may be combined with free human language conditioning. Existing techniques typically include constrained observation spaces, e.g., games, 2D grid worlds, simplified actuators, e.g., binary pick-and-place primitives, and synthetic language data. Implementations herein target complex task combinations such as 1) human language instructions, 2) high-dimensional continuous sensor inputs and actuators, and / or 3) long-horizon robotic object manipulation. During testing, some implementations may consider a single agent that can perform multiple tasks in succession, where each task may be specified by a human in natural language. For example, "open the door to the far right...lift the block...press the red button...close the door". Furthermore, the agent should be able to perform any combination of subtasks in any order. This may be called an "ask me anything" scenario, where general aspects such as multi-objective control, learning from on-board sensors, and / or general task specification may be tested.
[0020] Existing techniques can provide a starting point for learning multi-objective skills from an on-board perspective. However, like other methods that combine relabeling with image observation, existing techniques require that the task be specified using a target image to reach. While trivial in a simulator, this form of task specification can be impractical in an open-world environment.
[0021] In some implementations, the system can extend existing techniques to natural language environments by:
[0022] (1) Spatial manipulation in teleoperated play. In some implementations, the system can collect teleoperated “play” datasets. These long-term state-action logs can be (automatically) relabeled into multiple short-term demonstrations of solving image objectives.
[0023] (2) Pairing play with human language. Existing techniques typically pair instructions with optimal behavior. In contrast, in some implementations described herein, behavior from play can be paired with optimal instructions after the fact (i.e., Hindsight Instruction Pairing). This can yield a dataset of demonstrations and solves human language goals.
[0024] (3) Multi-context imitation learning. In some implementations, a single policy may be trained to solve image goals and / or language goals. Additionally or alternatively, in some implementations, only language conditioning is used during testing. To enable this, the system may utilize multi-context imitation learning. Multi-context imitation learning may be data-efficient. It may, for example, lower the cost of language pairing to less than a small percentage (e.g., less than 10%, less than 5%, less than 1%) of collected robot experience to enable language conditioning, with the majority of control still being learned via imitation through self-supervised learning.
[0025] (4) Conditioning with human language at test time: In some implementations, at test time, a single policy trained in this manner can sequentially execute many complex robot manipulation skills, fully specified using natural language directly from images.
[0026] Additionally or alternatively, some implementations include transfer learning from an unlabeled text corpus to robot operations. Transfer learning reinforcement can be used, which may be applicable to any language-conditional policy. In some implementations, this can improve downstream robot operations. Importantly, this technique can enable an agent to follow novel instructions in zero-shot (e.g., follow thousands of novel instructions and / or follow instructions across multiple languages). Goal-conditional learning can be used to train a single agent to reach any goal. This can be achieved by applying a goal-conditional policy π θ It can be formulated as (a|s,g), which outputs the next action a∈A conditional on the current state s∈S and the task descriptor g∈G. The imitation method is based on a dataset of expert state-action trajectories τ={(s0,a0),...}.
[0027]
number
[0028] We can learn this correspondence using supervised learning over g, resolving paired task descriptors (such as one-hot task encoding). A convenient choice for task descriptors is to have some goal state g=s g ∈S. This allows every state taken during collection to be relabeled as a "goal state reached", and the preceding states and actions are treated as optimal behaviors for reaching that goal. Applied to some original dataset D, this can result in a much larger dataset of relabeled examples.
[0029]
number
[0030] can produce N R >>N, which provides input to a simple maximum likelihood objective for goal directed control, i.e., relabeled goal conditioned behavioral cloning (GCBC).
[0031]
number
[0032] Although relabeling can automatically generate a large number of goal-directed demonstrations at training time, it may not take into account the diversity of those demonstrations that may be entirely derived from the underlying data. The ability to reach any user-provided goal is a motivation for seeking a data collection method upstream of relabeling that covers the entire state space.
[0033] Human teleoperated "play" collection can directly address the problem of state-space coverage. In this environment, the operator is no longer constrained to a predefined set of tasks, but can instead engage in any available object manipulation in the scene. The motivation is to cover the entire state space using prior human knowledge of object affordances. During collection, the on-board robot observations and action streams are recorded,
[0034]
number
[0035] , yielding an unsegmented dataset of unstructured but semantically useful behaviors, which can be useful in the context of relabeled imitation learning.
[0036] Learning from play can combine relabeled imitation learning with remote play. First, the unsegmented play logs are relabeled using Algorithm 2, which is a training set that holds a large number of diverse short-term examples.
[0037]
number
[0038] In some implementations, these may be fed into a standard maximum likelihood goal conditioned imitation objective function.
[0039]
number
[0040] A limitation of learning from play, and other approaches that combine relabeling with image state space, is that during test, the behavior is not consistent with the target image s g The challenge is that the task must be conditional on the human's command. Some implementations described herein may focus on a more flexible mode of conditioning, where a human describes the task in natural language. To succeed in this, complex underlying problems may need to be solved. To address this, hindsight command pairing, a method for pairing large amounts of diverse robot sensor data with relevant human language, may be used. In some implementations, multi-context imitation learning may be used to leverage both image target datasets and language target datasets. Additionally or alternatively, language learning from play (LangLfP) may be used to tie these components together and learn a single policy that follows multiple human commands over time.
[0041] From a statistical machine learning perspective, candidates for basing human language on robot sensor data are large corpora of robot sensor data paired with associated language. One way to collect this data is to pick instructions and then collect optimal behaviors. Additionally or alternatively, some implementations can take a sample of every robot's behavior from play and collect optimal instructions, which can be called hindsight instruction pairing (Algorithm 3). Just as a hindsight goal image is an after-the-fact answer to the question "Which goal state will make this trajectory optimal?", a hindsight instruction is an after-the-fact answer to the question "Which language instruction will make this trajectory optimal?". In some implementations, these pairs can be obtained by showing a human the on-board robot sensor video and then asking the human "What instructions would you give the agent to get from the first frame to the last frame?"
[0042] The hindsight instruction pairing process is playOne can envision access to, which can be obtained using Algorithm 2 and a group of non-expert human supervisors. D play From the new data set
[0043]
number
[0044] We can create a set of short-term play sequences τ paired with l∈L, where l is a human-provided hindsight instruction with no vocabulary and / or grammar constraints.
[0045] In some implementations, this process can be scalable since pairing occurs after the fact, making parallelization (e.g., via crowdsourcing) simple. The language collected can also be naturally rich, since it is entailed in play and similarly not constrained by a priori task definitions. It can yield commands for functional behaviors (e.g., "open the drawer," "press the green button") as well as general non-task-specific behaviors (e.g., "move your hand slightly to the left" or "do nothing"). In some implementations, it may not be necessary to pair every experience from play with language in order to learn to follow commands. This may be possible with the multi-context imitation learning described herein.
[0046] So far, we have a set of examples of hindsight target images. play , and D( play,lang A method for creating two context-mimicking datasets, , was described. In some implementations, a single policy can be trained that does not depend on any task description. This can allow for sharing statistical strength across multiple datasets during training and / or for using only linguistic prescriptions during testing.
[0047] Motivated by this, some implementations use multi-context imitation learning (MCIL), a simple and / or broadly applicable generalization of context imitation to multiple heterogeneous contexts. The main idea is to express a large number of policies by a single unified function approximator that can generalize across states, tasks, and / or task descriptions. MCIL is a method for learning a large number of imitation learning datasets D={D 0 ,...,D K}. In some implementations, each
[0048]
number
[0049] holds pairs of state-action trajectories τ paired with some context c ∈ C. For example, D 0 may contain demonstrations paired with one-hot task ids (traditional multi-task imitation learning datasets), and D 1 may include image target demonstration, D 2 may include a language target demonstration.
[0050] Rather than training one policy per dataset, MCIL instead trains a single latent objective-conditional policy π across all datasets. θ (a t |s t ,z) simultaneously, and each task description type is trained in the same latent target space.
[0051]
number
[0052] This latent space can be seen as a common abstract goal representation shared across many imitation learning problems. To enable this, MCIL maps task descriptors, each of a specific type, one for each dataset, into a common latent goal space, i.e.
[0053]
number
[0054] A set of parameterized encoders responsible for mapping
[0055]
number
[0056] For example, these may each be a task id embedding lookup, an image encoder, a language encoder, one or more additional or alternative values, and / or a combination thereof.
[0057] In some implementations, MCIL has a simple training procedure: at each training step, each dataset D in D is k For a trajectory-context pair (τ k ,c k )~D k We take a mini-batch of samples and apply it to the latent target space.
[0058]
number
[0059] We encode the context in and compute a simple maximum likelihood contextual imitation objective function.
[0060]
number
[0061] A complete MCIL objective function can be calculated by averaging this dataset-specific objective function across all datasets at each training step.
[0062]
number
[0063] Then, the policy and all the target encoders are MCIL It is trained end-to-end to maximize . See Algorithm 1 for the complete mini-batch training pseudocode.
[0064] In some implementations, multi-context learning has properties that may make it useful broadly beyond learning from play. Here, a dataset D is defined as D = {D play , D( play.lang )}, but the technique can be used more generally to train across any set of imitation datasets with different descriptions, e.g., task id, language, human video demonstration, speech, etc. Context independence can enable a highly efficient training regime; i.e., learning conditioning for the most common form of task from a small number of labeled examples while learning most of the control from the cheapest data source. In this way, multi-context learning can be interpreted as transfer learning through a shared goal space. This can lower the cost of human supervision to a degree where it can be practically applied. Multi-context learning can enable training an agent to follow human commands, where a small percentage (e.g., less than 10%, less than 5%, less than 1%, etc.) of collected robot experiences requires paired language, and most of the control is instead learned from re-labeled goal image data.
[0065] In some implementations, language-conditional learning from play (LangLfP) is a special case of multi-context imitation learning. At a high level, LangLfP is a set of learning tasks, D = {D play ,D( play,lang )} a single multi-context policy π θ (a t |s t ,z). In some implementations, F={g enc ,s enc} can be the mapping of neural network encoders from image targets and instructions, respectively, to the same latent visuo-lingual goal space. LangLfP can learn recognition, natural language understanding, and control, end-to-end, and without auxiliary loss.
[0066] Recognition module. In some implementations, τ in each instance is
[0067]
number
[0068] , Sequence of on-board observations O t , and actions. Each observation may include high-dimensional images and / or measurements of internal proprioceptive sensors. The trained recognition module P θ converts each observation tuple into a low-dimensional embedding, say s t =P θ (O t ) This recognition module maps g enc , which is the encoded target observation s g to points in z-space.
[0069] A language module. In some implementations, a language target encoder s enc tokenizes the raw text l into subwords, retrieves subword embeddings from a lookup table, and / or summarizes the embeddings into points in z-space. The subword embeddings can be randomly initialized at the beginning of training and learned end-to-end by a final imitation loss.
[0070] Control module. Many architectures use multi-context policies. θ (a t |s t ,z). For example, Latent Motor Plans (LMP) can be used. LMP is a goal-directed imitation architecture that uses latent variables to model the large amount of multi-modality inherent in free-form imitation datasets. Specifically, it can be a sequence-to-sequence conditional variational autoencoder (seq2seq CVAE) that auto-encodes contextual demonstrations through a latent "plan" space. The decoder is a goal-conditioned policy. As a CVAE, LMP lower-bound maximum likelihood contextual imitation can be easily adapted to multi-context environments.
[0071] LangLfP training. LangLfP training can be contrasted with existing LfP training. At each training step, we train a batch of image-target tasks on D play We can sample from,and denote the batch of language target tasks by,D( play,lang ) can be sampled from the recognition module P θ The observations are encoded into the state space using the enc and s enc The policy π can be encoded into the latent target space z using θ (a t |s t,z) can be used to compute a multi-context mimicking objective function, averaged over both task descriptions. In some implementations, a combined gradient step can be taken for all modules, i.e., perception, language, and control modules, optimizing the entire architecture end-to-end as a single neural network.
[0072] Obeying human commands during testing. At the start of a test episode, the agent t and a human-specified natural language goal l as input. The agent uses a trained sentence encoder s enc The agent then solves the goal in a closed loop, iteratively combining the current observations and the goal with the learned policy π θ (a t |s t ,z), samples actions, and executes them in the environment. At any time, a human operator can type in a new linguistic goal l.
[0073] Large "in the wild" natural language corpora can reflect considerable human knowledge about the world. Much recent work has been successful in transferring this knowledge to downstream tasks in NLP via pre-trained embeddings. Can a similar knowledge transfer be achieved for robotic manipulation in some of the implementations described herein?
[0074] This type of transfer has many advantages. First, if there is a semantic match between the source corpus and the target environment, the more structured input can act as a strong prior grounding knowledge or reference. Additionally or alternatively, language embeddings have been shown to encode the similarity of many words and sentences. This can enable an agent to zero-shot follow many novel instructions, as long as they are sufficiently "close" to the instructions the agent was trained to follow. Note that given the complexity of natural language, a robot in an open-world environment may need to be able to follow synonymous instructions that are outside the scope of a particular training set.
[0075] Algorithm 1 Multi-context imitation learning Input:
[0076]
number
[0077] ,One dataset per context type (e.g., target image, ,language instruction, task id), each holding a (demonstration, context) pair. Input:
[0078]
number
[0079] ,One encoder per context type, and a shared latent target space of ,contexts, e.g.
[0080]
number
[0081] Correspond to. Input: θ (a t |s t ,z), single latent goal conditional policy. Input:Parameter
[0082]
number
[0083] Randomly initialize while True do L MCIL ←0 #Loop over the dataset. for k=0...K do # Sample a (demonstration, context) batch from this dataset. (τ k ,c k )~D k #Encode the context in a shared latent target space.
[0084]
number
[0085] # Accumulate the imitation loss.
[0086]
number
[0087] end for # Average gradients across context types.
[0088]
number
[0089] #Train the policy and all encoders end-to-end. L MCIL Update θ by taking a gradient step with respect to end while
[0090] Algorithm 2. Create millions of target-image-conditioned imitation examples from teleoperated play. Input:
[0091]
number
[0092] ,An unsegmented stream of observations and behaviors recorded during play. Input:D play ←{} Input: w low ,w high ,Limits on hindsight window size. while True do #Get the next play episode from stream. (s 0:t ,a 0:t )~S for w=w low ...w high do for i=0..(tw) do #Select a window of size w for each. τ = (s i:i+w ,a i:i+w ) # Treat the last observation in the window as the target. s g =s w (τ,s g ) to D play Add to end for end for end while
[0093] Algorithm 3: Pairing robot sensor data with natural language instructions. Input: D play , (τ,s g ) Relabeled play dataset that preserves pairs. Input: D (play,lang) ←{} Input: get_hindsight_instruction(): a human supervisor, providing a posteriori natural language instructions for a given τ. Input: K, the number of pairs to generate, K<<|D play |. for 0...K do #Sample random trajectories from play. (τ,)~D play Ask a human for instructions that will make #τ optimal.
[0094]
number
[0095] (τ, l) into D( play.lang ) end for
[0096] Turning now to the figures, an exemplary robot 100 is shown in Figure 1. The robot 100 is a "robot arm" with multiple degrees of freedom to enable passage of the grasping end effector 102 along any of multiple potential paths to position the grasping end effector 102 at a desired location. The robot 100 further controls two opposing "claws" of the grasping end effector 102 to actuate the claws between at least open and closed states (and / or optionally multiple "partially closed" states).
[0097] An exemplary vision component 106 is also shown in FIG. 1. In FIG. 1, the vision component 106 is mounted in a fixed orientation relative to the base of the robot 100 or other stationary reference point. The vision component 106 includes one or more sensors capable of generating images of objects in the line of sight of the sensors and / or other vision data regarding their shape, color, depth, and / or other characteristics. The vision component 106 may be, for example, a monographic camera, a stereographic camera, and / or a 3D laser scanner. The 3D laser scanner may be, for example, a time-of-flight 3D laser scanner or a triangulation-based 3D laser scanner and may include a position-sensitive detector (PDS) or other optical position sensor.
[0098] The vision component 106 has a field of view of at least a portion of the workspace of the robot 100, such as a portion of the workspace that includes the exemplary objects 104. Although a surface on which the objects 104 are placed is not shown in FIG. 1, the objects may be placed on a table, tray, and / or other surface. The objects 104 may include spatulas, staplers, and pencils. In other implementations, more objects, fewer objects, additional objects, and / or alternative objects may be provided during all or part of a grasping attempt of the robot 100 as described herein.
[0099] 1, additional and / or alternative robots may be utilized, including additional robotic arms similar to robot 100, robots having other robotic arm formats, robots having humanoid formats, robots having animal formats, robots that move via one or more wheels (e.g., robots that balance themselves), underwater robots, unmanned aerial vehicles ("UAVs"), etc. Also, while a particular grasping end effector is illustrated in FIG. 1, additional and / or alternative end effectors may be utilized, such as alternative impactive grasping end effectors (e.g., those with grasping "plates," those with more or fewer "fingers" / "claws"), ingressive grasping end effectors, astrictive grasping end effectors, contigutive grasping end effectors, or non-grasping end effectors. In addition, while a particular mounting of the vision component 106 is illustrated in FIG. 1, additional and / or alternative mountings may be utilized. For example, in some implementations, the vision component may be mounted directly to the robot, such as to a non-actuable component of the robot or to an actuable component of the robot (e.g., an end effector or a component near the end effector). Also, for example, in some implementations, the vision component may be mounted to a non-fixed structure separate from the associated robot and / or may be mounted in a non-fixed manner to a structure separate from the associated robot.
[0100] Data from the robot 100 (e.g., vision data captured using the vision component 106), along with natural language instructions 130 captured using the user interface input devices 128, may be utilized by the behavior output engine 108 to generate behavioral outputs. In some implementations, the robot 100 may be controlled to perform one or more behaviors based on the behavioral outputs (e.g., one or more actuators of the robot 100 may be controlled). In some implementations, the user interface input devices 128 may include, for example, a physical keyboard, a touch screen (e.g., implementing a virtual keyboard or other text input mechanism), a microphone, and / or a camera. In some implementations, the natural language instructions 130 may be free-form natural language instructions.
[0101] In some implementations, the latent goal engine 110 can use the natural language command encoder 114 to process the natural language command 130 and generate a latent state representation of the natural language command. For example, the keyboard user interface input device 128 can capture the natural language command "press the green button." The latent goal engine 110 can use the natural language command encoder 114 to process the natural language command 130 "press the green button" and generate a latent goal representation of "press the green button."
[0102] In some implementations, the target image training instance engine 126 may be used to generate target image training instances 124 based on the teleoperated “play” data 122. The teleoperated “play” data 122 may be generated by a human controlling a robot in an environment, where the human controller has no defined task to perform. In some implementations, each target image training instance 124 may include an imitation trajectory portion and a target image portion, where the target image portion describes the task of the robot. For example, the target image may be an image of a closed drawer, which may describe the robot's behavior of closing the drawer. As another example, the target image may be an image of an open drawer, which may describe the robot's behavior of opening the door. In some implementations, the target image training instance engine 126 may select a sequence of image frames from the teleoperated play data stream. The target image training instance engine 126 may generate one or more target image training instances by storing the selected sequence of image frames as the imitation trajectory portion of the training instance and storing the last image frame of the sequence of image frames as the target image portion of the training instance. In some implementations, the target image training instances 124 may be generated according to the process 400 of FIG. 4 described herein.
[0103] In some implementations, the natural language instruction training instance engine 120 may be used to generate the natural language training instance 118 using the teleoperated play data 122. The natural language instruction training instance engine 120 may select a sequence of image frames from the data stream of the teleoperated play data 122. In some implementations, a human writer may provide natural language instructions describing a task being performed by the robot in the selected sequence of image frames. In some implementations, multiple human writers may provide natural language instructions describing a task being performed by the robot in the same selected sequence of image frames. Additionally or alternatively, multiple human writers may provide natural language instructions describing a task being performed in separate sequences of image frames. In some implementations, multiple human writers may provide natural language instructions in parallel. The natural language instruction training instance engine 120 may generate one or more language instruction training instances by storing the selected sequence of image frames as the imitation trajectory portion of the training instance and storing the human-provided natural language instructions as the natural language instruction portion of the training instance. In some implementations, the natural language training instances 124 may be generated according to the process 500 of FIG. 5 described herein.
[0104] In some implementations, the training engine 116 may be used to train the target conditional policy network 112, the natural language instruction encoder 114, and / or the target image encoder 132. In some implementations, the target conditional policy network 112, the natural language instruction encoder 114, and / or the target image encoder 132 may be trained according to the process 600 of FIG. 6 described herein.
[0105] FIG. 2 illustrates an example of generating a behavior output 208 according to various implementations. The example 200 includes receiving a natural language command input 202 (e.g., receiving a natural language command input via one or more user interface input devices 128 of FIG. 1). In some implementations, the natural language command input 202 can be free-form natural language input. In some implementations, the natural language command input 202 can be textual natural language input. The natural language command encoder 114 can process the natural language command input 202 to generate a latent goal space representation of the natural language command 204. The goal-conditional policy network 112 can be used to process the latent goal 204 along with a current instance of vision data 206 (e.g., an instance of vision data captured via the vision component 106 of FIG. 1) to generate a behavior output 208. In some implementations, the behavior output 208 can describe one or more actions for the robot to perform a task commanded by the natural language command input 202. In some implementations, one or more actuators of a robot (e.g., robot 100 of FIG. 1) may be controlled based on the behavioral output 208 such that the robot performs a task indicated by the natural language command input 202.
[0106] 3 is a flowchart illustrating a process 300 for generating an output based on a natural language instruction using a goal-conditional policy network in controlling a robot, according to an implementation disclosed herein. For convenience, the operations of the flowchart are described with reference to a system that performs the operations. The system may include various components of various computer systems, such as one or more components of the robot 100, the robot 725, and / or the computing system 810. Moreover, although the operations of the process 300 are shown in a particular order, this is not intended to be limiting. One or more operations may be reordered, omitted, and / or added.
[0107] In block 302, the system receives natural language instructions describing a task for the robot. For example, the system may receive natural language instructions such as "press the red button," "close the door," "pick up the screwdriver," and / or additional or alternative natural language instructions describing a task to be performed by the robot.
[0108] In block 304, the system processes the natural language instruction using a natural language encoder to generate a latent space representation of the natural language instruction.
[0109] In block 306, the system receives an instance of vision data that captures at least a portion of the robot's environment.
[0110] In block 308, the system generates an output based on processing at least (a) the instance of the vision data and (b) the latent goal expression of the natural language instruction using the goal-conditional policy network.
[0111] In block 310, the system controls one or more actuators of the robot based on the generated output.
[0112] The process 300 of Figure 3 is described in connection with controlling a robot based on natural language instructions. In additional or alternative implementations, the system can control the robot based on a target image, a task ID, speech, etc. instead of or in addition to the natural language instructions. For example, the system can control the robot based on natural language instructions and target image instructions, where the natural language instructions are processed using a corresponding natural language instruction encoder and the target image is processed using a corresponding target image encoder.
[0113] 4 is a flowchart illustrating a process 400 for generating target image training instances according to implementations disclosed herein. For convenience, the operations of the flowchart are described with reference to a system that performs the operations. The system may include various components of various computer systems, such as one or more components of the robot 100, the robot 725, and / or the computing system 810. Moreover, although the operations of the process 400 are shown in a particular order, this is not intended to be limiting. One or more operations may be reordered, omitted, and / or added.
[0114] At block 402, the system receives a data stream capturing remotely controlled play data.
[0115] At block 404, the system selects a sequence of image frames from the data stream. For example, the system may select a 1 second sequence of image frames in the data stream, a 2 second sequence of image frames in the data stream, a 10 second sequence of image frames in the data stream, and / or additional or alternative length segments of image frames in the data stream.
[0116] In block 404, the system determines the last image frame in the selected sequence of image frames.
[0117] In block 406, the system stores the training instance, including (1) the sequence of image frames as the imitation trajectory portion of the training instance, and (2) the last image frame as the target image portion of the training instance. In other words, the system stores the last image in the sequence of image frames as the target image describing the task captured.
[0118] At block 410, the system determines whether to generate additional training instances. In some implementations, the system may decide to generate additional training instances until one or more conditions are met. For example, the system may continue to generate training instances until a threshold number of training instances are generated, until the entire data stream is processed, and / or until additional or alternative conditions are met. If the system determines to generate additional training instances, the system returns to block 404, selects additional sequences of image frames from the data stream, and performs additional iterations of blocks 406 and 408 based on the additional sequences of image frames. If not, the process ends.
[0119] 5 is a flowchart illustrating a process 500 of generating natural language instruction training instances according to implementations disclosed herein. For convenience, the operations of the flowchart are described with reference to a system that performs the operations. The system may include various components of various computer systems, such as one or more components of the robot 100, the robot 725, and / or the computing system 810. Moreover, although the operations of the process 500 are shown in a particular order, this is not intended to be limiting. One or more operations may be reordered, omitted, and / or added.
[0120] At block 502, the system receives a data stream capturing remotely controlled play data.
[0121] At block 504, the system selects a sequence of image frames from the data stream. For example, the system may select a 1 second sequence of image frames in the data stream, a 2 second sequence of image frames in the data stream, a 10 second sequence of image frames in the data stream, and / or additional or alternative length segments of image frames in the data stream.
[0122] At block 506, the system receives a natural language command describing a task within a selected sequence of image frames.
[0123] In block 508, the system stores a training instance that includes (1) the sequence of image frames as the imitation trajectory portion of the training instance, and (2) the received natural language instructions describing the task as the natural language instruction portion of the training instance.
[0124] At block 510, the system determines whether to generate additional training instances. In some implementations, the system may decide to generate additional training instances until one or more conditions are met. For example, the system may continue to generate training instances until a threshold number of training instances are generated, until the entire data stream is processed, and / or until additional or alternative conditions are met. If the system determines to generate additional training instances, the system returns to block 504, selects additional sequences of image frames from the data stream, and performs additional iterations of blocks 506 and 508 based on the additional sequences of image frames. If not, the process ends.
[0125] 6 is a flowchart illustrating a process 600 for training a target conditional policy network, a natural language instruction encoder, and / or a target image encoder according to implementations disclosed herein. For convenience, the operations of the flowchart are described with reference to a system that performs the operations. The system may include various components of various computer systems, such as one or more components of the robot 100, the robot 725, and / or the computing system 810. Moreover, although the operations of the process 600 are shown in a particular order, this is not intended to be limiting. One or more operations may be reordered, omitted, and / or added.
[0126] In block 602, the system selects a target image training instance that includes (1) an imitation trajectory and (2) a target image.
[0127] At block 604, the system processes the target image using a target image encoder to generate a latent target space representation of the target image.
[0128] In block 606, the system uses a goal-conditional policy network to process at least (1) the initial image frame of the imitation trajectory and (2) the latent space representation of the target image to generate candidate outputs.
[0129] In block 608, the system determines a target image loss based at least in part on (1) the candidate outputs and (2) the mimic trajectory.
[0130] In block 610, the system selects a natural language instruction training instance that includes (1) an additional imitation trajectory and (2) a natural language instruction.
[0131] In block 612, the system processes the natural language instruction portions of the natural language instruction training instances using a natural language encoder to generate a latent space representation of the natural language instruction.
[0132] In block 614, the system uses the goal-conditional policy network to process (1) the initial image frames of the additional imitation trajectories and (2) the latent space representation of the natural language instructions to generate additional candidate outputs.
[0133] At block 616, the system determines a natural language loss based at least in part on (1) the additional candidate outputs and (2) the additional imitation trajectories.
[0134] In block 618, the system generates a target conditional loss based on (1) the image target loss and (2) the natural language command loss.
[0135] In block 620, the system updates one or more portions of the target conditional policy network, the target image encoder, and / or the natural language instruction encoder based on the target conditional loss.
[0136] In block 622, the system determines whether to perform additional training on the target conditional policy network, the target image encoder, and / or the natural language instruction encoder. In some implementations, the system may decide to perform more training if there are one or more additional unprocessed training instances and / or if one or more other criteria have not yet been met. The other one or more criteria may include, for example, whether a threshold number of epochs have occurred and / or whether a threshold length of time of training has occurred. The process 600 may be trained utilizing both non-batch learning techniques, batch learning techniques, and / or additional or alternative techniques. If the system determines to perform additional training, the system returns to block 602, selects additional target image training instances, performs additional iterations of blocks 604, 606, and 608 based on the additional target image training instances, selects additional natural language instruction training instances in block 610, performs additional iterations of blocks 612, 614, and 616 based on the additional natural language instruction training instances, and performs additional iterations of blocks 618 and 610 based on the additional target image training instances and the additional natural language instruction training instances. If not, the process ends.
[0137] 7 illustrates generally an example architecture of a robot 725. The robot 725 includes a robot control system 760, one or more motion components 740a-n, and one or more sensors 742a-m. The sensors 742a-m may include, for example, vision components, optical sensors, pressure sensors, pressure wave sensors (e.g., microphones), proximity sensors, accelerometers, gyroscopes, thermometers, barometers, and the like. Although the sensors 742a-m are shown as integral to the robot 725, this is not intended to be limiting. In some implementations, the sensors 742a-m may be located external to the robot 725, for example as stand-alone units.
[0138] The motion components 740a-n may include, for example, one or more end effectors and / or one or more servo motors or other actuators for effecting movement of one or more components of the robot. For example, the robot 725 may have multiple degrees of freedom, and each of the actuators may control the actuation of the robot 725 in one or more degrees of freedom in response to control commands. As used herein, the term actuator encompasses a mechanical or electrical device (e.g., a motor) that produces movement, in addition to any driver that may be associated with the actuator and that converts a received control command into one or more signals to drive the actuator. Thus, providing a control command to an actuator may comprise providing the 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 movement.
[0139] The robot control system 760 may be implemented in one or more processors, such as a CPU, GPU, and / or other controller of the robot 725. In some implementations, the robot 725 may comprise a "brain box" that may include all or more aspects of the control system 760. For example, the brain box may provide real-time bursts of data to the motion components 740a-n, each of which comprises a set of one or more control commands that, among other things, define parameters of movement (if any) for each of one or more of the motion components 740a-n. In some implementations, the robot control system 760 may perform one or more aspects of the processes 300, 400, 500, 600, and / or other methods described herein.
[0140] As described herein, in some implementations, all or more aspects of the control commands generated by the control system 760 in positioning the end effector to grasp an object may be based on end effector commands generated using a goal-conditional policy network. For example, the vision components of the sensors 742a-m may capture environmental state data. This environmental state data, along with the robot state data, may be a process that uses a policy network of a meta-learning model to generate one or more end effector control commands for controlling the movement and / or grasping of the robot's end effector. Although the control system 760 is shown in FIG. 7 as an integral part of the robot 725, in some implementations, all or more aspects of the control system 760 may be implemented in a component separate from but in communication with the robot 725. For example, all or more aspects of the control system 760 may be implemented in one or more computing devices in wired and / or wireless communication with the robot 725, such as computing device 810.
[0141] 8 is a block diagram of an exemplary computing device 810 that may optionally be utilized to perform one or more aspects of the techniques described herein. The computing device 810 typically includes at least one processor 814 that communicates with a number of peripheral devices via a bus subsystem 812. These peripheral devices may include, for example, a storage subsystem 824 including a memory subsystem 825 and a file storage subsystem 826, a user interface output device 820, a user interface input device 822, and a network interface subsystem 816. The input and output devices enable user interaction with the computing device 810. The network interface subsystem 816 provides an interface to external networks and is coupled to corresponding interface devices in other computing devices.
[0142] The user interface input devices 822 may include a keyboard, a pointing device such as a mouse, a trackball, a touchpad, or a graphics tablet, a scanner, a touch screen integrated into a display, a voice recognition system, an audio input device such as a microphone, and / or other types of input devices. In general, use of the term "input device" is intended to include all possible types of devices and methods for inputting information into the computing device 810 or a communications network.
[0143] The user interface output devices 820 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 flat panel device such as a cathode ray tube (CRT), a liquid crystal display (LCD), a projection device, or some other mechanism for producing a visible image. The display subsystem may also provide a non-visual display, such as via an audio output device. In general, use of the term "output device" is intended to include all possible types of devices and methods for outputting information from the computing device 810 to a user or to another machine or computing device.
[0144] Storage subsystem 824 stores programming and data constructs that provide the functionality of some or all of the modules described herein. For example, storage subsystem 824 may include logic for performing selected aspects of the processes of Figures 3, 4, 5, 6, and / or other methods described herein.
[0145] These software modules are typically executed by the processor 814, alone or in combination with other processors. The memory 825 used in the storage subsystem 824 may include several memories, including a main random access memory (RAM) 830 for storage of instructions and data during program execution, and a read-only memory (ROM) 832 in which fixed instructions are stored. The file storage subsystem 826 may provide persistent storage of program and data files, and may include a hard disk drive, a floppy disk drive with associated removable media, a CD-ROM drive, an optical drive, or a removable media cartridge. Modules implementing the functionality of some implementations may be stored by the file storage subsystem 826 in the storage subsystem 824, or other machines accessible by the processor 814.
[0146] The bus subsystem 812 provides a mechanism for allowing the various components and subsystems of the computing device 810 to communicate with each other as intended. Although the bus subsystem 812 is shown diagrammatically as a single bus, alternative implementations of the bus subsystem may use multiple buses.
[0147] The computing device 810 can be of various 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 description of the computing device 810 shown in Figure 8 is intended only as a specific example for the purposes of illustrating some implementations. Many other configurations of the computing device 810 are possible, having more or fewer components than the computing device shown in Figure 8.
[0148] In situations where the systems described herein may collect or utilize personal information about users (or sometimes referred to herein as "participants"), the user may be given the opportunity to control whether a program or feature collects user information (e.g., information about the user's social network, social behavior or activities, occupation, user preferences, or the user's current geographic location) or to control whether and / or how content that may be more relevant to the user is received from a content server. Alternatively, certain data may be treated in one or more ways before being stored or used so that personally identifiable information is removed. For example, the user's identity may be treated such that personally identifiable information cannot be determined about the user, or such that the user's geographic location may be generalized when the geographic location information is obtained (such as to a city level, zip code level, or state level) such that the user's specific geographic location cannot be determined. Thus, the user may have control over how information about the user is collected and / or used.
[0149] In some implementations, a method implemented by one or more processors is provided, the method including receiving free-form natural language instructions describing a task for the robot, the free-form natural language instructions being generated based on user interface input provided by a user via one or more user interface input devices. In some implementations, the method includes processing the free-form natural language instructions using a natural language instruction encoder to generate a latent target representation of the free-form natural language instructions. In some implementations, the method includes receiving an instance of vision data, the instance of vision data being generated by at least one vision component of the robot, the instance of vision data capturing at least a portion of an environment of the robot. In some implementations, the method includes generating an output using a goal-conditional policy network based on processing at least (a) the instance of vision data and (b) the latent target representation of the free-form natural language instructions, the goal-conditional policy network being trained based on at least (i) a set of target images of the training instance, such that the training task is described using the target images, and (ii) a set of natural language instructions of the training instance, such that the training task is described using the free-form natural language instructions. In some implementations, the method includes controlling one or more actuators of the robot based on the generated output, where controlling the one or more actuators of the robot causes the robot to perform at least one behavior indicated by the generated output.
[0150] These and other implementations of the techniques disclosed herein may include one or more of the following features.
[0151] In some implementations, the method includes receiving an additional free-form natural language instruction describing an additional task for the robot, the additional free-form natural language instruction being generated based on an additional user interface input provided by a user via one or more user interface input devices. In some implementations, the method includes processing the additional free-form natural language instruction using a natural language instruction encoder to generate an additional latent goal representation of the additional free-form natural language instruction. In some implementations, the method includes receiving an additional instance of vision data generated by at least one vision component of the robot. In some implementations, the method includes generating an additional output based on processing at least (a) the additional instance of vision data and (b) the additional latent goal representation of the additional free-form natural language instruction using a goal-conditional policy network. In some implementations, the method includes controlling one or more actuators of the robot based on the generated additional output, where controlling the one or more actuators of the robot causes the robot to perform at least one additional behavior indicated by the generated additional output.
[0152] In some implementations, the additional tasks for the robot are separate from the tasks for the robot.
[0153] In some implementations, each training instance in the target image set of the training instance, where the training task is described using the target image, includes an imitation trajectory provided by a human and a target image describing a training task to be performed by the robot at the imitation trajectory. In some implementations, generating each training instance in the target image set of the training instance includes receiving a data stream capturing a state of the robot and a corresponding behavior of the robot while the human is controlling the robot to interact with an environment. In some implementations, the method includes, for each training instance in the target image set of the training instance, selecting a sequence of image frames from the data stream, selecting a last image frame in the sequence of image frames as a training target image describing a training task to be performed in the sequence of image frames, and generating the training instance by storing the selected sequence of image frames as the imitation trajectory portion of the training instance as the training instance and storing the training target image as the target image portion of the training instance.
[0154] In some implementations, each training instance in the natural language instruction set of the training instance, where the training is described using free-form natural language instructions, includes an imitation trajectory provided by a human and free-form natural language instructions describing a training task to be performed by the robot at the imitation trajectory. In some implementations, generating each training instance in the natural language instruction set of the training instance includes receiving a data stream that captures a state of the robot and a corresponding behavior of the robot while the human controls the robot to interact with the environment. In some implementations, the method includes, for each training instance in the natural language instruction set of the training instance, selecting a sequence of image frames from the data stream, providing the sequence of image frames to a human evaluator, receiving free-form training natural language instructions describing a training task to be performed by the robot at the sequence of image frames, and generating the training instance by storing the selected sequence of image frames as the imitation trajectory portion of the training instance and the free-form training natural language instructions as the free-form natural language instructions portion of the training instance as the training instance.
[0155] In some implementations, the goal-conditional policy network selects a first training instance from the target image set of the training instance based on at least (i) a target image set of the training instance, such that the training task is described using the target image, and (ii) a natural language instruction set of the training instance, such that the training task is described using free-form natural language instructions, where the first training instance includes a first imitation trajectory and a first target image describing the first imitation trajectory. In some implementations, the method includes generating a latent space representation of the first target image by processing a first target image portion of the first training instance using a target image encoder. In some implementations, the method includes processing at least (1) an initial image frame in the first imitation trajectory and (2) a latent space representation of the first target image portion of the first training instance using the goal-conditional policy network to generate a first candidate output. In some implementations, the method includes determining a target image loss based on the first candidate output and one or more portions of the first imitation trajectory. In some implementations, the method includes selecting a second training instance from the natural language instruction set of the training instance, the second training instance including a second imitation trajectory and a second free-form natural language instruction describing the second imitation trajectory. In some implementations, the method includes generating a latent space representation of the second free-form natural language instruction by processing the second free-form natural language instruction portion of the second training instance using a natural language encoder, the latent space representation of the first target image and the latent space representation of the second free-form natural language instruction being represented in a shared latent space. In some implementations, the method includes processing at least (1) an initial image frame in the second imitation trajectory and (2) the latent space representation of the second free-form natural language instruction portion of the second training instance using a target conditional policy network to generate a second candidate output. In some implementations, the method includes determining a natural language instruction loss based on the second candidate output and one or more portions of the second imitation trajectory.In some implementations, the method includes determining a target conditional loss based on the target image loss and the natural language instruction loss. In some implementations, the method includes updating one or more portions of the target image encoder, the natural language instruction encoder, and / or the target conditional policy network based on the determined target conditional loss.
[0156] In some implementations, the goal conditional policy network is trained based on a first amount of training instances of a goal image set of the training instances and a second amount of training instances of a natural language instruction set of the training instances, the second amount being less than 50 percent of the first amount. In some implementations, the second amount is less than 10 percent of the first amount, less than 5 percent of the first amount, or less than 1 percent of the first amount.
[0157] In some implementations, the generated output includes a probability distribution over an action space of the robot, and controlling the one or more actuators based on the generated output comprises selecting at least one action based on the at least one action having the highest probability in the probability distribution.
[0158] In some implementations, using the goal-conditional policy network to generate an output based on processing at least (a) the instance of the vision data and (b) the latent goal representation of the free-form natural language instruction further includes using the goal-conditional policy network to generate an output based on processing (c) at least one action, and controlling one or more actuators based on the generated output comprises selecting the at least one action based on the at least one action satisfying a threshold probability.
[0159] In some implementations, a method implemented by one or more processors is provided, the method including receiving a free-form natural language instruction describing a task for the robot, the free-form natural language instruction being generated based on a user interface input provided by a user via one or more user interface input devices. In some implementations, the method includes processing the free-form natural language instruction using a natural language instruction encoder to generate a latent goal representation of the free-form natural language instruction. In some implementations, the method includes receiving an instance of vision data, the instance of vision data being generated by at least one vision component of the robot, the instance of vision data capturing at least a portion of an environment of the robot. In some implementations, the method includes generating an output based on processing at least (a) the instance of vision data and (b) the latent goal representation of the free-form natural language instruction using a goal-conditional policy network. In some implementations, the method includes controlling one or more actuators of the robot based on the generated output, the controlling the one or more actuators of the robot causing the robot to perform at least one behavior indicated by the generated output. In some implementations, the method includes receiving target image instructions describing additional tasks for the robot, the target image instructions provided by a user via one or more user interface input devices. In some implementations, the method includes processing the target image instructions using a target image encoder to generate a latent target representation of the target image instructions. In some implementations, the method includes receiving an additional instance of vision data, the additional instance of vision data generated by at least one vision component of the robot, the additional instance of vision data capturing at least a portion of an environment of the robot.In some implementations, the method includes generating an additional output based on processing at least (a) the additional instance of the vision data and (b) the latent goal representation of the target image instruction using the goal-conditional policy network. In some implementations, the method includes controlling one or more actuators of the robot based on the generated additional output, where controlling the one or more actuators of the robot causes the robot to perform at least one additional behavior indicated by the generated additional output.
[0160] In some implementations, a method implemented by one or more processors is provided, the method including selecting a first training instance from a set of target images of the training instances, the first training instance including a first imitation trajectory and a first target image describing the first imitation trajectory. In some implementations, the method includes generating a latent space representation of the first target image by processing a first target image portion of the first training instance using a target image encoder. In some implementations, the method includes processing at least (1) an initial image frame in the first imitation trajectory and (2) a latent space representation of the first target image portion of the first training instance using a target conditional policy network to generate a first candidate output. In some implementations, the method includes determining a target image loss based on the first candidate output and one or more portions of the first imitation trajectory. In some implementations, the method includes selecting a second training instance from the natural language instruction set of the training instance, the second training instance including a second imitation trajectory and a second free-form natural language instruction describing the second imitation trajectory. In some implementations, the method includes generating a latent space representation of the second free-form natural language instruction by processing the second free-form natural language instruction portion of the second training instance using a natural language encoder, where the latent space representation of the first target image and the latent space representation of the second free-form natural language instruction are represented in a shared latent space. In some implementations, the method includes processing at least (1) an initial image frame in the second imitation trajectory and (2) the latent space representation of the second free-form natural language instruction portion of the second training instance using a target conditional policy network to generate a second candidate output. In some implementations, the method includes determining a natural language instruction loss based on the second candidate output and one or more portions of the second imitation trajectory. In some implementations, the method includes determining a target conditional loss based on the target image loss and the natural language command loss.In some implementations, the method includes updating one or more portions of the target image encoder, the natural language instruction encoder, and / or the target conditional policy network based on the determined target conditional loss.
[0161] In addition, some implementations include one or more processors (e.g., a central processing unit (CPU)), a graphics processing unit (GPU, and / or a tensor processing unit (TPU)) of one or more computing devices, where the one or more processors are operable to execute instructions stored in associated memory, where the instructions are configured to cause performance of any of the methods described herein. Some implementations also include one or more transitory or non-transitory computer-readable storage media that store computer instructions executable by the one or more processors to perform any of the methods described herein. [Explanation of symbols]
[0162] 100 Robots 102 Grasping End Effector 104 Object 108 Behavioral Output Engine 110 Potential Target Engine 112 Goal-Conditional Policy Networks 114 NL instruction encoder 116 Training Engine 118 NL instruction training instances 120 NL instruction training instance engine 122 Remotely controlled "play" data 124 target image training instances 126 Target Image Training Instance Engine 128 User Interface Input Devices 130 Natural Language Instructions 202 Natural Language Command Input 204 Potential Target 206 Current Instance of Vision Data 208 Behavioral Output 725 Robot 740 Operational Components 742 Sensors 760 Robot Control System 810 Computing Systems 812 Bus Subsystem 814 Processor 816 Network Interface 820 User Interface Output Device 822 User Interface Input Devices 824 Storage Subsystem 825 Memory Subsystem 826 File Storage Subsystem
Claims
1. 1. A method implemented by one or more processors, comprising: receiving free-form, natural language instructions describing a task for a robot, the free-form, natural language instructions being generated based on user interface inputs provided by a user via one or more user interface input devices; processing the free-form natural language instruction using a natural language instruction encoder to generate a latent target representation of the free-form natural language instruction; receiving an instance of vision data, the instance of vision data being generated by at least one vision component of the robot, the instance of vision data capturing at least a portion of an environment of the robot; generating an output based on processing at least (a) the instance of vision data and (b) the latent goal representation of the free-form natural language instruction using a goal-conditional policy network; the goal-conditional policy network is trained based on at least (i) a set of target images of training instances, such that a training task is described using goal images, and (ii) a set of natural language instructions of the training instances, such that a training task is described using free-form natural language instructions; Steps and and controlling one or more actuators of the robot based on the generated output, wherein controlling the one or more actuators of the robot causes the robot to perform at least one behavior indicated by the generated output.
2. receiving additional free-form, natural language instructions describing additional tasks for the robot, the additional free-form, natural language instructions being generated based on additional user interface inputs provided by the user via the one or more user interface input devices; processing the additional free-form natural language instruction using the natural language instruction encoder to generate additional potential target representations of the additional free-form natural language instruction; receiving additional instances of vision data generated by the at least one vision component of the robot; generating additional outputs based on processing at least (a) the additional instances of vision data and (b) the additional latent goal representations of the additional free-form natural language instructions using the goal-conditional policy network; 2. The method of claim 1, comprising: controlling the one or more actuators of the robot based on the generated additional output, wherein controlling the one or more actuators of the robot causes the robot to perform at least one additional behavior indicated by the generated additional output.
3. The method of claim 2 , wherein the additional task for the robot is separate from the task for the robot.
4. 4. The method of claim 1, wherein each training instance in the set of target images of training instances, where a training task is described using target images, comprises an imitation trajectory provided by a human and a target image describing the training task to be performed by a robot on the imitation trajectory.
5. generating each training instance in the target image set of training instances, receiving a data stream capturing a state of the robot and a corresponding behavior of the robot while the human is controlling the robot to interact with the environment; For each training instance in the target image set of training instances, selecting a sequence of image frames from the data stream; selecting a last image frame in the sequence of image frames as a training target image describing the training task to be performed in the sequence of image frames; generating the training instance by storing, as the training instance, the selected sequence of image frames as the imitation trajectory portion of the training instance and the training target image as the target image portion of the training instance; The method of claim 4 comprising:
6. 6. The method of claim 1, wherein each training instance in the natural language instruction set of training instances, where training is described using free-form natural language instructions, comprises an imitation trajectory provided by a human and free-form natural language instructions describing the training task to be performed by a robot on the imitation trajectory.
7. generating each training instance in said set of natural language instructions of a training instance, receiving a data stream capturing the state of the robot and corresponding behavior of the robot while the human is controlling the robot to interact with the environment; For each training instance in said natural language instruction set of training instances, selecting a sequence of image frames from the data stream; providing said sequence of image frames to a human rater; receiving free-form training natural language instructions describing a training task to be performed by the robot in the sequence of image frames; generating the training instance by storing, as the training instance, the selected sequence of image frames as the imitation trajectory portion of the training instance and the free-form training natural language instructions as the free-form training natural language instructions portion of the training instance; The method of claim 6, comprising:
8. training the goal conditional policy network based on at least (i) the goal image set of training instances, where a training task is described using goal images, and (ii) the natural language instruction set of training instances, where a training task is described using free-form natural language instructions; selecting a first training instance from the set of target images of training instances, the first training instance including a first imitation trajectory and a first target image describing the first imitation trajectory; generating a latent space representation of the first target image by processing portions of the first target image of the first training instances using a target image encoder; using the goal-conditional policy network to process the latent space representations of at least (1) the initial image frames in the first imitation trajectory and (2) the first target image portions of the first training instances to generate first candidate outputs; determining a target image loss based on the first candidate output and one or more portions of the first mimic trajectory; selecting a second training instance from the set of natural language instructions of training instances, the second training instance including a second imitation trajectory and second free-form natural language instructions describing the second imitation trajectory; generating a latent space representation of the second free-form natural language instruction by processing the second free-form natural language instruction portion of the second training instance using the natural language encoder, wherein the latent space representation of the first target image and the latent space representation of the second free-form natural language instruction are represented in a shared latent space; using the goal-conditional policy network to process the latent space representation of at least (1) the initial image frames in the second imitation trajectory and (2) the second free-form natural language instruction portions of the second training instances to generate second candidate outputs; determining a natural language instruction loss based on the second candidate output and one or more portions of the second imitation trajectory; determining a target conditional loss based on the target image loss and the natural language command loss; and updating one or more portions of the target image encoder, the natural language instruction encoder, and / or the target conditional policy network based on the determined target conditional loss.
9. 9. The method of claim 1, wherein the target conditional policy network is trained based on a first amount of training instances of the target image set of training instances and a second amount of training instances of the natural language instruction set of training instances, the second amount being less than 50 percent of the first amount.
10. 10. The method of claim 9, wherein the second amount is less than 10 percent of the first amount, less than 5 percent of the first amount, or less than 1 percent of the first amount.
11. 11. The method of claim 1, wherein the generated output comprises a probability distribution over an action space of the robot, and controlling the one or more actuators based on the generated output comprises selecting the at least one action based on the at least one action having the highest probability in the probability distribution.
12. 11. The method of claim 1, wherein the step of using the goal-conditional policy network to generate an output based on processing at least (a) the instance of vision data and (b) the latent goal representation of the free-form natural language instruction further comprises the step of using the goal-conditional policy network to generate an output based on processing the at least one action (c), and controlling the one or more actuators based on the generated output comprises selecting the at least one action based on the at least one action satisfying a threshold probability.
13. 1. A method implemented by one or more processors, comprising: receiving free-form, natural language instructions describing a task for a robot, the free-form, natural language instructions being generated based on user interface inputs provided by a user via one or more user interface input devices; processing the free-form natural language instruction using a natural language instruction encoder to generate a latent target representation of the free-form natural language instruction; receiving an instance of vision data, the instance of vision data being generated by at least one vision component of the robot, the instance of vision data capturing at least a portion of an environment of the robot; generating an output based on processing at least (a) the instances of vision data and (b) the latent goal representations of the free-form natural language instructions using a goal-conditional policy network; controlling one or more actuators of the robot based on the generated output, wherein controlling the one or more actuators of the robot causes the robot to perform at least one behavior indicated by the generated output; receiving target image instructions describing additional tasks for the robot, the target image instructions being provided by the user via the one or more user interface input devices; processing the target image instructions using a target image encoder to generate a latent target representation of the target image instructions; receiving an additional instance of vision data, the additional instance of vision data being generated by the at least one vision component of the robot, the additional instance of vision data capturing at least a portion of the environment of the robot; generating additional outputs using the goal-conditional policy network based on processing at least (a) the additional instances of vision data and (b) the latent goal representations of the goal image instructions; and controlling the one or more actuators of the robot based on the generated additional output, wherein controlling the one or more actuators of the robot causes the robot to perform at least one additional behavior indicated by the generated additional output.
14. 1. A method implemented by one or more processors, comprising: selecting a first training instance from the set of target images of training instances, the first training instance including a first imitation trajectory and a first target image describing the first imitation trajectory; generating a latent space representation of the first target image by processing portions of the first target image of the first training instances using a target image encoder; using a goal-conditional policy network to process the latent space representation of at least (1) an initial image frame in the first imitation trajectory and (2) the first target image portion of the first training instance to generate a first candidate output; determining a target image loss based on the first candidate output and one or more portions of the first mimicked trajectory; selecting a second training instance from the set of natural language instructions of a training instance, the second training instance including a second imitation trajectory and second free-form natural language instructions describing the second imitation trajectory; generating a latent space representation of the second free-form natural language instruction by processing the second free-form natural language instruction portion of the second training instance using the natural language encoder, wherein the latent space representation of the first target image and the latent space representation of the second free-form natural language instruction are represented in a shared latent space; using the goal-conditional policy network to process the latent space representation of at least (1) the initial image frames in the second imitation trajectory and (2) the second free-form natural language instruction portions of the second training instances to generate second candidate outputs; determining a natural language instruction loss based on the second candidate output and one or more portions of the second imitation trajectory; determining a target conditional loss based on the target image loss and the natural language command loss; and updating one or more portions of the target image encoder, the natural language instruction encoder, and / or the target conditional policy network based on the determined target conditional loss.
15. A computer program comprising instructions which, when executed by one or more processors of a computing system, cause the computing system to perform the method of any one of claims 1 to 14.
16. A computing system configured to perform the method of any one of claims 1 to 14.
17. A computer-readable storage medium storing instructions executable by one or more processors of a computing system to perform the method of any one of claims 1 to 14.
Citation Information
Patent Citations
Controlling a robot based on free-form natural language input
WO2019183568A1
Cited By
Facility operation generation support method, facility operation generation support device, and facility operation generation system
WO2026058538A1
