EP4666214A1 - Controlling agents using sub-goals generated by language model neural networks - Google Patents
Controlling agents using sub-goals generated by language model neural networksInfo
- Publication number
- EP4666214A1 EP4666214A1 EP24706032.0A EP24706032A EP4666214A1 EP 4666214 A1 EP4666214 A1 EP 4666214A1 EP 24706032 A EP24706032 A EP 24706032A EP 4666214 A1 EP4666214 A1 EP 4666214A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- agent
- task
- sub
- neural network
- environment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
- G06N3/0455—Auto-encoder networks; Encoder-decoder networks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Program-controlled manipulators
- B25J9/16—Program controls
- B25J9/1628—Program controls characterised by the control loop
- B25J9/163—Program controls characterised by the control loop learning, adaptive, model based, rule based expert control
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/55—Rule-based translation
- G06F40/56—Natural language generation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
Definitions
- This specification relates to processing data using machine learning models.
- Machine learning models receive an input and generate an output, e.g., a predicted output, based on the received input.
- Some machine learning models are parametric models and generate the output based on the received input and on values of the parameters of the model.
- This specification generally describes a system implemented as computer programs on one or more computers in one or more locations that uses a language model neural network to (i) control an agent interacting with an environment to perform a task in the environment or
- This specification generally describes techniques for using a language model neural network and a vision-language model (VLM) neural network to improve the interaction of an agent with an environment, e.g., to improve the control of a robot interacting with a real-world environment to perform a task.
- VLM vision-language model
- this specification describes using the language model neural network to partition a task into a sequence of sub-goals and then using the VLM neural network to determine when each of the sub-goals are achieved.
- This allows the agent to more effectively complete complicated real-world tasks, even when task rewards for the tasks are sparse.
- this can allow the system to condition a policy neural network that is used to control the agent on a description of the current sub-goal, i.e., the latest sub-goal that has not yet been achieved, rather than needing to condition the policy neural network on a description of the overall task throughout the episode.
- the system can achieve this improvement without needing to re-train the language model neural network and therefore does not need to have access to any known decomposition or partition of tasks during training or at inference time, greatly increasing the range of tasks to which the described techniques can be applied.
- the system can effectively switch to controlling or assisting the agent using the next sub-goal during a task episode without needing to receive any explicit signal from the environment that the sub-goal has been completed.
- This specification also describes how the VLM and the language model neural network can be used to improve the training of a language-conditioned policy neural network that is used to control an agent.
- the VLM and the language model neural network can be used to generate training data that provides a better learning signal for the policy neural network, thereby improving the performance of the policy neural network after training.
- the VLM and the language model neural network can be used to identify subgoals that were effectively completed during a given trajectory (even if the corresponding larger task was not successfully achieved) and to add sub-trajectories corresponding to the sub-goals to a replay memory storing training data for use in training the policy neural network.
- the policy neural network can be trained to achieve sub-goals that are relevant to performing larger tasks in the environment.
- the VLM and the language model neural network can be used to identify successful sub-trajectories in training data that has already been generated prior to training of the policy neural network on a current set of tasks. This allows a training system to leverage training data that was already generated for other tasks without requiring any additional control of the agent, speeding up learning by “bootstrapping” the set of available training data for the current set of tasks.
- a method for generating instructions for an agent interacting with an environment to perform a task comprises: receiving a natural language description of the task to be performed by the agent; and processing, using a language model neural network, an input sequence derived from the natural language description of the task to generate an output text sequence that comprises natural language descriptions of each of a sequence of subgoals to be achieved by the agent while performing the task.
- the method further comprises, at each of one or more time steps: receiving a current observation image characterizing a current state of the environment at the time step; identifying a current sub-goal in the sequence of sub-goals being performed by the agent at the time step; generating, using the VLM neural network and from the current observation image, an observation embedding of the current observation; determining, whether the agent has successfully achieved the current sub-goal in the sequence as of the time step; and in response to determining that the agent has successfully achieved the current sub-goal in the sequence as of the time step, instructing the agent to perform a next sub-goal that follows the current sub-goal in the sequence.
- the agent is a mechanical agent (such as a robot) and the environment is a real-world environment.
- the current observation image can comprise monochrome or color pixels of an image, which may be a 2D or 3D image.
- an “image” includes a point cloud e.g., from a LIDAR system, and a “pixel” includes a point of the point cloud.
- sequence of sub-goals (which may also be referred to as sub-tasks) comprises a plurality of sub-goals, e.g. two or more sub-goals.
- Determining, from the observation embedding of the current observation and the text embedding of the current sub-goal, whether the agent has successfully achieved the current subgoal in the sequence as of the time step may, for example, comprise: computing a similarity score between the observation embedding of the current observation and a text embedding of the current sub-goal; and determining that the agent has successfully achieved the current sub-goal when the similarity score satisfies a threshold (i.e. satisfies a criterion that depends on the threshold, e.g. the similarity score exceeds the threshold).
- an embedding or representation refers to an ordered collection of numerical values, e.g., a vector, matrix, or other tensor of numerical values.
- the similarity score can, for example, comprise a dot product, i.e. a dot product between the observation embedding of the current observation and the text embedding of the current sub-goal.
- the current sub-goal may initially be the first of the sub-goals in the sequence and the method may comprise instructing the agent to perform the first of the sub-goals.
- Instructing the agent to perform a sub-goal may, for example, comprise determining, from the natural language description of the sub-goal, one or more actions to be performed by the agent and causing the agent to perform the one or more actions. In some implementations, this is achieved by processing an input comprising (i) data characterizing the current state of the environment and (ii) data representing the natural language description of the next sub-goal using a language-conditioned policy neural network to generate a policy output that defines an action to be performed by the agent; and selecting an action using the policy output.
- the method may therefore further comprise controlling the real-world agent using the trained language-conditioned policy neural network to perform a new task, which may be the same as or different from the task received during training. That is, the agent may be controlled by using the policy neural network to process an input that includes a natural language description of the new task, or a sub-goal of the new task, and data characterizing the state of the real-world environment to generate a policy output that defines an action to be performed by the agent in the real-world environment.
- the policy output that defines the action includes control signals to control the real-world (e.g., mechanical) agent.
- FIG. 1 shows an example action selection system.
- FIG. 2 is a flow diagram of an example process for instructing an agent during a task episode.
- FIG. 4 shows an example input sequence.
- FIG. 5 shows an example of using the VLM to determine similarity scores between observation images and a sub-goal.
- FIG. 8 shows an example of controlling a robot to perform a task episode using sub-goals.
- FIG. 9 shows an example of the performance of the described techniques.
- the system 100 selects an action 108 to be performed by the agent in response to the current observation using a language-conditioned policy neural network 130.
- the language-conditioned policy neural network 130 is generally conditioned on both text and data characterizing the state of the environment (e.g., sensor readings from one or more sensors configured to sense the environment).
- the policy neural network 130 is a neural network that is configured to receive an input that includes text and data characterizing the state of the environment and to generate (depending on the input) a policy output 122 that defines an action to be performed by the agent.
- the policy output 122 may include a respective Q-value for each action in a fixed set comprising a plurality of actions.
- the system 100 can process the Q-values (e.g., using a soft-max function) to generate a respective probability value for each action, which can be used to select the action or can select the action with the highest Q-value.
- the Q-value for an action is an estimate of a “return” that would result from the agent performing the action in response to the current observation and thereafter being controlled using actions generated by the action selection system 100.
- the policy output 122 may include a respective numerical probability value for each action in the fixed set.
- the system 100 can select the action, e.g., by sampling an action in accordance with the probability values, such as by selecting the action with the highest probability value.
- the policy output 122 can include parameters of a probability distribution over the continuous action space. The system 100 can then select an action by sampling an action from the probability distribution or by selecting, for example, the mean action.
- the policy neural network 130 can have any appropriate architecture that allows the policy neural network 130 to map environment state data and natural language text to a policy output 122.
- the policy neural network 130 can include one encoder for the environment data, another encoder for the text, and a policy subnetwork configured to process the outputs from the two encoders to generate the policy output.
- the policy subnetwork can include a context neural network, e.g., a recurrent neural network or a Transformer neural network, so that the policy output 122 at a given time step incorporates information from previous time steps.
- the neural network 130 when the neural network 130 receives visual observations, e.g., images or videos, the neural network can have a convolutional visual encoder or a vision Transformer to encode visual observations, and a recurrent neural network, e.g., LSTM-based, or attention-based language encoder to encode action instructions.
- the neural network can also have a LSTM-based memory module to help take previous actions and observations into account for policy outputs.
- the system 100 conditions the policy neural network 130 on the natural language task description 112 at each time step during the task episode.
- the system 100 can use descriptions generated by the language model neural network 120 and embeddings of sub-goals and observation images generated by the vision-language model (VLM) neural network 140 to improve the training of the policy neural network 130.
- VLM vision-language model
- the system 100 can generate training data by controlling the agent and then store the training data in the replay memory 150. More specifically, the training data includes trajectories 142 of experience data generated from task episodes performed during the training.
- system 100 can periodically sample training data from the replay memory 150 and train the policy neural network on the training data, e.g., through imitation learning or reinforcement learning.
- the system 100 can use the language model neural network 120 and the VLM language model neural network 140 to improve the quality of the training data that is added to the replay memory 150, e.g., by adding “sub-trajectories” in which sub-goals were achieved to the replay memory 150, irrespective of whether the overall goal was achieved.
- the policy neural network 130 is trained on higher-quality data and can achieve improved performance after training.
- Training the policy neural network 130 is described in more detail below with reference to FIG. 3.
- the system 100 provides, to the agent 104, information about how to perform the task that is generated using natural language descriptions of the sub-goals generated by the language model neural network 120.
- the agent that is assisted can be a human.
- assisting the agent i.e. the human
- a digital assistant also referred to as a virtual assistant
- a smart speaker or display such as a smart speaker or display, mobile, or other device.
- the agent comprises a human user of a digital assistant such as a smart speaker, smart display, or other device.
- information defining the task can be obtained from the digital assistant, and the digital assistant can be used to provide information to the user based on the sub-goals.
- this may comprise receiving, at the digital assistant, a request from the user for assistance and determining, in response to the request, one or more tasks for the user to perform, e.g., steps or sub-tasks of an overall task.
- the digital assistant can be used to output to the user information indicating how to perform the task.
- This may be done using natural language, e.g., on a display and/or using a speech synthesis subsystem of the digital assistant.
- Visual, e.g., video, and/or audio observations of the user performing the task may be captured, e.g., using the digital assistant.
- a user may be interacting with a digital assistant and ask for help performing an overall task consisting of multiple steps, e.g., cooking a pasta dish. While the user performs the task, the digital assistant receives audio and/or video inputs representative of the user's progress on the task, e.g., images or video or sound clips of the user cooking.
- the digital assistant uses a system as described above, in particular by providing it with the captured audio and/or video to determine how the user should complete each step.
- a digital assistant device including a system as described above.
- the digital assistant can also include a user interface to enable a user to request assistance and to output information.
- this is a natural language user interface and may comprise a keyboard, voice input-output subsystem, and/or a display.
- the digital assistant can further include an assistance subsystem configured to determine, in response to the request, a series of tasks for the user to perform.
- this may comprise a generative (large) language model, in particular for dialog, e.g., a conversation agent such as LaMDA.
- the digital assistant can have an observation capture subsystem to capture visual and/or audio observations of the user performing a task; and an interface for the above-described language model neural network (which may be implemented locally or remotely).
- the digital assistant can also have an assistance control subsystem configured to assist the user.
- the assistance control subsystem can be configured to perform the steps described above, for one or more tasks, e.g., of a series of tasks, e.g., until a final task of the series. More particularly the assistance control subsystem can capture, using the observation capture subsystem, visual or audio observations of the user performing the task, determine how to perform the task, and provide information about how to perform the task.
- the environment is a real-world environment
- the agent is a mechanical agent interacting with the real-world environment, e.g., a robot or an autonomous or semi-autonomous land, air, or sea vehicle operating in or navigating through the environment
- the actions are actions taken by the mechanical agent in the real-world environment to perform the task.
- the agent may be a robot interacting with the environment to accomplish a specific task, e.g., to locate an object of interest in the environment or to move an object of interest to a specified location in the environment or to navigate to a specified destination in the environment.
- the observations may include, e.g., one or more of: images, object position data, and sensor data to capture observations as the agent interacts with the environment, for example sensor data from an image, distance, or position sensor or from an actuator.
- the observations may include data characterizing the current state of the robot, e.g., one or more of: joint positionjoint velocityjoint force, torque or acceleration, e.g., gravity-compensated torque feedback, and global or relative pose of an item held by the robot.
- the observations may similarly include one or more of the position, linear or angular velocity, force, torque or acceleration, and global or relative pose of one or more parts of the agent.
- the observations may be defined in 1, 2 or 3 dimensions, and may be absolute and/or relative observations.
- the observations may also include, for example, sensed electronic signals such as motor current or a temperature signal; and/or image or video data for example from a camera or a LIDAR sensor, e.g., data from sensors of the agent or data from sensors that are located separately from the agent in the environment.
- the actions may be control signals to control the robot or other mechanical agent, e.g., torques for the joints of the robot or higher-level control commands, or the autonomous or semi-autonomous land, air, sea vehicle, e.g., torques to the control surface or other control elements, e.g., steering control elements of the vehicle, or higher-level control commands.
- the control signals can include for example, position, velocity, or force/torque/accel eration data for one or more joints of a robot or parts of another mechanical agent.
- the control signals may also or instead include electronic control data such as motor control data, or more generally data for controlling one or more electronic devices within the environment the control of which has an effect on the observed state of the environment.
- the control signals may define actions to control navigation, e.g., steering, and movement, e.g., braking and/or acceleration of the vehicle.
- the environment is a simulation of the above-described real- world environment, and the agent is implemented as one or more computers interacting with the simulated environment.
- the simulated environment may be a simulation of a robot or vehicle and the reinforcement learning system may be trained on the simulation and then, once trained, used in the real-world.
- the environment is a real-world manufacturing environment for manufacturing a product, such as a chemical, biological, or mechanical product, or a food product.
- a “manufacturing” a product also includes refining a starting material to create a product, or treating a starting material, e.g., to remove pollutants, to generate a cleaned or recycled product.
- the manufacturing plant may comprise a plurality of manufacturing units such as vessels for chemical or biological substances, or machines, e.g., robots, for processing solid or other materials.
- the manufacturing units are configured such that an intermediate version or component of the product is moveable between the manufacturing units during manufacture of the product, e.g., via pipes or mechanical conveyance.
- manufacture of a product also includes manufacture of a food product by a kitchen robot.
- the agent may comprise an electronic agent configured to control a manufacturing unit, or a machine such as a robot, that operates to manufacture the product. That is, the agent may comprise a control system configured to control the manufacture of the chemical, biological, or mechanical product.
- the control system may be configured to control one or more of the manufacturing units or machines or to control movement of an intermediate version or component of the product between the manufacturing units or machines.
- a task performed by the agent may comprise a task to manufacture the product or an intermediate version or component thereof.
- a task performed by the agent may comprise a task to control, e.g., minimize, use of a resource such as a task to control electrical power consumption, or water consumption, or the consumption of any material or consumable used in the manufacturing process.
- the actions may comprise control actions to control the use of a machine or a manufacturing unit for processing a solid or liquid material to manufacture the product, or an intermediate or component thereof, or to control movement of an intermediate version or component of the product within the manufacturing environment, e.g., between the manufacturing units or machines.
- the actions may be any actions that have an effect on the observed state of the environment, e.g., actions configured to adjust any of the sensed parameters described below.
- These may include actions to adjust the physical or chemical conditions of a manufacturing unit, or actions to control the movement of mechanical parts of a machine or joints of a robot.
- the actions may include actions imposing operating conditions on a manufacturing unit or machine, or actions that result in changes to settings to adjust, control, or switch on or off the operation of a manufacturing unit or machine.
- the rewards or return may relate to a metric of performance of the task.
- the metric may comprise a metric of a quantity of the product that is manufactured, a quality of the product, a speed of production of the product, or to a physical cost of performing the manufacturing task, e.g., a metric of a quantity of energy, materials, or other resources, used to perform the task.
- the matric may comprise any metric of usage of the resource.
- observations of a state of the environment may comprise any electronic signals representing the functioning of electronic and/or mechanical items of equipment.
- a representation of the state of the environment may be derived from observations made by sensors sensing a state of the manufacturing environment, e.g., sensors sensing a state or configuration of the manufacturing units or machines, or sensors sensing movement of material between the manufacturing units or machines.
- sensors may be configured to sense mechanical movement or force, pressure, temperature; electrical conditions such as current, voltage, frequency, impedance; quantity, level, flow/movement rate or flow/movement path of one or more materials; physical or chemical conditions, e.g., a physical state, shape or configuration or a chemical state such as pH; configurations of the units or machines such as the mechanical configuration of a unit or machine, or valve configurations; image or video sensors to capture image or video observations of the manufacturing units or of the machines or movement; or any other appropriate type of sensor.
- the observations from the sensors may include observations of position, linear or angular velocity, force, torque or acceleration, or pose of one or more parts of the machine, e.g., data characterizing the current state of the machine or robot or of an item held or processed by the machine or robot.
- the observations may also include, for example, sensed electronic signals such as motor current or a temperature signal, or image or video data for example from a camera or a LIDAR sensor. Sensors such as these may be part of or located separately from the agent in the environment.
- the environment is the real-world environment of a service facility comprising a plurality of items of electronic equipment, such as a server farm or data center, for example a telecommunications data center, or a computer data center for storing or processing data, or any service facility.
- the service facility may also include ancillary control equipment that controls an operating environment of the items of equipment, for example environmental control equipment such as temperature control, e.g., cooling equipment, or air flow control or air conditioning equipment.
- the task may comprise a task to control, e.g., minimize, use of a resource, such as a task to control electrical power consumption, or water consumption.
- the agent may comprise an electronic agent configured to control operation of the items of equipment, or to control operation of the ancillary, e.g., environmental, control equipment.
- the actions may be any actions that have an effect on the observed state of the environment, e.g., actions configured to adjust any of the sensed parameters described below. These may include actions to control, or to impose operating conditions on, the items of equipment or the ancillary control equipment, e.g., actions that result in changes to settings to adjust, control, or switch on or off the operation of an item of equipment or an item of ancillary control equipment.
- observations of a state of the environment may comprise any electronic signals representing the functioning of the facility or of equipment in the facility.
- a representation of the state of the environment may be derived from observations made by any sensors sensing a state of a physical environment of the facility or observations made by any sensors sensing a state of one or more of items of equipment or one or more items of ancillary control equipment.
- sensors configured to sense electrical conditions such as current, voltage, power or energy; a temperature of the facility; fluid flow, temperature or pressure within the facility or within a cooling system of the facility; or a physical facility configuration such as whether or not a vent is open.
- the rewards or return may relate to a metric of performance of the task.
- a metric of performance of the task For example in the case of a task to control, e.g., minimize, use of a resource, such as a task to control use of electrical power or water, the metric may comprise any metric of use of the resource.
- the environment is the real-world environment of a power generation facility, e.g., a renewable power generation facility such as a solar farm or wind farm.
- the task may comprise a control task to control power generated by the facility, e.g., to control the delivery of electrical power to a power distribution grid, e.g., to meet demand or to reduce the risk of a mismatch between elements of the grid, or to maximize power generated by the facility.
- the agent may comprise an electronic agent configured to control the generation of electrical power by the facility or the coupling of generated electrical power into the grid.
- the actions may comprise actions to control an electrical or mechanical configuration of an electrical power generator such as the electrical or mechanical configuration of one or more renewable power generating elements, e.g., to control a configuration of a wind turbine or of a solar panel or panels or mirror, or the electrical or mechanical configuration of a rotating electrical power generation machine.
- Mechanical control actions may, for example, comprise actions that control the conversion of an energy input to an electrical energy output, e.g., an efficiency of the conversion or a degree of coupling of the energy input to the electrical energy output.
- Electrical control actions may, for example, comprise actions that control one or more of a voltage, current, frequency or phase of electrical power generated.
- the rewards or return may relate to a metric of performance of the task.
- the metric may relate to a measure of power transferred, or to a measure of an electrical mismatch between the power generation facility and the grid such as a voltage, current, frequency or phase mismatch, or to a measure of electrical power or energy loss in the power generation facility.
- the metric may relate to a measure of electrical power or energy transferred to the grid, or to a measure of electrical power or energy loss in the power generation facility.
- observations of a state of the environment may comprise any electronic signals representing the electrical or mechanical functioning of power generation equipment in the power generation facility.
- a representation of the state of the environment may be derived from observations made by any sensors sensing a physical or electrical state of equipment in the power generation facility that is generating electrical power, or the physical environment of such equipment, or a condition of ancillary equipment supporting power generation equipment.
- sensors may include sensors configured to sense electrical conditions of the equipment such as current, voltage, power or energy; temperature or cooling of the physical environment; fluid flow; or a physical configuration of the equipment; and observations of an electrical condition of the grid, e.g., from local or remote sensors.
- Observations of a state of the environment may also comprise one or more predictions regarding future conditions of operation of the power generation equipment such as predictions of future wind levels or solar irradiance or predictions of a future electrical condition of the grid.
- the environment may be a chemical synthesis or protein folding environment such that each state is a respective state of a protein chain or of one or more intermediates or precursor chemicals and the agent is a computer system for determining how to fold the protein chain or synthesize the chemical.
- the actions are possible folding actions for folding the protein chain or actions for assembling precursor chemicals/intermediates and the result to be achieved may include, e.g., folding the protein so that the protein is stable and so that it achieves a particular biological function or providing a valid synthetic route for the chemical.
- the agent may be a mechanical agent that performs or controls the protein folding actions or chemical synthesis steps selected by the system automatically without human interaction.
- the observations may comprise direct or indirect observations of a state of the protein or chemical/ intermediates/ precursors and/or may be derived from simulation.
- the environment may be a drug design environment such that each state is a respective state of a potential pharmaceutically active compound and the agent is a computer system for determining elements of the pharmaceutically active compound and/or a synthetic pathway for the pharmaceutically active compound.
- the drug/synthesis may be designed based on a reward derived from a target for the drug, for example in simulation.
- the agent may be a mechanical agent that performs or controls synthesis of the drug.
- the environment is a real-world environment and the agent manages distribution of tasks across computing resources, e.g., on a mobile device and/or in a data center.
- the actions may include assigning tasks to particular computing resources.
- the actions may include presenting advertisements
- the observations may include advertisement impressions or a click-through count or rate
- the reward may characterize previous selections of items or content taken by one or more users.
- the observations may include textual or spoken instructions provided to the agent by a third-party (e.g., an operator of the agent).
- the agent may be an autonomous vehicle, and a user of the autonomous vehicle may provide textual or spoken instructions to the agent (e.g., to navigate to a particular location).
- the environment may be an electrical, mechanical or electromechanical design environment, e.g., an environment in which the design of an electrical, mechanical or electro-mechanical entity is simulated.
- the simulated environment may be a simulation of a real-world environment in which the entity is intended to work.
- the task may be to design the entity.
- the observations may comprise observations that characterize the entity, i.e., observations of a mechanical shape or of an electrical, mechanical, or electro-mechanical configuration of the entity, or observations of parameters or properties of the entity.
- the actions may comprise actions that modify the entity, e.g., that modify one or more of the observations.
- the rewards or return may comprise one or more metric of performance of the design of the entity.
- rewards or return may relate to one or more physical characteristics of the entity such as weight or strength or to one or more electrical characteristics of the entity such as a measure of efficiency at performing a particular function for which the entity is designed.
- the design process may include outputting the design for manufacture, e.g., in the form of computer executable instructions for manufacturing the entity.
- the process may include making the entity according to the design.
- a design an entity may be optimized, e.g., by reinforcement learning, and then the optimized design output for manufacturing the entity, e.g., as computer executable instructions; an entity with the optimized design may then be manufactured.
- the environment may be a simulated environment.
- the observations may include simulated versions of one or more of the previously described observations or types of observations and the actions may include simulated versions of one or more of the previously described actions or types of actions.
- the simulated environment may be a motion simulation environment, e.g., a driving simulation or a flight simulation, and the agent may be a simulated vehicle navigating through the motion simulation.
- the actions may be control inputs to control the simulated user or simulated vehicle.
- the agent may be implemented as one or more computers interacting with the simulated environment.
- the simulated environment may be a simulation of a particular real-world environment and agent.
- the system may be used to select actions in the simulated environment during training or evaluation of the system and, after training, or evaluation, or both, are complete, may be deployed for controlling a real-world agent in the particular real-world environment that was the subject of the simulation.
- This can avoid unnecessary wear and tear on and damage to the real-world environment or real-world agent and can allow the control neural network to be trained and evaluated on situations that occur rarely or are difficult or unsafe to recreate in the real -world environment.
- the system may be partly trained using a simulation of a mechanical agent in a simulation of a particular real-world environment, and afterwards deployed to control the real mechanical agent in the particular real-world environment.
- the observations of the simulated environment relate to the real-world environment
- the selected actions in the simulated environment relate to actions to be performed by the mechanical agent in the real-world environment.
- the observation at any given time step may include data from a previous time step that may be beneficial in characterizing the environment, e.g., the action performed at the previous time step, the reward received at the previous time step, or both.
- FIG. 2 is a flow diagram of an example process 200 for controlling the agent during a task episode.
- the process 200 will be described as being performed by a system of one or more computers located in one or more locations.
- an action selection system e.g., the action selection system 100 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 200.
- the system receives a natural language description of the task to be performed by the agent (step 202).
- the system can receive the description as a text input from a user or an external system.
- the system can receive the description as a speech input from a user or an external system and then apply a speech recognizer to the speech input to generate the natural language description.
- the system can receive the description as a speech input and then apply a tokenizer to the speech input to map the speech input to a set of tokens that are in the same embedding space as the input tokens processed by the language model neural network.
- the system processes, using a language model neural network, an input sequence derived from the natural language description of the task to generate an output text sequence (step 204).
- the output text sequence includes natural language descriptions of each of a sequence of sub-goals to be achieved by the agent while performing the task. That is, the output sequence specifies a partitioning or decomposition of the task into a sequence of sub-goals that, if successfully performed by the agent, will result in the agent successfully performing the task.
- the input sequence includes a &-shot prompt, where k is an integer greater than or equal to one, that causes the language model neural network to generate the descriptions of the sub-goals.
- the input sequence includes k, i.e., one or more, prompt sequences with each prompt sequence including (i) an example natural language task description and (iii) an example output sequence comprising example natural language descriptions of example sub-goals.
- the example natural language descriptions of example sub-goals can be arranged according to a particular syntax e.g., separated by specific tokens within the input sequence.
- the system can identify the natural language descriptions in the output sequence by parsing the output sequence according to the particular syntax.
- the input sequence can also include a natural language instruction that causes the language model neural network to generate the descriptions of the sub-goals.
- the natural language instruction can include a description of the environment, e.g., of the agent, of the objects in the environment, the current location of the agent in the environment, and so on.
- FIG. 4 shows an example 400 of an input sequence 402 that can be provided as input to the language model neural network for a task that requires a robot arm to stack three objects in the environment.
- the input sequence 402 includes an instruction 404 that indicates that the agent is a robot arm and identifies the three objects that are near the agent in the environment.
- the input sequence 402 also includes three prompt sequences 406 that each include (i) an example natural language task description and (iii) an example output sequence that each include example natural language descriptions of example sub-goals.
- the input sequence 402 includes a natural language description 408 (“stack all three objects”) of the current task.
- the language model neural network By processing the input sequence 402, the language model neural network generates an output sequence 410 (denoted in bold font in the Figure). As can be seen from FIG. 4, the output sequence partitions the task into four sub-goals and includes a natural language description of each.
- the language model neural network can generally have any appropriate architecture that allows the language model neural network to map input text sequences to output text sequences.
- the language model neural network can be an encoderdecoder or decoder-only Transformer or a recurrent neural network (RNN) that auto-regressively generates the output sequence conditioned on the input sequence.
- RNN recurrent neural network
- the language model neural network has been trained on a corpus of training data on a language modeling task, e.g., a task that requires predicting, given a current sequence of text tokens, the next token that follows the current sequence in the training data.
- a language modeling task e.g., a task that requires predicting, given a current sequence of text tokens, the next token that follows the current sequence in the training data.
- the language model neural network can be pre-trained on a maximum- likelihood objective on a large dataset that includes text, e.g., text that is publicly available from the Internet or another text corpus.
- the system can obtain a pre-trained language model neural network that has been trained on the language modeling task and, optionally, on one or more additional tasks, e.g., one or more of instruction tuning, supervised fine tuning, reinforcement learning from human or Al feedback, direct preference tuning, and so on.
- the system can use the language model neural network without re-training the language model neural network. That is, the system can obtain and use an already -trained language model neural network and does not train the neural network on the specific task of decomposing tasks into sub-goals.
- the system causes the language model neural network to accurately decompose tasks without having been trained on the specific tasks by leveraging the general-purpose text understanding and generation capabilities of the trained language model neural network.
- the system generates a respective text embedding for each of the sub-goals in the sequence by processing the natural language description of the sub-goal using a vision-language model (VLM) neural network (step 206).
- VLM vision-language model
- the system processes each natural language description using the VLM to generate an embedding of the natural language description and uses the embedding as the text embedding of the corresponding sub-goal.
- the VLM can be any appropriate neural network that receives images and text as input and generates representations (“embeddings”) of the images and the text in an embedding space. More specifically, the VLM can include any of a variety of learned embedders that generate embeddings of images and text in the embedding space.
- the embedders can be, e.g., encoder neural networks, multi-layer perceptrons (MLPs) learned linear layers, and so on.
- the VLM can include an image encoder neural network, e.g., a Vision Transformer or a convolutional neural network, that processes an image to generate an embedding of the image and a text encoder neural network, e.g., a Transformer-based decoder neural network, that receives text as input and generates an embedding of the text.
- the image encoder and the text encoder can have been jointly trained, e.g., through contrastive learning.
- One example of such a VLM is the CLIP model.
- Another example of such a VLM is the Align model.
- the VLM includes two encoder neural networks, but no decoder neural network.
- the VLM can include an encoder neural network, e.g., a Vision Transformer or a convolutional neural network, that processes an image to generate an encoded representation of the image and a decoder neural network, e.g., a Transformer-based decoder neural network, that generates the text conditioned on the encoded representation of the image and, optionally, embeddings of the input text.
- an encoder neural network e.g., a Vision Transformer or a convolutional neural network
- a decoder neural network e.g., a Transformer-based decoder neural network
- a VLM is the Flamingo model described in Flamingo: a Visual Language Model for Few-Shot Learning, available at arXiv:2204.14198.
- Another example of a VLM is described in Multimodal Few-Shot Learning with Frozen Language Models, available at arXiv: 2106.13884.
- the VLM neural network can include an embedding component, e.g., one that embeds an input image using an encoder neural network, a linear layer, or a deterministic embedding operation, and then processes the embedding of the input images (and, optionally, embeddings of other images or inputs of other modalities) using a decoder-only Transformer neural network.
- an embedding component e.g., one that embeds an input image using an encoder neural network, a linear layer, or a deterministic embedding operation, and then processes the embedding of the input images (and, optionally, embeddings of other images or inputs of other modalities) using a decoder-only Transformer neural network.
- the VLM may have been trained on a data set that includes both images and text, e.g., through contrastive learning or another representation learning technique, so that an image that is accurately described by a text sequence will have an embedding that is similar to, i.e., close to, the embedding of the text sequence.
- the system uses a VLM that has been trained on a general data set of images and text, i.e., without further training the VLM.
- the system further trains (“fine-tunes”) the VLM to improve the accuracy of determining sub-goal completion using the VLM.
- the system can fine-tune the VLM on a data set that includes images of the environment and corresponding text descriptions.
- the data set can include images of the environment with various configurations of the agent and possible objects in the environment.
- This “in-domain” training data can make similarity scores generated using the VLM more accurately reflect similarities between sub-goals and observation images.
- the system can achieve this benefit with relatively few “in-domain” images.
- the pre-training data set has approximately 10 A 8 images
- the fine-tuning data set can have 10 A 3 images or fewer and realize the described improvements.
- the VLM prior to use, the VLM has been pre-trained on a first training data set of images and corresponding text descriptions and fine-tuned on a second training data set that includes images of the environment and corresponding text descriptions.
- the language model neural network can be part of the VLM, e.g., can be the text encoder neural network of the VLM, a text decoder neural network of the VLM, or one or more text embedding layers of the VLM.
- the language model neural network and the VLM can be the same neural network, e.g., in the case where the VLM can process tokens representing images, text, and, optionally, other modalities.
- the language model neural network is a separate neural network from the VLM, e.g., the language model neural network can be a decoder-only Transformer neural network that is separate from the VLM.
- the system then assists the agent or controls the agent to perform the task episodes by performing steps 208-216 at each of one or more time steps in the task episode. For example, the system can perform the steps 208-216 at each time step during the task episode or at a subset of time steps during the task episode, e.g., every five, ten, or twenty time steps during the episode.
- the system receives a current observation image characterizing a current state of the environment at the time step (step 208).
- the image can be taken by a camera sensor of the mechanical agent (e.g., robot) or by a camera sensor positioned externally to the mechanical agent in the environment.
- the system identifies a current sub-goal in the sequence of sub-goals being performed by the agent at the time step (step 210). That is, the system identifies the latest sub-goal in the sequence that has not yet been achieved by the agent.
- the system generates, using the VLM neural network and from the current observation image, an observation embedding of the current observation image (step 212). That is, the system processes the observation image using the VLM to generate the embedding of the observation image. For example, the system can process the observation image using the image encoder of the VLM to generate the embedding.
- the system determines, from the observation embedding of the current observation and the text embedding of the current sub-goal, whether the agent has successfully achieved the current sub-goal in the sequence as of the time step (step 214).
- the system can compute a similarity score between the observation embedding of the current observation and the text embedding of the current sub-goal and then determine that the agent has successfully achieved the current sub-goal when the similarity score satisfies a threshold (i.e., satisfies a criterion that depends on the threshold).
- the similarity score can be a dot product and the threshold can be satisfied when the dot product exceeds the threshold.
- the system instructs the agent to perform a next sub-goal that follows the current sub-goal in the sequence of sub-goals (step 216). That is, the system instructs the agent to begin attempting to achieve the next sub-goal that follows the current sub-goal in the sequence of sub-goals.
- the system when the system is controlling the agent, the system can determine, from the natural language description of the next sub-goal, one or more actions to be performed by the agent and then cause the agent to perform the one or more actions.
- the system can process an input that includes (i) data characterizing the current state of the environment and (ii) data representing the natural language description of the next sub-goal using a language- conditioned policy neural network to generate a policy output that defines an action to be performed by the agent and then select an action using the policy output.
- the system can instruct the agent to perform the next sub-goal by providing a message, e.g., a text message or an audio message, to the agent that includes or is derived from the natural language description of the next sub-goal.
- a message e.g., a text message or an audio message
- the system can refrain from instructing the agent to perform the next sub-goal that follows the current sub-goal in the sequence.
- the system can refrain from providing a message to the agent or provide a message to the agent that instructs the agent to continue performing the current sub -goal.
- the system can determine, from the natural language description of the current sub-goal, one or more actions to be performed by the agent and then cause the agent to perform the one or more actions.
- the system can process an input that includes (i) data characterizing the current state of the environment and (ii) data representing the natural language description of the current sub-goal using the language- conditioned policy neural network to generate a policy output that defines an action to be performed by the agent and then select an action using the policy output.
- the system can use the language model neural network and the VLM to both partition the task into sub-goals and to also “automatically” determine when each sub-goal is achieved without requiring any additional information from the environment other than the observations.
- FIG. 3 is a flow diagram of an example process 300 for generating training data for training a language-conditioned policy neural network.
- the process 300 will be described as being performed by a system of one or more computers located in one or more locations.
- an action selection system e.g., the action selection system 100 of FIG.
- the system can repeatedly perform iterations of the process 300 in order to add training data, i.e., trajectories, to a replay memory.
- the system can also repeatedly perform iterations of a training process. For example, the system can perform iterations of the training process after every one or more iterations of the process 300 or asynchronously from performing the process 300.
- the system selects one or more trajectories from the replay memory and trains the policy neural network on the one or more trajectories.
- the system trains the policy neural network through imitation learning.
- the system trains the policy neural network through reinforcement learning.
- the system trains the policy neural network through a technique that combines imitation learning and reinforcement learning.
- the system processes, using a language model neural network, an input sequence derived from a natural language description of a task to generate an output text sequence that includes natural language descriptions of each of a sequence of sub-goals to be achieved by the agent while performing the task (step 302).
- the input and output sequences are described in more detail above.
- the system controls the agent using the language-conditioned policy neural network to perform a task episode of the task (step 304).
- the system can control the agent by, at each time step, conditioning the language-conditioned policy neural network on environment state data and the natural language description of the task.
- the task episode can terminate when a termination criterion is satisfied, e.g., the system receives a reward or other signal that indicates that the task has been successfully completed, a threshold number of time steps or a threshold amount of time have elapsed, the environment enters a state that has been designated as a terminal state, or another appropriate criterion. That is, the task episode may terminate without the task having been successfully performed.
- the system generates a trajectory that includes experience data for each of a sequence of time steps during the task episode.
- the experience data for at least some of the time steps of the sequence of time steps generally includes a respective observation image for the time step.
- the experience data will also generally include the action that was performed at the time step and, optionally, the reward that was received at the time step.
- Each trajectory is also generally associated with a description of a task that the agent was performing when the trajectory was generated.
- the system determines, using the vision-language model (VLM) neural network, whether any of the sub-goals in the sequence were successfully achieved by the agent at any of the sequence of time steps (step 306).
- VLM vision-language model
- the system can generate a respective text embedding for each of the sub-goals in the sequence by processing the natural language description of the sub-goal using the VLM, e.g., as described above.
- the system can generate, using the VLM neural network and from the observation image for the time step (also referred to as the “current observation image” for the time step), an observation embedding of the observation image, e.g., as described above. [0155] Then, for each time step and for each sub-goal, the system can determine, from the observation embedding of the observation image for the time step and the text embedding of the sub-goal, whether the agent has successfully achieved the sub-goal as of the time step.
- the system can compute a similarity score between the observation embedding of the observation image for the given time step and the text embedding of the given sub-goal and then determine that the agent has successfully achieved the given sub-goal when the similarity score satisfies a threshold.
- the similarity score can be a dot product and the threshold can be satisfied when the dot product exceeds the threshold.
- the system In response to determining that a given sub-goal was achieved at a given time step of the plurality of time steps, the system adds a trajectory that includes experience data for time steps preceding the given time step in the task episode to a replay memory for use in training the policy neural network (step 308).
- the system generates a “sub -trajectory” that includes only the experience data for the time steps preceding the given time step at which the given sub-goal was achieved and adds the sub-trajectory to the replay memory.
- the system can associate this trajectory with a natural language description of the given sub-goal.
- the policy neural network can learn the sequence of actions that resulted in the sub-goal being successfully achieved.
- the sub-goal was generated by the language model neural network, learning to achieve the sub-goal is useful to performing larger tasks in the environment.
- the system trains the policy neural network using a technique that incorporates reinforcement learning, the system can also associate a reward indicating that the given sub-goal was successfully completed.
- the system also receives rewards in response to performing actions in the environment.
- the system can receive a reward that indicates whether the task was successfully performed during the task episode.
- the system can add the (entire) trajectory generated at step 304 to the replay memory.
- FIG. 3 illustrates step 304 as being performed after step 302, it will be understood that the steps can be performed in any appropriate order.
- the system can first generate a trajectory by performing step 304 and then perform the remaining steps of the process 300 in order to determine what data to add to the replay memory.
- the system in order to further improve the quality of the training data by generating additional high-quality training data to be included in the replay memory, the system can “re-purpose” or “re-use” previous task trajectories for a previous task into training data for the current task using the language model neural network and the VLM.
- the policy neural network or a different policy neural network may have already been trained to control the agent to perform one or more previous tasks.
- the system can access a plurality of previous task trajectories for a previous task, e.g., that were used as training data in training the policy neural network for the previous task.
- each previous task trajectory can have been generated while the policy neural network was conditioned on data representing a description of a respective different task, i.e., a different task than the one described above with reference to FIG. 3.
- the system can determine, using the VLM neural network, whether any of the sub-goals in the sequence were successfully achieved by the agent at any of the plurality of time steps in the previous task trajectory, e.g., as described above. That is, although the sub-goals were generated from the description of the “current” task, the system uses the VLM neural network to determine if any of those sub-goals were achieved by the agent while attempting to perform a different task.
- the system In response to determining that a given sub-goal was achieved at a given time step in a given previous task trajectory, the system adds a trajectory that includes experience data for time steps preceding the given time step in the previous task trajectory to the replay memory for use in training the policy neural network, i.e. for use in training the policy neural network to perform the current set of tasks.
- the system is able to “re-purpose” already generated training data to generate additional training data that is relevant for the current set of tasks, allowing for faster learning. Moreover, the system can generate this additional training data without needing to control the agent, which reduces wear and tear on the agent and reduces the likelihood of damaging the agent or the environment.
- FIG. 5 shows an example 500 of using the VLM 140 to determine similarity scores between observation images 510 and a sub-goal 520.
- the system processes the sub-goal 520 using a text encoder 530 of the VLM 140 to generate a text embedding of the sub-goal 520.
- the system also processes each of the observation images 520 using an image encoder 540 of the VLM 140 to generate a respective observation embedding of each of the observation images 520.
- the system can then compute, for each observation image, a similarity score 506 between the observation embedding of the observation image and the text embedding of the subgoal.
- the system can then determine that the agent has successfully achieved the sub-goal at the time step corresponding to a given observation if the similarity score satisfies a threshold.
- the similarity score is a dot product and the threshold can be satisfied when the dot product exceeds the threshold.
- FIG. 6 shows an example 600 of using the VLM 140 and the language model neural network 120 to generate training data.
- the system receives a natural language task description 610 for a trajectory 620.
- the system uses the language model neural network (LLM) 120 to generate, from the task description 610, a plan 630 that includes natural language descriptions of a sequence of subgoals.
- LLM language model neural network
- the system determines whether any of the subgoals were satisfied using the VLM 140 as described above.
- the system determines that a sub-goal “the robot is grasping the red object” is satisfied at time step 640.
- the system can add a trajectory that includes the time steps preceding the time step 640 to the replay memory.
- the system also receives an environment reward 650 at the end of the trajectory 620 and can determine from the environment reward 650 whether to add the entire trajectory 620 to the replay memory.
- FIG. 7 shows an example 700 of repurposing offline data 710 for a new task 702 (e.g., trajectories that were generated for a different task).
- the system extracts two trajectories 720 and 730 from the offline data 710. The system then determines that, for the trajectory 720, none of the sub-goals 704 for the new task 702 were achieved at any of the time steps in the trajectory 720. As a result, the system does not add the trajectory to a new buffer 740 for use in training on the new task 702. [0179] However, the system determines that one of the sub-goals was completed in the last time step of the trajectory 730. As a result, the system adds the trajectory 730 to the new buffer 740.
- FIG. 8 shows an example 800 of controlling a robot to perform a task episode using sub -goals.
- the system conditions the language- conditioned policy neural network 130 on one of a sequence of sub-goals 804 generated using the language model neural network 120.
- the description of the sub-goal that is used to condition the neural network 130 at any given time step is highlighted in bold font in FIG. 8.
- the system uses the VLM 140 to determine whether to, at any given time step, switch to “executing” the next sub-goal, i.e., switch to conditioning the policy neural network 130 on the next sub-goal in the sequence.
- FIG. 9 shows an example 900 of the performance of the described techniques.
- FIG. 9 shows how the repurposing of training data for new tasks speeds up learning across three robotic stacking tasks.
- the robot achieves a 50% success on the third task in fewer than half the control steps that were required for the first task, even though the tasks are similar in complexity.
- FIG. 10 shows another example 1000 of the performance of the described techniques.
- FIG. 10 shows an example of the results of the described technique achieved on two robotic stacking tasks relative to a baseline technique that trains the policy neural network using only environment rewards.
- the use of the policy neural network achieves significantly higher success rates than the baseline technique as a result of the higher-quality training data.
- the baseline technique is unable to achieve any success due to the complexity of the task while the described techniques continue to improve as training progresses.
- Embodiments of the subject matter and the functional operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them.
- Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by, or to control the operation of, data processing apparatus.
- the computer storage medium can be a machine-readable storage device, a machine- readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
- the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
- data processing apparatus refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers.
- the apparatus can also be, or further include, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
- the apparatus can optionally include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
- a computer program which may also be referred to or described as a program, software, a software application, an app, a module, a software module, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
- a program may, but need not, correspond to a file in a file system.
- a program can be stored in a portion of a file that holds other programs or data, e.g., one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple coordinated files, e.g., files that store one or more modules, sub-programs, or portions of code.
- a computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communication network.
- engine is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions.
- an engine will be implemented as one or more software modules or components, installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a particular engine; in other cases, multiple engines can be installed and running on the same computer or computers.
- the processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output.
- the processes and logic flows can also be performed by special purpose logic circuitry, e.g., an FPGA or an ASIC, or by a combination of special purpose logic circuitry and one or more programmed computers.
- Computers suitable for the execution of a computer program can be based on general or special purpose microprocessors or both, or any other kind of central processing unit.
- a central processing unit will receive instructions and data from a read-only memory or a random access memory or both.
- the essential elements of a computer are a central processing unit for performing or executing instructions and one or more memory devices for storing instructions and data.
- the central processing unit and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
- a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks.
- a computer need not have such devices.
- a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.
- PDA personal digital assistant
- GPS Global Positioning System
- USB universal serial bus
- Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.
- semiconductor memory devices e.g., EPROM, EEPROM, and flash memory devices
- magnetic disks e.g., internal hard disks or removable disks
- magneto-optical disks e.g., CD-ROM and DVD-ROM disks.
- embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer.
- a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
- keyboard and a pointing device e.g., a mouse or a trackball
- Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.
- a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user’s device in response to requests received from the web browser.
- a computer can interact with a user by sending text messages or other forms of message to a personal device, e.g., a smartphone that is running a messaging application, and receiving responsive messages from the user in return.
- Data processing apparatus for implementing machine learning models can also include, for example, special-purpose hardware accelerator units for processing common and computeintensive parts of machine learning training or production, i.e., inference, workloads.
- Machine learning models can be implemented and deployed using a machine learning framework, e.g., a TensorFlow framework, a Microsoft Cognitive Toolkit framework, an Apache Singa framework, or an Apache MXNet framework.
- a machine learning framework e.g., a TensorFlow framework, a Microsoft Cognitive Toolkit framework, an Apache Singa framework, or an Apache MXNet framework.
- Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back-end, middleware, or front-end components.
- the components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network.
- Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.
- the computing system can include clients and servers.
- a client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
- a server transmits data, e.g., an HTML page, to a user device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device, which acts as a client.
- Data generated at the user device e.g., a result of the user interaction, can be received at the server from the device.
- a method for generating instructions for an agent interacting with an environment to perform a task comprising: receiving a natural language description of the task to be performed by the agent; processing, using a language model neural network, an input sequence derived from the natural language description of the task to generate an output text sequence that comprises natural language descriptions of each of a sequence of sub-goals to be achieved by the agent while performing the task; generating a respective text embedding for each of the sub-goals in the sequence by processing the natural language description of the sub-goal using a vision-language model (VLM) neural network; at each of one or more time steps: receiving a current observation image characterizing a current state of the environment at the time step; identifying a current sub-goal in the sequence of sub-goals being performed by the agent at the time step; generating, using the VLM neural network and from the current observation image, an observation embedding of the current observation; determining, from the observation embedding of the current observation and the text embedding of the current sub-goal,
- VLM vision
- determining, from the observation embedding of the current observation and the text embedding of the current sub-goal, whether the agent has successfully achieved the current sub-goal in the sequence as of the time step comprises: computing a similarity score between the observation embedding of the current observation and the text embedding of the current sub -goal; and determining that the agent has successfully achieved the current sub-goal when the similarity score satisfies a threshold.
- Clause 3 The method of clause 2, wherein the similarity score is a dot product and the threshold is satisfied when the dot product exceeds the threshold.
- Clause 4 The method of clause 2 or clause 3, wherein instructing the agent to perform a next sub-goal that follows the current sub-goal in the sequence comprises: determining, from the natural language description of the next sub-goal, one or more actions to be performed by the agent; and causing the agent to perform the one or more actions.
- determining, from the natural language description of the next sub-goal, one or more actions to be performed by the agent comprises: processing an input comprising (i) data characterizing the current state of the environment and (ii) data representing the natural language description of the next sub-goal using a language-conditioned policy neural network to generate a policy output that defines an action to be performed by the agent; and selecting an action using the policy output.
- Clause 6 The method of any preceding clause, wherein the input sequence comprises one or more prompt sequences, each prompt sequence comprising (i) an example natural language task description and (iii) an example output sequence comprising example natural language descriptions of example sub-goals.
- Clause 7. The method of clause 6, wherein, within each example output sequence, the example natural language descriptions of example sub-goals are arranged according to a particular syntax, and wherein the method further comprises: identifying the natural language descriptions in the output sequence by parsing the output sequence according to the particular syntax.
- Clause 10 The method of clause 9, wherein the agent is a robot.
- Clause 11 The method of any preceding clause, wherein the environment is a real-world environment of a service facility comprising a plurality of items of electronic equipment and the agent is an electronic agent configured to control operation of the service facility.
- Clause 12 The method of any preceding clause, wherein the environment is a real-world manufacturing environment for manufacturing a product and the agent comprises an electronic agent configured to control a manufacturing unit or a machine that operates to manufacture the product.
- Clause 13 The method of any preceding clause when dependent on clause 5, wherein the environment is a simulation of a real-world environment, wherein the natural language description of the task is received during training of the language-conditioned policy neural network, and wherein the method further comprises: after the training, controlling a real-world agent in the real-world environment using the policy neural network.
- Clause 14 The method of any preceding clause, when dependent on clause 5, wherein the environment is a simulation of a real-world environment, wherein the natural language description of the task is received during training of the language-conditioned policy neural network, and wherein the method further comprises: after the training, providing data specifying the policy neural network for use in controlling a real-world agent in the real-world environment.
- Clause 15 The method of any one of clauses 1-8, wherein instructing the agent to perform a next sub-goal that follows the current sub-goal in the sequence comprises: providing, to the agent, information about how to perform the task that is generated using at least the description of the next sub-goal.
- Clause 16 The method of clause 15, wherein the agent comprises a user of a digital assistant, the method comprising: obtaining information defining the task from the digital assistant; and using the digital assistant to provide the information about how to perform the task to the user.
- Clause 17 The method of clause 16, further comprising receiving, at the digital assistant, a request from the user for assistance; determining, in response to the request, that the user should perform the task; and outputting, from the digital assistant to the user, an indication of the task to be performed; wherein the current observation is a visual or audio observation or both of the user performing the task captured by the digital assistant.
- a method of training a language-conditioned policy neural network that is configured to process an input comprising (i) data characterizing a state of an environment and (ii) data representing a natural language description of a task to generate a policy output that defines an action to be performed by an agent interacting with the environment to perform the task, the method comprising: processing, using a language model neural network, an input sequence derived from the natural language description of the task to generate an output text sequence that comprises natural language descriptions of each of a sequence of sub-goals to be achieved by the agent while performing the task; controlling the agent using the language-conditioned policy neural network to perform a task episode of the task and to generate a trajectory that includes experience data for each of a sequence of time steps during the task episode that comprises a respective observation image for the time step; determining, using a vision-language model (VLM) neural network, whether any of the sub-goals in the sequence were successfully achieved by the agent at any of the sequence of time steps; in response to determining that a given sub-goal was achieved at a VLM
- Clause 19 The method of clause 18, further comprising: selecting one or more trajectories from the replay memory; and training the policy neural network on the one or more trajectories through imitation learning.
- Clause 20 The method of clause 18 or 19, further comprising: receiving a reward that indicates whether the task was successfully performed during the task episode; and when the reward indicates that the task was successfully performed, adding the trajectory to the replay memory.
- determining, using a visionlanguage model (VLM) neural network, whether any of the sub-goals in the sequence were successfully achieved by the agent at any of the plurality of time steps comprises: generating a respective text embedding for each of the sub-goals in the sequence by processing the natural language description of the sub-goal using a vision-language model (VLM) neural network, and for each time step: generating, using the VLM neural network and from the observation image for the time step, an observation embedding of the observation image for the time step; and for each sub-goal, determining, from the observation embedding of the observation image for the time step and the text embedding of the sub-goal, whether the agent has successfully achieved the sub-goal as of the time step.
- VLM visionlanguage model
- Clause 22 The method of any one of clauses 18-21, further comprising: obtaining a plurality of previous task trajectories for a previous task; for each previous task trajectory: determining, using the VLM neural network, whether any of the sub-goals in the sequence were successfully achieved by the agent at any of the plurality of time steps in the previous task trajectory; and in response to determining that a given sub-goal was achieved at a given time step in the previous task trajectory, adding a trajectory that includes experience data for time steps preceding the given time step in the previous task trajectory to the replay memory for use in training the policy neural network.
- Clause 23 The method of clause 22, wherein each previous task trajectory was generated while the policy neural network was conditioned on data representing a description of a respective different task.
- Clause 24 The method of any preceding clause, wherein the agent is a mechanical agent and the environment is a real-world environment.
- Clause 25 The method of clause 24, wherein the agent is a robot.
- Clause 26 The method of any preceding clause, wherein the environment is a real-world environment of a service facility comprising a plurality of items of electronic equipment and the agent is an electronic agent configured to control operation of the service facility.
- Clause 27 The method of any preceding clause, wherein the environment is a real-world manufacturing environment for manufacturing a product and the agent comprises an electronic agent configured to control a manufacturing unit or a machine that operates to manufacture the product.
- Clause 28 The method of any preceding clause, wherein the environment is a simulation of a real-world environment, wherein the natural language description of the task is received during training of the language-conditioned policy neural network, and wherein the method further comprises: after the training, controlling a real-world agent in the real-world environment using the policy neural network.
- Clause 29 The method of any preceding clause, wherein the environment is a simulation of a real-world environment and wherein the method further comprises: after the training, providing data specifying the policy neural network for use in controlling a real-world agent in the real-world environment.
- Clause 30 A system comprising: one or more computers; and one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform the operations of the respective method of any one of clauses 1-29.
- Clause 31 One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform the operations of the respective method of any one of clauses 1-29.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Biophysics (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Molecular Biology (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Databases & Information Systems (AREA)
- Medical Informatics (AREA)
- Multimedia (AREA)
- Mechanical Engineering (AREA)
- Robotics (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202363445999P | 2023-02-15 | 2023-02-15 | |
| PCT/EP2024/053853 WO2024170680A1 (en) | 2023-02-15 | 2024-02-15 | Controlling agents using sub-goals generated by language model neural networks |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4666214A1 true EP4666214A1 (en) | 2025-12-24 |
Family
ID=89983154
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP24706032.0A Pending EP4666214A1 (en) | 2023-02-15 | 2024-02-15 | Controlling agents using sub-goals generated by language model neural networks |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20240311617A1 (en) |
| EP (1) | EP4666214A1 (en) |
| GB (1) | GB2629890A (en) |
| WO (1) | WO2024170680A1 (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12505307B2 (en) * | 2023-04-12 | 2025-12-23 | Microsoft Technology Licensing, Llc | Natural language training and/or augmentation with large language models |
| CN116894880B (en) * | 2023-07-11 | 2024-11-29 | 北京百度网讯科技有限公司 | A training method, model, device and electronic device for a text graph model |
| US12260005B1 (en) * | 2023-09-12 | 2025-03-25 | Portal AI Inc. | Methods and systems for verifying a user agent |
| US12545295B2 (en) * | 2023-11-16 | 2026-02-10 | GM Global Technology Operations LLC | Image-based generation of descriptive and perceptive messages of automotive scenes |
| US20260061622A1 (en) * | 2024-08-30 | 2026-03-05 | Accenture Global Solutions Limited | Method and system for generating robotic instructions |
| US20260070225A1 (en) * | 2024-09-06 | 2026-03-12 | Nvidia Corporation | Visual chain-of-thought reasoning for robot vision-language-action models |
| EP4711097A1 (en) * | 2024-09-13 | 2026-03-18 | GDM Holding LLC | Robot learning through retrieval and self improvement |
| US20260097781A1 (en) * | 2024-10-03 | 2026-04-09 | Nvidia Corporation | Tokenized data streaming for multi-modal language models |
| DE102024209883A1 (en) * | 2024-10-10 | 2026-04-16 | Robert Bosch Gesellschaft mit beschränkter Haftung | Method for determining an action for a mobile device |
| CN119610111B (en) * | 2024-12-19 | 2025-10-21 | 上海智元新创技术有限公司 | Robot operation method, robot, storage medium, device and program product |
| CN119526422A (en) * | 2024-12-31 | 2025-02-28 | 同济大学 | A method for interactive operation control of deformable objects based on a visual-touch-language-action multimodal model |
| CN120620234B (en) * | 2025-08-13 | 2025-12-02 | 中国计量大学 | A robotic arm motion control method based on multi-agent cooperation |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106023993A (en) * | 2016-07-29 | 2016-10-12 | 西安旭天电子科技有限公司 | Robot control system based on natural language and control method thereof |
| CN108447477A (en) * | 2018-01-30 | 2018-08-24 | 华南理工大学 | A kind of robot control method based on natural language understanding |
| WO2019183568A1 (en) * | 2018-03-23 | 2019-09-26 | Google Llc | Controlling a robot based on free-form natural language input |
| KR102331803B1 (en) * | 2019-11-05 | 2021-11-30 | 경기대학교 산학협력단 | Vision and language navigation system |
-
2024
- 2024-02-15 GB GB2402110.7A patent/GB2629890A/en active Pending
- 2024-02-15 EP EP24706032.0A patent/EP4666214A1/en active Pending
- 2024-02-15 US US18/443,285 patent/US20240311617A1/en active Pending
- 2024-02-15 WO PCT/EP2024/053853 patent/WO2024170680A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024170680A1 (en) | 2024-08-22 |
| US20240311617A1 (en) | 2024-09-19 |
| GB2629890A (en) | 2024-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240311617A1 (en) | Controlling agents using sub-goals generated by language model neural networks | |
| EP4639415A1 (en) | Training reinforcement learning agents to perform multiple tasks across diverse domains | |
| EP3788554B1 (en) | Imitation learning using a generative predecessor neural network | |
| EP4305556B1 (en) | Reinforcement learning using an ensemble of discriminator models | |
| US20250224737A1 (en) | Controlling robots using latent action vector conditioned controller neural networks | |
| JP2025534201A (en) | Controlling Agents Using Reporter Neural Networks | |
| US20250200379A1 (en) | Hierarchical reinforcement learning at scale | |
| US20250093828A1 (en) | Training a high-level controller to generate natural language commands for controlling an agent | |
| AU2022335654A1 (en) | Autoregressively generating sequences of data elements defining actions to be performed by an agent | |
| US20240403652A1 (en) | Hierarchical latent mixture policies for agent control | |
| CN113330458A (en) | Controlling agents using a potential plan | |
| WO2023057512A1 (en) | Retrieval augmented reinforcement learning | |
| WO2023144395A1 (en) | Controlling reinforcement learning agents using geometric policy composition | |
| WO2023222885A1 (en) | Large-scale retrieval augmented reinforcement learning | |
| US20240220795A1 (en) | Planning using a jumpy trajectory decoder neural network | |
| US20240386281A1 (en) | Controlling agents by transferring successor features to new tasks | |
| US20260087311A1 (en) | Controlling agents using ambiguity-sensitive neural networks and risk-sensitive neural networks | |
| US20230093451A1 (en) | State-dependent action space quantization | |
| WO2024153739A1 (en) | Controlling agents using proto-goal pruning | |
| WO2024231311A1 (en) | Agent control using token-based dynamics models | |
| EP4652542A1 (en) | Sequence processing using attention and sub-sampling |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: UNKNOWN |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20250915 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| DAV | Request for validation of the european patent (deleted) | ||
| DAX | Request for extension of the european patent (deleted) | ||
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
| 17Q | First examination report despatched |
Effective date: 20260707 |