EP4537264A1 - Selection-inference neural network systems - Google Patents
Selection-inference neural network systemsInfo
- Publication number
- EP4537264A1 EP4537264A1 EP23762486.1A EP23762486A EP4537264A1 EP 4537264 A1 EP4537264 A1 EP 4537264A1 EP 23762486 A EP23762486 A EP 23762486A EP 4537264 A1 EP4537264 A1 EP 4537264A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- input
- natural language
- output
- inference
- reasoning
- 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
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/216—Parsing using statistical methods
-
- 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/30—Semantic analysis
- G06F40/35—Discourse or dialogue representation
-
- 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/42—Data-driven translation
- G06F40/44—Statistical methods, e.g. probability models
-
- 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/04—Architecture, e.g. interconnection topology
- G06N3/042—Knowledge-based neural networks; Logical representations of neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/02—Knowledge representation; Symbolic representation
- G06N5/022—Knowledge engineering; Knowledge acquisition
- G06N5/025—Extracting rules from data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
- G06N5/045—Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
- G06N5/046—Forward inferencing; Production systems
Definitions
- This specification relates to generating a response to a query input using neural networks.
- Neural networks are machine learning models that employ one or more layers of nonlinear units to predict an output for a received input.
- Some neural networks include one or more hidden layers in addition to an output layer. The output of each hidden layer is used as input to the next layer in the network, i.e., the next hidden layer or the output layer.
- Each layer of the network generates an output from a received input in accordance with current values of a respective set of parameters.
- This specification describes a system implemented as computer programs on one or more computers in one or more locations that generates a response to a query relating to an environment.
- the system receives a context input that includes context information relating to the environment and a query input that includes a query relating to the environment.
- the system uses the context input to generate a response, e.g., a natural language response, to the query.
- a response e.g., a natural language response
- the system generates the response by repeatedly alternating between performing selection steps and inference steps.
- the system can also generate trace data that provides natural language, interpretable information characterizing how the system arrived at the response.
- a method includes obtaining a context input comprising context information, the context information comprising one or more natural language statements that each represent a fact or a rule relating to an environment; receiving a query input comprising a query relating to the environment; generating a response to the query input by performing update iterations until a termination criterion is satisfied, the generating comprising, at each update iteration: processing a selection input comprising the context input and the query input using a selection neural network to generate a selection output for the update iteration that comprises one or more of the natural language statements from the context input; processing an inference input comprising the selection output for the update iteration using an inference neural network to generate an inference output that comprises a natural language statement that represents a new fact for the update iteration; generating, based on the inference output for the update iteration and the query input, a first halting input; processing the first halting input using a first halting neural network to generate a first halting output that indicates whether the in
- the generating further comprises, in response to determining that the termination criterion is not satisfied, updating the context input to include the natural language statement in the inference output for the update iteration.
- the method further comprises determining that the termination criterion is satisfied when the halting output indicates that the inference output contains the information necessary to respond to the query input.
- the method further comprises: determining that the termination criterion is satisfied when the halting output indicates that the inference output does not contain the information necessary to respond to the query input but a maximum number of update iterations have been performed.
- the generating further comprises, in response to determining that the inference output does not contain the information necessary to respond to the query input but a maximum number of update iterations have been performed, providing, as the response, a natural language output that indicates that that the query has not been answered.
- the method further comprises: in response to determining that the halting output indicates that the inference output does contain the information necessary to respond to the query input, providing, as the response, (i) a natural language output derived from the natural language statement in the inference output for the last update iteration.
- the response further comprises (ii) a reasoning trace that comprises the natural language statement in the inference output at each update iteration other than the last update iteration.
- the reasoning trace further comprises the selection outputs for the update iterations.
- the second halting neural network is the same neural network as the first halting neural network.
- a method in another aspect, includes obtaining a context input comprising context information, the context information comprising one or more natural language statements that each represent a fact or a rule relating to an environment; receiving a query input comprising a query relating to the environment; and generating a response to the query input conditioned on the context input, comprising, at each beam step of a sequence of one or more beam steps: obtaining a plurality of candidate reasoning traces generated by a selection-inference system as part of generating a response to the query input conditioned on the context input, each candidate reasoning trace comprising, for each of one or more update iterations, a respective selection output for the update iteration and a respective inference output for the update iteration; and maintaining at most a predetermined number of the candidate reasoning traces in a beam for further consideration by the selection- inference system, comprising: processing each reasoning trace using a value neural network to generate a respective score for each reasoning trace that estimates a likelihood that the candidate reasoning trace is a valid reasoning trace that is included in a
- generating the response further comprises: at a last beam step in the sequence, determining that each candidate reasoning trace that was not removed from the beam has been finalized and, in response, generating the response based on the highest-ranked candidate reasoning trace.
- the value neural network is configured to generate a value output that specifies a probability distribution over a vocabulary of tokens, and wherein the score is based on a probability assigned by the probability distribution to a predetermined token from the vocabulary.
- the value neural network is a language model neural network.
- the value neural network has been trained on training examples that each comprise (i) a respective partial reasoning trace and (ii) a label indicating whether the partial reasoning trace was a valid reasoning trace included in a corresponding complete reasoning trace.
- the method further comprises: at each beam step other than the last beam step in the sequence, determining that at least one of the candidate reasoning traces that were not removed from the beam has not been finalized and, in response, causing the selection-inference system to generate, for each candidate reasoning trace that was not removed from the beam and that is not finalized, a respective selection output for a new update iteration that follows a last update iteration in the candidate reasoning trace and a respective inference output for the new update iteration.
- the selection-inference system is a system that is configured to: obtain the context input; receive the query input; receive a current candidate reasoning trace that includes, for each of one or more update iterations, a respective selection output for the update iteration and a respective inference output for the update iteration; and perform a new update iteration to update the current candidate reasoning trace to add a new selection output and a new inference output to the candidate reasoning trace, comprising: processing a selection input comprising (i) the context input, (ii) one or more natural language statements derived from the respective inference outputs in the candidate reasoning trace, and (iii) the query input using a selection neural network to generate the new selection output for the new update iteration that comprises one or more of the natural language statements from the context input, one or more of the natural language statements derived from the respective inference outputs, or both; and processing an inference input comprising the selection output for the new update iteration using an inference neural network to generate the new inference output, wherein the new in
- Implementations of the described system can address this and other problems by providing a reasoning trace that may be displayed or otherwise provided to a user or stored for later review. This can be particularly useful when the control decisions or fault diagnosis relate to safe operation of a mechanical agent or manufacturing plant or other real- world scenario where interpretable responses are critical. Implementations of the described system can provide a reasoning trace in natural language that is human-interpretable, e.g., as a sequence of logical steps, presented as natural language statements, that lead from the query to the response in a causal chain.
- the described techniques ensure that intermediate inference outputs (and, optionally, selection outputs) provide an interpretable reasoning trace to justify the final answer.
- the reasoning produced by the described techniques is causal, since each step follows from and depends on the previous step, and each inference is made in isolation based solely on the limited information provided by the selection output, without direct access to the query input or previous steps of reasoning. This results in a response that is high-quality while at the same time providing a reasoning trace, i.e. an interpretable, natural language “trace” of the reasoning performed by the system while generating the response.
- the system can dynamically determine, for any given query, when to stop performing update iterations and to provide a response based on the most-recently generated inference output. In so doing, the system can both improve the quality of the responses that are generated as well as reduce the amount of computational resources consumed by the selection-inference process. Additionally, the system can use this “halting” mechanism to determine when to generate a response that indicates that the system cannot accurately answer the query input. This can greatly improve the utility and safety of the system when deployed in real-world environments, for real-world tasks, or both, where precision is prioritized as generating inaccurate responses can have significant negative consequences.
- this specification describes techniques for maintaining a beam of multiple candidate reasoning traces and determining which traces to update and which candidate to use to generate the final response using a value neural network.
- the system can effectively search through the large space of candidate reasoning traces to generate a final response that is accurate by ensuring that candidate reasoning traces that are maintained through the search process are both valid and likely to be included in a ground truth reasoning trace while candidate reasoning traces that are not likely to be valid, not likely to be included in the ground truth, or both are pruned.
- FIG. IB shows the selection-inference system being used to control an agent interacting with an environment.
- FIG. ID shows an overview of the operation of the system at a given updating iteration.
- FIG. 2 is a flow diagram of an example process for generating a response to a query input.
- FIG. 4 is a flow diagram of an example process for updating a beam of candidate responses to a query input.
- FIG. 1A shows an example selection-inference system 100.
- the selection-inference system 100 is an example of a system implemented as computer programs on one or more computers in one or more locations, in which the systems, components, and techniques described below can be implemented.
- the agent 102 is shown as a vehicle.
- the mechanical agent 102 can be any appropriate agent that is controlled by a control system as the agent navigates through the real-world 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 agent 102 is also associated with a control system 106 that generates control signals for controlling the agent 102 using the observations generated by the sensors 104.
- the control system 106 generates control signals that cause the agent 102 to follow a planned trajectory through the environment by first determining an appropriate action for the agent 102 to perform, e.g., as part of performing a specified task, e.g., navigating to a particular location, identifying a particular object, moving a particular object to a given location, manipulating a particular object in some way, and so on, and then generating control signals that cause the agent 102 to perform the action.
- the control system 106 can be deployed on-board the agent 102 or can be deployed remotely from the agent 102 and can transmit the control signals to the agent 102 over a data communication network.
- the control signals can be control inputs to control the agent.
- the control signals can be, e.g., torques for the joints of the robot or higher-level control commands.
- the control signals can include actions to control navigation, e.g., steering, and movement of the vehicle, e.g., braking and/or acceleration of the vehicle.
- the control signals can be, e.g., torques to the control surface or other control elements, e.g., steering control elements of the vehicle, or higher-level control commands.
- 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 system 100 can be deployed onboard the agent 102 or can be deployed remotely from the agent 102.
- system 100 is used to provide an additional layer of control on top of the control system 106 and the system 100 or another component can determine the query input 110 based on information received by the control system 106.
- the query input 110 may be determined by receiving a control signal from the agent control system 106, and then determining one or more natural language queries, e.g., relating to the agent 102 in the environment, from the control signal.
- the agent control system 106 is an autonomous or semi- autonomous control system, e.g., that autonomously or semi-autonomously controls the navigation of the agent 102.
- the agent control system 106 has an interface to receive control commands, e.g., from a human operator.
- the described system 100 may be used to provide an additional layer of control, e.g., for safety purposes.
- the described system 100 may be used to inhibit control of the mechanical agent 102 in a way that could be dangerous or contrary to one or more rules.
- One or more rules relating to control of the agent may be entered explicitly, e.g., as part of the context input, or may be implicit, e.g., included as natural language statements when training the neural networks used by the system 100, in particular when these each comprise a language model as described later.
- rules may include rules relating to permitted movement of a vehicle, such as traffic rules.
- such rules may include rules relating to decisions to be made to ensure safe behavior of the mechanical agent, e.g., to inhibit damage to the mechanical agent or to a human.
- each query input 110 may relate to an action to be performed by the agent, e.g., an action that is under consideration by the control system 106.
- the query input 110 can define an action to be performed by the mechanical agent 102, e.g., in the form of a question such as “Do I turn left?” or “Is it safe for the agent to turn left?”
- the query input 110 can ask what action is to be performed by the mechanical agent, e.g., “Which way should the agent turn?”
- the query input 110 can relate to a sub-task of a series of subtasks that are to be performed to perform a task, e.g., “What do I do next?” or “Do I pick up object X?”.
- the sub-tasks may themselves include a series of primitive actions for moving parts of the robot, e.g., to open grippers.
- the context input 120 can also have rules of common knowledge, populated from the weights of a trained machine learning model, a driving rules manual, hand-engineered or obtained from a knowledge graph or the Internet.
- rules of common knowledge include “if a car's electrical systems get wet, they will short circuit”, “if a car drives in the direction of something, it will end up there”, “if the car's electrical systems are broken, the car is not safe to drive” and so on.
- Other examples of such rules include “the speed limit in the current location is 30 mph,” “right turns are allowed after stop at this red light,” “turning across double yellow lines is prohibited,” and so on.
- the system 100 can be used to evaluate the consequences of potential actions that are being considered by the control system 106 before they are transmitted as control signals for the agent 102.
- the environment is a real-world environment that includes a manufacturing plant, e.g., a manufacturing plant for manufacturing a product, such as a chemical, biological, or mechanical product, or a food product.
- a manufacturing plant e.g., a manufacturing plant for manufacturing a product, such as a chemical, biological, or mechanical product, or a food product.
- “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 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.
- the system is used for controlling one or more of the manufacturing units or for controlling movement of the intermediate version or component of the product between the manufacturing units.
- obtaining the context input 120 may then comprise obtaining, from one or more sensors, one or more observations of the manufacturing units or of the movement.
- the sensors may comprise any type of sensor monitoring the manufacturing units or the movement, e.g., sensors 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 such as the mechanical configuration of a unit, or valve configurations; image or video sensors to capture image or video observations of the manufacturing units or of the movement; or any other appropriate type of sensor.
- the one or more observations are processed to generate a natural language representation of the one or more observations, e.g., as previously described.
- the natural language representation of the one or more observations is used to provide one or more of the natural language statements of the context information.
- the query input may relate to an action that controls operation of one or more of the manufacturing units or that controls the movement.
- the response to the query input is used to control operation of one or more of the manufacturing units or to control the movement.
- the response to the query input may be used to control, e.g., minimize, energy or other resource use, or to control the manufacture to obtain a desired quality or characteristic of the product.
- the actions may include actions that control items of equipment of the plant or actions that change settings that affect the manufacturing units or the movement of the product or intermediates or components thereof, e.g., to adjust or turn on/off items of equipment or manufacturing processes.
- the manufacturing plant has a plant control system to control the manufacturing units or to control the movement.
- the query input may be generated by receiving a control signal from the plant control system and generating one or more natural language queries for the query input from the control signal. In a similar way to that previously described the plant control system may be autonomous, semi- autonomous, or human-controlled.
- the system may implement rules, e.g., to control or limit energy or other resource allocation, or to ensure a target quality or characteristic of the product, or to constrain operation of the plant, e.g., of the manufacturing units, within safe bounds.
- rules e.g., to control or limit energy or other resource allocation, or to ensure a target quality or characteristic of the product, or to constrain operation of the plant, e.g., of the manufacturing units, within safe bounds.
- the environment is a real-world environment and the method is used for diagnosing a fault in a mechanical system operating in the real world environment.
- obtaining the context input may comprise obtaining from one or more sensors, e.g., as previously described, one or more observations of the mechanical system (which here includes observations of the operation of the mechanical system). These are processed, e.g., as previously described, to generate a natural language representation of the one or more observations that is used to provide one or more of the natural language statements of the context information.
- the query input relates to the operation of the mechanical system and the response to the query input is used to identify a fault in the mechanical system.
- the query input may comprise a general query such as “Is the system working correctly?” or “What is wrong with the system?” or a specific query such as “Is there a fault with component X?”.
- 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.
- obtaining the context input can include obtaining 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.
- These are processed, e.g., as previously described, to generate a natural language representation of the one or more observations that is used to provide one or more of the natural language statements of the context information.
- the query input can relate to the operation of the facility, e.g., to adjust the operation one or more electrical components to control, e.g., minimize, use of a resource, such as a task to control use of electrical power or water.
- the query input can ask which components to turn on to decrease use of the resource or whether it is safe to turn on or off a given component.
- the system can then determine how to operate the electric components based on the generated response, e.g., by turning on or off one or more components as indicated by the response.
- 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 can be an educational environment, e.g., the system can be deployed as part of an education software program that assists a user in learning or practicing one or more corresponding skills.
- the context input 120 can include natural language statements describing or referencing a scenario or scene in a real -world or imagined environment, and the query input 110 can be a question about the scenario or scene that requires logical reasoning.
- the trace data generated by the system 100 as part of generating the response 150 can be used to provide insight to the user about the logical reasoning required to generate the response 150. That is, the trace data generated by the system 100 can be used to produce explanations of questions and their corresponding responses to assist a user in learning one or more skills.
- the education software program can generate a question and accompanying context information (or receive this data from an external source).
- An example of such a question may be, e.g., “Why does an astronaut need an oxygen backpack?”
- the system 100 (given a context of elemental facts) could produce a reasoning trace like the following to assist a user in understanding the concept: “(1) Humans need oxygen to survive. There is no oxygen in space. Therefore, humans need a supply of oxygen to survive in space. (2) Oxygen can be supplied to astronauts through an oxygen backpack and humans need a supply of oxygen to survive in space. Therefore, humans can use an oxygen backpack to help astronauts survive in space.”
- the system 100 can then use the context input 120 to generate the response 150 to the query input 110 in a manner that allows a user to view a trace of the logical reasoning required to generate the response 150, i.e., to increase the confidence of the user in the veracity of the response 150 generated by the system 100.
- the system 100 generates the response by performing multiple update iterations.
- the system 100 performs a selection step by using the selection neural network 130 to select a proper subset (i.e. less than all) of the natural language statements in the context input 120.
- the system 100 determines whether the update iteration should be the last update iteration by determining whether a termination criterion is satisfied.
- the system 100 generates, based on the inference output for the update iteration and the query input, a first halting input and processes the first halting input using a first halting neural network 170 to generate a first halting output that indicates whether the inference output contains information necessary to respond to the query input.
- the system 100 determines whether the termination criterion is satisfied based on the first halting output.
- the system 100 can determine that the termination criterion is satisfied when the halting output indicates that the inference output contains the information necessary to respond to the query input.
- the system 100 can determine that the termination criterion is satisfied when the halting output indicates that the inference output does not contain the information necessary to respond to the query input but a maximum number of update iterations have been performed.
- the system 100 uses the new fact to update the context input 120, i.e., by adding the natural language statement representing the new fact to the context input 120.
- the system 100 uses the new fact to generate the response 150.
- the system 100 can provide, as the response 150, a natural language output that is derived from the new natural language statement generated at the last update iteration.
- the system 100 generates a second halting input from at least the inference output at the update iteration and processes the second halting input using a second halting neural network 170 to generate a second halting output that identifies the natural language output derived from the natural language statement in the inference output for the last update iteration.
- the first and second halting neural networks 170 are the same, i.e., the system 100 uses the same halting neural network 170 to both determine whether to terminate and to generate the final output by querying the neural network 170 with different inputs.
- the system 100 iteratively adds new facts to the context input 120 and then uses the new fact generated at the last update iteration to generate the response 150 to the query input 110.
- the selection neural network 130 is a neural network that is configured to process a selection input that includes the context input 120 (as of the current update iteration) and the query input 110 to generate a selection output that includes one or more of the natural language statements from the context input 120. Because the context input 120 is updated at each iteration, the selection output can identify different natural language statements at different update iterations.
- the inference neural network 140 is a neural network that is configured to process an inference input that includes a selection output to generate an inference output that includes a natural language statement that represents a new fact for the update iteration. Because the selection outputs can be different for different update iterations, the inference outputs can also differ across update iterations.
- the inference input does not include the context input 120 or the query input 110. That is, the inference neural network 140 only has access to the proper subset of the context input 120 that is included in the selection output and not the remaining natural language statements in the context input 120 or the query input 110.
- the system 100 processes a selection input that includes the context input 120 (as of the update iteration) and the query input 110 using the selection neural network 130 to generate a selection output for the update iteration that includes one or more of the natural language statements from the context input 120.
- These natural language statements can include statements that were included in the original context input obtained by the system 100, statements that were added to the context input at preceding update iterations, or both.
- the neural network 130 can be configured to generate a text sequence that includes placeholder references to natural language statements in the context input 120, e.g., generating a sentence, e.g., “sent 1. We know that sent 4,” where “sent 1” is a reference to the first sentence in the context input 120 and “sent 4” is a reference to the fourth sentence in the context input 120. The system 100 can then substitute in the actual sentences to generate the selection output.
- a text sequence that includes placeholder references to natural language statements in the context input 120, e.g., generating a sentence, e.g., “sent 1. We know that sent 4,” where “sent 1” is a reference to the first sentence in the context input 120 and “sent 4” is a reference to the fourth sentence in the context input 120.
- the system 100 can then substitute in the actual sentences to generate the selection output.
- each selection step includes multiple internal steps.
- the selection neural network 130 is used to add a new statement to the selection output for the selection step.
- the system 100 then processes an inference input that includes the selection output for the update iteration using the inference neural network 140 to generate an inference output that includes a natural language statement that represents a new fact for the update iteration.
- the system 100 then updates the context input 120 to include the natural language statement in the inference output for the update iteration.
- the system 100 can maintain a “beam” of multiple candidate reasoning traces.
- the system 100 can use a value neural network 180 to determine, after each (unfinalized) candidate in the beam has been updated to generate one or more updated candidates, which candidates should be kept in the beam and which should be discarded.
- the system 100 can also use the value neural network 180 to determine, after all of the candidates in the beam have been finalized or after a different termination criterion has been satisfied, which of the candidates to use to generate the final response to the query input.
- the system 100 can also provide, as output, trace data 160 that provides an interpretable, natural language summary of the causal reasoning performed by the system 100 to generate the response 150.
- trace data 160 provides an interpretable, natural language summary of the causal reasoning performed by the system 100 to generate the response 150.
- the system 100 alternates between two steps: 1) selection, which involves choosing a subset of relevant information sufficient to make a single step of inference; and 2) inference, which only sees the limited information provided to it by the selection output and uses it to infer a new intermediate piece of evidence on the way to producing the final answer, the system ensures that intermediate inference outputs (and, optionally, selection outputs) provide an interpretable reasoning trace to justify the final answer.
- the trace data can include selection outputs like “There is a person crossing the road,” and “we know that if someone is crossing the road it is not safe to drive” and the inference could be “Therefore, it is not safe to drive”.
- the trace data 160 can include intermediate inferences like: “therefore the car will end up in the lake” — > “lake means wet” — > “wet means short circuiting” — > “short circuiting means not safe” and the response 150 could be “we should not drive forward.”
- the selection neural network 130 can generally have any appropriate architecture that allows the neural network to be used to map a selection input to a proper subset of the context input 120.
- the inference neural network 140 can generally have any appropriate architecture that allows the neural network to be used to map an inference input to a new natural language statement.
- both the selection neural network 130 and the inference neural network 140 can be respective language model neural networks.
- a language model neural network is a neural network that has been trained so that, given a text prompt that includes a sequence of tokens in a natural language, the neural network can generate the next token in the sequence. This process can be repeated to extend the text prompt one token at a time to generate a natural language output, i.e., to generate the natural language output auto-regressively token by token.
- the language model neural network processes the current sequence to generate a probability distribution over a vocabulary of tokens.
- the next token can then be selected using the probability distribution, e.g., by sampling from the distribution using nucleus sampling or another sampling technique or by selecting the highest-probability token.
- the tokens in the vocabulary can include any of a variety of tokens, e.g., some combination of words, subwords, characters, punctuation and other symbols, and numbers.
- the language model neural network is trained on a corpus of text made up of tokens from the vocabulary (and optionally other tokens that can be mapped to a designated out-of-vocabulary token), to predict the next token in a sequence of tokens from the training data.
- large language model neural networks can perform tasks that they were not explicitly trained to perform. For example they can perform translation tasks (provided that the training corpus included words in different languages), arithmetic, and many other tasks.
- a language model neural network can be made to perform a particular task by providing a natural language description of the desired response as an input or “prompt”.
- the prompt may be a few-shot prompt where a few, e.g., 1 to 10, examples of a query and an example output are provided in the text prior to the actual query.
- a language model neural network may be “fine-tuned” to perform a particular task, by obtaining a pre-trained language model neural network trained on a large corpus of examples as previously described and then further training part of all of the language model neural network on a relatively small number of examples particular to the type of task that is to be performed.
- a trained language model neural network can perform control and diagnosis tasks of the type described.
- these may be included in the context information, e.g., in the prompt, and or as statements in the corpus of training data or in data used to fine tune the language model neural network.
- the ⁇ new fact> in each example in the prompt is an inferred fact that is generated (“inferred”) from the ⁇ fact>s in the example, and the ⁇ output of the Selection step> are the one or more facts in the selection output for the selection step formatted in the same way as the examples in the few shot prompt.
- each selection input and each inference output each include a respective few-shot prompt while, in others of these implementations, no few-shot prompt is included.
- the language model neural network is an autoregressive transformer neural network, where a transformer neural network is characterized by having a succession of self-attention neural network layers.
- a self-attention neural network layer has an attention layer input for each element of the input and is configured to apply an attention mechanism over the attention layer input to generate an attention layer output for each element of the input; there are many different attention mechanisms that may be used.
- the language model neural network can be a mixture-of-experts model.
- the halting neural network(s) 170 and the value neural network 180 can also be language model neural networks, e.g., having any of the forms described above.
- the one or more halting neural networks 170 and the value neural network 180 can be configured to generate an output of the type required by including, in the input to the neural network, a corresponding prompt, e.g. a few-shot prompt, or by virtue of being fine-tuned on a fine-tuning data set, or both.
- a corresponding prompt e.g. a few-shot prompt
- Some example prompts are given later.
- FIG. 1C shows a simplified example of a selection step and an inference step being performed when the system 100 is used to control a vehicle, e.g., an autonomous or semi- autonomous vehicle.
- a vehicle e.g., an autonomous or semi- autonomous vehicle.
- the query input 176 is “should the vehicle turn left?” and the context input 174 (as of the example selection step shown in FIG. 1C) is “there is a lake to the left, lakes are full of water, water can damage vehicles.”
- the system 100 uses the selection neural network 130 to process the selection input to generate a selection output 181 that states “lakes are full of water, and water can damage vehicles, therefore.”
- the system 100 then generates an inference input that includes a k-shot prompt (one of the examples 182 in the k-shot prompt is shown in FIG. 1C) and the selection output 181.
- the system 100 uses the inference neural network 140 to process the inference input to generate an inference output 186 that is a new inferred fact, i.e., that states “going in the lake can damage the vehicle.”
- the system 100 then adds 188 the new inferred fact to the context input 174 for use in the next selection step.
- FIG. ID shows an overview of the operation of the system at a given updating iteration.
- the system 100 receives a question and a context.
- the system also receives a set of natural language choices and the question indicates that the response should be to select one of the natural language choices.
- the system processes the question and the context as of the updating iteration using the selection neural network 130 to generate a selection output.
- the system then processes the selection output using the inference neural network 140 to generate an inference output.
- the system then processes a halting input generated from the inference output using a halting neural network 170 to determine whether termination criteria are satisfied.
- the system adds the new fact from inference output to the context.
- the system then generates a response to the query input by performing update iterations until a termination criterion is satisfied.
- the system performs steps 206-214.
- the system processes a selection input that includes the context input and the query input using a selection neural network to generate a selection output for the update iteration (step 206).
- the selection output includes one or more of the natural language statements from the context input.
- the system processes an inference input that includes the selection output for the update iteration using an inference neural network to generate an inference output for the update iteration (step 208).
- the inference output includes a natural language statement that represents a new fact for the update iteration.
- the system generates, based on the inference output for the update iteration and the query input, a first halting input (step 210).
- the first halting input will be described in more detail below.
- the system processes the first halting input using a first halting neural network to generate a first halting output that indicates whether the inference output contains information necessary to respond to the query input (step 212).
- the system determines whether the termination criterion is satisfied based on the first halting output (step 214).
- the system can determine that the termination criterion is satisfied when the halting output indicates that the inference output contains the information necessary to respond to the query input.
- the system can determine that the termination criterion is satisfied when a maximum number of update iterations have been performed. That is, the system determines that the termination criterion is satisfied when the halting output indicates that the inference output does not contain the information necessary to respond to the query input but a maximum number of update iterations have been performed. If the termination criterion is satisfied, the system sets the current updating iteration as the last updating iteration, i.e., does not perform any more updating iterations, and provides a response to the query input.
- the system can generate a natural language output that indicates that the query has not been answered, e.g., “no answer available” or “response not found” or “unknown.”
- the system generates the natural language output that is derived from the natural language statement in the inference output for the last update iteration by applying a predetermined rule to the natural language statement in the inference output.
- the system generates a second halting input from at least the inference output at the update iteration and processes the second halting input using a second halting neural network to generate a second halting output that identifies the natural language output derived from the natural language statement in the inference output for the last update iteration.
- the first halting text prompt can be of the form “Question: ⁇ question ⁇ Given ⁇ inference ⁇ . Do you know the answer?”
- “question” is the text of the query input
- ⁇ inference ⁇ is the natural language statement in the inference output.
- FIG. 3 shows an example 300 of making use of the halter neural network when the query input includes multiple choices.
- the system can maintain a “beam” of multiple candidate reasoning traces.
- the system can use a value neural network to determine, after each (unfinalized) candidate in the beam has been updated to generate one or more updated candidates, which candidates should be kept in the beam and which should be discarded.
- a candidate in the beam is considered to be finalized if the system has determined that a termination criterion is satisfied for the candidate, e.g., using the halting neural network as described above with reference to FIG. 2.
- the system can also use the value neural network to determine, after all of the candidates in the beam have been finalized or after a different termination criterion has been satisfied, which of the candidates to use to generate the final response to the query input.
- FIG. 4 is a flow diagram of an example process 400 for updating a beam of candidate responses to a query input.
- the process 400 will be described as being performed by a system of one or more computers located in one or more locations.
- a data generation system e.g., the selection-inference system 100 depicted in FIG. 1 A, appropriately programmed in accordance with this specification, can perform the process 400.
- the system obtains a context input (step 402).
- the context input includes context information that, in turn, includes one or more natural language statements that each represent a fact or a rule relating to an environment.
- the value neural network can be a language model neural network.
- the system can determine the score for a given candidate reasoning trace by determining the score, e.g., log likelihood, assigned to a predetermined natural language output that indicates that the candidate reasoning trace is valid by the value neural network by processing the candidate reasoning trace.
- the predetermined natural language output can be “correct” or “valid” or another such natural language statement.
- the value neural network is configured to process the candidate reasoning trace to generate a value output that specifies a probability distribution over a vocabulary of tokens, and the score for the candidate reasoning trace is based on a probability assigned by the probability distribution to a predetermined token from the vocabulary. That is, when the predetermined natural language output is represented by the single token, the score can be based only on the probability for the single token.
- the score can be based on the probability for the first token of the multiple tokens, e.g., so that the score is the log of the probability for the first token, or on the probability for the first token and subsequent probabilities for subsequent tokens in subsequent probability distributions generated by the value neural network, e.g., the log of the product of the first probability and the subsequent probabilities.
- the input to the value neural network can include a k-shot prompt that causes the value neural network to generate one of the predetermined natural language outputs by processing the reasoning trace.
- the value neural network can be a pre-trained language model that has been fine-tuned to cause the value neural network to accurately determine whether candidate reasoning traces are “correct.”
- the value neural network can have been trained on training examples that each include (i) a respective partial reasoning trace and (ii) a label indicating whether the partial reasoning trace was a valid reasoning trace included in a corresponding complete reasoning trace.
- the positive label that indicates that the partial reasoning trace is valid can be the predetermined natural language output.
- the system can then rank the candidate reasoning traces based on the respective scores and remove from the beam all candidate reasoning traces other than the predetermined number of highest-ranked candidate reasoning traces according to the ranking.
- the system continues performing beam steps until the last beam step is reached.
- the last beam step is one where each candidate reasoning trace that was not removed from the beam has been finalized, i.e., each candidate reasoning trace that remains in the beam after the ranking and removal has been performed is a finalized candidate reasoning trace.
- the system causes the selection-inference system to generate, for each candidate reasoning trace that was not removed from the beam and that is not finalized, a respective selection output for a new update iteration that follows a last update iteration in the candidate reasoning trace and a respective inference output for the new update iteration, e.g., as described above.
- the new selection and inference outputs can then be used to update the candidate reasoning traces to generate the candidate reasoning traces for the next beam step.
- 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 compute-intensive 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 machine learning framework e.g., a TensorFlow framework.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Evolutionary Computation (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Databases & Information Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Medical Informatics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202263402382P | 2022-08-30 | 2022-08-30 | |
| PCT/EP2023/073796 WO2024047108A1 (en) | 2022-08-30 | 2023-08-30 | Selection-inference neural network systems |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4537264A1 true EP4537264A1 (en) | 2025-04-16 |
Family
ID=87886706
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP23762486.1A Pending EP4537264A1 (en) | 2022-08-30 | 2023-08-30 | Selection-inference neural network systems |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4537264A1 (en) |
| CN (1) | CN119452374A (en) |
| WO (1) | WO2024047108A1 (en) |
-
2023
- 2023-08-30 EP EP23762486.1A patent/EP4537264A1/en active Pending
- 2023-08-30 WO PCT/EP2023/073796 patent/WO2024047108A1/en not_active Ceased
- 2023-08-30 CN CN202380052860.7A patent/CN119452374A/en active Pending
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024047108A1 (en) | 2024-03-07 |
| CN119452374A (en) | 2025-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12450464B2 (en) | Guided dialogue using language generation neural networks and search | |
| US12572803B2 (en) | Multi-agent reinforcement learning with matchmaking policies | |
| US20240370707A1 (en) | Distributional reinforcement learning | |
| US20220036186A1 (en) | Accelerated deep reinforcement learning of agent control policies | |
| EP3696737A1 (en) | Training action selection neural networks | |
| US12505346B2 (en) | Autoregressively generating sequences of data elements defining actions to be performed by an agent | |
| US20230041501A1 (en) | Policy neural network training using a privileged expert policy | |
| US11477243B2 (en) | Off-policy control policy evaluation | |
| AU2023267975B2 (en) | Selection-inference neural network systems | |
| US20230365146A1 (en) | Selection-inference neural network systems | |
| EP4537264A1 (en) | Selection-inference neural network systems | |
| US12547890B2 (en) | Autoregressively generating sequences of data elements defining actions to be performed by an agent | |
| US20240386250A1 (en) | Verification of agent output through adversarial debate | |
| US20230093451A1 (en) | State-dependent action space quantization | |
| US20260127431A1 (en) | Autoregressively generating sequences of data elements defining actions to be performed by an agent |
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: 20250110 |
|
| 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) | ||
| RAP1 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: GDM HOLDING LLC |