Reinforced learning with information retrieval feedback

By using machine learning's reward model to generate quality indicators in reinforcement learning to update the agent model, the problems of training inconsistency and high cost in the existing technology are solved, more efficient model training and performance improvement are achieved, and the environment is reduced Influence.

CN118607671APending Publication Date: 2024-09-06GOOGLE LLC

Patent Information

Application Number
CN202410900461.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-07-07
Filing Date
2024-07-05
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing techniques rely on human feedback and manual elicitation in reinforcement learning, resulting in inconsistent and high training costs, and making it difficult to effectively utilize reference data sources to improve model performance.

Method used

Reward models using machine learning generate quality indicators through training that are used to update agent models, reduce reliance on human feedback, and leverage reference data sources to improve model performance.

Benefits of technology

It achieves more energy-saving training operations and model updates, reduces training costs and time, improves model performance and consistency, and reduces environmental pollution and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607671A
    Figure CN118607671A
Patent Text Reader

Abstract

The invention relates to reinforcement learning with information retrieval feedback. There is provided a computer-implemented method for generating an example of a feedback signal for training a machine-learned agent model, including obtaining an output of the machine-learned agent model, the output including a next state feature generated by the machine-learned agent model based on a sequence of previous states. The example method may include processing the output and the sequence of previous states using a machine-learned reward model to generate a quality indicator in view of the previous state, the quality indicator indicating a quality of the next state feature. The machine-learned reward model may be trained by retrieving reference data from a reference data source and calculating one or more quality indicators in view of respective training inputs and outputs and the reference data. The example method may include outputting the quality indicator to a model trainer for updating the machine-learned agent model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to machine learning. More specifically, the present disclosure relates to implementing machine learning models to control external tools or services. Background Art

[0002] A computer can execute instructions to generate an output given some input according to a parameterized model. The computer can use an evaluation metric to assess its performance in generating output using the model. The computer can update the parameters of the model based on the evaluation metric to improve its performance. In this way, the computer can iteratively "learn" to generate a desired output. The resulting model is often referred to as a machine learning model. Summary of the invention

[0003] Aspects and advantages of embodiments of the present disclosure will be set forth in part in the following description, or may be learned from the description, or may be learned through practice of the embodiments.

[0004] In one example aspect, the present disclosure provides an example computer-implemented method for generating a feedback signal for training a machine-learned agent model. The example method may include obtaining, by a computing system having one or more processors, an output of the machine-learned agent model. In the example method, the output may include a next-state feature generated by the machine-learned agent model based on a sequence of previous states. The example method may include processing, by a computing system and using a machine-learned reward model, the sequence of outputs and previous states to generate a quality indicator in view of the previous state, the quality indicator indicating the quality of the next-state feature. In the example method, the machine-learned reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and calculating one or more quality indicators in view of the corresponding training inputs, one or more corresponding training outputs, and the reference data. The example method may include outputting, by the computing system, the quality indicator to a model trainer for updating the machine-learned agent model based on the quality indicator.

[0005] In one example aspect, the present disclosure provides an example computing system having: one or more processors; and one or more non-transitory computer-readable media storing instructions, the instructions being executable by the one or more processors to cause the computing system to perform operations. In the example computing system, the operations may include: obtaining an output of a machine-learned agent model. In the example computing system, the output may include a next-state feature generated by the machine-learned agent model based on a sequence of previous states. In the example computing system, the operations may include: processing the sequence of outputs and previous states using a machine-learned reward model to generate a quality indicator in view of the previous state, the quality indicator indicating the quality of the next-state feature. In the example computing system, the machine-learned reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and calculating one or more quality indicators in view of the corresponding training inputs, one or more corresponding training outputs, and the reference data. In the example computing system, the operations may include: outputting the quality indicator to a model trainer for updating the machine-learned agent model based on the quality indicator.

[0006] In one example aspect, the present disclosure provides one or more example non-transitory computer-readable media storing instructions that can be executed by one or more processors to cause a computing system to perform operations. In the example non-transitory computer-readable medium, the operation may include: obtaining an output of a machine-learned agent model. In the example non-transitory computer-readable medium, the output may include a next-state feature generated by the machine-learned agent model based on a sequence of previous states. In the example non-transitory computer-readable medium, the operation may include: processing the sequence of outputs and previous states using a machine-learned reward model to generate a quality indicator in view of the previous state, the quality indicator indicating the quality of the next-state feature. In the example non-transitory computer-readable medium, the machine-learned reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and calculating one or more quality indicators in view of the corresponding training inputs, one or more corresponding training outputs, and the reference data. In the example non-transitory computer-readable medium, the operation may include: outputting the quality indicator to a model trainer for updating the machine-learned agent model based on the quality indicator.

[0007] Other aspects of the disclosure relate to various systems, apparatuses, non-transitory computer-readable media, user interfaces, and electronic devices.

[0008] These and other features, aspects and advantages of various embodiments of the present disclosure will be better understood with reference to the following description and appended claims.The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate example embodiments of the present disclosure and, together with the description, serve to describe the relevant principles. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] A detailed discussion of the embodiments for those skilled in the art is set forth in this specification with reference to the accompanying drawings, in which: Figure 1A is a block diagram of an example system for implementing an agent model for machine learning according to example aspects of some embodiments of the present disclosure; Figure 1B is a block diagram of an example system for training an agent model for machine learning according to example aspects of some embodiments of the present disclosure; Figure 2 is a block diagram of an example system for implementing and training a machine learning agent model according to example aspects of some embodiments of the present disclosure; Figure 3 is a block diagram of an example system for implementing a reward model for machine learning according to example aspects of some embodiments of the present disclosure; Figure 4 is a block diagram of an example system for training a reward model for machine learning according to example aspects of some embodiments of the present disclosure; Figure 5A is a block diagram of an example computing system for implementing techniques according to example aspects of some embodiments of the present disclosure; Figure 5B is a block diagram of an example computing device for implementing techniques according to example aspects of some embodiments of the present disclosure; Figure 5C is a block diagram of an example computing device for implementing techniques according to example aspects of some embodiments of the present disclosure; Figure 6 is a flowchart of an example method for implementing techniques according to example aspects of some embodiments of the present disclosure; Figure 7 is a flowchart of an example method for implementing techniques according to example aspects of some embodiments of the present disclosure; and Figure 8 is a flow chart of an example method for implementing techniques according to example aspects of some embodiments of the present disclosure.

[0010] Reference numerals repeated across multiple drawings are intended to identify like features in the various implementations. DETAILED DESCRIPTION Overview

[0011] The example technologies disclosed herein generally relate to reinforcement learning techniques for training machine-learned models. For example, an example implementation provides a machine-learned reward model that calculates a quality indicator, which can be a feedback signal for training a machine-learned agent model in a reinforcement learning environment. The reward model itself can be trained using a machine-learned supervisor model that generates a reference quality indicator, and the quality indicator from the reward model can be compared to the reference quality indicator. Compared to the reward model, the supervisor model can use access to a reference data source to improve the accuracy of the reference quality signal. In this way, for example, such world knowledge can be extracted into the reward model. Therefore, the example implementation can reduce or eliminate the use of human feedback for reinforcement learning, the use of manual inspiration for feedback, etc., which can improve consistency and reduce training time and cost.

[0012] For example, a machine learning agent model may process an input sequence (an example agent model may include a sequence-to-sequence model, such as a large language model). For example, the input sequence may include a user query. The input sequence may include a system context. The agent model may process the input sequence to generate an output. The output may be the next step to be performed to satisfy the user query. The next step may include answering the question, manipulating the input, generating inferences about the query, etc.

[0013] These steps can be associated with the state of the system. The state sequence can track the steps taken by the model to serve the query by recording the input / output history of the agent model (e.g., for a specific session). The state sequence can include the system context associated with the input or output.

[0014] The next step may include using a tool external to the agent model to perform an action. For example, the action may be a search action, and the tool may be a search engine. The tool may return results. The action and results may be added to the input sequence for further processing by the agent model. For example, the agent model may process the updated input sequence to determine whether the user query has been satisfied (e.g., the requested information has been obtained, etc.), such as by outputting a completion token.

[0015] The agent model can be fine-tuned for various tasks. To further improve the performance of the agent model, example implementations of the present disclosure provide additional feedback signals for further training (e.g., in a reinforcement learning context). For example, a reward model can examine the output of the agent model to evaluate whether the output is a high-quality follow-up step based on the input sequence. For example, the reward model can determine whether the output is advancing the goal set by the user query, such as whether the output action will obtain useful information or accurately close the sequence (e.g., with a completion token) when the query is indeed satisfied.

[0016] The feedback signal can be discrete or continuous. The feedback signal can include natural language feedback, numerical feedback, categorized feedback, etc. The feedback signal can be routed to the training pipeline for training the intelligent agent model.

[0017] Advantageously, the reward model can directly or indirectly utilize a real reference data source when evaluating the output of the agent model. In a direct implementation, the reward model itself can be trained to retrieve content directly from the reference data source (e.g., using a tool) to inform the generation of its quality signal. In an indirect implementation, the reward model can be trained using training data generated based on the reference data source. For example, a supervisor model (alone or supplemented by a human labeler) can reference the reference data source to retrieve relevant reference data and evaluate the output of the agent model, and give a reference quality indicator, and the quality indicator from the reward model can be compared with the reference quality indicator. This comparison can facilitate the training of the reward model by updating one or more parameters of the reward model to increase the likelihood that the reward model will give a quality signal that aligns with the supervisor model. In this way, for example, extended world knowledge and additional skills for identifying and rewarding good problem-solving techniques can be extracted into the reward model.

[0018] The example technology of the present disclosure can provide many technical effects and benefits. The technical effect of the example implementation of the present disclosure is a more energy-efficient training operation or model update. For example, compared with exposing and presenting inputs and outputs for human review, using a machine-learned reward model to provide feedback signals for training an agent model can provide lower-cost training. In addition, using the machine-learned reward model of the present disclosure to provide feedback signals for training an agent model can provide more sample-efficient training by using a reference data source to train (or execute) the machine-learned reward model to more efficiently generate feedback signals, so that the training of the agent model can approach or approach the desired performance more quickly within a set of smaller training cycles. In this way, for example, the technology of the present disclosure can provide a given level of functionality obtained in fewer training iterations, thereby spending a smaller energy budget to meet a given performance goal. In some scenarios, the training technology of the present disclosure can provide an extended level of functionality obtained in a given number of training iterations, thereby more efficiently using a given energy budget to achieve better results than previously possible results.

[0019] In this way, for example, the improved energy efficiency of example implementations of the present disclosure can effectively reduce the amount of pollution or other waste associated with models and systems that implement machine learning, thereby advancing the field of machine learning and artificial intelligence as a whole. The amount of pollution can be reduced overall (e.g., its absolute amount) or on a normalized basis (e.g., energy per task, per model size, etc.). For example, the amount of CO2 emissions associated with training and execution of machine learning models can be reduced by implementing more energy-efficient training or inference operations (e.g., by power sources). The amount of thermal pollution in the environment can be reduced by implementing more energy-efficient training or inference operations (e.g., by processors / storage locations).

[0020] The technical effect of the example implementations of the present disclosure is to provide finer-grained control and separation of runtime data processed by and output from the agent model. For example, the rich context available to the supervisor model can be used to train a powerful reward model that can operate independently of the supervisor model and its implementation system. Therefore, the reward model can be hosted on the same or different systems. For example, the reward model can be a compact, lightweight model that extracts relevant performance attributes of the supervisor model (at least compared to the supervisor model). This can enable the reward model to be deployed locally with the agent model, thereby limiting the opportunity for data transmission across networks, entities, etc., thereby improving data security and privacy, as well as reducing network transmissions and freeing up network bandwidth for other tasks.

[0021] Reference is now made to the drawings, which provide example arrangements of computing systems, model structures, and data flows for purposes of illustration only.

[0022] Figure 1A An example system for implementing a machine learning agent model according to aspects of the present disclosure is shown. Input 102 may include data including data describing a query or task to be performed. Machine learning agent model 110 may process input 102 to generate output 112.

[0023] Figure 1B An example system for training an agent model 110 is shown. A machine-learned reward model 130 can evaluate the quality of an output 112 in view of an input sequence 102. The reward model 130 can output a quality indicator to a model trainer 140, which can train the agent model 110 based on the quality signal. The reward model 130 can be trained using a per-query reference data source 150 to help the reward model 130 learn to distinguish high-quality outputs from lower-quality outputs. The training data flow is shown with dashed lines. (For example, Figure 1A The runtime / inference implementation of the agent model 110 may include or omit the training data flow.

[0024] The input 102 may include various data types. The input 102 may include image data. The agent model 110 may process the image data to generate an output 112. As an example, the agent model 110 may process the image data to generate an image recognition output 112 (e.g., recognition of the image data, potential embedding of the image data, encoded representation of the image data, hashing of the image data, etc.). As another example, the agent model 110 may process the image data to generate an image segmentation output 112. As another example, the agent model 110 may process the image data to generate an image classification output 112. As another example, the agent model 110 may process the image data to generate an image data modification output 112 (e.g., a change of the image data, etc.). As another example, the agent model 110 may process the image data to generate an encoded image data output 112 (e.g., an encoded and / or compressed representation of the image data, etc.). As another example, the agent model 110 may process the image data to generate an enlarged image data output 112. As another example, the agent model 110 may process the image data to generate a prediction output 112.

[0025] In some implementations, the input 102 may include text or natural language data. The agent model 110 may process the text or natural language data to generate an output 112. As an example, the agent model 110 may process the natural language data to generate a language encoding output 112. As another example, the agent model 110 may process the text or natural language data to generate a potential text embedding output 112. As another example, the agent model 110 may process the text or natural language data to generate a conversion output 112. As another example, the agent model 110 may process the text or natural language data to generate a classification output 112. As another example, the agent model 110 may process the text or natural language data to generate a text segmentation output 112. As another example, the agent model 110 may process the text or natural language data to generate a semantic intent output 112. As another example, the agent model 110 may process the text or natural language data to generate an amplified text or natural language output 112 (e.g., text or natural language data of higher quality than the input text or natural language, etc.). As another example, the agent model 110 may process text or natural language data to generate the predicted output 112 .

[0026] The input 102 may include speech data. The agent model 110 may process the speech data to generate an output 112. As an example, the agent model 110 may process the speech data to generate a speech recognition output 112. As another example, the agent model 110 may process the speech data to generate a speech conversion output 112. As another example, the agent model 110 may process the speech data to generate a potential embedding output 112. As another example, the agent model 110 may process the speech data to generate an encoded speech output 112 (e.g., an encoded and / or compressed representation of the speech data, etc.). As another example, the agent model 110 may process the speech data to generate an amplified speech output 112 (e.g., speech data of higher quality than the input speech data, etc.). As another example, the agent model 110 may process the speech data to generate a text representation output 112 (e.g., a text representation of the input speech data, etc.). As another example, the agent model 110 may process the speech data to generate a predicted output 112.

[0027] The input 102 may include latent coded data (e.g., a latent space representation of the input, etc.). The agent model 110 may process the latent coded data to generate an output 112. As an example, the agent model 110 may process the latent coded data to generate a recognition output 112. As another example, the agent model 110 may process the latent coded data to generate a reconstruction output 112. As another example, the agent model 110 may process the latent coded data to generate a search output 112. As another example, the agent model 110 may process the latent coded data to generate a re-clustering output 112. As another example, the agent model 110 may process the latent coded data to generate a prediction output 112.

[0028] The input 102 may include statistical data. The statistical data may be, represent, or otherwise include data calculated and / or computed from some other data source. The agent model 110 may process the statistical data to generate an output 112. As an example, the agent model 110 may process the statistical data to generate a recognition output 112. As another example, the agent model 110 may process the statistical data to generate a prediction output 112. As another example, the agent model 110 may process the statistical data to generate a classification output 112. As another example, the agent model 110 may process the statistical data to generate a segmentation output 112. As another example, the agent model 110 may process the statistical data to generate a visualization output 112. As another example, the agent model 110 may process the statistical data to generate a diagnosis output 112.

[0029] The input 102 may include sensor data. The agent model 110 may process the sensor data to generate an output 112. As an example, the agent model 110 may process the sensor data to generate a recognition output 112. As another example, the agent model 110 may process the sensor data to generate a prediction output 112. As another example, the agent model 110 may process the sensor data to generate a classification output 112. As another example, the agent model 110 may process the sensor data to generate a segmentation output 112. As another example, the agent model 110 may process the sensor data to generate a visualization output 112. As another example, the agent model 110 may process the sensor data to generate a diagnosis output 112. As another example, the agent model 110 may process the sensor data to generate a detection output 112.

[0030] In some cases, the agent model 110 may be configured to perform a task that includes encoding input data for reliable and / or efficient transmission or storage (and / or corresponding decoding). For example, the task may be an audio compression task. The input 102 may include audio data, and the output 112 may include compressed audio data. In another example, the input includes visual data (e.g., one or more images or videos), the output 112 includes compressed visual data, and the task is a visual data compression task. In another example, the task may include generating an embedding for the input data (e.g., input audio or visual data).

[0031] In some cases, the input 102 includes visual data, and the task is a computer vision task. In some cases, the input includes pixel data of one or more images, and the task is an image processing task. For example, the image processing task may be image classification, where the output 112 is a set of scores, each score corresponding to a different object class and representing the possibility that one or more images depict an object belonging to an object class. The image processing task may be object detection, where the image processing output 112 identifies one or more regions in one or more images, and for each region, identifies the possibility that the region depicts an object of interest. As another example, the image processing task may be image segmentation, where the image processing output 112 defines the corresponding possibility of each category in a set of predetermined categories for each pixel in one or more images. For example, a set of categories may be foreground and background. As another example, a set of categories may be object classes. As another example, the image processing task may be depth estimation, where the image processing output 112 defines a corresponding depth value for each pixel in one or more images. As another example, the image processing task may be motion estimation, where the network input includes multiple images, and the image processing output 112 defines the motion of the scene depicted at the pixel between the images in the network input for each pixel of one of the input images.

[0032] In some cases, the input 102 includes audio data representing a spoken utterance, and the task is a speech recognition task. The output 112 may include a text output 112 mapped to the spoken utterance. In some cases, the task includes encrypting or decrypting the input data. In some cases, the task includes a microprocessor performance task, such as branch prediction or memory address translation.

[0033] The input 102 may be obtained from a variety of sources. The input 102 may be obtained from one or more computing systems, which may be the same or different than the computing system implementing the agent model 110. The input 102 may be received over a network connection via an application programming interface (API). For example, the agent model 110 may be hosted as a managed or unmanaged machine learning model service in the cloud for providing machine learning output to a client system (e.g., a lightweight endpoint) over a network connection.

[0034] The agent model 110 may be or include a variety of different types of machine learning models. The agent model 110 may include a sequence-to-sequence machine learning model. The agent model 110 may include a transformer model architecture. The agent model 110 may include a large language model. The agent model 110 may be configured to follow instructions or commands provided to the agent model 110 in the input 102 or to otherwise service queries. The agent model 110 may include a variety of other model architectures, such as RNN, CNN, LSTM, and other model structures.

[0035] The agent model 110 may be pre-trained on a large amount of training data. For example, pre-training may include unsupervised training tasks performed on a large amount of different training data. The agent model 110 may be aligned with one or more tasks. Alignment may include fine-tuning the agent model 110 to improve performance on one or more tasks. Alignment may include reinforcement learning based on in-situ (or ex-situ) feedback signals.

[0036] The reward model 130 may process the output 112 in view of the input 102 to generate a feedback signal indicating the quality of the output 112. For example, the reward model 130 may generate a quality indicator. The quality indicator may include a value associated with a quality assessment. The value may correspond to a qualitative or quantitative assessment of the quality. The quality indicator may be a binary flag for an acceptable output. The quality indicator may be a numerical score associated with a quality scale. For example, the numerical score may include a log-likelihood of the goodness of the output. The quality indicator may be a language-based quality descriptor (e.g., "satisfactory," "unsatisfactory").

[0037] The reward model 130 may be or include a model of various different types of machine learning. The reward model 130 may include a model of sequence-to-sequence machine learning. The reward model 130 may include a transformer model architecture. The reward model 130 may include a large language model. The reward model 130 may be configured to follow instructions or commands provided to the reward model 130 or service queries in other ways. The reward model 130 may include various other model architectures, such as model structures such as RNN, CNN, LSTM, etc. The reward model 130 may be the same as or different from the agent model 110. The reward model 130 may be smaller than the agent model 110.

[0038] The reward model 130 may be pre-trained on a large amount of training data. For example, pre-training may include an unsupervised training task performed on a large amount of different training data. The reward model 130 may be aligned to one or more tasks. Alignment may include fine-tuning the reward model 130 to improve performance on one or more tasks.

[0039] The model trainer 140 may receive feedback signals from the reward model 130 and initiate updates to the agent model 110. The model trainer 140 may calculate updates to one or more parameters of the agent model 110 based on the feedback signals from the reward model 130. The model trainer 140 may generate updates to the agent model 110 based on additional feedback signals. Other feedback signals, such as heuristics or other quality metrics (e.g., not generated by the reward model 130), may be determined based on the output 112.

[0040] The model trainer 140 can implement various reinforcement learning algorithms. In general, the model trainer 140 can update the agent model 110 to optimize the expected reward, such as the expected reward averaged over possible outputs. A simple policy gradient can be used. Various other algorithms can be used, such as REINFORCE, TPRO, PPO, etc.

[0041] Advantageously, the reward model 130 may directly or indirectly utilize the per-query reference data source 150 when evaluating the output 112 of the agent model 110. For example, the evaluation of the output 112 of the agent model 110 may be informed by an external information source. For example, in a question-answering context, the reward model 130 may determine whether the provided output 112 completely or accurately answers the input question. The external source may inform this determination. Similarly, the external source may inform quality determinations regarding other tasks such as image processing tasks (e.g., such as retrieving known attributes of detected objects), language processing tasks (e.g., such as retrieving known definitions from a dictionary), data analysis tasks (e.g., such as retrieving data from the latest data source published), etc.

[0042] The per-query reference data source 150 may reference data retrieved from a reference data source based on the content of a given query. For example, the per-query reference data source 150 may include documents or other data retrieved from a search of a database or online resource. For example, a search may be performed to obtain search results. The search results may be summarized and returned as a per-query reference data source 150. For example, a machine-learned natural language processing model may summarize the content retrieved from the reference data source. Other types of content may be returned (e.g., in addition to or in lieu of natural language data). The machine-learned model may compress, abbreviate, or embed such content into a format that can be processed by one or more models (e.g., the reward model 130, another model used to train the reward model 130, etc.).

[0043] In addition to or in lieu of being used in training the agent model 110, the quality indicator may also be used to guide the selection of outputs from the agent model 110. For example, a plurality of outputs 112 may be sampled from the agent model 110. The reward model 130 may output a quality indicator for each sampled output. A preferred output may be selected from the sampled outputs based on the quality indicator associated with the preferred output. For example, the quality indicator may be used to rank the plurality of outputs sampled from the agent model 110. The system may then return the highest ranked output as the output 112.

[0044] Figure 2 An example implementation is shown in which the reward model 130 may process data from a per-query reference data source 150. In some straightforward implementations, the reward model 130 itself may be trained to retrieve content directly from the reference data source (e.g., using an external data tool) to inform its generation of a quality signal. For example, the reward model 130 may receive a number of inputs (including input 102), output 112, and data from source 150, and output a quality indicator 232.

[0045] For example, a set of instructions to the reward model 130 may include the following structured inputs: Input: <Input 102> Output: <output 112> Context: <Data from reference data source 150 per query>

[0046] The set of instructions may include a command to output a quality indicator 232. The command may be implicit. For example, the reward model 130 may be trained to output a quality indicator 232 for any input. The command may be a natural language command, question, or instruction, such as, “Is Output a satisfactory response to Input in view of Context?”

[0047] Figure 3 Example implementations are shown in which the reward model 130 may encode or extract knowledge from a per-query reference data source 150. For example, in some indirect implementations, the reward model 130 may be trained using training data dynamically generated using the reference data source 150 on a per-query basis.

[0048] For example, the supervisor model 330 may process the input 102 and the output 112 in view of each query to the reference data source 150 to generate a reference quality indicator 332, which may be used by the reward model trainer 340 to update the reward model 130 (e.g., by comparing the reference quality indicator 332 to the quality indicator 232). This may facilitate the training of the reward model 130 by updating one or more parameters of the reward model 130 to increase the likelihood that the reward model 130 will give a quality signal that is aligned with the supervisor model 330, even if the reward model 130 is not provided with access to the reference data source 150 at runtime. In this way, for example, expanded world knowledge and additional skills for more generally identifying and rewarding good problem solving or task completion techniques may be extracted into the reward model 130.

[0049] The supervisor model 330 may be or include a variety of different types of machine learning models. The supervisor model 330 may include a sequence-to-sequence machine learning model. The supervisor model 330 may include a transformer model architecture. The supervisor model 330 may include a large language model. The supervisor model 330 may be configured to follow instructions or commands provided to the supervisor model 330 or service queries in other ways. The supervisor model 330 may include various other model architectures, such as RNN, CNN, LSTM and other model structures. The supervisor model 330 may be the same or different from the agent model 110 or the reward model 130. The supervisor model 330 may be larger than the reward model 130.

[0050] The supervisor model 330 may be pre-trained on a large amount of training data. For example, pre-training may include an unsupervised training task performed on a large amount of different training data. The supervisor model 330 may be aligned with one or more tasks (e.g., reward generation or quality indicator generation tasks). Alignment may include fine-tuning the supervisor model 330 to improve performance on one or more tasks.

[0051] The supervisor model 330 may be configured to make the same quality determinations as the reward model 130, except with the benefit of more information. For example, the reward model 130 may be configured to output a quality value (e.g., prediction, regression, etc.) that indicates quality. The supervisor model 330 may be configured to output a corresponding reference quality value. The reward model trainer 340 may compare the quality value and the corresponding reference quality value to determine a loss (e.g., based on the difference between the quality value and the corresponding reference quality value). The loss may be back-propagated through the reward model 130, or otherwise used to determine one or more updates to the parameters of the reward model 130.

[0052] For example, supervisor model 330 may generate reference quality indicator 332 based on instructions that may have the following format: Input: <Input 102> Output: <output 112> Context: <Data from reference data source 150 per query>

[0053] A set of instructions may include a command to output a reference quality indicator 332. The command may be implicit. For example, the supervisor model 330 may be trained to output a reference quality indicator 332 for any input. The command may be a natural language command, question, or instruction.

[0054] The supervisor model 330 may be configured to make different quality determinations than the reward model 130. For example, the reward model 130 may be configured to output a binary flag indicating whether the output appears to meet a quality threshold. The supervisor model 330 may be configured to compare different outputs to determine a preferred output. This diversity of tasks may improve the robustness of the reward model 130 by introducing different inductive paths into the training pipeline. This diversity may provide both positive instructions (e.g., examples of preferred outputs that should receive more positive rewards) and negative instructions (e.g., examples of undesirable outputs that should receive less positive rewards).

[0055] For example, the reward model 130 can generate a plurality of quality indicators 232 that respectively correspond to the plurality of outputs 112. The supervisor model 330 can retrieve contextual data from the per-query reference data source 150 based on the input 102 (e.g., an input query). The supervisor model 330 can compare how well the outputs 112 advance the goals of the inputs 102. The supervisor model 330 can output a reference quality indicator 332 that includes a preference label across the outputs 112.

[0056] For example, the reference quality indicators 332 may include a one-hot vector identifying a preferred output from the outputs 112. The quality indicators 232 may be compiled into logits (e.g., N-dimensional logits of N quality indicators 232) that may be compared to the one-hot vector from the reference quality indicators 332. For example, a cross entropy loss may be calculated between the one-hot vector and the logits.

[0057] The reference quality indicator 332 may include a ranking of the outputs 112 , which may be used to train the reward model 130 to favor higher ranked outputs over lower ranked outputs.

[0058] For example, supervisor model 330 may generate reference quality indicator 332 based on instructions that may have the following format: Input: <Input 102> Output: <output 112> Context: <Data from reference data source 150 per query> Task: Indicates the preferred output among the outputs.

[0059] For example, for a language model-based supervisor model 330, an example input prompt may be as follows: <prompt> References) Alexander Graham Bell is widely credited with inventing thetelephone. He was awarded the first US patent for an "improvement intelegraphy" in 1876, which described the process of transmitting vocal ormusical sounds telegraphically. However, several inventors such as ElishaGray and Antonio Meucci had also developed similar devices and madesubstantial contributions to the invention of the telephone. It is importantto note that the telephone as we know it today is the result of thecollective efforts and innovations of multiple inventors and not just thework of one individual… Question) Who invented telephone? Answer-A) [Alexander Graham Bell got the idea for the telephone whileworking on a device to help the deaf hear.] Answer-B) [Alexander Graham Bell is the most famous inventor of thetelephone, but the development of the telephone was the culmination of workdone by many individuals including Antonio Meucci, Elisha Gray, and ThomasEdison.] Given the above references, which among Answer A or B better answerQuestion? Just answer A or B. <LLM output> Answer-B

[0060] The answers from the supervisor model 330 may be converted into a format that can be used by the reward model trainer 340. For example, the answers may be converted into a one-hot vector indicating the selected answer.

[0061] Figure 4 An example implementation of the reward model 130 in an iterative processing flow is shown. The input 102 may include a sequence of state features 404-1, 404-2, ..., etc. The agent model 110 may process the input 102 to output an action feature 412. The action feature 412 may specify an action to be performed by a tool 420 to generate a result feature 422. In future iterations, the system may build on the input 102 to add the action feature 412 and the result feature 422 to obtain an updated input 402. The loop may be repeated until a stopping criterion is met. For example, the stopping criterion may include the output of an action feature that includes a completed word element that signals that the goal of the input 102 is met.

[0062] An example state space representation may be expressed as S0 = [w1, ...] = Task Hint + User Query; S1 = [w1, ...] = S0 + [Action 0 + Result 0]; ... etc., where w indicates an input feature.

[0063] An example action signature 412 indicating an action may include a sequence of {soa}[ActionFunction]{eoa}, where {sas} is the beginning of the action token and {eas} is the end of the action token, and [ActionFunction] may be a function call to a tool.

[0064] An action function may include essentially any tool call to tool 420. Several example action functions are described here. An example action function may be represented as Thought (text), which can generate internal reasoning for the agent model to be processed in future iterations. An example action function may be represented as Search (text), which can pass text to a search engine or other data source. The search can be configured to summarize the content of the first N found links and return a summary list. An example action function may be represented as Lookup (text, keywords), which can pass text to a search engine or other data source, and apply keyword parsing to the results to return content that matches the keyword search (e.g., find the first paragraph with keywords from the first N found links and return the link of the paragraph, etc.). An example action function may be represented as Calculator (text), which can receive an algebraic problem as text and return the solution to the problem. An example action function may be represented as Finish (text), which can return text as the final result in sequence to satisfy the initial user query.

[0065] Result features 422 may include substantially any output of tool 420. This may be referred to as an "observation," such as an "observation" of the external world external to agent model 110.

[0066] A series of example states are as follows: <Task Prompt> You can execute actions from this list: Thought[sentences], Search[sentence], Lookup[keyword], Finish[sentence]. Refer to these examples and write similarly formatted texts following the question at the end. Example 1) Question) Which magazine was started first Arthur's Magazine or First for Women? Thought 1) I need to search Arthur's Magazine and First for Women,and find which was started first. Action 1) Search[Arthur’s Magazine] Observation 1) Arthur’s Magazine (1844-1846) was an American literaryperiodical published in Philadelphia … Thought 2) Arthur’s Magazine was started in 1844. I need to searchFirst for Women next. Action 2) Search[First for Women] Observation 2) First for Women is a woman’s magazine published byBauer Media Group … was started in 1989… Thought 3) First for Women was started in 1989. 1844 (Arthur’sMagazine) < 1989 (First for Women), so Arthur’s Magazine was started first. Action 3) Finish[Arthur’s Magazine] … <User Query> Question) Who invented telephone ? <Actions & Observations> Thought 1) I need to find out who invented the telephone. Action 1) Search[Who invented telephone] Observation 1) Alexander Graham Bell is credited with inventing thetelephone in 1876. Thought 2) Alexander Graham Bell invented the telephone in 1876. Action 2) Search[Alexander Graham Bell] Observation 2) Alexander Graham Bell was a Scottish-born scientist, inventor, engineer, and innovator who is credited with inventing the first practical telephone. He was born in 1847 in Edinburgh, Scotland, and died in 1922 in Baddeck, Nova Scotia, Canada. Thought 3) Alexander Graham Bell was a Scottish-born scientist,inventor, engineer, and innovator who is credited with inventing the first practical telephone. Action 3) Finish[Alexander Graham Bell]

[0067] The training data stream (dashed line) may exist in whole or in part in one or more iterations. Runtime / inference implementations may include or omit the training data stream. The reward model 130 may generate a quality indicator based on the action features 412 and the input 102. The quality indicator may be used to update the agent model 110 in real time or with time shifting (e.g., batch processing when demand is low).

[0068] The quality indicator may be used to guide the selection of outputs from the agent model 110. For example, the quality indicator may be used to rank multiple outputs sampled from the agent model 110. The system may then return the highest ranked output as the output 112 / 412.

[0069] Example Apparatus and Systems

[0070] Figure 5A A block diagram of an example computing system 1 that may perform according to example embodiments of the present disclosure is depicted. System 1 includes a computing device 2, a server computing system 30, and a training computing system 50 that are communicatively coupled via a network 70.

[0071] The computing device 2 may be any type of computing device, such as, for example, a personal computing device (e.g., a laptop or desktop computer), a mobile computing device (e.g., a smartphone or tablet), a game console or controller, a wearable computing device, an embedded computing device, or any other type of computing device. In some embodiments, the computing device 2 may be a client computing device. The computing device 2 may include one or more processors 12 and a memory 14. The one or more processors 12 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and may be one processor or a plurality of processors operably connected. The memory 14 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc., and combinations thereof. The memory 14 may store data 16 and instructions 18, which are executed by the processor 12 to cause the user computing device 2 to perform operations (e.g., perform operations to implement input data structures and self-consistent output sampling according to example embodiments of the present disclosure, etc.).

[0072] In some implementations, the user computing device 2 may store or include one or more machine learning models 20. For example, the machine learning model 20 may be or may otherwise include various machine learning models, such as a neural network (e.g., a deep neural network) or other types of machine learning models, including nonlinear models or linear models. The neural network may include a feedforward neural network, a recurrent neural network (e.g., a long short-term memory recurrent neural network), a convolutional neural network, or other forms of neural networks. Some example machine learning models may utilize attention mechanisms, such as self-attention. For example, some example machine learning models may include a multi-head self-attention model (e.g., a transformer model). The model 20 may include any one or more of the agent model 110, the reward model 130, the supervisor model 330, and the like.

[0073] In some implementations, one or more machine-learned models 20 may be received from a server computing system 30 via a network 70, stored in a computing device memory 14, and used or otherwise implemented by one or more processors 12. In some implementations, the computing device 2 may implement multiple parallel instances of the machine-learned model 20.

[0074] Additionally or alternatively, one or more machine-learned models 40 may be included in or otherwise stored and implemented by a server computing system 30 that communicates with the computing device 2 according to a client-server relationship. The model 40 may include any one or more of the agent model 110, the reward model 130, the supervisor model 330, and the like.

[0075] The machine learning models described in this specification can be used for a variety of tasks, applications and / or use cases.

[0076] In some implementations, the input to the machine learning model of the present disclosure may be image data. The machine learning model may process the image data to generate an output. As an example, the machine learning model may process the image data to generate an image recognition output (e.g., recognition of image data, potential embedding of image data, encoded representation of image data, hashing of image data, etc.). As another example, the machine learning model may process the image data to generate an image segmentation output. As another example, the machine learning model may process the image data to generate an image classification output. As another example, the machine learning model may process the image data to generate an image data modification output (e.g., a change in image data, etc.). As another example, the machine learning model may process the image data to generate an encoded image data output (e.g., an encoded and / or compressed representation of image data, etc.). As another example, the machine learning model may process the image data to generate an amplified image data output. As another example, the machine learning model may process the image data to generate a prediction output.

[0077] In some implementations, the input to the machine learning model of the present disclosure may be text or natural language data. The machine learning model may process text or natural language data to generate an output. As an example, the machine learning model may process natural language data to generate a language encoding output. As another example, the machine learning model may process text or natural language data to generate a potential text embedding output. As another example, the machine learning model may process text or natural language data to generate a conversion output. As another example, the machine learning model may process text or natural language data to generate a classification output. As another example, the machine learning model may process text or natural language data to generate a text segmentation output. As another example, the machine learning model may process text or natural language data to generate a semantic intent output. As another example, the machine learning model may process text or natural language data to generate an amplified text or natural language output (e.g., text or natural language data with higher quality than the input text or natural language, etc.). As another example, the machine learning model may process text or natural language data to generate a predicted output.

[0078] In some implementations, the input to the machine learning model of the present disclosure may be speech data. The machine learning model may process speech data to generate an output. As an example, the machine learning model may process speech data to generate a speech recognition output. As another example, the machine learning model may process speech data to generate a speech conversion output. As another example, the machine learning model may process speech data to generate a potential embedding output. As another example, the machine learning model may process speech data to generate an encoded speech output (e.g., an encoded and / or compressed representation of speech data, etc.). As another example, the machine learning model may process speech data to generate an amplified speech output (e.g., speech data with a higher quality than the input speech data, etc.). As another example, the machine learning model may process speech data to generate a text representation output (e.g., a text representation of the input speech data, etc.). As another example, the machine learning model may process speech data to generate a predicted output.

[0079] In some implementations, the input to the machine-learned model of the present disclosure may be latent coded data (e.g., a latent space representation of an input, etc.). The machine-learned model may process the latent coded data to generate an output. As an example, the machine-learned model may process the latent coded data to generate a recognition output. As another example, the machine-learned model may process the latent coded data to generate a reconstruction output. As another example, the machine-learned model may process the latent coded data to generate a search output. As another example, the machine-learned model may process the latent coded data to generate a re-clustering output. As another example, the machine-learned model may process the latent coded data to generate a prediction output.

[0080] In some implementations, the input to the machine learning model of the present disclosure may be statistical data. The statistical data may be, represent, or otherwise include data calculated and / or computed from some other data source. The machine learning model may process the statistical data to generate an output. As an example, the machine learning model may process the statistical data to generate an identification output. As another example, the machine learning model may process the statistical data to generate a prediction output. As another example, the machine learning model may process the statistical data to generate a classification output. As another example, the machine learning model may process the statistical data to generate a segmentation output. As another example, the machine learning model may process the statistical data to generate a visualization output. As another example, the machine learning model may process the statistical data to generate a diagnostic output.

[0081] In some implementations, the input to the machine learning model of the present disclosure may be sensor data. The machine learning model may process sensor data to generate an output. As an example, the machine learning model may process sensor data to generate a recognition output. As another example, the machine learning model may process sensor data to generate a prediction output. As another example, the machine learning model may process sensor data to generate a classification output. As another example, the machine learning model may process sensor data to generate a segmentation output. As another example, the machine learning model may process sensor data to generate a visualization output. As another example, the machine learning model may process sensor data to generate a diagnostic output. As another example, the machine learning model may process sensor data to generate a detection output.

[0082] In some cases, the machine learning model may be configured to perform a task that includes encoding input data for reliable and / or efficient transmission or storage (and / or corresponding decoding). For example, the task may be an audio compression task. The input may include audio data, and the output may include compressed audio data. In another example, the input includes visual data (e.g., one or more images or videos), the output includes compressed visual data, and the task is a visual data compression task. In another example, the task may include generating an embedding for the input data (e.g., input audio or visual data).

[0083] In some cases, the input includes visual data, and the task is a computer vision task. In some cases, the input includes pixel data of one or more images, and the task is an image processing task. For example, the image processing task may be image classification, where the output is a set of scores, each score corresponding to a different object class and representing the possibility that one or more images depict an object belonging to an object class. The image processing task may be object detection, where the image processing output identifies one or more regions in one or more images, and for each region, identifies the possibility that the region depicts an object of interest. As another example, the image processing task may be image segmentation, where the image processing output defines the corresponding possibility of each category in a set of predetermined categories for each pixel in one or more images. For example, a set of categories may be foreground and background. As another example, a set of categories may be object classes. As another example, the image processing task may be depth estimation, where the image processing output defines a corresponding depth value for each pixel in one or more images. As another example, the image processing task may be motion estimation, where the network input includes multiple images, and the image processing output defines the motion of the scene depicted at the pixel between images in the network input for each pixel in one of the input images.

[0084] In some cases, the input includes audio data representing a spoken utterance, and the task is a speech recognition task. The output may include a text output mapped to the spoken utterance. In some cases, the task includes encrypting or decrypting the input data. In some cases, the task includes a microprocessor performance task, such as branch prediction or memory address translation.

[0085] In some embodiments, the machine-learned model 40 may be implemented by the server computing system 30 as part of a web service (e.g., a remote machine-learned model hosting service, such as an online interface for performing machine-learned model operations on a remote server 30 over a network). For example, the server computing system 30 may communicate with the computing device 2 via a local intranet or Internet connection. For example, the computing device 2 may be a workstation or endpoint that communicates with the server computing system 30, wherein the implementation of the model 40 on the server computing system 30 is remotely executed and provides (e.g., projected, streamed, etc.) output to the computing device 2. Thus, one or more models 20 may be stored and implemented at the user computing device 2, or one or more models 40 may be stored and implemented at the server computing system 30.

[0086] Computing device 2 may also include one or more input components that receive user input. For example, the user input component may be a touch-sensitive component (e.g., a touch-sensitive display screen or touchpad) that is sensitive to the touch of a user input object (e.g., a finger or a stylus). The touch-sensitive component may be used to implement a virtual keyboard. Other example user input components include a microphone, a traditional keyboard, or other devices by which a user can provide user input.

[0087] The server computing system 30 may include one or more processors 32 and memory 34. The one or more processors 32 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and may be one processor or a plurality of processors operably connected. The memory 34 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc., and combinations thereof. The memory 34 may store data 36 and instructions 38 that are executed by the processor 32 to cause the server computing system 30 to perform operations (e.g., perform operations to implement input data structures and self-consistent output sampling according to example embodiments of the present disclosure, etc.).

[0088] In some implementations, the server computing system 30 includes or is otherwise implemented by one or more server computing devices. In the case where the server computing system 30 includes multiple server computing devices, such server computing devices may operate according to a sequential computing architecture, a parallel computing architecture, or some combination thereof.

[0089] As described above, the server computing system 30 may store or otherwise include one or more machine learning models 40. For example, the model 40 may be or may otherwise include various machine learning models. Example machine learning models include neural networks or other multi-layer nonlinear models. Example neural networks include feedforward neural networks, deep neural networks, recurrent neural networks, and convolutional neural networks. Some example machine learning models may utilize attention mechanisms, such as self-attention. For example, some example machine learning models may include multi-head self-attention models (e.g., transformer models).

[0090] The computing device 2 or the server computing system 30 may use a pre-training pipeline (e.g., an unsupervised pipeline, a semi-supervised pipeline, etc.) to train an example embodiment of a machine-learned model (e.g., including model 20 or 40). In some embodiments, the computing device 2 or the server computing system 30 may use a pre-training pipeline to train an example embodiment of a machine-learned model (e.g., including model 20 or 40) by interacting with a training computing system 50. In some embodiments, the training computing system 50 may be communicatively coupled via a network 70. The training computing system 50 may be separate from the server computing system 30 or may be part of the server computing system 30.

[0091] The training computing system 50 may include one or more processors 52 and a memory 54. The one or more processors 52 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and may be one processor or a plurality of processors operably connected. The memory 54 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc., and combinations thereof. The memory 54 may store data 56 and instructions 58, which are executed by the processor 52 to cause the training computing system 50 to perform operations (e.g., perform operations to implement input data structures and self-consistent output sampling according to example embodiments of the present disclosure, etc.). In some implementations, the training computing system 50 includes one or more server computing devices or is otherwise implemented by one or more server computing devices.

[0092] The model trainer 60 may include a pre-training pipeline for training a machine learning model using various objectives. In some embodiments, various training or learning techniques such as, for example, back propagation of errors may be used to train parameters of the image processing model. For example, an objective or loss may be back propagated through the pre-training pipeline to update one or more parameters of the model (e.g., based on the gradient of a loss function). Various loss determinations may be used, such as mean squared error, likelihood loss, cross entropy loss, hinge loss, or various other loss functions. Gradient descent techniques may be used to iteratively update parameters in multiple training iterations. In some implementations, performing back propagation of errors may include performing truncated back propagation through time. The pre-training pipeline may perform a variety of generalization techniques (e.g., weight decay, temporary withdrawal, etc.) to improve the generalization ability of the model being trained.

[0093] The model trainer 60 may include computer logic for providing the desired functionality. The model trainer 60 may be implemented in hardware, firmware, or software that controls a general purpose processor. For example, in some implementations, the model trainer 60 includes a program file stored on a storage device, loaded into a memory, and executed by one or more processors. In other implementations, the model trainer 60 includes one or more sets of computer executable instructions stored in a tangible computer readable storage medium such as RAM, a hard disk, or an optical or magnetic medium. The model trainer 60 may be or include the model trainer 140 or the model trainer 340.

[0094] The network 70 may be any type of communications network, such as a local area network (e.g., an intranet), a wide area network (e.g., the Internet), or some combination thereof, and may include any number of wired or wireless links. In general, communications over the network 70 may be carried via any type of wired or wireless connection using a variety of communications protocols (e.g., TCP / IP, HTTP, SMTP, FTP), encodings or formats (e.g., HTML, XML), or protection schemes (e.g., VPN, secure HTTP, SSL).

[0095] Figure 5A An example computing system that can be used to implement the present disclosure is shown. Other computing systems may also be used. For example, in some implementations, computing device 2 may include model trainer 60. In some implementations, computing device 2 may implement model trainer 60 to personalize the model based on device-specific data.

[0096] Figure 5B A block diagram of an example computing device 80 is depicted that performs according to an example embodiment of the present disclosure. The computing device 80 may be a user computing device or a server computing device. The computing device 80 may include multiple applications (e.g., application 1 to application N). Each application may contain its own machine learning library and machine learning model. For example, each application may include a machine learning model. Example applications include text messaging applications, email applications, dictation applications, virtual keyboard applications, browser applications, etc. Figure 5B As shown, each application can communicate with multiple other components of the computing device, such as, for example, one or more sensors, a context manager, a device state component, or additional components. In some implementations, each application can communicate with each device component using an API (e.g., a public API). In some implementations, the API used by each application is specific to the application.

[0097] Figure 5C A block diagram of an example computing device 80 performing in accordance with an example embodiment of the present disclosure is depicted. The computing device 80 may be a user computing device or a server computing device. The computing device 80 may include multiple applications (e.g., Application 1 to Application N). Each application communicates with a central intelligence layer. Example applications include a text messaging application, an email application, a dictation application, a virtual keyboard application, a browser application, etc. In some implementations, each application may communicate with the central intelligence layer (and the models stored therein) using an API (e.g., a public API across all applications).

[0098] The central intelligence layer can include multiple machine learning models. Figure 5C As shown, a corresponding machine learning model can be provided for each application, and the corresponding machine learning model can be managed by the central intelligence layer. In other implementations, two or more applications can share a single machine learning model. For example, in some implementations, the central intelligence layer can provide a single model for all applications. In some implementations, the central intelligence layer is included in the operating system of the computing device 80 or is otherwise implemented by the operating system.

[0099] The central intelligence layer may communicate with the central device data layer. The central device data layer may be a centralized data repository for the computing device 80. Figure 5C As shown, the central device data layer can communicate with multiple other components of the computing device, such as, for example, one or more sensors, a context manager, a device state component, or additional components. In some implementations, the central device data layer can communicate with each device component using an API (e.g., a private API).

[0100] Example Method

[0101] Figure 6 A flowchart of an example method 600 for generating a feedback signal for training a machine learning agent model according to an example embodiment of the present disclosure is depicted. The example method 600 may be performed by one or more computing systems (e.g., Figures 1A to 5C Although Figure 6 The steps performed in a specific order are depicted for the purpose of illustration and discussion, but the method of the present disclosure is not limited to the order or arrangement shown in particular. The steps of the example method 600 may be omitted, rearranged, combined and / or adapted in various ways without departing from the scope of the present disclosure.

[0102] At 602, the example method 600 may include obtaining an output of a machine-learned agent model. For example, the agent model may include the agent model 110. The output (e.g., output 112, 412) may be obtained in an online or offline context. The output may include a next state feature generated by the machine-learned agent model based on a sequence of previous states. For example, the next state feature may be or include the action feature 412. The next state feature may be generated based on an input including multiple previous state features such as state features 404-1, 404-2, etc. The previous state feature may include past inputs or outputs to and from the agent model 110. In this way, for example, the agent model 110 may perform multiple rounds of reasoning paths. At each next state, the agent model 110 may determine the steps to be taken to serve the user query associated with the input 102.

[0103] For example, in some implementations of the example method 600, a next state feature (e.g., action feature 412) may indicate an action to be performed using a tool external to the machine-learned agent model. In some implementations of the example method 600, the next state includes the next state feature and a result obtained by performing the action using the tool. In some implementations of the example method 600, the next state may be added to a sequence of previous states for future iterations.

[0104] For example, in some implementations of the example method 600, the next state feature (e.g., the action feature 412) may indicate an action to be performed using the agent model 110. The action may be, for example, a reasoning or "thinking" action to generate an analysis of one or more parts of a previous state, such as decomposing a complex query into simpler sub-queries, etc.

[0105] Thus, each output of each step can be used in future processing iterations. For example, output returns from various external tools or output returns from reasoning actions (e.g., using the agent model 110 itself) can be packaged as updated inputs (e.g., updated inputs 460) for processing in future iterations.

[0106] In some implementations of the example method 600, the machine-learned agent model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0107] At 604, example method 600 may include processing the sequence of outputs and previous states using a machine-learned reward model to generate a quality indicator in view of the previous state, the quality indicator indicating a quality of a next-state feature. In some implementations of example method 600, the machine-learned reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and computing one or more quality indicators in view of the corresponding training inputs, the one or more corresponding training outputs, and the reference data.

[0108] In some implementations of the example method 600, a reward model (e.g., reward model 130) may directly access reference data. In some implementations of the example method 600, a reward model (e.g., reward model 130) may indirectly access reference data (e.g., extracted into the reward model 130 via a training process).

[0109] In some implementations of the example method 600, the machine-learned reward model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0110] In some implementations of the example method 600, the quality indicator may be the quality indicator 232 output by the reward model 130. In some implementations of the example method 600, the quality indicator may include a binary indicator. In some implementations of the example method 600, the quality indicator may include a scalar value. In some implementations of the example method 600, the quality indicator may include a scalar value based on a likelihood (e.g., a log likelihood) output by the reward model 130 indicating the goodness of an output (e.g., output 112).

[0111] In some implementations of example method 600, example method 600 may include retrieving reference data associated with the previous state from a reference data source. In some implementations of example method 600, example method 600 may include processing the sequence of outputs and previous states in view of the reference data using a machine-learned reward model to generate a quality indicator.

[0112] At 606, example method 600 may include outputting the quality indicator to a model trainer for updating the machine-learned agent model based on the quality indicator. In some implementations of example method 600, example method 600 may include training the machine-learned agent model based on the quality indicator using the model trainer (e.g., using reinforcement learning techniques). In some implementations of example method 600, training the machine-learned agent model may include updating one or more parameters of the machine-learned agent model to increase the expected reward. In some implementations of example method 600, training the machine-learned agent model may include updating one or more parameters of the machine-learned agent model to reduce the expected length of a state sequence.

[0113] In some implementations of example method 600, example method 600 may include retrieving reference data associated with the previous state from a reference data source. In some implementations of example method 600, example method 600 may include processing the output, the sequence of previous states, and the reference data using a machine-learned supervisor model to generate a reference quality indicator. For example, the supervisor model may include supervisor model 330. In some implementations of example method 600, the machine-learned supervisor model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0114] In some implementations of the example method 600, the example method 600 may include training a machine-learned reward model based on the reference quality indicator.

[0115] In some implementations of the example method 600, the reference data may be obtained by retrieving content from a plurality of web resources and summarizing the content. For example, the content may be summarized by processing with a natural language processing model and summarizing instructions. The natural language model may be the same as or different from the supervisor model 330 or the reward model 130. In some implementations of the example method 600, the reference data may be composed by concatenating the summarized content (e.g., to be ingested by the reward model 130 or the supervisor model 330).

[0116] In some implementations of example method 600, example method 600 may include: training a reward model using a supervisor model. In some implementations of example method 600, example method 600 may include: obtaining a plurality of sampled outputs from a machine-learned agent model. In some implementations of example method 600, example method 600 may include: processing each of the plurality of sampled outputs using a machine-learned reward model to generate a corresponding plurality of quality indicators. In some implementations of example method 600, example method 600 may include: processing each of the plurality of sampled outputs using a machine-learned supervisor model in view of reference data to indicate a preferred sampled output. In some implementations of example method 600, example method 600 may include: training a machine-learned reward model to generate a more prioritized quality signal for a preferred sampled output.

[0117] In some implementations of the example method 600, the corresponding plurality of quality indicators may form a quality indicator logit. In some implementations of the example method 600, the preferred sampled output may be indicated by a one-hot vector across the sampled plurality of outputs. In some implementations of the example method 600, the example method 600 may include determining a cross entropy loss between the quality indicator logit and the one-hot vector.

[0118] Figure 7 A flowchart of an example method 700 for performing according to an example embodiment of the present disclosure is depicted. The example method 700 may be performed by one or more computing systems (e.g., Figures 1A to 5C Although Figure 7 The steps performed in a specific order are depicted for the purpose of illustration and discussion, but the method of the present disclosure is not limited to the order or arrangement specifically shown. The various steps of the example method 700 may be omitted, rearranged, combined and / or adapted in various ways without departing from the scope of the present disclosure.

[0119] At 702, the example method 700 may include: obtaining one or more outputs of a machine-learned agent model. For example, the agent model may include the agent model 110. The output (e.g., output 112, 412) may be obtained in an online or offline context. The output may include a next state feature generated by the machine-learned agent model based on a sequence of previous states. For example, the next state feature may be or include the action feature 412. The next state feature may be generated based on an input including multiple previous state features such as state features 404-1, 404-2, etc. The previous state feature may include past inputs or outputs to and from the agent model 110. In this way, for example, the agent model 110 may perform multiple rounds of reasoning paths. At each next state, the agent model 110 may determine the steps to be taken to serve the user query associated with the input 102.

[0120] For example, in some implementations of the example method 700, the next state feature (e.g., action feature 412) may indicate an action to be performed using a tool external to the machine-learned agent model. In some implementations of the example method 700, the next state includes the next state feature and a result obtained by performing the action using the tool. In some implementations of the example method 700, the next state may be added to the sequence of previous states for future iterations.

[0121] For example, in some implementations of the example method 700, the next state feature (e.g., the action feature 412) may indicate an action to be performed using the agent model 110. The action may be, for example, a reasoning or "thinking" action to generate an analysis of one or more parts of a previous state, such as decomposing a complex query into simpler sub-queries, etc.

[0122] Thus, each output of each step can be used in future processing iterations. For example, output returns from various external tools or output returns from reasoning actions (e.g., using the agent model 110 itself) can be packaged as updated inputs (e.g., updated inputs 460) for processing in future iterations.

[0123] In some implementations of the example method 700, the machine-learned agent model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0124] At 704 , the example method 700 may include processing the sequence of corresponding outputs and previous states using a machine-learned reward model to generate a quality indicator indicating a quality of a next-state feature in light of the previous state.

[0125] In some implementations of example method 700, the machine learning reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and calculating one or more quality indicators given the corresponding training inputs, the one or more corresponding training outputs, and the reference data.

[0126] In some implementations of the example method 700, a reward model (e.g., reward model 130) may directly access reference data. In some implementations of the example method 700, a reward model (e.g., reward model 130) may indirectly access reference data (e.g., extracted into the reward model 130 via a training process).

[0127] In some implementations of the example method 700, the machine-learned reward model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0128] In some implementations of the example method 700, the quality indicator may be the quality indicator 232 output by the reward model 130. In some implementations of the example method 700, the quality indicator may include a binary indicator. In some implementations of the example method 700, the quality indicator may include a scalar value. In some implementations of the example method 700, the quality indicator may include a scalar value based on a likelihood (e.g., a log likelihood) output by the reward model 130 indicating the goodness of an output (e.g., output 112).

[0129] In some implementations of example method 700, example method 700 may include retrieving reference data associated with the previous state from a reference data source. In some implementations of example method 700, example method 700 may include processing the sequence of outputs and previous states in view of the reference data using a machine-learned reward model to generate a quality indicator.

[0130] At 706, the example method 700 may include retrieving reference data associated with the previous state from a reference data source. In some implementations of the example method 700, the reference data may be obtained by retrieving content from a plurality of web resources and summarizing the content. For example, the content may be summarized by processing with a natural language processing model and summarizing instructions. The natural language model may be the same as or different from the supervisor model 330 or the reward model 130. In some implementations of the example method 700, the reference data may be made by concatenating the summarized content (e.g., to be ingested by the reward model 130 or the supervisor model 330).

[0131] At 708, example method 700 may include processing the corresponding output, the sequence of previous states, and the reference data using a machine-learned supervisor model to generate a reference quality indicator. In some implementations of example method 700, the machine-learned supervisor model may include a machine-learned sequence-to-sequence model configured for natural language processing. For example, the supervisor model may include supervisor model 330.

[0132] At 710, example method 700 may include: training a machine-learned reward model based on a reference quality indicator. In some implementations of example method 700, example method 700 may include: obtaining a plurality of sampled outputs from a machine-learned agent model. In some implementations of example method 700, example method 700 may include: processing each of the plurality of sampled outputs using the machine-learned reward model to generate a corresponding plurality of quality indicators. In some implementations of example method 700, example method 700 may include: processing each of the plurality of sampled outputs using a machine-learned supervisor model in view of reference data to indicate a preferred sampled output. In some implementations of example method 700, example method 700 may include: training a machine-learned reward model to generate a more prioritized quality signal for a preferred sampled output.

[0133] In some implementations of the example method 700, the corresponding plurality of quality indicators may form a quality indicator logit. In some implementations of the example method 700, the preferred sampled output may be indicated by a one-hot vector across the sampled plurality of outputs. In some implementations of the example method 700, the example method 700 may include determining a cross entropy loss between the quality indicator logit and the one-hot vector.

[0134] In some implementations of the example method 700, the example method 700 may include outputting the quality indicator to a model trainer for updating the machine-learned agent model based on the quality indicator. In some implementations of the example method 700, the example method 700 may include training the machine-learned agent model based on the quality indicator using the model trainer (e.g., using reinforcement learning techniques). In some implementations of the example method 700, training the machine-learned agent model may include updating one or more parameters of the machine-learned agent model to increase the expected reward. In some implementations of the example method 700, training the machine-learned agent model may include updating one or more parameters of the machine-learned agent model to reduce the expected length of the state sequence.

[0135] Figure 8 A flowchart of an example method 800 for performing according to an example embodiment of the present disclosure is depicted. The example method 800 may be performed by one or more computing systems (e.g., Figures 1A to 5C Although Figure 8 The steps performed in a specific order are depicted for the purpose of illustration and discussion, but the method of the present disclosure is not limited to the order or arrangement specifically shown. The various steps of the example method 800 may be omitted, rearranged, combined and / or adapted in various ways without departing from the scope of the present disclosure.

[0136] At 802, example method 800 may include obtaining a user query. The user query may include a request for information or an action from a computing system. For example, the user query may be obtained from a user interface on a local or remote device. The user query may be obtained on a server computing system via an API exposed to an endpoint device operating a user interface (e.g., a web-based user interface or a native user interface).

[0137] At 804, example method 800 may include determining an initial state including a user query. For example, the user query may be processed (eg, tokenized) into features (eg, features 404-1, 404-2, etc.) that may form an initial state of a processing sequence.

[0138] At 806, the example method 800 may include: processing the initial state using a machine-learned agent model to generate an output indicating an action to be performed to serve the user query. For example, the agent model may include the agent model 110. The output (e.g., output 112, 412) may be obtained in an online or offline context. The output may include a next state feature generated by the machine-learned agent model based on a sequence of previous states. For example, the next state feature may be or include the action feature 412. The next state feature may be generated based on an input including multiple previous state features such as state features 404-1, 404-2, etc. The previous state feature may include past inputs or outputs to and from the agent model 110. In this way, for example, the agent model 110 may perform multiple rounds of reasoning paths. At each next state, the agent model 110 may determine the steps to be taken to serve the user query associated with the input 102.

[0139] For example, in some implementations of the example method 800, a next state feature (e.g., action feature 412) may indicate an action to be performed using a tool external to the machine-learned agent model. In some implementations of the example method 800, the next state includes the next state feature and a result obtained by performing the action using the tool. In some implementations of the example method 800, the next state may be added to a sequence of previous states for future iterations.

[0140] For example, in some implementations of the example method 800, the next state feature (e.g., the action feature 412) may indicate an action to be performed using the agent model 110. The action may be, for example, a reasoning or "thinking" action to generate an analysis of one or more parts of a previous state, such as decomposing a complex query into simpler sub-queries, etc.

[0141] Thus, each output of each step can be used in future processing iterations. For example, output returns from various external tools or output returns from reasoning actions (e.g., using the agent model 110 itself) can be packaged as updated inputs (e.g., updated inputs 460) for processing in future iterations.

[0142] In some implementations of the example method 800, the machine-learned agent model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0143] At 808, example method 800 may include obtaining a quality indicator indicating a quality of a feature of a next state in view of a previous state, the quality indicator being generated based on a sequence of outputs and previous states using a machine-learned reward model. In some implementations of example method 800, example method 800 may include processing a sequence of corresponding outputs and previous states using a machine-learned reward model to generate a quality indicator indicating a quality of a feature of the next state in view of the previous state. In some implementations of example method 800, the machine-learned reward model is trained by retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and calculating one or more quality indicators in view of the corresponding training inputs, the one or more corresponding training outputs, and the reference data.

[0144] In some implementations of the example method 800, a reward model (e.g., reward model 130) may directly access reference data. In some implementations of the example method 800, a reward model (e.g., reward model 130) may indirectly access reference data (e.g., extracted into the reward model 130 via a training process).

[0145] In some implementations of the example method 800, the machine-learned reward model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0146] In some implementations of the example method 800, the quality indicator may be the quality indicator 232 output by the reward model 130. In some implementations of the example method 800, the quality indicator may include a binary indicator. In some implementations of the example method 800, the quality indicator may include a scalar value. In some implementations of the example method 800, the quality indicator may include a scalar value based on a likelihood (e.g., a log likelihood) output by the reward model 130 indicating the goodness of an output (e.g., output 112).

[0147] In some implementations of example method 800, example method 800 may include retrieving reference data associated with the previous state from a reference data source. In some implementations of example method 800, example method 800 may include processing the sequence of outputs and previous states in view of the reference data using a machine-learned reward model to generate a quality indicator.

[0148] At 810, example method 800 may include training a machine learning agent model based on the quality indicators.

[0149] In some implementations of the example method 800, the example method 800 may include: training the machine-learned agent model based on the quality indicator using a model trainer (e.g., using reinforcement learning techniques). In some implementations of the example method 800, training the machine-learned agent model may include: updating one or more parameters of the machine-learned agent model to increase the expected reward. In some implementations of the example method 800, training the machine-learned agent model may include: updating one or more parameters of the machine-learned agent model to reduce the expected length of the state sequence.

[0150] In some implementations of example method 800, example method 800 may include retrieving reference data associated with a previous state from a reference data source. In some implementations of example method 800, example method 800 may include processing the output, the sequence of previous states, and the reference data using a machine-learned supervisor model to generate a reference quality indicator. For example, the supervisor model may include supervisor model 330. In some implementations of example method 800, the machine-learned supervisor model may include a machine-learned sequence-to-sequence model configured for natural language processing.

[0151] In some implementations of the example method 800, the example method 800 may include training a machine-learned reward model based on the reference quality indicator.

[0152] In some implementations of the example method 800, the reference data may be obtained by retrieving content from a plurality of web resources and summarizing the content. For example, the content may be summarized by processing with a natural language processing model and summarizing instructions. The natural language model may be the same as or different from the supervisor model 330 or the reward model 130. In some implementations of the example method 800, the reference data may be made by concatenating the summarized content (e.g., to be ingested by the reward model 130 or the supervisor model 330).

[0153] In some implementations of example method 800, example method 800 may include: using a supervisor model to train a reward model. In some implementations of example method 800, example method 800 may include: obtaining a plurality of sampled outputs from a machine-learned agent model. In some implementations of example method 800, example method 800 may include: using a machine-learned reward model to process each of the plurality of sampled outputs to generate a corresponding plurality of quality indicators. In some implementations of example method 800, example method 800 may include: using a machine-learned supervisor model to process each of the plurality of sampled outputs in view of reference data to indicate a preferred sampled output. In some implementations of example method 800, example method 800 may include: training a machine-learned reward model to generate a more prioritized quality signal for a preferred sampled output.

[0154] In some implementations of the example method 800, the corresponding plurality of quality indicators may form a quality indicator logit. In some implementations of the example method 800, the preferred sampled output may be indicated by a one-hot vector across the sampled plurality of outputs. In some implementations of the example method 800, the example method 800 may include determining a cross entropy loss between the quality indicator logit and the one-hot vector.

[0155] Additional disclosure

[0156] The technology discussed herein relates to servers, databases, software applications, and other computer-based systems, as well as the actions taken and the information sent to and from such systems. The inherent flexibility of computer-based systems allows for multiple possible configurations, combinations, and partitioning of tasks and functions between and among components. For example, the processes discussed herein can be implemented using a single device or component or multiple devices or components working in combination. Databases and applications can be implemented on a single system, or distributed across multiple systems. Distributed components can operate sequentially or in parallel.

[0157] Although the subject matter has been described in detail with respect to various specific example embodiments of the subject matter, each example is provided by way of explanation, rather than limitation of the present disclosure. After obtaining an understanding of the foregoing, those skilled in the art may easily produce changes, modifications, and equivalents to such embodiments. Therefore, the present disclosure does not exclude such modifications, changes, and / or additions to the subject matter that would be readily understood by those of ordinary skill in the art. For example, a feature shown or described as part of one embodiment may be used together with another embodiment to produce yet another embodiment. Therefore, the present disclosure is intended to cover such changes, changes, and equivalents.

[0158] Aspects of the present disclosure have been described with respect to its illustrative embodiments. Any and all features in the appended claims may be combined or rearranged in any possible manner, including combinations of claims that are not explicitly listed in a combined manner, because the example claim dependencies listed herein should not be understood to limit the scope of the possible combinations of features disclosed herein. Therefore, the scope of the present disclosure is by way of illustration rather than limitation, and the present disclosure does not exclude such modifications, changes and / or additions to the subject matter that will be easily understood by those of ordinary skill in the art. In addition, the example element list connected by conjunctions such as "and", "or", "but" is used herein to describe the terms. It should be understood that such conjunctions are provided only for the purpose of explanation. For example, clauses and other project sequences connected by specific conjunctions (such as "or") may refer to "and / or", "at least one", "any combination" of the example elements listed therein, etc. In addition, terms such as "based on" should be understood as "based at least in part on".< / prompt>

Claims

1. A computer-implemented method for generating a feedback signal for training a machine learning agent model, the method comprising: obtaining, by a computing system including one or more processors, an output of a machine-learned agent model, wherein the output includes a next-state feature generated by the machine-learned agent model based on a sequence of previous states; processing, by the computing system and using a machine-learned reward model, the output and the sequence of previous states to generate a quality indicator in view of the sequence of previous states, the quality indicator indicating a quality of the next-state feature, wherein the machine-learned reward model is trained by: retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and computing one or more quality indicators in view of the corresponding training inputs, the one or more corresponding training outputs, and the reference data; as well as The quality indicator is output by the computing system to a model trainer for updating the machine-learned agent model based on the quality indicator.

2. The computer-implemented method of claim 1, wherein the quality indicator comprises a binary indicator.

3. The computer-implemented method of claim 1 , wherein: The next-state feature indicates an action to be performed using a tool external to the machine-learned agent model; The next state includes the next state characteristics and the result obtained by performing the action using the tool; as well as The next state is added to the sequence of previous states for future iterations.

4. The computer-implemented method of claim 1 , further comprising: retrieving, by the computing system and from a reference data source, reference data associated with the sequence of previous states; as well as The output and the sequence of previous states are processed, by the computing system and using the machine-learned reward model, in view of the reference data to generate the quality indicator.

5. The computer-implemented method of claim 1 , further comprising: retrieving, by the computing system and from a reference data source, reference data associated with the sequence of previous states; processing, by the computing system and using a machine-learned supervisor model, the output, the sequence of previous states, and the reference data to generate a reference quality indicator; as well as The machine-learned reward model is trained, by the computing system, based on the reference quality indicators.

6. The computer-implemented method of claim 5, wherein the reference data is obtained by: retrieving, by the computing system, content from a plurality of web resources; summarizing, by the computing system, the content; and The reference data is created by the computing system by linking the summarized contents.

7. The computer-implemented method of claim 5, further comprising: obtaining, by the computing system, a plurality of sampled outputs from the machine learning agent model; processing, by the computing system and using the machine-learned reward model, each of the sampled plurality of outputs to generate a corresponding plurality of quality indicators; processing, by the computing system and using the machine-learned supervisor model, each of the sampled plurality of outputs in view of the reference data to indicate a preferred sampled output; as well as The machine-learned reward model is trained by the computing system to generate a more prioritized quality signal for the preferred sample output.

8. The computer-implemented method of claim 7, wherein: The corresponding plurality of quality indicators form a quality indicator logit; The preferred sample output is indicated by a one-hot vector across the sampled plurality of outputs; and The method further comprises: A cross entropy loss between the quality indicator logit and the one-hot vector is determined by the computing system.

9. The computer-implemented method of claim 1, further comprising: The machine learning agent model is trained, by the computing system and using the model trainer, based on the quality indicator.

10. The computer-implemented method of claim 9, wherein training the machine-learned agent model comprises: One or more parameters of the machine-learned agent model are updated by the computing system to increase the expected reward.

11. The computer-implemented method of claim 9, wherein training the machine-learned agent model comprises: One or more parameters of the machine learning agent model are updated by the computing system to reduce the expected length of the state sequence.

12. The computer-implemented method of claim 1, wherein the machine-learned agent model comprises a machine-learned sequence-to-sequence model configured for natural language processing.

13. The computer-implemented method of claim 12, wherein the machine-learned reward model comprises a machine-learned sequence-to-sequence model configured for natural language processing.

14. The computer-implemented method of claim 5, wherein the machine-learned supervisor model comprises a machine-learned sequence-to-sequence model configured for natural language processing.

15. A computing system comprising: one or more processors; as well as one or more non-transitory computer-readable media storing instructions that, when executed by the one or more processors, cause the computing system to perform operations comprising: obtaining an output of a machine-learned agent model, wherein the output comprises a next-state feature generated by the machine-learned agent model based on a sequence of previous states; processing the output and the sequence of previous states using a machine-learned reward model to generate a quality indicator in view of the sequence of previous states, the quality indicator indicating a quality of the next-state feature, wherein the machine-learned reward model is trained by: retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and computing one or more quality indicators in view of the corresponding training inputs, the one or more corresponding training outputs, and the reference data; and The quality indicator is output to a model trainer for updating the machine-learned agent model based on the quality indicator.

16. The computing system of claim 15, wherein the operations further comprise: retrieving reference data associated with the sequence of previous states from a reference data source; processing the output, the sequence of previous states, and the reference data using a machine learning supervisor model to generate a reference quality indicator; as well as The machine-learned reward model is trained based on the reference quality indicator.

17. The computing system of claim 15, wherein the reference data is obtained by: Retrieve content from multiple web resources; Summarize the content; and The reference data is created by linking the summarized contents.

18. The computing system of claim 16, wherein the operations further comprise: Obtaining a sampled plurality of outputs from the machine learning agent model; processing each of the sampled plurality of outputs using the machine-learned reward model to generate a corresponding plurality of quality indicators; processing each of the plurality of outputs of the sample in view of the reference data using the machine-learned supervisor model to indicate a preferred sampled output; as well as The machine-learned reward model is trained to generate a more prioritized quality signal for the preferred sampled outputs.

19. The computing system of claim 18, wherein: The corresponding plurality of quality indicators form a quality indicator logit; The preferred sample output is indicated by a one-hot vector across the sampled plurality of outputs; and The operations further include: A cross entropy loss between the quality indicator logit and the one-hot vector is determined.

20. One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors of a computing system, cause the computing system to perform operations comprising: obtaining an output of a machine-learned agent model, wherein the output comprises a next-state feature generated by the machine-learned agent model based on a sequence of previous states; processing the output and the sequence of previous states using a machine-learned reward model to generate a quality indicator in view of the sequence of previous states, the quality indicator indicating a quality of the next-state feature, wherein the machine-learned reward model is trained by: retrieving reference data from a reference data source for corresponding training inputs and one or more corresponding training outputs, and computing one or more quality indicators in view of the corresponding training inputs, the one or more corresponding training outputs, and the reference data; as well as The quality indicator is output to a model trainer for updating the machine-learned agent model based on the quality indicator.

Citation Information

Patent Citations

  • Dialogue information acquisition method and device, equipment and storage medium

    CN113761148A

  • Model training method and device based on reinforcement learning, electronic equipment and medium

    CN114974424A

  • Safe and efficient training of a control agent

    US20190250568A1

Cited By

  • Reinforcement learning processing method, storage medium, electronic device, and computer program product

    WO2026098001A1