Techniques for determining user preferences

The system addresses the challenge of inaccurate user preference summaries by using language models to generate and evaluate knowledge preferences from user interactions, ensuring accurate and compliant personalized responses.

US12818899B1Active Publication Date: 2026-12-01AMAZON TECH INC
View PDF 56 Cites 0 Cited by

Patent Information

Application Number
US18/897411
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2026-12-01
Estimated Expiration
2045-02-27

AI Technical Summary

Technical Problem

Existing natural language processing systems struggle to accurately and efficiently generate personalized responses based on user interactions, leading to inconsistencies and inaccuracies in user preference summaries.

Method used

A system that utilizes language models to process user interactions, generate knowledge preference summaries, and evaluate their accuracy and quality, ensuring summaries are grounded in factual information from user interactions.

Benefits of technology

Improves the accuracy and quality of personalized responses by generating preference summaries that are based on actual user preferences, enhancing user interaction processing and compliance with user permissions and legal standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12818899-D00000_ABST
    Figure US12818899-D00000_ABST
Patent Text Reader

Abstract

Techniques for generating and evaluating a summary of knowledge preferences determined based on interaction data associated with a user profile are described. An accuracy of the summary may be determined using a set of questions for evaluating categories associated with the summary. The accuracy of the summary may be further determined based on a set of ground truth answers (generated based on the interaction data) and a set of predicted answers (generated based on the summary). A quality of the summary may be determined based on the interaction data, the preference summary, and evaluation criteria.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] Natural language processing systems have progressed to the point where humans can interact with computing devices using their voices and natural language textual input. Such systems employ techniques to identify the words spoken and written by a human user based on the various qualities of received input data. Speech recognition combined with natural language understanding processing techniques enable speech-based user control of computing devices to perform tasks based on the user's spoken inputs. Such processing may be used by computers, hand-held devices, telephone computer systems, kiosks, and a wide variety of other devices to improve human-computer interactions.BRIEF DESCRIPTION OF DRAWINGS

[0002] For a more complete understanding of the present disclosure, reference is now made to the following description taken in conjunction with the accompanying drawings.

[0003] FIG. 1 is a conceptual diagram of example components and processing of a system configured to generate and evaluate a knowledge preference summary for interactions between the system and a user, according to embodiments of the present disclosure.

[0004] FIG. 2 is a conceptual diagram illustrating example components and processing of a preference generation component to generate a knowledge preference summary, according to embodiments of the present disclosure.

[0005] FIG. 3 is a conceptual diagram illustrating example components and processing of a QA evaluation component to evaluate an accuracy of the knowledge preference summary, according to embodiments of the present disclosure.

[0006] FIG. 4 is a conceptual diagram illustrating example components and processing of a quality evaluation component to evaluate a quality of the knowledge preference summary, according to embodiments of the present disclosure.

[0007] FIG. 5 is a conceptual diagram illustrating example components of a system configured to use a language model to determine a response to a user input, according to embodiments of the present disclosure.

[0008] FIG. 6 is a conceptual diagram illustrating example processing of the system configured to use a language model, according to embodiments of the present disclosure.

[0009] FIG. 7 is a conceptual diagram illustrating example components of the system, according to embodiments of the present disclosure.

[0010] FIG. 8 is a block diagram conceptually illustrating example components of a device, according to embodiments of the present disclosure.

[0011] FIG. 9 is a block diagram conceptually illustrating example components of a system, according to embodiments of the present disclosure.

[0012] FIG. 10 illustrates an example of a network for use with the overall system, according to embodiments of the present disclosure.DETAILED DESCRIPTION

[0013] Natural language processing (NLP) is a field of computer science, artificial intelligence, and linguistics concerned with processing a user command input in the form of a natural human language (e.g., English, Chinese, etc.). Such a natural language command may come in the form of audio, text, image, or other format. Natural language processing may involve a number of different specific processing techniques such as those discussed below. Automatic speech recognition (ASR) is a field of computer science, artificial intelligence, and linguistics concerned with transforming audio data associated with speech into a token or other textual representation of that speech. Similarly, natural language understanding (NLU) is a field of computer science, artificial intelligence, and linguistics concerned with enabling computers to derive meaning from natural language inputs (such as spoken inputs). ASR and NLU are often used together as part of a language processing component of a system. Synthetic speech generation (SSG), also sometimes referred to as text-to-speech (TTS), is a field of computer science concerning transforming textual and / or other data into audio data that is synthesized to resemble human speech. Natural language generation (NLG) is a field of artificial intelligence concerned with automatically transforming data into natural language (e.g., English) content. Speech-to-speech (S2S) is a field of computer science, artificial intelligence, and linguistics in which embedding data is generated to represent speech in audio data and, using one or more models, the embedding data is processed to generate audio data and / or a system command responsive to the speech. Language modeling (LM) is the use of various statistical and probabilistic techniques to determine the probability of a given sequence of words occurring in a sentence. LM can be used to perform various tasks including understanding a natural language input (e.g., when noise is present) and performing generative tasks that involve generating natural language output data.

[0014] Certain systems may be configured to respond to natural language (e.g., spoken or typed) user inputs. Some systems may determine personalized responses based on preferences corresponding to a user (e.g., affinities, interests, behaviors, routines, demographics, etc.). For example, in response to the user input “what should I watch next,” the system may output movie and / or TV show recommendations corresponding to the user's preferred genre that may be determined based on past interactions and / or user-provided preferences. As another example, in response to the user input “what are today's top stories,” the system may output one or more news stories corresponding to topics of interest to the user. For further example, in response to the user input “tell me a joke,” the system may output a joke appropriate for the user (e.g., a joke for a child versus a joke for an adult) and one that may correspond to the user's interests.

[0015] A system may receive a user input as speech. For example, a user may speak an input to a device. The device may send audio data, representing the spoken input, to the system. The system may perform ASR processing on the audio data to generate ASR data (e.g., text data, token data, etc.) representing the user input. The system may perform processing on the ASR data to determine an action responsive to the user input. A system may also receive a natural language user input in the form of text, such as a text input from a computer, phone, or other device.

[0016] In some instances, the system may be configured to process input text data (such as ASR data or text entered into a user interface) using one or more language models (e.g., large language models (LLMs)) to determine a response to the user input. For example, in response to a user input of “what is the history of the United States,” the language model(s) may output a synopsis of the history of the United States of America.

[0017] An artificial intelligence (AI) system may use ASR, NLU, NLG, and / or TTS, each with and / or without its own and / or a shared language model, for processing user inputs, including natural language inputs (e.g., typed and spoken inputs) and other type of inputs (e.g., inputs not received from a user, inputs received from a system component, inputs representing occurrence of events, etc.).

[0018] The AI system may use other types of generative models including a model that processes audio / speech as an input and outputs audio / synthesized speech (a speech-to-speech model). Another example generative model that may be used is a multi-modal model that processes two or more types of data (e.g., audio, text and / or image) as inputs and / or outputs two or more types of data (e.g., audio, text and / or image).

[0019] In some instances, the language model(s) of the AI system may be configured to customize its processing for users of the system. The system may determine information (e.g., user inputs, system responses, contextual information, etc.) from interactions data corresponding to a user profile associated with a user. The system may use the information to determine (e.g., extrapolate, extract, infer, etc.) “knowledge preferences” about the user that may be implied or expressed in the information, such as a user's affinities and dislikes, a user's preferences, a user's activities (e.g., behaviors, routines, habits), and the like. The knowledge preferences may be usable to customize the processing of the system for the user. Due to the range and magnitude of the information and the corresponding knowledge preferences that may result from the interactions with the user, the system may truncate (e.g., summarize) the knowledge preferences and use the truncated knowledge preferences to customize its processing for the user.

[0020] The present disclosure describes techniques for evaluating an accuracy, quality, and / or other metrics of a generated knowledge preference summary. In some embodiments, the system may use one or more language models to generate the knowledge preference summary including information about a user determined (e.g., extrapolated, extracted, inferred, etc.) based on interactions associated with the user.

[0021] In some example embodiments, the system may determine various information about interactions between the system (e.g., components of the system) and a user, such as user inputs, system responses, contextual information, user actions, and / or other input signals. The system may determine the information as part of interaction data representing the various interactions between the user and the system. The system may store interaction data corresponding to the interactions and associated with a user profile for the user. The interactions may include, but are not limited to, dialogs / conversations between the user and the system, user commands for device operations processed by the system (e.g., commands to operate a device(s) such as kitchen appliances, smart door locks, thermostat, lights, cameras, and other user devices), user actions (e.g., purchases of good and services, selection of content for viewing or listening (e.g., movies, TV shows, news articles, music, podcasts, radio stations, etc.)), and the like. Some information from the interaction data that may be used to determine the knowledge preferences may include, but is not limited to, repeat inputs or actions, frequency of inputs or actions, pattern of inputs or actions, devices that receive the inputs or actions, system components used to process, etc.

[0022] The system may process (e.g., using a language model) the interaction data to determine the knowledge preferences about the user, such as a user's affinities and dislikes (e.g., interests or disinterests in topics or activities, hobbies, content genre, product brands, device types, etc.), a user's preferences (e.g., skill / application, location, device type, content genre, etc.), a user's activities (e.g., repeat activities, frequency of activities, etc.), items / devices owned or used by a user, user demographics, user family structure, and / or other items that may be specific to the user and may be used to personalize processing for the user. In some example embodiments, the knowledge preferences may include one or more natural language statements corresponding to the extrapolated information. For example, a knowledge preference may include “user likes non-fiction audiobooks on [topic(s)],” which may further include examples of non-fiction audiobooks listened by the user. For further example, based on the interaction data including inputs for purchasing or inquiring about home and pet products, a knowledge preference may include “user has a home and a pet.” In some embodiments, the knowledge preferences may include an indication (e.g., a tag, label, etc.) of a category associated with the knowledge preferences (e.g., <Interest>, <Behavior>, <Background>, <Rephrase>, <Recent interest>, <Seasonal Interest>, <Dislikes>, etc.). Also, or instead, the knowledge preferences may include further information about the category (e.g., (Audiobooks) or <Interest (Audiobooks)>; (Entertainment) or <Interest (Entertainment)>; (Household) or <Background (Household)>; etc.).

[0023] The system may process (e.g., using a language model) the interaction data and the knowledge preferences to verify the generated knowledge preferences. For example, the system may determine whether the knowledge preferences are accurate (e.g., include information implied or expressed in the interaction data). The system may exclude (e.g., filter out, discard, etc.) the knowledge preferences determined to be inaccurate. In example embodiments, the system may exclude knowledge preferences that include sensitive information (e.g., financial, medical, privileged, and / or confidential information) or certain types of other (moderated) content (e.g., profanity).

[0024] The system may process (e.g., using a language model) the knowledge preferences to generate a preference summary including a natural language summary of the knowledge preferences and, optionally, including the knowledge preferences. For instance, a preference summary generated for the abovementioned example knowledge preference may include “User has a home, a pet, and likes non-fiction audiobooks on [topic(s)], such as [example non-fiction audiobooks],” or the like. The preference summary and the interaction data may be stored in a profile storage in association with the user profile. In some example embodiments, the preference summary may be retrieved to aid the processing of a system component(s) with respect to the user, such that the output of the system component(s) incorporates, or is otherwise generated using, the preference summary.

[0025] The preference summary may be retrieved from a profile storage for use in personalizing processing performed with respect to the user / user profile associated with the preference summary. For example, the preference summary may be retrieved from the profile storage by a personalization service(s), which may correspond to or be associated with a component(s) or system that is to perform processing to generate an output (e.g., perform an action and / or generate a response) for the user / user profile. The component(s) or service(s) may use the preference summary to personalize the processing performed to the user / user profile. For example, a personalization service for a voice assistant component / system may retrieve the preference summary in response to the voice assistant component / system receiving an input associated with the user / user profile. The voice assistant component / system may use the preference summary to generate a response to the input that is personalized to the user / user profile.

[0026] The system may retrieve the preference summary from the profile storage for evaluation, such as an evaluation of the accuracy, quality and / or other metrics corresponding to the preference summary. For the accuracy evaluation, the system may determine a set of questions configured for testing the accuracy of a preference summary, such as with respect to categories corresponding to the knowledge preferences summarized by, or otherwise included in, the preference summary. For example, for a preference summary corresponding to audiobook interests, the questions may be about “entertainment” domain, a category of “interest,” and / or a topic of “audiobook,” or the like.

[0027] The system may process (e.g., using a language model) the questions and the interaction data to determine one or more ground truth answers corresponding to the questions. The system may further process (e.g., using a language model) the questions and the preference summary to determine predicted answers to the questions. Based on a comparison (e.g., a semantic similarity) between the ground truth answers and the predicted answers, the system may determine data (e.g., a likelihood, a Boolean value, natural language data) representing, the accuracy of the preference summary.

[0028] For quality evaluation, the system may determine evaluation criteria describing how the quality of the preference summary is to be evaluated (e.g., based on a relevance of the preference summary, a redundancy of the preference summary, whether (a portion(s) of) the natural language summary is a result of a model hallucination, etc.). The evaluation criteria determined may be associated with evaluation of a preference summary that is associated with a particular category. The system may process (e.g., using a language model) the interaction data, the preference summary, and the evaluation criteria to determine a quality of the preference summary.

[0029] The system may utilize the determined accuracy and / or quality of the preference summary for various purposes. For example, the accuracy and / or the quality of the preference summary may be used to generate a new or revised version of the preference summary. In some example embodiments, the accuracy and / or quality may indicate a portion of the preference summary that is to be revised (e.g., a portion associated with a particular category evaluated for when determining the accuracy and / or quality of the preference summary). For further example, the accuracy and / or quality may indicate (to a system component and / or a user, such as a developer, a model engineer, a system administrator, etc.) the types of knowledge preferences that may be extrapolated from the interactions. If the questions used to evaluate the accuracy and / or the evaluation criteria used to evaluate the quality are associated with a particular category, and the accuracy and / or quality fails to satisfy a condition (e.g., meet a threshold), it may indicate that the category is not associated with the interaction data and information related to the category may not be extrapolated based on the interaction data. As another example, the accuracy and / or quality of the preference summary may be used for configuration (e.g., training, finetuning, updating, etc.) of a system component (e.g., a language model). For instance, the accuracy and / or the quality may be used to further train (e.g., finetune) a language model for generating preference summaries, where, based on the accuracy and / or the quality of the preference summary, the preference summary may be used as a positive example or negative example of a preference summary for the given interaction data.

[0030] Teachings of the present disclosure provide, among other things, improved computer processing for language model-based applications by enabling generation and evaluation of knowledge preferences. The techniques described herein can improve an accuracy of an AI assistant system by generating accurate and high-quality preference summaries, which can be used to customize processing by system components to generate personalized outputs for a user. The techniques described herein improve accuracy by ensuring the preference summaries are grounded in factual information properly extrapolated from user interactions with the system.

[0031] A system according to the present disclosure will ordinarily be configured to incorporate user permissions and only perform activities disclosed herein if approved by a user. As such, the systems, devices, components, and techniques described herein would be typically configured to restrict processing where appropriate and only process user data in a manner that ensures compliance with all appropriate laws, regulations, standards, and the like. The system and techniques can be implemented on a geographic basis to ensure compliance with laws in various jurisdictions and entities in which the components of the system and / or user are located.

[0032] Language modeling is the use of various statistical and probabilistic techniques to determine the probability of a given sequence of words occurring in a sentence. Language models analyze bodies of text data to provide a basis for their word predictions. The language models are generative models, that is they are configured to generate a sequence of data (for example representing text) based on input data, such as one more text prompts. In some embodiments, one or more of the language models may be a large language model (LLM). A language model (e.g., LLM) is an advanced artificial intelligence system designed to process, understand, and generate human-like text based on relatively large amounts of data. In some embodiments, a language model (or another type of generative model) may be further designed to process, understand, and / or generate multi-modal data including audio, text, image, and / or video. A language model may be built using deep learning techniques, such as neural networks, and may be trained on extensive datasets that include text (or other type of data, such as multi-modal data including text, audio, image, video, etc.) from a broad range of sources, such as old / permitted books and websites, for natural language processing. As compared to a relatively smaller language model, an LLM uses an expansive training dataset and can include a relatively large number of parameters (in the range of billions, trillions or more), hence they are called “large” language models. In some embodiments one or more of the language models (and their corresponding operations, discussed herein below) may be the same language model.

[0033] In some embodiments, the language model(s) may be transformer-based sequence to sequence (seq2seq) models involving an encoder-decoder architecture. In an encoder-decoder architecture, the encoder may produce a representation of an input (e.g., audio, text, image, video, etc.) using a bidirectional encoding, and the decoder may use that representation to perform some task. In some such embodiments, one or more of the language models may be a multilingual (approximately) 20 billion parameter seq2seq model that is pre-trained on a combination of denoising and Causal Language Model (CLM) tasks in various languages (e.g., English, French, German, Arabic, Hindi, Italian, Japanese, Spanish, etc.), and the language model may be pre-trained for approximately 1 trillion tokens. Being trained on CLM tasks, the language model(s) may be capable of in-context learning. Examples of such language models include some of the Amazon Alexa and Amazon Web Services (AWS) Titan family of generative models.

[0034] In other embodiments, the language model(s) may be a decoder-only architecture. The decoder-only architecture may use left-to-right (unidirectional) encoding of the input (e.g., audio, text, image, video, etc.). Examples of such language models include others in the Amazon Alexa and AWS Titan family of models as well as the Generative Pre-trained Transformer 3 (GPT-3), GPT-4, and other versions of GPT. GPT-3 reportedly has a capacity of (approximately) 175 billion machine learning parameters. GPT-4 reportedly has a capacity of (approximately) 1.76 trillion machine learning parameters.

[0035] Other examples of language models include BigScience Large Open-science Open-access Multilingual Language Model (BLOOM), Language Model for Dialogue Applications model (LaMDA), Bard, Large Language Model Meta AI (LLaMA), etc.

[0036] In some embodiments, the system may include one or more machine learning models (e.g., discriminative models) instead of or in addition to the generative model(s). Such machine learning model(s) may receive text and / or other types of data as inputs (e.g., audio, image, video, etc.), and may output text and / or the other types of data. Such model(s) may be neural network-based models, deep learning models, classifier models, autoregressive models, seq2seq models, etc.

[0037] In some embodiments, the input to a generative model may be in the form of a prompt. A prompt may be a natural language input, for example, a directive or request, for the generative model to generate an output according to the prompt. The output generated by the generative model may be a natural language output responsive to the prompt. In some embodiments, the output may additionally or instead be another type of data, such as audio, image, video, etc. The prompt and the output may be text in a particular language (e.g., English, Spanish, German, etc.). For example, for an example prompt “how do I cook rice?”, the generative model may output a recipe (e.g., a step-by-step process represented by text, audio, image, video, etc.) to cook rice. As another example, for an example prompt “I am hungry. What restaurants in the area are open?”, the generative model may output a list of restaurants near the user that are open at the time of the user prompt.

[0038] The generative models may be configured using various learning techniques. For example, in some embodiments, the language models may be configured using few-shot learning. In few-shot learning, the model learns how to learn to solve the given problem. In this approach, the model is provided with (e.g., in the prompt) a limited number of examples (i.e., “few shots”) from the new task, and the model uses this information to adapt and perform well on that task. Few-shot learning may require fewer amount of training data than implementing other fine-tuning techniques. Few-shot learning may be implemented by including examples (exemplars) in a prompt to the model and the model may perform in-context learning. For further example, in some embodiments, the language models may be configured using one-shot learning, which is similar to few-shot learning, except the model is provided with a single example (e.g., in the prompt). As another example, in some embodiments, the language models may be configured using zero-shot learning. In zero-shot learning, the model solves the given problem without examples of how to solve the specific / similar problem and just based on the model's training dataset. In this approach, the model is provided with data not observed during training, and the model learns to generate an appropriate output based on its learning with regard to other data. Other learning techniques may involve performing offline / training operations for fine-tuning (e.g., using supervised fine-tuning techniques) a pre-trained generative model for a particular task.

[0039] Dialog processing is a field of computer science that involves communication between a computing system and a human via text, audio, and / or other forms of communication. While some dialog processing involves only simple generation of a response given only a most recent input from a user (i.e., single-turn dialog), more complicated dialog processing involves determining and optionally acting on one or more goals expressed by the user over multiple turns of dialog, such as making a restaurant reservation and / or booking an airline ticket. These multi-turn “goal-oriented” dialog systems typically need to recognize, retain, and use information collected during more than one input during a back-and-forth or “multi-turn” interaction with the user.

[0040] As used herein, a “dialog” may refer to multiple related user inputs and system outputs (e.g., through user device(s)) between the system and the user that may have originated with a single user input initiating the dialog. Thus, the data associated with a dialog may be associated with a same dialog identifier, which may be used by components of the overall system 100 to associate information across the dialog. Subsequent user inputs of the same dialog may or may not start with the user speaking a wakeword. Each natural language input may be associated with a different natural language input identifier, and each natural language input identifier may be associated with a corresponding dialog identifier. Further, other non-natural language inputs (e.g., image data, gestures, button presses, etc.) may relate to a particular dialog depending on the context of the inputs. For example, a user may open a dialog with the system 100 to request a food delivery in a spoken utterance and the system may respond by displaying images of food available for order and the user may speak a response (e.g., “item 1” or “that one”) or may gesture a response (e.g., point to an item on the screen or give a thumbs-up) or may touch the screen on the desired item to be selected. Non-speech inputs (e.g., gestures, screen touches, etc.) may be part of the dialog and the data associated therewith may be associated with the dialog identifier of the dialog.

[0041] FIG. 1 illustrates an example system 100 configured to generate and evaluate a knowledge preference summary for interactions between the system 100 and a user. As illustrated in FIG. 1, the system 100 may include a knowledge preference processing component 150 and a profile storage 130. The knowledge preference processing component 150 may include a contextual interaction provider component 110, a knowledge preference generation component 120, and a preference evaluation component 140. The knowledge preference generation component 120 may include a preference language model(s) 125, and the preference evaluation component 140 may include a question-answering (QA) evaluation component 142 and a quality evaluation component 147.

[0042] As shown in FIG. 1, the knowledge preference generation component 120 may receive interaction data 115 from the contextual interaction provider component 110. The interaction data 115 may include various information associated with one or more interactions between a user and the system 100. The various information may include previous user inputs / commands (past and current) received by the system 100 that were received from the user or otherwise associated with the user. The various information may further include previous system-generated outputs (e.g., actions and / or responses) responsive to the previous user inputs. The various information may further include contextual information associated with the user inputs, the system-generated outputs, and / or otherwise associated with the user, such as user context (e.g., user location, user demographics, user preferences, personalized catalogs, enabled skills / applications, etc.), device context (e.g., device type, device identifier, device location (e.g., living room, kitchen, office, etc.), device capabilities, device state, etc.), environmental context (e.g., time / date the past user input was received / processed, device that received the user input, device that responded to the user input, objects proximate to the device / user, background audio / noises, state / status of device(s) in the user's environment (e.g., TV is on, thermostat temperature, etc.), and the like. The various information may further include actions performed by the user (e.g., purchase actions, selection of content, adding items to wish / shopping list, etc.). The various information may further include actions performed by the system (e.g., operation of a device, determining and storing of data (e.g., data to enable routines, user profile data, etc.). In some embodiments, the interaction data 115 (and / or the information included in the interaction data 115) may correspond to or otherwise be associated with a user profile associated with the user. In some embodiments, the various information may further include information associated with a dialog including the user (profile) and the system 100.

[0043] The contextual interaction provider component 110 may be configured to process information associated with interactions between the system 100 and a user(s) (profile(s)), and generate and provide, to the knowledge preference generation component 120, natural language representations of the interactions. The natural language representations of the interactions generated by the contextual interaction provider component 110 may correspond to interactions data 105, which may be received from one or more components of, or associated with, the system 100. For example, the contextual interaction provider component 110 may receive interactions data 105 associated with a spoken interaction between a user and a component of the system 100 (e.g., the system component(s) 520). In some embodiments, the components may periodically send the interactions data 105 to the contextual interaction provider component 110, such as daily, monthly, after an end of the corresponding interaction, etc.

[0044] In some embodiments, the contextual interaction provider component 110 may receive the interactions data 105 associated with interactions from components of the system 100 that have subscribed / onboarded to the processing / purchased the services of the contextual interaction provider component 110. For example, a component (or a developer or administrator of the component) may determine to send the interactions data 105 associated with the component to the contextual interaction provider component 110 for use in generation of preference summaries. Prior to, or along with, sending the interactions data 105 to the contextual interaction provider component 110, the component may send contextual information about the component to the contextual interaction provider component 110, such as a description of the processing performed by the component (e.g., a task(s) and / or domain(s) associated with the component), example interactions associated with the component, example data types received by the component, etc.

[0045] In some embodiments, the interactions data 105 received from component of the system 100 may correspond to input signals, rather than spoken (or typed) user commands. For example, interactions data 105 received from a content output component (e.g., a music component, an audio book component, a TV or movie component, etc.) may include input signals (e.g., button presses, touchscreen selections, gestures, etc.) to change the volume, play / pause the content, etc. For further example, interactions data 105 received from another component of the system may include input signals (e.g., switch activation, presence detection, etc.) for turning on a light or detection of a user's presence. The interactions data 105 may be received along with other contextual information, such as an indication of the component being interacted with or the output / action performed when the input(s) was received. In some such embodiments, such interactions data 105 may be represented in the interaction data 115 as natural language representations of the input signal. For example, an input signal corresponding to playing content may be represented as natural language text and / or tokens corresponding to a description of the input signal (e.g., playing content), the type of content played (e.g., audiobook, music, TV show, etc.), and / or the content played (e.g., the name of the song, audiobook, TV show, etc.). In some embodiments, the component from which an input signal was received may indicate to the contextual interaction provider component 110 how the input signal may be represented as natural language, which may be provided as part of the subscribing, onboarding, and / or purchasing process.

[0046] The knowledge preference generation component 120 may be configured to facilitate the generation of knowledge preferences associated with an interaction data. As shown in FIG. 1, the knowledge preference generation component 120 processes the interaction data 115 to generate preference summary data 127. The preference summary data 127 may include, or otherwise indicate, information about knowledge preferences determined (e.g., extrapolated) from based on the user / user's profile. A knowledge preference may correspond to information about the user / user's profile that is determined (e.g., extrapolated) from interaction data (e.g., the interaction data 115), such as a user's affinities and dislikes (e.g., interests or disinterests in topics or activities, hobbies, content genre, product brands, device types, etc.), a user's preferences (e.g., skill / application, location, device type, content genre, etc.), a user's activities (e.g., repeat activities, frequency of activities, etc.), items / devices owned or used by a user, user demographics, user family structure, and / or other items that may be specific to the user and may be used to personalize processing for the user. A knowledge preference may include one or more natural language statements corresponding to the determined information. For example, a knowledge preference may include “user likes non-fiction audiobooks on [topic(s)],” which may further include examples of non-fiction audiobooks listened to by the user. For further example, a knowledge preference may include “frequently listens to [music category] at [time of day].” As an additional example, a knowledge preference may include “user has a home and a pet.” As another example, a knowledge preference may be “user means [song title] by [artist name] when they say [song title].” In some embodiments, the knowledge preferences / natural language statement(s) may include an indication (e.g., a tag, label, etc.) of a category associated with the knowledge preferences / natural language statement(s) (e.g., <Interest>, <Behavior>, <Background>, <Rephrase>, <Recent interest>, <Seasonal Interest>, <Dislikes>, etc.). The knowledge preferences / natural language statement(s) may further include additional information about the category. (e.g., (Audiobooks) or <Interest (Audiobooks)>; (Music), <Behavior (Music)> or <Rephrase (Music)>; (Weather) or <Interest (Weather)>; (Current Events) or <Interest (Current Events)>; (Entertainment) or <Interest (Entertainment)>; (Household) or <Background (Household)>; etc.).

[0047] The preference summary data 127 may include a natural language summary associated with the interaction data 115. For instance, in some embodiments, the natural language summary may correspond to a summary of the knowledge preferences. For example, for the abovementioned example knowledge preferences, the natural language summary may include “the user has an interest in non-fiction audio books on topics such as [topic(s)]. They like to listen to [music category] at [time of day], and when they refer to [song title], they mean [song title] by [artist name]. They also own a home and have a pet.” In some such embodiments, the natural language summary may indicate (e.g., cite to) at least a portion of a knowledge preference that forms the basis of (at least a portion of) the natural language summary. For example, for the portion of the example natural language summary of “the user has an interest in non-fiction audiobooks on topics such as [topic(s)],” may further include an example from the corresponding knowledge preference, such as “(e.g., [audiobook titles]),”“for example, [audiobook titles],” or “The user has listened to [audiobook titles].” In some embodiments, the preference summary data 127 may include (at least a portion of) the knowledge preferences used to generate the natural language summary.

[0048] In some embodiments, the interaction data 115 received by the knowledge preference generation component 120 may correspond to interaction information that is specific to a particular domain(s) or associated component (which may be used to generate knowledge preferences specific to one or more particular categories (e.g., one or more topics). For example, the contextual interaction provider component 110 may be configured to group (e.g., cluster) the interaction information based on their associated domain(s) or component(s). In some such embodiments, the knowledge preference generation component 120 may process the portions of an interaction data to generate corresponding portions of a preference summary. The knowledge preference generation component 120 may then generate an overall preference summary of the preference summary portions, which may be associated with each of the particular domains and the categories of knowledge preferences.

[0049] The knowledge preference generation component 120 may generate the preference summary data 127 using the preference language model(s) 125. The preference language model(s) 125 may include a language model(s) or other type of generative models (e.g., one or more of the Amazon family of generative models, a GPT model, a BERT model, or any other transformer-based model / large language model). The preference language model(s) 125 may be configured to generate the preference summary data 127 based on processing a prompt requesting the preference language model(s) 125 generate the preference summary data 127 based on the interaction data 115. The knowledge preference generation component 120 may send the interaction data 115 and the preference summary data 127 to the profile storage 130 to be stored in association with a user profile corresponding to the interaction data 115.

[0050] In some embodiments, the preference summary data 127 may be retrieved from the profile storage 130 to aid the processing of a system component(s) of the system 100, such as the component(s) and / or system(s) that have subscribed / onboarded to the processing and / or purchased the services of the knowledge preference processing component 150, or have otherwise provided the interactions data 105 to the knowledge preference processing component 150. As shown in FIG. 1, the preference summary data 127 may be retrieved from the profile storage 130 by a personalization service(s) 160, which may correspond to or be associated with the component(s) or system(s) that are to perform processing to generate an output (e.g., perform an action and / or generate a response) for the user / user profile. For example, if the preference summary data 127 includes an indication of a household family size for a user (e.g., five total family members in the household), a personalization service(s) 160a for a component for booking a restaurant reservation may retrieve the preference summary data 127 to determine to offer a reservation party size of five when the user requests a reservation be booked. For further example, if the preference summary data 127 includes an indication of content (e.g., audiobooks, music, movies, etc.) topic(s) and / or examples that are favored by a user, a personalization service(s) 160b for a content output component may retrieve the preference summary data 127 to determine content to recommend to the user.

[0051] The component(s) and / or system(s) may send a request to the personalization service(s) 160 for preference summary data associated with a particular user / user profile, and the personalization service(s) 160 will retrieve and return the associated preference summary data from the profile storage 130. For example, a voice assistant component / system (e.g., the system component(s) 520) may request a personalization service(s) 160c return the preference summary data 127 associated with a user (e.g., the user 505) / user profile in response to receiving an input (e.g., user input data 527) associated with the user / user profile. The voice assistant component / system may use the preference summary data 127 to personalize a generated output (e.g., a response and / or action) to the user / user profile.

[0052] The interaction data 115 and the preference summary data 127 may be retrieved from the profile storage and provided to the preference evaluation component 140. The interaction data 115 and the preference summary data 127 may be retrieved based on a query from the preference evaluation component 140. In some embodiments, the preference evaluation component 140 may query for an interaction data and a preference summary based on the generation of the preference summary. In other embodiments, the preference evaluation component 140 may periodically query for an interaction data and a preference summary associated with a particular user profile. In further embodiments, the preference evaluation component 140 may query for an interaction data and a preference summary based on a user providing feedback regarding the preference summary (e.g., a modification to be made to the preference summary) or an output generated based on the preference summary. For example, as shown in FIG. 1, the personalization service(s) 160 may send the feedback data 165 to the profile storage 130. The feedback data 165 may correspond to the user provided feedback regarding the preference summary, which may be provided based on the personalization service(s) 160 sending the preference summary data 127 to a component(s) and / or system(s) of the system 100 for personalizing an output (e.g., a response and / or an action) to the user. In some embodiments, the feedback data 165 may be sent to the profile storage 130 from another component of the system 100, such as a language model orchestrator component 530, an action plan execution component 525, and / or a feedback component.

[0053] The preference evaluation component 140 may be configured to evaluate the preference summary data 127 based on the interaction data 115. In other words, the preference evaluation component 140 may be configured to evaluate the knowledge preferences and / or natural language summary included in the preference summary data 127 based on the interaction data 115.

[0054] The preference evaluation component 140 may evaluate the preference summary data 127 based on one or more metrics. For example, the preference evaluation component 140 may evaluate (e.g., using the QA evaluation component 142) an accuracy of the (knowledge preferences and / or natural language summary included in the) preference summary data 127 based on the interaction data 115. Additionally, or alternatively, the preference evaluation component 140 may evaluate (e.g., using the quality evaluation component 147) a quality of the preference summary data 127 based on the interaction data 115.

[0055] The QA evaluation component 142 may process the interaction data 115 and the preference summary data 127 to generate accuracy evaluation data 145 indicating an accuracy of the (knowledge preferences and / or natural language summary included in the) preference summary data 127 based on the interaction data 115. As described herein in connection with FIG. 3, the QA evaluation component 142 may use a set of questions configured to test the accuracy of the preference summary data 127 (e.g., test an accuracy of a particular category(ies) corresponding to the knowledge preferences and / or natural language summary). The QA evaluation component 142 may use one or more language models to generate a ground truth set of answers to the set of questions (e.g., based on the interaction data 115) and generate a set of predicted answers to the set of questions (e.g., based on the preference summary data 127). As such, the QA evaluation component 142 may not use pre-generated reference, ground truth, or otherwise “desired” answers to the set of questions. Instead, the QA evaluation component 142 may be configured to generate (e.g., using the QA language model 320) the ground truth answers in real time (e.g., at the time of evaluation) based on the interaction data 115.

[0056] Based on a comparison of the ground truth set of answers and the set of predicted answers, the QA evaluation component 142 may determine an accuracy of the set of predicted answers and, based thereon, an accuracy of the preference summary data 127. In some embodiments, the accuracy evaluation data 145 may further include data pairs corresponding to the predicted answers of the set of predicted answers and the corresponding ground truth answers of the set of ground truth answers.

[0057] The quality evaluation component 147 may process the interaction data 115 and the preference summary data 127 to generate quality evaluation data 149 indicating a quality of the (knowledge preferences and / or natural language summary included in the) preference summary data 127 based on the interaction data 115. As described herein in connection with FIG. 3, the quality evaluation component 147 may evaluate the quality of the preference summary data 127 based on particular evaluation criteria (e.g., one or more evaluation criterion, such as relevance, redundancy, and / or model hallucination), which may describe how the quality evaluation component 147 is to evaluate the quality of the preference summary data 127. In some embodiments, the evaluation criteria may be specific to a particular category(ies) corresponding to the knowledge preferences and / or natural language summary. In some embodiments, the quality evaluation data 149 may indicate the quality of the preference summary data 127 for each evaluation criterion. In other embodiments, the quality evaluation data 149 may indicate an overall quality of the preference summary data 127 based on all (e.g., a sum, an average, etc.) of the evaluation criteria.

[0058] In some embodiments, the preference evaluation component 140 may be configured to evaluate other metrics of the preference summary data 127. For example, the length of the preference summary data 127 may be evaluated to determine whether the length of the preference summary data 127 complies with a length constraint or that the length of the preference summary data 127 is appropriate for the amount of information represented by the interaction data 115. For further example, a diversity of the categories represented in the preference summary data 127 may be evaluated for, to ensure that the preference summary data 127 represents all or at least most of the categories associated with the interaction data 115. In some embodiments, the evaluation for the abovementioned other metrics may be determined by the QA evaluation component 142 and / or the quality evaluation component 147.

[0059] The accuracy evaluation data 145 and / or the quality evaluation data 149 may be used by the system 100 for various purposes. For example, as shown in FIG. 1, the accuracy evaluation data 145 and / or the quality evaluation data 149 may be sent back to the knowledge preference generation component 120, which may facilitate the generation of a new / revised (version of the) preference summary data based on the accuracy evaluation data 145 and / or the quality evaluation data 149. In some embodiments, the new / revised (version of the) preference summary data may be generated based on the accuracy evaluation data 145 and / or the quality evaluation data 149 failing to satisfy a condition (e.g., failing to meet or exceed threshold accuracy and / or quality scores).

[0060] For further example, such as in embodiments where the accuracy evaluation data 145 includes the data pairs of predicted answers and corresponding ground truth answers, the accuracy evaluation data 145 (and / or the quality evaluation data 149) may indicate (to the knowledge preference generation component 120 and / or a user, such as a developer, a model engineer, a system administrator, etc.) the types of knowledge preferences that may be determined from interactions between the system 100 and a user. For instance, if the ground truth answer(s) and the predicted answer(s) to a question(s) of the set of questions indicate that an answer could not properly be determined (e.g., “I do not know,”“I cannot answer that question,” or the like), then that may indicate that the type of knowledge preference (e.g., a knowledge preference of a particular category) that the question is meant to evaluate for may not be determined (e.g., extrapolated) from the user's interactions or the particular interaction data.

[0061] As another example, the accuracy evaluation data 145 and / or the quality evaluation data 149 may be used for (further) configuration (e.g., training, finetuning, etc.) of a component (e.g., a language model, such as the preference language model(s) 125) of the system 100. For example, the accuracy evaluation data 145 and / or the quality evaluation data 149 may be used to further train (e.g., fine tune) the preference language model(s) 125, where, based on the accuracy evaluation data 145 and / or the quality evaluation data 149, the preference summary data 127 may be used a positive (e.g., desired) or negative example of a preference summary for the interaction data 115.

[0062] As an additional example, the accuracy evaluation data 145 and / or the quality evaluation data 149 may be used to revise a portion of the preference summary data 127, such as the portion(s) of the preference summary data 127 that failed to satisfy a condition (e.g., failing to meet or exceed threshold accuracy scores and / or quality scores) with respect to questions associated with a particular category, and / or an evaluation criterion. The portions of the preference summary data 127 that are to be revised may be indicated to the knowledge preference generation component 120 in order to generate the updated preference summary data. For example, if a portion of the preference summary data 127 (e.g., a knowledge preference and / or a portion of the natural language summary) associated with a user's entertainment interests is determined to be inaccurate and / or low quality, then knowledge preference generation component 120 may generate updated preference summary data (e.g., based on the accuracy evaluation data 145 and / or the quality evaluation data 149), which may include at least a new or revised version of the portion of the preference summary data 127 associated with the user's entertainment interests. In some such embodiments, the updated preference summary data may further include the same / similar portions of the preference summary data 127 that satisfied the condition(s). In some such embodiments, the knowledge preference generation component 120 may only process the portion of the preference summary data 127, the corresponding knowledge preferences, and the accuracy evaluation data 145 and the quality evaluation data 149 to generate the updated (portion of the) preference summary data. Thereafter, the updated preference data may be combined (e.g., concatenated with, summarized with, added to, etc.) with the portions of the preference summary data 127 determined to satisfy the condition(s).

[0063] In some embodiments, the preference summary data 127 may be presented to a user (e.g., the user 505). For example, the preference summary data 127 may be output as synthesized speech by a user device (e.g., the user device 510) or presented as natural language text on a screen of a device (e.g., the user device 510 shown in FIG. 5 or another user device). The natural language text may be presented during an interaction or via a message (e.g., an app notification, an email, a SMS message, etc.). In some such embodiments, the user may provide feedback corresponding to a modification to be made to be made to the preference summary data 127 (e.g., based on an accuracy and / or relevancy of the preference summary data 127). The feedback may be received by the system 100 and provided to the knowledge preference generation component 120 (separate from or in conjunction with the accuracy evaluation data 145 and / or the quality evaluation data 149) and used to generate updated (e.g., a new or revised / modified version of the) preference summary data. In some embodiments, based on the accuracy evaluation data 145 and / or the quality evaluation data 149, the updated preference summary data may be associated with (e.g., include a summary of) one or more prior knowledge preferences associated with the preference summary data 127. In some such embodiments, the updated preference summary data may include a summary of new knowledge preferences and / or a revised summary of the prior knowledge preferences. Additionally, or alternatively, based on the accuracy evaluation data 145 and / or the quality evaluation data 149, the updated preference summary data may be unassociated with (e.g., exclude a summary of) one or more prior knowledge preferences associated with the preference summary data.

[0064] FIG. 2 illustrates example components and processing of the knowledge preference generation component 120 to generate a knowledge preference summary (e.g., the preference summary data 127). As illustrated in FIG. 2, the knowledge preference generation component 120 may include a preference generation component 210, a preference verification component 220, a preference summarization component 230, and the preference language model(s) 125.

[0065] As shown in FIG. 2, the interaction data 115 is received at the preference generation component 210 and the preference verification component 220 of the knowledge preference generation component 120. The preference generation component 210 may be configured to facilitate the generation of one or more knowledge preferences based on the interaction data 115. As discussed above, a knowledge preference may correspond to information about the user that is determined (e.g., extrapolated) from interaction data 115.

[0066] The knowledge preference generation component 120 processes the interaction data 115 to generate preference generation prompt data 212, which is sent to the preference language model(s) 125 for processing. The preference generation prompt data 212 may include the interaction data 115 and may request that the preference language model(s) 125 generates knowledge preferences based on the interaction data 115.

[0067] The preference language model(s) 125 processes the preference generation prompt data 212 and generates model preferences data 215, which may include one or more knowledge preferences representing information about the user that is determined (e.g., extrapolated) from the interaction data 115. In some embodiments, a knowledge preference of the model preferences data 215 may include one or more natural language statements. The knowledge preference may be associated with a particular category. In some embodiments, the model preferences data 215 may also include data representing the model's Chain of Thought (CoT) reasoning / processing (e.g., outputs explaining the model's logic, process, or reasoning for generating the model output) associated with generation of the model preferences data 215. The model preferences data 215 may be provided to the preference generation component 210, which in turn, may provide it to the preference verification component 220.

[0068] In some embodiments, the preference language model(s) 125 may be updated to generate knowledge preferences associated with a customized category. For example, different components of the system 100 may be associated with different categories that are specific to the components, such as a category of “([Component 1 Category])” or “<Interest ([Component 1 Category])>,” or the like. As such, a knowledge preference including information extrapolated from an interaction between a particular component and the user may be identified based on it being associated with the custom category for that component. In some such embodiments, the component may indicate to the knowledge preference processing component 150 (e.g., the preference generation component 210) the custom category associated with the component. The preference generation component 210 may indicate the custom category to the preference language model(s) 125, such as in the preference generation prompt data 212, so that the preference language model(s) 125 may generate knowledge preferences associated with the category. In some embodiments, the preference language model(s) 125 may be trained on the indication provided by the component.

[0069] The preference verification component 220 may be configured to facilitate verification of the model preferences data 215 based on the interaction data 115. The preference verification component 220 may process the interaction data 115 and the model preferences data 215 to generate preference verification prompt data 222, which is sent to the preference language model(s) 125 for processing. In embodiments where the preference language model(s) 125 corresponds to more than one language model, the preference verification prompt data 222 may be sent to the same language model that generated the model preferences data 215 or a different language model, such as a language model specifically configured (e.g., trained, finetuned, etc.) to verify model-generated knowledge preferences. The preference verification prompt data 222 may include the interaction data 115 and the model preferences data 215 and may request that the preference language model(s) 125 verify the factual accuracy of the model preferences data 215 based on the interaction data 115.

[0070] The preference language model(s) 125 may process the preference verification prompt data 222 and generate model verification data 225, which may indicate a factual accuracy of the model preferences data 215 based on the interaction data 115. The model verification data 225 may include the knowledge preferences of the model preferences data 215 and corresponding indications of the factual accuracy of knowledge preferences. For a knowledge preference included in the model verification data 225, the model verification data 225 may include a sensitivity flag indicating the knowledge preference includes sensitive information (e.g., financial, medical, privileged, and / or confidential information) or a moderated content flag indicating the knowledge preference includes moderated content (e.g., profanity, violent content, adult content, etc.). The model verification data 225 may further include an API flag indicating the knowledge preference may be used as part of (e.g., a value, parameter, or argument) an API call. The model verification data 225 may further include citations or quotations indicating a portion(s) of the interaction data 115 from which the knowledge preference was determined (e.g., extrapolated) from. The model verification data 225 may further include the preference language model(s) 125 thought and / or reasoning (e.g., CoT outputs) for determining the factual accuracy of the model preferences data 215. The model verification data 225 may further include the preference language model(s) 125 determination of the factual accuracy of the knowledge preference, such as a natural language statement or a numerical score.

[0071] The model verification data 225 may be sent to the preference verification component 220. In some embodiments, the preference verification component 220 may filter the model preferences data 215 based on the model verification data 225. In other words, the knowledge preferences determined by the preference language model(s) 125 to not be factually accurate (or determined to not satisfy a condition, such as a meeting or exceeding a threshold level of factual accuracy), as indicated in the preference verification component 220, may be filtered from the model preferences data 215. Based on the model verification data 225, the preference verification component 220 may generate verified model preferences data 227 corresponding to the (filtered) model preferences data 215 and the (corresponding portions of the) model verification data 225, which may be sent to the preference summarization component 230.

[0072] The preference summarization component 230 may be configured to facilitate the generation of a natural language summary of the verified knowledge preferences (e.g., the verified model preferences data 227). The preference summarization component 230 may process the verified model preferences data 227 to generate preference summarization prompt data 232, which is sent to the preference language model(s) 125 for processing. In embodiments where the preference language model(s) 125 corresponds to more than one language model, the preference summarization prompt data 232 may be sent to the same language model that generated the model preferences data 215 and / or the model verification data 225 or a different language model, such as a language model specifically configured (e.g., trained, finetuned, etc.) to summarize model-generated knowledge preferences. The preference summarization prompt data 232 may include the verified model preferences data 227, and may request that the preference language model(s) 125 summarize the verified knowledge preferences (e.g., the verified model preferences data 227).

[0073] The preference language model(s) 125 may process the preference summarization prompt data 232 and generates model summarization data 235, which may correspond to a natural language summary of the verified model preferences data 227. The model summarization data 235 may be sent to the preference summarization component 230.

[0074] The preference summarization component 230 may use the model summarization data 235 to generate the preference summary data 127. As discussed herein, the preference summary data 127 may include a natural language summary of the knowledge preferences (e.g., the model summarization data 235) and, in some embodiments, further include the knowledge preferences (e.g., the verified model preferences data 227). The preference summary data 127, and the interaction data 115, may be sent to the profile storage 130 to be stored in association with a user profile (identifier) associated with the interaction data 115, as described herein. In some embodiments, the verified model preferences data 227 may be sent to the profile storage 130 to also be stored in associated with the user profile.

[0075] In some embodiments, feedback received from a user may be used to modify the processing of one or more components of the knowledge preference generation component 120. The user-provided feedback may be used to modify the processing performed by the preference generation component 210 and / or the preference language model(s) 125 to generate the model preferences data 215. For example, if the feedback includes negative feedback with respect to one or more knowledge preferences (e.g., representing the knowledge preferences were incorrect) based on the interaction data 105 (and, optionally, indicated in or stored with, the preference summary data 127), then the processing of the preference generation component 210 and / or the preference language model(s) 125 may be modified to cease generation of same / similar knowledge preferences for interactions that are the same / similar to the interaction data 115 or generate new knowledge preferences for the interaction data 115. The user-provided feedback may be used to modify the processing performed by the preference verification component 220 and / or the preference language model(s) 125 to generate the model verification data 225. For example, if the feedback includes negative feedback with respect to one or more knowledge preferences (e.g., representing the knowledge preferences were incorrect) based on the interaction data 105 (and, optionally, indicated in or stored with, the preference summary data 127), then the processing of the preference verification component 220 and / or the preference language model(s) 125 may be modified to identify same / similar knowledge preferences and filter them out accordingly (e.g., not include them in the verified model preferences data 227). The user-provided feedback may be used to modify the processing performed by the preference summarization component 230 and / or the preference language model(s) 125 to generate the model summarization data 235. For example, if the feedback includes negative feedback with respect to (a portion(s) of) the preference summary data 127, then the processing of the preference summarization component 230 and / or the preference language model(s) 125 may be modified to more accurately generate the model summarization data 235 based on the feedback.

[0076] FIG. 3 illustrates example components and processing of the QA evaluation component 142 to evaluate an accuracy of the knowledge preference summary (e.g., the preference summary data 127). As illustrated in FIG. 3, the QA evaluation component 142 may include a QA prompt generation component 310, a QA language model 320, a QA language model 330, and an evaluation component 340.

[0077] As shown in FIG. 3, the interaction data 115 and the preference summary data 127 are received at the QA prompt generation component 310. The QA prompt generation may further receive evaluation questions data 305. The evaluation questions data 305 may include one or more natural language questions for testing an accuracy of a knowledge preference summary (e.g., the preference summary data 127). In some embodiments, the evaluation questions data 305 may be generated by a user, such as a developer, a model engineer, a system administrator, etc. In some embodiments, the questions of the evaluation questions data 305 may be associated with the interaction data 115 and / or the preference summary data 127. For example, the questions may correspond to a same / similar category as the interaction data 115 and / or the knowledge preferences associated with the preference summary data 127. For instance, for preference summary data 127 associated with knowledge preferences corresponding to a category of “interest” or “music,” the questions of the evaluation questions data 305 may correspond to a domain of “entertainment” and / or a category of “interest” or “music,” or the like. In some embodiments, the evaluation questions data 305 may be received by the QA prompt generation component 310 based on a query from the QA prompt generation component 310 for questions for evaluating the preference summary data 127. In some such embodiments, the evaluation questions data 305 may be retrieved from a storage of the system 100 based on their being relevant to the preference summary data 127 (e.g., their corresponding to (a domain associated with) a same / similar category as the preference summary data 127).

[0078] The QA prompt generation component 310 may be configured to generate a prompt requesting the QA language model 320 and the QA language model 330 generate outputs responsive to the evaluation questions data 305. As shown in FIG. 3, the QA prompt generation component 310 processes the evaluation questions data 305 and the interaction data 115 to generate ground truth answers prompt data 312 requesting the QA language model 320 generate outputs responsive to the evaluation questions data 305 using the information included in the interaction data 115. Further, the QA prompt generation component 310 processes the evaluation questions data 305 and the preference summary data 127 to generate predicted answers prompt data 315 requesting the QA language model 330 generate outputs responsive to the evaluation questions data 305 using the information included in the preference summary data 127.

[0079] The QA language model 320 processes the ground truth answers prompt data 312 to generate interaction answers data 325 (also referred to herein as “ground truth” answers) corresponding to natural language outputs (e.g., responses) responsive to the evaluation questions data 305, which may be determined based on the interaction data 115. In other words, the QA language model 320 uses the interaction data 115 to answer the questions corresponding to the evaluation questions data 305. The interaction answers data 325 may be sent to the evaluation component 340.

[0080] The QA language model 330 processes the predicted answers prompt data 315 to generate preference summary answers data 335 (also referred to herein as “predicted” answers) corresponding to natural language outputs (e.g., responses) responsive to the evaluation questions data 305, which may be determined based on the preference summary data 127. In other words, the QA language model 330 uses the preference summary data 127 to answer the questions corresponding to the evaluation questions data 305. The preference summary answers data 335 may be sent to the evaluation component 340.

[0081] In some embodiments, the QA language model 320 and the QA language model 330 may be the same language model, where the language model generates the interaction answers data 325 and the preference summary answers data 335 based on being prompted using the ground truth answers prompt data 312 and the predicted answers prompt data 315, respectively.

[0082] The evaluation component 340 may be configured to evaluate the accuracy of a preference summary based on a comparison of a set of ground truth answers generated based on an interaction and a set predicted answers generated based on the interaction. Because the interaction answers data 325 correspond to natural language answers to the evaluation questions that were determined using the interaction data, the evaluation component 340 may use the interaction answers data 325 as the expected or desired answers / responses to the evaluation questions data 305. Further, because the preference summary answers data 335 correspond to natural language answers to the evaluation questions that were determined using the preference summary data 127 to be evaluated, the evaluation component 340 may use the preference summary answers data 335 as the predicted answers / responses to the evaluation questions data 305.

[0083] The evaluation component 340 may determine a comparison between the interaction answers data 325 and the preference summary answers data 335 to generate accuracy evaluation data 145. The accuracy evaluation data 145 may indicate an accuracy of the preference summary answers data 335 and / or the preference summary data 127. In some embodiments, the evaluation component 340 may include, or otherwise implement, an ML model (e.g., a transformer model and / or an encoder, such as a BERT model) configured to generate the accuracy evaluation data 145. For example, the evaluation component 340 may generate the accuracy evaluation data 145 based on a semantic similarity (or other similarity, such as lexical, factual, etc.) between the interaction answers data 325 and the preference summary answers data 335. In some such embodiments, the accuracy evaluation data 145 may include data (e.g., a score or likelihood of being semantically similar) representing the semantic similarity between the interaction answers data 325 and the preference summary answers data 335. The ML model may be configured to encode the answers of the interaction answers data 325 and the answers of the preference summary answers data 335 and perform the comparison between the encoded representations of the interaction answers data 325 and the preference summary answers data 335 to generate the accuracy evaluation data 145.

[0084] As discussed herein, in some embodiments, the preference evaluation component 140 (e.g., the QA evaluation component 142) may be configured to evaluate other metrics of the preference summary data 127. For example, a diversity of the categories represented in the preference summary data 127 may be evaluated for, to ensure that the preference summary data 127 represents all or at least most of the categories associated with the interaction data 115. In some embodiments, the evaluation questions data 305 may include questions associated with one or more categories that are or may be associated with the interaction data 115.

[0085] As discussed herein, the accuracy evaluation data 145 may be used by the system 100 (separate from or in conjunction with the quality evaluation data 149) for various purposes, such as generation of updated preference summary data (e.g., a new or revised version of portion(s) of the preference summary data 127), determination of the types of knowledge preferences that may be determined (e.g., extrapolated) from an interaction that is the same / similar to the interaction data 115, and / or configuration of a component of the system 100.

[0086] FIG. 4 illustrates example components and processing of the quality evaluation component 147 to evaluate a quality of the knowledge preference summary (e.g., the preference summary data 127). As illustrated in FIG. 4, the quality evaluation component 147 may include a quality prompt generation component 410 and a quality language model 420.

[0087] As shown in FIG. 4, the interaction data 115 and the preference summary data 127 are received at the quality prompt generation component 410. The quality prompt generation component 410 may further receive evaluation criteria data 405. The evaluation criteria data 405 may include one or more criteria for evaluating a quality of the preference summary data 127. In example embodiments, the evaluation criteria data 405 may include natural language text and / or tokens instructing the quality language model 420 as to how to evaluate the quality of the preference summary data 127, such as how to process (e.g., analyze) the preference summary data and how to score the quality of the preference summary data 127 (e.g., a score of 1-5). For example, the evaluation criteria data 405 may include “evaluate the quality of the preference summary using the following steps: (1) thoroughly read the preference summary; (2) review the interaction; (3) identify important content from the interaction and ensure it is included in the preference summary; (4) check for redundancies or factual inaccuracies in the preference summary; (5) assess the preference-based relevance using the following scoring system: [scoring system, including factors for assigning each score to a preference summary]; and (6) assign a score to the preference summary.”

[0088] In some embodiments, the evaluation criteria data 405 may include instructions for evaluating a quality of a particular type of preference summary, such as a preference summary associated with a particular category of knowledge preference(s). As such, the evaluation criteria data 405 may be sent to the quality prompt generation component 410 based on the evaluation criteria data 405 corresponding to (a domain associated with) a same / similar category as the preference summary data 127.

[0089] In some embodiments, the evaluation criteria data 405 may include instructions for evaluating the quality of the preference summary data 127 according to one or more evaluation criterions, such as for a relevance, redundancy, and / or model hallucination (e.g., whether the preference summary data 127 includes information resulting from a model hallucination(s)) of the preference summary data 127. In some such embodiments, the quality evaluation data 149 may include a portion (e.g., a score) for each of the evaluation criterions. Additionally, or alternatively, the quality evaluation data 149 may include an overall score corresponding to a sum or average of the scores corresponding to each of the evaluation criterion.

[0090] The quality evaluation component 147 may process the interaction data 115, the preference summary data 127, and the evaluation criteria data 405 to generate quality evaluation prompt data 415. The quality evaluation prompt data 415 may correspond to a request for the quality language model 420 to evaluate the quality of the preference summary data 127 based on the interaction data 115 and according to the evaluation criteria data 405.

[0091] The quality language model 420 may process the quality evaluation prompt data 415 to generate the quality evaluation data 149 (e.g., a score, such as a value of from 1-5) indicating the quality of the preference summary data 127. As discussed herein, the quality evaluation data 149 may be used (separate from or in conjunction with the accuracy evaluation data 145) for various purposes, such as generation of updated preference summary data (e.g., including or corresponding to a new or revised (version of) portion(s) of the preference summary data 127), determination of the types of knowledge preferences that may be determined (e.g., extrapolated) from an interaction that is the same / similar to the interaction data 115, and / or configuration of a component of the system 100.

[0092] Evaluating the preference summary data 127 according to a relevance evaluation criterion may include evaluating the relevance of the natural language summary (and / or the knowledge preferences) to the interaction data 115. A portion of the preference summary data 127 may be determined to be irrelevant if it is determined to be associated with information included in the interaction data 115 that is not (likely to be) associated with a user interest or dislike, preference, pattern, etc. For example, if the natural language summary (and / or knowledge preferences) includes information about a single, unique interaction (e.g., where the user asked “who was the 30th president of the United States?”), then the natural language summary (and / or knowledge preferences) may be determined to include irrelevant information. Additionally, or alternatively, a portion of the preference summary data 127 may be determined to be irrelevant if it is determined to not correspond to the category(ies) of the corresponding knowledge preferences. For example, if the preference summary data 127 includes knowledge preferences about a user's music interest, but a corresponding portion of the natural language summary corresponds to information about the user's pets, then the preference summary data 127 / the portion of the natural language summary may be determined to be irrelevant. The quality language model 420 may output a numerical value indicating the relevancy of the preference summary data 127. In some embodiments, the quality language model 420 may output a numerical value indicating the relevancy of the preference summary data 127 to each of the interaction data 115 and the category(ies) of the knowledge preferences.

[0093] Evaluating the preference summary data 127 according to a redundancy evaluation criterion may include evaluating whether the natural language summary (and / or the knowledge preferences) includes redundant information. A portion of the preference summary data 127 may be determined to be redundant if the portion of the interaction data is already represented in a different portion of the preference summary data 127. For example, if a first portion of the natural language summary (and / or knowledge preferences) represents a particular music interest of the user, then a second portion of the natural language summary (and / or knowledge preferences) may be determined to be redundant if it also represents (e.g., in an identical or similar manner) the particular music interest of the user. The quality language model 420 may output a numerical value indicating the redundancy of the preference summary data 127.

[0094] Evaluating the preference summary data 127 according to a model hallucination evaluation criterion may include evaluating whether the natural language summary (and / or the knowledge preferences) includes hallucinatory (e.g., factually inaccurate) information. A portion of the preference summary data 127 may be determined include hallucinatory information if it represents information not included or associated with the interaction data 115 or information that conflicts with parameter knowledge of the quality language model 420 (e.g., information learned during training of the quality language model 420). For example, if the natural language summary (and / or knowledge preferences) includes information about the user owning a dog, but the interaction data 115 only includes information about the user owning a cat, then the natural language summary (and / or knowledge preferences) may be determined to include hallucinatory information based on the interaction data 115. For further example, if the natural language summary (and / or knowledge preferences) includes information about the user living on the west coast of the United States, and the interaction data 115 includes information about the user living in Rhode Island, then the natural language summary (and / or knowledge preferences) may be determined to include hallucinatory information based on the parametric knowledge of the quality language model 420 (e.g., the knowledge of the quality language model 420 indicating that the state of Rhode Island is on the east coast of the United States).

[0095] As discussed above, in some embodiments, the preference evaluation component 140 (e.g., the quality evaluation component 147) may be configured to evaluate other metrics of the preference summary data 127. In some such embodiments, the preference evaluation component 140 may be configured to evaluate the preference summary data according to a length metric. For example, in some such embodiments, the prompt provided to a language model to process according to the preference summary data 127 may be limited to a particular number of inputs tokens (e.g., corresponding to a maximum prompt context the language model is trained for). As such, the length of the preference summary data may be evaluated to ensure it complies with a length constraint or that the length of the preference summary data 127 is appropriate for the amount of information represented by the interaction data 115, such that the entirety of the preference summary data 127 (and other context and / or template information) may be included in a language model prompt. In some such embodiments, the evaluation criteria data 405 may further indicate the length constraint / threshold for evaluating the length of the preference summary data 127. In some embodiments, the length constraint / threshold included in the evaluation criteria data 405 may be determined based on the language model that is to process a prompt including the preference summary data 127 (e.g., based on a maximum prompt context the language model is trained for). In some such embodiments, the evaluation of the length of the preference summary data 127 may result in the quality language model 420 outputting a binary indicator (e.g., 0 or 1, yes or no, or the like) representing whether the length of the preference summary data 127 meets a condition (e.g., the length constraint / threshold) or not. In other such embodiments, the quality language model 420 may output a numerical value including the number of tokens included in evaluated preference summary data (e.g., the preference summary data 127), which may be used by a component of the system 100 for selecting preference summary data 127 of an appropriate length for processing by a particular language model.

[0096] FIG. 5 illustrates further example components included in the system 100 configured to use a language-model based approach to determine an action to be performed in response to a user input and determine a response to be presented to a user 505. As shown in FIG. 5, the system 100 may include a user device 510, local to the user 505, in communication with one or more system component(s) 520 via a network(s) 599. The network(s) 599 may include the Internet and / or any other wide- or local-area network, and may include wired, wireless, and / or cellular network hardware.

[0097] In some embodiments, the system component(s) 520 may include various components that may support processing by a language model, such as a language model orchestrator component 530. In example embodiments, the language model orchestrator component 530 may include an initial plan generation component 535, a prompt generation component 540, at least one language model 545, and an action plan generation component 550. The system component(s) 520 may further include an action plan execution component 525 configured to facilitate / cause performance of actions that may be determined by the language model 545. The system component(s) 520 may further include one or more responding components 560 that may perform the actions.

[0098] The responding components 560 may be configured to perform an action related to a user input, including, but not limited to retrieving information potentially relevant for determining a response to the user input (e.g., data from a knowledge base, Internet search, database, an application, etc.; context related to the interaction; relevant exemplars for a prompt to the language model; relevant application programming interfaces (APIs); etc.), retrieving information for personalizing the response and / or an action performed to the user / user profile associated with the user input (e.g., a preference summary), operating a user device (e.g., a smart home device such as a TV, lights, a kitchen appliance, etc.), determining a synthesized speech output, or other actions described herein. As shown in FIG. 5, the responding components 560 may include an API retriever component 542 (further described below), a synthesized speech generation (SSG) component 556, one or more skill / app components 554, the profile storage 130, and other components described herein.

[0099] APIs are a way for one program / component to interact with another. API calls are a mechanism by which the program / component interact. An API call, or API command, is a message sent to a system component asking an API to perform an action, provide a service or information, or the like. An API call may be formatted for the particular API and may include a particular command, optionally using particular arguments and argument values. API calls may be used for a variety of purposes, such as controlling other devices (e.g., an API call of turn_on_device (device=“indoor light 1”) corresponds to a command for a component to turn on a device associated with the identifier “indoor light 1”), obtaining information from other components (e.g., an API call of InfoQA.question (“Who is the president of USA?”) corresponds to a command for a component to find and provide an answer to the indicated question), and performing other actions (e.g., generating synthesized speech, searching data sources, etc.). The system 100 may interact with the responding components 560 via API calls.

[0100] The language model orchestrator component 530 may be configured to orchestrate processing by the language model 545. In some embodiments, the language model 545 may be configured to perform one or more stages of processing, which may be referred to as a task generation stage, an action (or directive) generation stage, and a response generation stage.

[0101] The processing stages may be performed in a particular order. For example, during a first stage of processing, the language model 545 may be tasked with performing task generation to generate a list of tasks to be performed in order to respond to a user input. During a second stage of processing, based on the list of tasks, the language model 545 may be tasked with performing action generation to generate action requests (or directives) for a responding component(s) 560 to perform an action(s) related to the tasks / user input. During a third stage of processing, based on information received from the responding component(s) 560, the language model 545 may be tasked with generating a response to the user input and / or causing a component(s) of the system 100 to perform further action(s). Further details are described herein in relation to FIG. 6.

[0102] In some cases, a subset of the stages may be performed. For some user inputs, the language model 545 may only perform the task generation stage and the response generation stage, where a response to a user input is generated by the language model 545 using parametric knowledge. For example, for a user input “What kind of fruit is lemon?”, the language model 545 may determine that the task is to answer the user's question and may generate a response “Lemon is a citrus fruit that grows on tress” based on the model's parameter knowledge learned during configuration / training operations. In such examples, the language model 545 may not determine an action that is to be performed using a system component, such as sending a request for information to a knowledge base (e.g., the language model 545 may respond without using external knowledge).

[0103] In some embodiments, the system may use Retrieval-Augmented Generation (RAG) techniques to inform processing of a language model. RAG techniques may involve referencing an authoritative knowledge base or other type of data source outside of the model's training data sources before generating a response by the model. RAG techniques may extend the already powerful capabilities of language models to specific domains, an organization's internal knowledge base, etc., without the need to retrain the model. In some embodiments, information (e.g., relevant facts, up-to-date information, current / trending topics, etc.) from one or more components (e.g., responding component(s) 560) may be provided to the language model 545 and the model may generate an output based on the received information.

[0104] In some embodiments, the language model orchestrator component 530 may be configured to orchestrate processing by multiple different language models, where an individual language model may perform one (or more) of the processing stages described above. For example, a first language model may perform task generation, a second language model may perform action generation, and a third language model may perform response generation. In some embodiments, the language models may be different types of models, for example, a first language model may be a text-to-text generative model, a second language model may be a multi-modal generative model, a third language model may be a text-to-speech generative model, etc. In some embodiments, the language models may be different sizes (e.g., number of parameters), may have different processing capabilities, etc.

[0105] Some embodiments may enable use of other components, such as plugins, with the language model 545, where the plugins may add functionality and features to the language model capabilities. For example, the plugins may be used to perform mathematical calculations (e.g., a calculator plugin), statistical analysis (e.g., a statistics plugin), natural language translation, speech generation, etc. For further example, the plugins may additionally, or alternatively, be used to perform an action responsive to a user input based on the response generated by the language model. As a further example, the plugins may cause the language model to process and output according to an enabled plugin, which may result in a different response, reasoning, processing, etc. from the language model than when the plugin is not enabled. In some cases, a user or a system may enable a plugin(s) for use with the language model.

[0106] The system component(s) 520 may include other processing components configured to process user inputs and other type of inputs (e.g., sensor data, audio data, data indicative of an event occurring, etc.) received via the user device 510. In example embodiments, the system component(s) 520 may process spoken inputs using ASR processing. The system component(s) 520 may also be configured to process non-spoken inputs, such as gestures, textual inputs, selection of GUI elements, selection of device buttons, etc. The system component(s) 520 may also include other components to understand an input, determine an action to be performed in response to receiving the input, generate an output responsive to the input, and the like. Such other components may perform natural language processing, SSG processing, etc., some of which are described herein in relation to FIG. 7.

[0107] As shown in FIG. 5, the system component(s) 520 may receive user input data 527, which may be provided to the language model orchestrator component 530 (as shown in FIG. 6). In some instances, the user input data 527 may include one or more types of data, such as text (e.g., a text or tokenized representation of a user input), audio, image, video, etc. Such data may be encoded / embedded data that represent the underlying type of data (e.g., text, audio, image, etc.). For example, the user input data 527 may include text (or tokenized) data when the user input is a natural language user input. In some embodiments, an ASR component 750 of the system 100 may receive audio data representing a spoken natural language user input from the user 505. The ASR component 750 may perform ASR processing on the audio data to determine ASR data representing the spoken user input, which may correspond to a transcript of the user input. As described herein, with respect to FIG. 7, the ASR component 750 may determine ASR data that includes an ASR N-best list including multiple ASR hypotheses and corresponding confidence scores representing what the user may have said. The ASR hypotheses may include text data, token data, ASR confidence score, etc. as representing the input utterance. The confidence score of each ASR hypothesis may indicate the ASR component's 750 level of confidence that the corresponding hypothesis represents what the user said. The ASR component 750 may also determine token scores corresponding to each token / word of the ASR hypothesis, where the token score indicates the ASR component's 750 level of confidence that the respective token / word was spoken by the user. The token scores may be identified as an entity score when the corresponding token relates to an entity. In some instances, the user input data 527 may include a top scoring ASR hypothesis of the ASR data. As an even further example, in some embodiments, the user input may correspond to an actuation of a physical button, data representing selection of a button displayed on a graphical user interface (GUI), image data of a gesture user input, combination of different types of user inputs (e.g., gesture and button actuation), etc. In such embodiments, the system 100 may include one or more components configured to process such user inputs to generate the text or tokenized representation of the user input (e.g., the user input data 527). As a further example, the user input data 527 may include image data representing information being displayed at the user device 510 (e.g., on-screen context data) when the user 505 provides the user input or at substantially the same time as the user 505 provides the user input. As yet a further example, the user input data 527 may include audio data representing audio signals (e.g., background noise, audio from other devices such as TV, appliances, etc.) occurring in the environment of the user 505 that can be captured by the user device 510 (e.g., audio environment context). As yet a further example, the user input data 527 may include image data representing one or more objects in the environment of the user 505 (e.g., visual environment context). As yet a further example, the system may receive image data including text (and other data), and the user input data 527 may include text determined from the image data using optical character recognition or other techniques.

[0108] In some embodiments, the system component(s) 520 may receive input data that may not be provided directly / explicitly by a user. Such other type of input data may be processed in a similar manner as the user input data 527 as described herein. Such other type of input data may be received in response to detection of an event. Example events include change in a device state (e.g., front door opening, garage door closing, TV turned off, thermostat detecting a particular temperature, etc.), occurrence of an acoustic event (e.g., baby crying, appliance beeping, glass breaking, etc.), presence of a user (e.g., a user approaching the user device 510, a user entering the home, etc.), occurrence of an event indicated by a user (e.g., a reminder / notification requested by the user, sporting event score change, start of a TV program, calendar event, etc.), and others. In some embodiments, the system 100 may process the input data and generate a response / output. For example, the input data may be received in response to detection of a user generally or a particular user, an expiration of a timer, a time of day, detection of a change in the weather, a device state change, etc. In some embodiments, the input data may include data corresponding to the event, such as sensor data (e.g., image data, audio data, proximity sensor data, short-range wireless signal data, etc.), a description associated with the timer, the time of day, a description of the change in weather, an indication of the device state that changed, etc. The system 100 may include one or more components configured to process the input data to generate a natural language representation of the input data. The system 100, for example, the language model orchestrator component 530 may process the input data and may cause performance of an action. For example, in response to detecting a garage door opening, the system 100 may cause garage lights to turn on, living room lights to turn on, etc. As another example, in response to detecting an oven beeping, the system 100 may cause a user device 510 (e.g., a smartphone, a smart speaker, etc.) to present an alert to the user. The language model orchestrator component 530 may process the input data to generate tasks (e.g., an action plan) that may cause the foregoing example actions to be performed.

[0109] FIG. 6 illustrates example processing of the user input data 527 by the system component(s) 520 using the language model 545. Although the figure and discussion of the present disclosure illustrate certain components and steps in a particular order, the components may be implemented in a different manner (as well as certain components removed or added) and the steps described may be performed in a different order (as well as certain steps removed or added) without departing from the present disclosure.

[0110] In some embodiments, the language model 545 may perform iterative processing (e.g., multiple processing cycles, multiple processing stages, etc.) with respect to individual user input data 527. Such iterative processing is illustrated and described herein with respect to FIG. 6. For example, in a first iteration of processing the language model 545 may receive a first prompt from the prompt generation component 540, in response to which the language model 545 may determine one or more tasks to be performed with respect to the user input data 527, then at least one of the determined task(s) may be performed via the action plan execution component 525, the results of the performed task(s) may be provided to the language model 545 via a second prompt, in response to which the language model 545 may determine further tasks to be performed or may determine that a (final) response to the user input is determined.

[0111] The initial plan generation component 535 may be configured to determine various information relevant to processing of the user input data 527 by the language model orchestrator component 530. The initial plan generation component 535 may generate an action plan (e.g., action plan for prompt data 626) representing one or more tasks / actions to be performed to determine the various relevant information. The relevant information may be included in a prompt to the language model 545. The initial plan generation component 535 may receive (step 1) the user input data 527 representing a user input from the user 505. Based on the user input data 527, the initial plan generation component 535 may determine information relevant for processing the user input data 527 and may output (step 2) the action plan for prompt data 626. The action plan for prompt data 626 may include one or more tasks to be performed to retrieve the relevant information. The tasks may be represented as action descriptions, API requests / calls, API descriptions, requests to a component(s) (e.g., the responding components 560), and the like. Examples tasks that may be included in the action plan for prompt data 626 may relate to obtaining certain information like context data, user profile data and / or user preferences (e.g., preference summary data, such as the preference summary data 127), available / relevant exemplars, available / relevant APIs, etc.

[0112] In example embodiments, the initial plan generation component 535 may determine one or more types of context data relevant for the user input data 527. Types of context data may include user context (e.g., user location, user profile identifier, user demographics, user profile data and user preferences, such as a preference summary (e.g., the preference summary data 127) associated with the user profile, personalized catalogs, enabled skills / applications, etc.), device context (e.g., device type, device identifier, device location (e.g., living room, kitchen, office, etc.), device capabilities, device state, etc.), environmental context (e.g., time / date the past user input was received / processed, device that received the user input, device that responded to the user input, objects proximate to the device / user, background audio / noises, state / status of device(s) in the user's environment (e.g., TV is on, thermostat temperature, etc.), dialog context (also referred to herein as an interaction) (e.g., prior user inputs of a dialog, prior system responses of the dialog, dialog topic, actions performed during the dialog, etc.), and the like. As an example, if the user input data 527 corresponds to operation of a device (e.g., the user input corresponds to a smart home domain), the initial plan generation component 535 may determine that device context information, in particular device states for the devices associated with the user / user profile of the user 505, may be relevant information. As another example, if the user input data 527 corresponds to output of media, such as music, movies, TV shows, etc., the initial plan generation component 535 may determine that user context information, in particular a preference summary indicates a user preference for media genre associated with the user / user profile of the user 505, may be relevant information.

[0113] Based on the type of context data determined to be relevant, the initial plan generation component 535 may output the action plan for prompt data 626 to include a request for the type(s) of context data. For example, if device context is relevant information, then the action plan for prompt data 626 may include an API call / description corresponding to a component (e.g., a device state component, a smart home component, a user profile storage, etc.) capable of providing device information. As another example, if user context (e.g., a preference summary associated with the user / user profile) is relevant information, then the action plan for prompt data 626 may include an API call / description corresponding to a component (e.g., the personalization service(s) 160) capable of providing user information.

[0114] In some embodiments, the initial plan generation component 535 may determine one or more components or types of components that may be relevant for processing the user input data 527. As an example, if the user input data 527 corresponds to operation of a device (e.g., the user input corresponds to a smart home domain), the initial plan generation component 535 may determine that components (e.g., APIs) corresponding to device operation or smart home domain may be relevant, and the initial plan generation component 535 may output the action plan for prompt data 626 to include device operation components or smart home domain components. As another example, if the user input data 527 corresponds to output of media, the initial plan generation component 535 may determine components corresponding to media output or music domain may be relevant, and the initial plan generation component 535 may output the action plan for prompt data 626 to include media output components or music domain components.

[0115] In some embodiments, the initial plan generation component 535 may determine a query to retrieve exemplars and / or APIs relevant for processing the user input data 527 using the language model 545. As used herein, an exemplar refers to information that may be included in a prompt to a language model that provides an example of how the language model is to process or respond, including, among other things, what actions the language model can request performance of. A prompt may include more than one exemplar. Few shot learning or in-context learning by the language model is enabled by including the exemplars in the prompt. The query (or request) to retrieve relevant exemplars and / or APIs may be included in the action plan for prompt data 626. The query (or an API request based on the query) may be processed by the responding component 560 (e.g., an exemplar retriever component, the API retriever component 542, etc.). The query, in some embodiments, may include the user input data 527 or a portion or representation thereof.

[0116] The initial plan generation component 535 may employ one or more techniques to determine relevant information or to determine the tasks to obtain relevant information. Examples of such techniques include using one or more of machine learning models (e.g., classifiers), statistical models, rules engines, etc. to determine the relevant information. The initial plan generation component 535 may determine a topic / category corresponding to the user input data 527, a (semantically or lexically) similar past user input and relevant information corresponding to the similar past user input, and the like.

[0117] In example embodiments, the initial plan generation component 535 may use a language model to determine the types of information relevant for processing the user input data 527. The initial plan generation component 535 may input a prompt to the language model, for example, “What types of information is relevant for responding to the user input: [user input data 527]”, and the language model may output one or more types of context data, one or more types of components, etc. that may be relevant. In some embodiments, the initial plan generation component 535 may input a prompt to the language model 545 requesting relevant information for the user input data 527.

[0118] The action plan for prompt data 626, which includes types of relevant information for the user input data 527 or tasks to be performed to obtain the relevant information, may be processed by the action plan execution component 525 to retrieve the relevant information. The action plan execution component 525 may process the action plan for prompt data 626 to generate one or more requests to perform an action (e.g., API requests 636) for a particular responding component 560. For example, if the action plan for prompt data 626 indicates that device information / context is relevant, then the action plan execution component 525 may generate an API request 636 for a responding component 560a capable of providing the device information, where the API request 636 may include a user profile identifier associated with the user 505, a device identifier associated with the user device 510, and / or other information based on information required in the API call for the responding component 560a. For further example, if the action plan for prompt data 626 indicates that user information / preference is relevant, then the action plan execution component 525 may generate an API request 636 for a responding component 560b (e.g., the personalization service(s)) capable of providing the user information (e.g., the preference summary data 127), where the API request 636 may include a user profile identifier associated with the user 505 and / or other information based on information required in the API call for the responding component 560b.

[0119] The API request 636 may be sent (step 3) to the corresponding responding component(s) 560. The responding component(s) 560 may include components that the action plan execution component 525 may communicate with via API requests or other type requests. As shown in FIG. 5, the responding component(s) 560 may include one or more skill / app components 554, the SSG component 556 (e.g., configured to convert input data to audio data representing synthesized speech), and the API retriever component 542 (e.g., configured to provide APIs and corresponding information supported by the system 100). The responding component(s) 560 may also include an orchestrator component 730 (e.g., configured to facilitate processing by other system components 520 such as those shown in FIG. 7), a personalization service(s) 160 (e.g., configured to provide user context data, device context data, environmental context data, dialog context data, personalized context data, etc.), a multimodal response component (e.g., configured to respond to a user input via outputs in more than one data form), a content moderation component (e.g., configured to moderate certain types of content such as biased content, harmful content, offensive content, etc.), a smart home devices component (e.g., configured to provide device information such as device state, device capabilities, etc.), a language model-based agent (e.g., a component that uses a language model (e.g., a LLM) or other type of generative model to provide information), an exemplar provider component (e.g., configured to respond to a query for relevant exemplars), a knowledge base component (e.g., including one or more knowledge bases or other structured data that can be searched to obtain information), an entity resolution component (e.g., configured to determine specific entities corresponding to entities represented in a user input or language model output), and the like.

[0120] In response to receiving the API request 636 (at step 3), the responding component(s) 560 may provide (step 4) an API response(s) 662 to the action plan execution component 525. At step 3, the API request(s) 636 is based on the action plan for prompt data 626, and thus, at step 4, the API response(s) 662 may include information relevant for processing the user input data 527. In examples, the API response(s) 662 may include relevant context information (e.g., device context, user context (e.g., a preference summary), environment context, dialog context, personalized context, etc.), relevant APIs and / or API descriptions for processing the user input data (e.g., API(s) for operating devices, API(s) for outputting media content, etc.), relevant exemplars, and other relevant information requested via the action plan for prompt data 626.

[0121] In example embodiments, the API request 636 may be sent to the API retriever component 542. In such cases, the API request 636 may include a query to retrieve relevant APIs based on the user input data 527. The API retriever component 542 may be configured to receive a search query and output one or more APIs or API data corresponding to (e.g., satisfying, matching, etc.) the search query. API data may include an API call, an API description, and other information associated with the API. In some embodiments, the API retriever component 542 may include or may be in communication with an index storage 544 (shown in FIG. 5). The index storage 544 may store various information associated with multiple APIs. Examples of information stored in the index storage 544 include: API / component descriptions (e.g., a description of one or more function that the API can be used to perform), API arguments (e.g., parameter inputs, input types, examples of input values, examples of output values, output type, etc.), identifiers for components corresponding to the API (e.g., alphanumerical component ID, component name, etc.), and other information. In some embodiments, the index storage 544 may include other information associated with the API, such as historical accuracy / defect rate, historical latency value, feedback (e.g., user satisfaction / feedback, system-based feedback), etc. The index storage 544 may also include sample user inputs corresponding to the API, where the sample user input may represent a user input for which the API can perform an action for.

[0122] The API retriever component 542 may apply one or more retrieval techniques to determine API data corresponding to the search query. For example, the API retriever component 542 may compare one or more APIs included / represented in the index storage 544 to the user input data 527 represented in the search query to determine one or more APIs (top-k list). Such comparison may involve a semantic comparison between the user input data 527 and the API data. In some embodiments, the API retriever component 542 may use a neural-based retrieval technique that may involve determining an encoded representation of the user input / search query and comparing (e.g., using cosine distance) the encoded representation(s) of the API data in the index storage 544. The relevant APIs may be included in the API response 662.

[0123] In a non-limiting example, for a user input “book a flight”, the API retriever component 542 may determine one or more API calls corresponding to booking a flight (e.g., Bookflight.location (“departing airport code”, “arrival airport code”), Bookflight.date (“departing date”), bookflight.rountrip (“departing location”, “arrival location”, “departure date”, “return date”), AirlineBookFlight (“departing airport code”, “arrival airport code”), etc.).

[0124] Some embodiments may include an exemplar provider component that may operate in a similar manner as the API retriever component 542 in terms of implementing one or more retrieval techniques to determine exemplars corresponding to (e.g., satisfying, matching, etc.) a search query based on the user input data 527. The exemplar provider component may search an index storage including various information related to multiple different exemplars. In some embodiments, the index storage may include sample user inputs associated with an exemplar, and the relevant exemplars may be retrieved based on a comparison of the sample user inputs and the user input data 527. The retrieved exemplars may be included in the API response 662.

[0125] The information from the API response(s) 662 may be included in a prompt to the language model 545. The action plan execution component 525 may determine action plan response data 638 based on the API response(s) 662. The action plan execution component 525 may combine (e.g., aggregate, summarize, de-duplicate, etc.) multiple API responses 662 to generate the action plan response data 638. In some examples, the action plan response data 638 may be the same or similar to the API response(s) 662. The action plan execution component 525 may send (step 5) the action plan response data 638 to the prompt generation component 540.

[0126] Using the action plan response data 638, the prompt generation component 540 may determine prompt 642 for the language model 545. The prompt 642 may be a natural language input (e.g., a natural language request, a natural language instruction, etc.). In some embodiments, the prompt 642 may include information in a manner that the language model 545 is trained for. The prompt generation component 540 may send (step 6) the prompt 642 to the language model 545, where the prompt 642 may include the user input data 527 (or a representation of the user input data 527) and the relevant information for processing the user input data 527. For example, the prompt 642 (at step 6) may include relevant context data, relevant APIs or API descriptions, etc. that may be included in the action plan response data 638. In some embodiments, the prompt 642 may include a request or directive for the language model 545 to respond to the user input data 527. In some embodiments, the prompt 642 may include one or more exemplars (e.g., in-context learning examples) for processing the user input data 527.

[0127] The prompt 642 may include indicators (e.g., labels, specific tokens, etc.) to identify certain information. In example embodiments, the prompt 642 may include a “User” indicator (to indicate that the following string of characters / tokens are the user input), an “Exemplar” indicator (to indicate exemplars), and so on.

[0128] In some embodiments, the prompts for the language model described herein may include a request for the language model to output a response that satisfies certain conditions. Such conditions may relate to generating a response that is unbiased (toward protected classes, such as gender, race, age, etc.), non-harmful, profanity-free, etc. For example, prompt data generated by a prompt generation component described herein may include “Please generate a polite, respectful, and safe response and one that does not violate protected class policy.”

[0129] In some embodiments, the prompt 642 may include an indication the processing stages (e.g., the task generation stage, the action generation stage, and the response generation stage) that the language model 545 is to perform. In some examples, for the task generation stage, the prompt 642 may direct the language model 545 to generate an output (e.g., tokens) representing the model's interpretation of the user input and / or one or more tasks to be performed to respond to the user input (the model output may be, for example, the user is requesting [intent of the user input], the user wants to [desired user action], need to determine [information needed to properly process the user input], etc.). For the task generation stage, the prompt 642 may also direct the language model 545 to prioritize a list of tasks to be performed, if more than one task is to be performed and select one (or more) task for the current iteration of processing.

[0130] In some examples, for the action generation stage, the prompt 642 may direct the language model 545 to generate an output (e.g. tokens) representing an action(s) (or directive(s)) and / or an API call(s) corresponding to the user input, where performance of the action(s) or execution of the API(s) can be done to retrieve information to determine a response to the user's input, perform the user requested action, retrieve information / data to perform other tasks on the task list, etc. In some examples, for the action generation stage, the prompt 642 may direct the language model 545 to process the results of the action(s) / API(s) determined by the language model 545, and to determine whether a response to the user input can be generated or whether there are further tasks to be performed from the task list.

[0131] In some examples, for the response generation stage, the prompt 642 may direct the language model 545 to generate an output (e.g., tokens) representing a response (e.g., a final response) to the user input data 527. In examples, the language model 545 may be directed to generate the response based on the results of performing the action(s) / API(s).

[0132] The prompt generation component 540 may send (step 6) the prompt 642 to the language model 545, which may process the prompt 642 to generate a language model (LM) response 646. The LM response 646 may be a natural language output generated based on the prompt 642. The LM response 646 may include text tokens. In other embodiments, where the language model 545 may be a multi-modal model, the LM response 646 may include other types of tokens, for example, audio tokens, image tokens, etc.

[0133] Based on receiving the prompt 642 at step 6, the language model 545 may generate the LM response 646 at step 7, where the instant LM response 646 may include outputs corresponding to the task generation stage and the action generation stage. The LM response 646 may include an action for determining information relevant to or responsive to the user input data 527. For example, the LM response 646 may include an action to search a knowledge base (e.g., to find a response to a user question), an action to determine information from a particular skill / app or language model-based agent (e.g., to determine current weather information, to determine a cost of an item, to book travel, etc.), an action to operate a device (e.g., turn on lights, set thermostat to a particular temperature, etc.), an action to request information from the user 505, etc.

[0134] In some embodiments, the LM response 646 may include an API or API description corresponding to the determined action. For example, the LM response 646 may include an API to operate a device or an API call(s) to output media content. The language model 545 may determine the actions and / or the API information based on the relevant APIs included in the prompt 642. The language model 545 may generate actions and / or API information that is not based on (e.g., correspond to, is similar to, etc.) the relevant APIs included in the prompt 642 (for example, the language model 545 may generate incorrect / unsupported actions and / or API information).

[0135] The LM response 646 may follow the format included in the prompt 642 or that the language model 545 is trained to follow. An example prompt 642 may be:

[0136] {

[0137] Please process the following user input and context data to determine at least one action or API to execute and generate a response to the user.

[0138] First determine a task to perform (use “Task” label), then determine an API to perform the task (use “Action” label), then process the results from the API, and then generate a response to the user input (use “Response” label). You may determine multiple tasks to perform. You may have to process iteratively.

[0139] User: Turn on living room TV

[0140] Available context:

[0141] User devices: “living room TV”=[device id]

[0142] “living room TV” device state=Off

[0143] Available APIs:

[0144] TurnOn.device (device)

[0145] Turn VolumeUp.device (device)

[0146] SetTVChannel (device, input channel)

[0147] }

[0148] Based on processing the above example prompt 642, an example LM response 646 (at step 7) may be:

[0149] {

[0150] Task: User wants to turn on living room TV that is operation of a user device.

[0151] Action: I need an API to operate a device. TurnOn.device (device=“living room TV”)

[0152] }

[0153] The LM response 646 may be sent (step 7) to the action plan generation component 550, which may determine action plan data 652. As described herein, the language model 545 may generate tokens in sequence, as such, the language model 545 may generate portions of the LM response 646 in a tokens-by-tokens basis. In some embodiments, the LM response 646 may be processed by the action plan generation component 550 based on the language model 545 generating the tokens representing the action or corresponding to the action generation stage.

[0154] The action plan generation component 550 may process the LM response 646 to identify one or more actions / APIs generated by the language model 545. In examples, the action plan generation component 550 may parse the tokens / text included in the LM response 646 to extract tokens / text representing an action or API. In some embodiments, the action plan generation component 550 may be configured to determine one or more components (e.g., responding components 560a-n) configured to perform the identified action or API. Based on the LM response 646, the action plan generation component 550 may determine the action plan data 652, which may in turn cause performance of an action (e.g., execution of API calls) to determine a potential responses(s) to the user input. The action plan data 652 may include one or more APIs to be executed, where the APIs may be determined based on (e.g., extracted from) the LM response 646. For example, if the LM response 646 includes an action of “determine weather forecast for today” or an API call of “GetWeather.location ([city])”, then the action plan generation component 550 may determine the action plan data 652 to include an API call “GetWeather.location ([city])” and include an identifier for the responding component(s) 560a (e.g., a weather skill component). Instead of or in addition to an API call, the action plan data 652 may include a request to perform an action, an API description, etc. In some embodiments, the action plan generation component 550 may determine the responding components 560 based on user permissions, subscriptions, authorization or other use-enabling information associated with the user 505 (e.g., included in user profile data).

[0155] In some embodiments, the action plan generation component 550 may be configured to determine more than one responding component 560 to perform the action / execute the API indicated in the LM response 646. In some embodiments, the action plan generation component 550 may determine APIs corresponding to multiple responding components 560. For example, for the “GetWeather.location ([city])” API, the action plan data 652 may include an identifier for a first weather skill component, an identifier for a second weather skill component, an identifier for a search engine component, etc.

[0156] The action plan data 652 may be sent (step 8) to the action plan execution component 525. The action plan execution component 525 may identify the APIs in the action plan data 652 and generate executable API calls for the corresponding responding components 560. Based on the action plan data (received at step 8), the action plan execution component 525 may generate an additional (a second) API request (or multiple API requests) 636. The (additional / second) API request(s) 636 may be sent (step 9) to the responding component(s) 560. For example, the action plan execution component 525 may send a first API call to a first responding component 560a and a second API call to a second responding component 560b.

[0157] In some cases, the action plan data 652 may include incomplete API calls and the action plan execution component 525 may be configured to generate executable API calls (e.g., complete API calls) corresponding to the action plan data 652.

[0158] The action plan execution component 525 may generate one or more executable API calls including one or more parameters using information included in the action plan data 652 and / or various other contextual information (e.g., speaker recognition results, a user ID, user profile information (e.g., age, gender, location, language, geographic marketplace, etc.), device ID, device profile information, device state indicators, a dialog history, and / or interaction data associated with the user and / or the device, etc.). In some embodiments, the various contextual information may be contextual information not provided to the language model orchestrator component 530. Prior to generating the executable commands, the action plan execution component 525 may modify (e.g., remove, filter, preempt, etc.) a directive included in the action plan data 652 that is determined to be in conflict with a system operating policy. The action plan execution component 525 may generate one or more additional executable commands corresponding to directives not included in the action plan data 652.

[0159] In response to receiving the API request(s) 636 (at step 9), the responding component(s) 560 may send (step 10) an (additional / second) API response(s) 662 to the action plan execution component 525. The action plan execution component 525 may determine (additional / second) action plan response data 638 based on the (additional / second) API response(s) 662. The action plan execution component 525 may combine (e.g., aggregate, summarize, de-duplicate, etc.) multiple API responses 662 to generate the action plan response data 638. In some examples, the action plan response data 638 may be the same or similar to the API response(s) 662. In some examples, the action plan response data 638 may include an identifier associated with the responding component 560 that provided the API response 662. For example, the (additional / second) action plan response data 638 may include first weather information from a first weather skill component, second weather information from a second weather skill component, third weather information from a search engine component, etc. In some embodiments, the action plan execution component 525 may remove / filter information from the API response 662 that is determined to include information not beneficial to the processing by the language model 545.

[0160] The action plan execution component 525 may send (step 11) the (additional / second) action plan response data 638 to the prompt generation component 540. The information from the API response(s) 662 may be included, by the prompt generation component 540, in a (additional / second) prompt to the language model 545. The prompt generation component 540 may generate the second prompt 642 to include the action plan response data 638 or a representation thereof. The second prompt 642 may also include information from the prior / first prompt (from step 6). For example, the second prompt 642 may include the user input data 527 (or a representation thereof), the relevant information for processing the user input data 527 (e.g., relevant context data, relevant API information, relevant exemplars, etc.), the processing stages information, and the action plan response data 638 (from step 11). In some embodiments, the second prompt 642 may also include at least a portion of the LM response 646 generated during a prior iteration of processing (e.g., the outputs based on performing the task generation stage and the action generation stage) to indicate actions / results of the prior iteration of processing by the language model 545. The second prompt 642 may include an indicator (e.g., label, identifier, etc.) associated with the action plan response data 638 to indicate, to the language model 545, that the string of characters / tokens following the indicator represent information determined based on performance of the actions determined during the action generation stage.

[0161] The second prompt 642 may be sent (step 12) to the language model 545 for processing. At this point, the language model 545 may perform the action generation stage of processing the results of the performed actions, which may involve interpreting or understanding the results included in the action plan response data 638. The language model 545 may generate (step 13) a (additional / second) LM response 646 based on the second prompt 642. The second prompt 642 may include a request or directive to the language model 545 to perform further processing with respect to the user input data 527. As described above, the second prompt 642 may provide, among other things, responses / results of performance of the action determined by the language model 545 determined during the prior iteration of processing. The language model 545 may generate further actions to be performed to respond to the user input data 527 (as part of the action generation stage) or may generate a (final / user-facing) response to the user input data 527 (as part of the response generation stage).

[0162] An example second prompt 642 may be:

[0163] {

[0164] Please process the following user input and context data to determine at least one action or API to execute and generate a response to the user.

[0165] First determine a task to perform (use “Task” label), then determine an API to perform the task (use “Action” label), then process the results from the API, and then generate a response to the user input (use “Response” label). You may determine multiple tasks to perform. You may have to process iteratively.

[0166] User: Turn on living room TV

[0167] Available context:

[0168] User devices: “living room TV”=[device id]

[0169] “living room TV” device state=Off

[0170] Available APIs:

[0171] TurnOn.device (device)

[0172] Turn Volume Up.device (device)

[0173] SetTVChannel (device, input channel)

[0174] Prior Iteration:

[0175] Action: TurnOn.device (device=“living room TV”)

[0176] TurnOn.device (device=“living room TV”); API response: “living room TV” device state=ON

[0177] }

[0178] Based on the above example prompt 642, an example LM response 646 may be:

[0179] {

[0180] Task: User wants to turn on living room TV that is operation of a user device.

[0181] Action: I need an API to operate a device. TurnOn.device (device=“living room TV”)

[0182] Action result is “living room TV” device state=ON

[0183] Response: The living room TV is on now. Can I help you with anything else?

[0184] }

[0185] As described herein, the language model 545 may generate the LM response 646 on tokens-by-tokens basis. As such, in some examples, the second LM response 646 may include additional tokens (e.g., newly generated tokens) to the first LM response 646 (from step 7). In other examples, the second LM response 646 may include different tokens than the first LM response 646, where the currently generated tokens may represent outputs for further steps of the action generation stage and / or the response generation stage.

[0186] The language model 545 may determine further actions / APIs to be performed in a similar manner as described above. Such further actions / APIs may be based on any tasks, included in the task list generated during the task generation stage, that are still to be performed (e.g., a first task of booking a flight may be done, now a second task of booking a hotel is to be performed). Additionally or alternatively, the further actions / APIs may be based on the results included in the action plan response data 638 (at step 11) (e.g., an API response from a responding component 560 may indicate that additional information is needed to perform an action).

[0187] The language model 545 may determine a (final) response to the user input, where the response is to be presented to the user 505 via the user device 510. In other cases, the response may be presented via another user device 510 associated with the user 505. The language model 545 may determine the final response based on the results included in the action plan response data 638 (from step 11). For example, the language model 545 may summarize the results, may combine the results, may generate an interpretation of the results, etc. In a non-limiting example, the language model 545 may combine weather information from two or more responding components (e.g., combine high / low temperature information from a first responding component with humidity information from a second responding component). In another non-limiting example, the language model 545 may interpret results from a knowledge base component to determine a response to the specific user query (e.g., from a biographical search result for a historical person, a birthplace and siblings information may be extracted to determine a response to a user query “tell me about [person's] childhood”).

[0188] In some examples, the language model 545 may generate the further action to be performed is requesting additional information from the user 505. Such further action, in some embodiments, may be labeled as “Response” so that the action plan generation component 550 may cause a request to be output to the user 505.

[0189] The second LM response 646 may be sent (step 13) to the action plan generation component 550, which may determine (step 14) the (additional / second) action plan data 652. In some examples, the second LM response 646 sent to the action plan generation component 550 may include further action(s) / API(s) to be executed, which may be labeled with “Action.” In some examples, the second LM response 646 may include a final response to the user input, which may be labeled with “Response.”

[0190] Based on the tokens corresponding to the “Action” label, the action plan generation component 550 may determine the action plan data 652 to include one or more actions, one or more API calls and / or one or more responding components 560 corresponding to the action(s) / API(s) determined by the language model 545.

[0191] Based on the tokens corresponding to the “Response” label, the action plan generation component 550 may determine the action plan data 652 to include one or more actions, one or more API calls and / or one or more responding components 560 to present the output tokens to the user 505 as a response to the user input. For example, the action plan data 652 may include an identifier for the SSG component 556 to cause the output tokens, generated by the language model 545, to be presented as synthesized speech. As another example, the action plan data 652 may include an identifier for the responding component 560 capable of generating outputs in more than one form (e.g., a multi-modal output component) to cause the tokens to be presented as synthesized speech, displayed text / graphics, and / or other types of outputs.

[0192] The (second) action plan data 652 may be sent (step 14) to the action plan execution component 525, and as described herein, the action plan execution component 525 may determine executable API calls based on the action plan data 652. If the action plan data 652 represents additional actions to be performed, then the action plan execution component 525 may cause the corresponding responding component(s) 560 to perform the additional action(s) and corresponding response(s) (e.g., API responses 662) may be communicated to the prompt generation component 540 (via the action plan execution component 525 and action plan response data 638) to initiate another iteration of processing by the language model 545 with respect to the user input data 527. If the action plan data 652 represents a response to be presented to the user 505, then the action plan execution component 525 may cause the corresponding responding component(s) 560 to determine output data (e.g., responsive output data 562 shown in FIG. 5) that may be presented via the user device 510. For example, the responsive output data 562 may be sent to the user device 510 via the orchestrator component 730 or another system component(s) 520 (described in relation to FIG. 7).

[0193] In some embodiments, when further actions are generated by the language model 545 to be performed with respect to the user input data 527, the language model orchestrator component 530 may perform another iteration of processing, which may involve generating another prompt 642 to the language model 545, generating another LM response 646 that may be used to determine further action plan data 652. The language model 545 may generate tokens corresponding to the action generation stage and / or the response generation stage during the further iteration.

[0194] In some embodiments, when a final response is generated by the language model 545, further processing with respect to the user input data 527 by the language model orchestrator component 530 may be ceased (e.g., processing with respect to the user input data 527 by the language model orchestrator component 530 may be complete). The language model orchestrator component 530 may process with respect to a subsequently received user input, which may or may not be part of the same dialog session as the prior / already processed user input data 527.

[0195] The responsive output data 562 may include one or more of output audio data representing synthesized speech, text data for display, image for display, graphics / icons for display, media (e.g., video, music, background music, notification sounds, etc.) for playback, and other data. In some embodiments, the responsive output data 562 may include placement information representing where (e.g., top banner, left portion, center of screen, overlay on current visual, etc.) on the display screen of the user device 510 the output data is to be displayed. In some embodiments, the responsive output data 562 may be determined / provided by the responding component 560. In some embodiments, another system component 520 may process the responsive output data 562 prior to sending to the user device 510 to ensure that the responsive output data is formatted for the particular user device 510.

[0196] Referring again to FIG. 5, as shown, the system component(s) 520 may include a compliance component 570. In some embodiments, the compliance component 570 may be included in the language model orchestrator component 530. In other embodiments, the compliance component 570 may be one of the responding components 560 and the action plan generation component 550 may cause the action plan execution component 525 to send an API request to the compliance component 570 when processing by the compliance component 570 is to be performed.

[0197] The compliance component 570 may be configured to determine whether an output of the language model 545 is appropriate for output to the user 505. In some embodiments, the compliance component 570 may be configured to process language model output (e.g., the LM response 646) representing outputs / tokens generated by the language model 545 during processing of the user input data 527. The model output may include tokens generated during the task generation stage, the action generation stage or the response generation stage. The compliance component 570 may also or instead determine whether an input to the language model 545 (e.g., a user request, an output of another system component of the system 100) is appropriate and / or that the input will result in the language model 545 generating an output that is appropriate to present to the user 505. For this determination, the compliance component 570 may process the user input data 527 or a portion or representation thereof. In some embodiments, the compliance component 570 may process other data (e.g., context data, user profile data, system configuration / policy data, etc.) to determine whether the generated response and / or the input is appropriate.

[0198] In some embodiments, the compliance component 570 may determine whether the model output / LM response 646 and / or the user input data 527 corresponds to training data used to configure the language model 545 (e.g., the model output or user input is semantically or lexically similar to the training data, the model output or user input corresponds to functionality (e.g., topics, categories, actions, etc.) that the model is trained for, etc.). Additionally or alternatively, the compliance component 570 may determine whether the model output / LM response 646 and / or the user input data 527 corresponds to one or more words or phrases determined to be confidential, sensitive, or offensive. Additionally or alternatively, the compliance component 570 may determine whether the user input or the model output corresponds to an inappropriate content category, which may include biased content (e.g., biased toward protected classes including gender, race, age, etc.), harmful content (e.g., violent content, self-harm, etc.), profanity, etc.

[0199] In some embodiments, the compliance component 570 may use one or more techniques to determine whether the model output or the user input is appropriate; such techniques may include a rules-engine, a word-based similarity determination, a machine learning model based determination (e.g., using a classifier to classify model output or user input to appropriate category or inappropriate category), etc.

[0200] In some embodiments, the compliance component 570 may process the user input data 527 when it is received by the language model orchestrator component 530 and in some cases may process in parallel to the language model orchestrator component 530. In some embodiments, the compliance component 570 may process the model output as the language model 545 generates the output tokens. In other embodiments, the compliance component 570 may process the model output after the language model 545 has generated tokens for a particular processing stage (e.g., after the task generation stage is completed, after the action generation stage is completed, after the response generation stage is completed, etc.).

[0201] If the compliance component 570 determines that the model output or the user input data 527 is appropriate, then the language model orchestrator component 530 may continue processing with respect to the user input data 527. If the compliance component 570 determines that the model output is not appropriate, then one or more remedial actions may be performed. One example remedial action may involve prompting the language model 545 to generate a new / modified model output. In such examples, additional prompt data may be determined, which may include the original prompt data, the initial model output, and an indication that the initial model output is not appropriate for output to the user 505. The additional prompt data may include a request or directive to the language model 545 to generate model output that is appropriate for output to the user 505. Another example remedial action may involve the system outputting a generic / template response (e.g., “Sorry, I can't help you with that” or “I cannot answer questions for [inappropriate category])”) or a request for a rephrased input (e.g., “can you rephrase that”).

[0202] In some embodiments, the compliance component 570 may cause the system to output a response indicating where (e.g., a source external to the system components 520) the included / outputted information may be found. For example, the response may include an indication of a source of the training data or the data (e.g., API response 662) that the response is based on (e.g., the indication may include a description of an owner of the intellectual property rights corresponding to the training data / the response information, a hyperlink to the source, etc.). In some embodiments the compliance component 570 may determine that the model generated response is based on (e.g., summarizing, using, similar to, etc.) data that protected by intellectual property rights (or other laws), and instead of outputting the language model generated response (e.g., LM response 646). In some embodiments the responsive output data 562 may include an indication of the intellectual property rights owner, may include access to a source of the data (e.g., website link), or may include a template response (e.g., “I cannot process this request” or “The requested data is protected by intellectual property rights”, etc.). In some embodiments, the compliance component 570 may determine that the user input data 527 involves processing data or outputting data that is protected by certain intellectual property rights (or other laws). An example of such a user input may be “write a story about [protected character]” or “draw an image of [protected character] doing [some action]”, where the owner of intellectual property rights in the [protected character] may not allow use, copying, or other operations. In response, the system may cease or prevent processing by the language model orchestrator component 530 of the user input data 527, and the system may output a template response (e.g., “I cannot process this request” or “The requested data is protected by intellectual property rights”, etc.).

[0203] As shown in FIG. 5, the system component(s) 520 may include the personalization service(s) 160. In some embodiments, the personalization service(s) 160 may be included in the language model orchestrator component 530. In other embodiments, the personalization service(s) 160 may be one of the responding components 560 and the action plan generation component 550 may cause the action plan execution component 525 to send an API request to the personalization service(s) 160.

[0204] The personalization service(s) 160 may be configured to determine personalized context data including context data corresponding to the user input data 527 and / or the user 505, such as a preference summary. In some embodiments, the initial plan generation component 535 may request personalized context data to include in the prompt 642. In other embodiments, other system component(s) 520, such as the language model 545, may request personalized context data (e.g., to determine a personalized response to a user input). The personalized context data may include information about the user 505 and / or a corresponding user profile, such the preference summary (e.g., the preference summary data 127), user preferences, past user inputs, past system outputs for past user inputs from the user 505, past skill / app usage, user-defined items, etc. The personalization service(s) 160 may infer user preferences from user-provided preferences, past user interactions by the user 505, information related to users similar to the user 505, preference summaries, etc. In some embodiments, the personalization service(s) 160 may employ one or more techniques to determine the personalized context data; such techniques may include using a rules-engine, using one or more machine learning models (including a generative model), topic determination techniques, neural retrieval search techniques, etc.

[0205] In examples, the personalization service(s) 160 may receive the user input data 527, task data representing a current task being performed / processed, and / or model output indicating that an ambiguity exists, or additional information is needed to generate a response to the user input. The personalization service(s) 160 may receive a query in some examples, which may include an identifier for the user 505. In a non-limiting example, the personalization service(s) 160 may receive the following example requests: “Does the user prefer to use [Music Service 1] or [Music Service 2] for playing music,” or “What kind of music does the user like?” The personalization service(s) 160 determine example personalized context data including “The user prefers [Music Service 1]” or “The user likes [music genre]”). In some such embodiments, the personalization service(s) 160 may be configured to determine the personalized context data based on a preference summary (e.g., the preference summary data 127). The personalization service(s) 160 may return the personalization summary and / or the personalized context data based on the request.

[0206] Further information related to the SSG component 556 and the skill / app component 554 is described herein in relation to FIG. 7.

[0207] In some embodiments, the language model 545 may be fine-tuned to perform a particular task(s). Fine-tuning of the language model(s) may be performed using one or more techniques. One example fine-tuning technique is transfer learning that involves reusing a pre-trained model's weights and architecture for a new task. The pre-trained model may be trained on a large, general dataset, and the transfer learning approach allows for efficient and effective adaptation to specific tasks. Another example fine-tuning technique is sequential fine-tuning where a pre-trained model is fine-tuned on multiple related tasks sequentially. This allows the model to learn more nuanced and complex language patterns across different tasks, leading to better generalization and performance. Yet another fine-tuning technique is task-specific fine-tuning where the pre-trained model is fine-tuned on a specific task using a task-specific dataset. Yet another fine-tuning technique is multi-task learning where the pre-trained model is fine-tuned on multiple tasks simultaneously. This approach enables the model to learn and leverage the shared representations across different tasks, leading to better generalization and performance. Yet another fine-tuning technique is adapter training that involves training lightweight modules that are plugged into the pre-trained model, allowing for fine-tuning on a specific task without affecting the original model's performance on other tasks. Some techniques may involve supervised fine-tuning (SFT), unsupervised fine-tuning, semi-supervised fine-tuning, or other types of learning.

[0208] In some embodiments, one or more of the system components 520 described herein may be configured to begin processing with respect to data as soon as the data or a portion of the data is available to the components (e.g., processing in a streaming fashion). Some system components may be generative components / models that can begin processing with respect to portions of data as they are available, instead of waiting to initiate processing after the entirety of data is available. For example, the language model 545 may start processing a first portion of the prompt 642 while the prompt generation component 540 determines a second / subsequent portion of the prompt 642. As another example, the action plan generation component 550 may start processing a first portion of the LM response 646 while the language model 545 is generating a second / subsequent portion of the LM response 646.

[0209] The system 100 may operate using various components as described in FIG. 7. The various components may be located on same or different physical devices. Communication between various components may occur directly or across a network(s) 599. The user device 510 may include audio capture component(s), such as a microphone or array of microphones of a user device 510, captures audio 710 and creates corresponding audio data. Once speech is detected in audio data representing the audio 710, the user device 510 may determine if the speech is directed at the user device 510 / system component(s). In at least some embodiments, such determination may be made using a wakeword detection component 720. The wakeword detection component 720 may be configured to detect various wakewords. In at least some examples, each wakeword may correspond to a name of a different digital assistant. An example wakeword / digital assistant name is “Alexa.” In another example, input to the system may be in form of text data 713, for example as a result of a user typing an input into a user interface of user device 510. Other input forms may include indication that the user has pressed a physical or virtual button on user device 510, the user has made a gesture, etc. The user device 510 may also capture images using camera(s) of the user device 510 and may send image data 721 representing those image(s) to the system component(s). The image data 721 may include raw image data or image data processed by the user device 510 before sending to the system component(s). The image data 721 may be used in various manners by different components of the system to perform operations such as determining whether a user is directing an utterance to the system, interpreting a user command, responding to a user command, etc. In some embodiments, the user input data 527 (described in relation to FIG. 5) may include one or more the audio 710, the audio data 711, the text data 713 and the image data 721.

[0210] The wakeword detection component 720 of the user device 510 may process the audio data, representing the audio 710, to determine whether speech is represented therein. The user device 510 may use various techniques to determine whether the audio data includes speech. In some examples, the user device 510 may apply voice-activity detection (VAD) techniques. Such techniques may determine whether speech is present in audio data based on various quantitative aspects of the audio data, such as the spectral slope between one or more frames of the audio data; the energy levels of the audio data in one or more spectral bands; the signal-to-noise ratios of the audio data in one or more spectral bands; or other quantitative aspects. In other examples, the user device 510 may implement a classifier configured to distinguish speech from background noise. The classifier may be implemented by techniques such as linear classifiers, support vector machines, and decision trees. In still other examples, the user device 510 may apply hidden Markov model (HMM) or Gaussian mixture model (GMM) techniques to compare the audio data to one or more acoustic models in storage, which acoustic models may include models corresponding to speech, noise (e.g., environmental noise or background noise), or silence. Still other techniques may be used to determine whether speech is present in audio data.

[0211] Wakeword detection is typically performed without performing linguistic analysis, textual analysis, or semantic analysis. Instead, the audio data, representing the audio 710, is analyzed to determine if specific characteristics of the audio data match preconfigured acoustic waveforms, audio signatures, or other data corresponding to a wakeword.

[0212] Thus, the wakeword detection component 720 may compare audio data to stored data to detect a wakeword. One approach for wakeword detection applies general large vocabulary continuous speech recognition (LVCSR) systems to decode audio signals, with wakeword searching being conducted in the resulting lattices or confusion networks. Another approach for wakeword detection builds HMMs for each wakeword and non-wakeword speech signals, respectively. The non-wakeword speech includes other spoken words, background noise, etc. There can be one or more HMMs built to model the non-wakeword speech characteristics, which are named filler models. Viterbi decoding is used to search the best path in the decoding graph, and the decoding output is further processed to make the decision on wakeword presence. This approach can be extended to include discriminative information by incorporating a hybrid DNN-HMM decoding framework. In another example, the wakeword detection component 720 may be built on deep neural network (DNN) / recursive neural network (RNN) structures directly, without HMM being involved. Such an architecture may estimate the posteriors of wakewords with context data, either by stacking frames within a context window for DNN, or using an RNN. Follow-on posterior threshold tuning or smoothing is applied for decision making. Other techniques for wakeword detection, such as those known in the art, may also be used.

[0213] Once the wakeword is detected by the wakeword detection component 720 and / or input is detected by an input detector, the user device 510 may “wake” and begin transmitting audio data 711, representing the audio 710, to the system component(s) 520. The audio data 711 may include data corresponding to the wakeword; in other embodiments, the portion of the audio corresponding to the wakeword is removed by the user device 510 prior to sending the audio data 711 to the system component(s) 520. In the case of touch input detection or gesture-based input detection, the audio data may not include a wakeword.

[0214] In some implementations, the system 100 may include more than one system component(s). The system component(s) 520 may respond to different wakewords and / or perform different categories of tasks. Each system component(s) may be associated with its own wakeword such that speaking a certain wakeword results in audio data be sent to and processed by a particular system. For example, detection of the wakeword “Alexa” by the wakeword detection component 720 may result in sending audio data to system component(s) 520a for processing while detection of the wakeword “Computer” by the wakeword detector may result in sending audio data to system component(s) 520b for processing. The system may have a separate wakeword and system for different skills / systems (e.g., “Castle Adventure” for a game play skill / system component(s) 520c) and / or such skills / systems may be coordinated by one or more skill component(s) 554 of one or more system component(s) 520.

[0215] The user device 510 / system component(s) 520 may also include a system directed input detector 785. The system directed input detector 785 may be configured to determine whether an input to the system (for example speech, a gesture, etc.) is directed to the system or not directed to the system (for example directed to another user, etc.). The system directed input detector 785 may work in conjunction with the wakeword detection component 720. If the system directed input detector 785 determines an input is directed to the system, the user device 510 may “wake” and begin sending captured data for further processing. If data is being processed the user device 510 may indicate such to the user, for example by activating or changing the color of an illuminated output (such as a light emitting diode (LED) ring), displaying an indicator on a display (such as a light bar across the display), outputting an audio indicator (such as a beep) or otherwise informing a user that input data is being processed. If the system directed input detector 785 determines an input is not directed to the system (such as a speech or gesture directed to another user) the user device 510 may discard the data and take no further action for processing purposes. In this way the system 100 may prevent processing of data not directed to the system, thus protecting user privacy. As an indicator to the user, however, the system may output an audio, visual, or other indicator when the system directed input detector 785 is determining whether an input is potentially device directed. For example, the system may output an orange indicator while considering an input and may output a green indicator if a system directed input is detected. Other such configurations are possible.

[0216] Upon receipt by the system component(s) 520, the audio data 711 may be sent to an orchestrator component 730 and / or the language model orchestrator component 530. The orchestrator component 730 may include memory and logic that enables the orchestrator component 730 to transmit various pieces and forms of data to various components of the system, as well as perform other operations as described herein. In some embodiments, the orchestrator component730 may optionally be included in the system component(s) 520. In embodiments where the orchestrator component 730 is not included in the system component(s) 520, the audio data 711 may be sent directly to the language model orchestrator component 530. Further, in such embodiments, each of the components of the system component(s) 520 may be configured to interact with the language model orchestrator component 530, the action plan execution component 525, the API provider component, and / or other component(s).

[0217] In some embodiments, the system component(s) 520 may include an arbitrator component 782, which may be configured to determine whether the orchestrator component 730 and / or the language model orchestrator component 530 are to process with respect to user input data. In some embodiments, the language model orchestrator component 530 may be selected to process with respect to the audio data 711 only if the user 505 associated with the audio data 711 (or the user device 510 that captured the audio 710) has previously indicated that the language model orchestrator component 530 may be selected to process with respect to user inputs received from the user 505.

[0218] In some embodiments, the arbitrator component 782 may determine the orchestrator component 730 and / or the language model orchestrator component 530 are to process with respect to the audio data 711 based on metadata associated with the audio data 711. For example, the arbitrator component 782 may be a classifier configured to process a natural language representation of the audio data 711 (e.g., output by the ASR component 750) and classify the corresponding user input as to be processed by the orchestrator component 730 and / or the language model orchestrator component 530. For further example, the arbitrator component 782 may determine whether the device from which the audio data 711 is received is associated with an indicator representing the audio data 711 is to be processed by the orchestrator component 730 and / or the language model orchestrator component 530. As an even further example, the arbitrator component 782 may determine whether the user (e.g., determined using data output from the user recognition component 795) from which the audio data 711 is received is associated with a user profile including an indicator representing the audio data 711 is to be processed by the orchestrator component 730 and / or the language model orchestrator component 530. As another example, the arbitrator component 782 may determine whether the audio data 711 (or the output of the ASR component 750) corresponds to a request representing that the audio data 711 is to be processed by the orchestrator component 730 and / or the language model orchestrator component 530 (e.g., a request including “let's chat” may represent that the audio data 711 is to be processed by the language model orchestrator component 530).

[0219] In some embodiments, if the arbitrator component 782 is unsure (e.g., a confidence score corresponding to whether the orchestrator component 730 and / or the language model orchestrator component 530 is to process is below a threshold), then the arbitrator component 782 may send the audio data 711 to both of the orchestrator component 730 and the language model orchestrator component 530. In such embodiments, the orchestrator component 730 and / or the language model orchestrator component 530 may include further logic for determining further confidence scores during processing representing whether the orchestrator component 730 and / or the language model orchestrator component 530 should continue processing, as is discussed further herein below.

[0220] The arbitrator component 782 may send the audio data 711 to an ASR component 750. In some embodiments, the component selected to process the audio data 711 (e.g., the orchestrator component 730 and / or the language model orchestrator component 530) may send the audio data 711 to the ASR component 750. The ASR component 750 may transcribe the audio data 711 into text data. The text data output by the ASR component 750 represents one or more than one (e.g., in the form of an N-best list) ASR hypotheses representing speech represented in the audio data 711. The ASR component 750 interprets the speech in the audio data 711 based on a similarity between the audio data 711 and pre-established language models. For example, the ASR component 750 may compare the audio data 711 with models for sounds (e.g., acoustic units such as phonemes, senons, phones, etc.) and sequences of sounds to identify words that match the sequence of sounds of the speech represented in the audio data 711. The ASR component 750 sends the text data generated thereby to the arbitrator component 782, the orchestrator component 730, and / or the language model orchestrator component 530. In instances where the text data is sent to the arbitrator component 782, the arbitrator component 782 may send the text data to the component selected to process the audio data 711 (e.g., the orchestrator component 730 and / or the language model orchestrator component 530). The text data sent from the ASR component 750 to the arbitrator component 782, the orchestrator component 730, and / or the language model orchestrator component 530 may include a single top-scoring ASR hypothesis or may include an N-best list including multiple top-scoring ASR hypotheses. An N-best list may additionally include a respective score associated with each ASR hypothesis represented therein.

[0221] In some embodiments, the orchestrator component 730 may cause a NLU component (not shown) to perform processing with respect to the ASR data generated by the ASR component 750. The NLU component may attempt to make a semantic interpretation of the phrase(s) or statement(s) represented in the ASR data input therein by determining one or more meanings associated with the phrase(s) or statement(s) represented in the text data. The NLU component may determine an intent representing an action that a user desires be performed and may determine information that allows a device (e.g., the device 510, the system component(s) 520, a skill / app component 554, a skill system component(s) 725, etc.) to execute the intent. For example, if the ASR data corresponds to “play the 5th Symphony by Beethoven,” the NLU component may determine an intent that the system output music and may identify “Beethoven” as an artist / composer and “5th Symphony” as the piece of music to be played. For further example, if the ASR data corresponds to “what is the weather,” the NLU component may determine an intent that the system output weather information associated with a geographic location of the device 510. In another example, if the ASR data corresponds to “turn off the lights,” the NLU component may determine an intent that the system turn off lights associated with the device 510 or the user 505. However, if the NLU component is unable to resolve the entity—for example, because the entity is referred to by anaphora such as “this song” or “my next appointment”—the system can send a decode request to another speech processing system for information regarding the entity mention and / or other context related to the utterance. The natural language processing system may augment, correct, or base results data upon the ASR data as well as any data received from the system.

[0222] The NLU component may return NLU results data (which may include tagged text data, indicators of intent, etc.) back to the orchestrator component 730. The orchestrator component 730 may forward the NLU results data to a skill component(s) 554. If the NLU results data includes a single NLU hypothesis, the NLU component and the orchestrator component 730 may direct the NLU results data to the skill component(s) 554 associated with the NLU hypothesis. If the NLU results data includes an N-best list of NLU hypotheses, the NLU component and the orchestrator component 730 may direct the top scoring NLU hypothesis to a skill component(s) 554 associated with the top scoring NLU hypothesis. The system may also include a post-NLU ranker which may incorporate other information to rank potential interpretations determined by the NLU component.

[0223] In some embodiments, after determining that the orchestrator component 730 and / or the language model orchestrator component 530 should process with respect to the user input, the arbitrator component 782 may be configured to periodically determine whether the orchestrator component 730 and / or the language model orchestrator component 530 should continue processing with respect to the user input. For example, after a particular point in the processing of the orchestrator component 730 (e.g., after performing NLU, prior to determining a skill component 554 to process with respect to the user input, prior to performing an action responsive to the user input, etc.) and / or the language model orchestrator component 530 (e.g., after selecting a task to be completed, after receiving the action response data from the one or more components, after completing a task, prior to performing an action responsive to the user input, etc.) the orchestrator component 730 and / or the language model orchestrator component 530 may query the arbitrator component 782 has determined that the orchestrator component 730 and / or the language model orchestrator component 530 should halt processing with respect to the user input. As discussed above, the system 100 may be configured to stream portions of data associated with processing with respect to a user input to the one or more components such that the one or more components may begin performing their configured processing with respect to that data as soon as it is available to the one or more components. As such, the arbitrator component 782 may cause the orchestrator component 730 and / or the language model orchestrator component 530 to begin processing with respect to a user input as soon as a portion of data associated with the user input is available (e.g., the ASR data, context data, output of the user recognition component 795. Thereafter, once the arbitrator component 782 has enough data to perform the processing described herein above to determine whether the orchestrator component 730 and / or the language model orchestrator component 530 is to process with respect to the user input, the arbitrator component 782 may inform the corresponding component (e.g., the orchestrator component 730 and / or the language model orchestrator component 530) to continue / halt processing with respect to the user input at one of the logical checkpoints in the processing of the orchestrator component 730 and / or the language model orchestrator component 530.

[0224] The personalization service(s) 160 may communicate directly with the orchestrator component 730 / the language model orchestrator component 530 and / or the action plan execution component 525, or with other components of the system component(s) 520. As discussed herein, the personalization service(s) 160 may receive requests for preference summary data and / or personalized context data associated with a user / user profile, which may be used by a component(s) and / or system(s) (e.g., the system component(s) 520 and / or components included therein) to personalize processing to the user / user profile. The preference summary data may be stored in the profile storage 130, such as in association with a user profile associated with the user interacting with the component(s) and / or system(s) requesting the preference summary data. The preference summary data may be retrieved by the personalization service(s) 160 to personalize processing of the component(s) and / or system(s) to a user corresponding to the user profile.

[0225] The orchestrator component 730 may request preference summary data and / or personalized context data from the personalization service(s) 160 in a similar manner as the language model orchestrator component 530, and may use the data to personalize the processing of one or more components of the system component(s) 520 accordingly. For example, the orchestrator component 730 may use the data received from the personalization service(s) 160 to personalize ASR process, such as to recognize words specific to the user based on user preferences. For further example, the orchestrator component 730 may use the data received from the personalization service(s) 160 to personalize entity recognition for inputs corresponding to the user based on user preferences. As another example, the orchestrator component 730 may use the data received from the personalization service(s) 160 to personalize SSG processing, such as to determine a speech style, voice characteristics, sentiment, etc., based on user preferences.

[0226] A skill system component(s) 725 may communicate with a skill / app component(s) 554 within the system component(s) 520, directly with the orchestrator component 730 and / or the action plan execution component 525, or with other components. A skill system component(s) 725 may be configured to perform one or more actions. An ability to perform such action(s) may sometimes be referred to as a “skill.” That is, a skill may enable a skill system component(s) 725 to execute specific functionality in order to provide data or perform some other action requested by a user. For example, a weather service skill may enable a skill system component(s) 725 to provide weather information to the system component(s) 520, a car service skill may enable a skill system component(s) 725 to book a trip with respect to a taxi or ride sharing service, an order pizza skill may enable a skill system component(s) 725 to order a pizza with respect to a restaurant's online ordering system, etc. Additional types of skills include home automation skills (e.g., skills that enable a user to control home devices such as lights, door locks, cameras, thermostats, etc.), entertainment device skills (e.g., skills that enable a user to control entertainment devices such as smart televisions), video skills, flash briefing skills, as well as custom skills that are not associated with any pre-configured type of skill.

[0227] The system component(s) 520 may be configured with a skill / app component 554 dedicated to interacting with the skill system component(s) 725. Unless expressly stated otherwise, reference to a skill, skill device, or skill component may include a skill / app component 554 operated by the system component(s) 520 and / or skill / app operated by the skill system component(s) 725. Moreover, the functionality described herein as a skill or skill may be referred to using many different terms, such as an action, bot, app, or the like. The skill component 554 and or skill system component(s) 725 may return output data to the orchestrator component 730.

[0228] The system component(s) includes a SSG component 556. The SSG component 556 may generate audio data (e.g., synthesized speech) from text data, text embeddings, text tokens, audio tokens, audio embeddings, etc., using one or more different methods. Data input to the SSG component 556 may come from a skill / app component 554, the orchestrator component 730, the action plan execution component 525, or another component of the system. In one method of synthesis called unit selection, the SSG component 556 matches data against a database of recorded speech. The SSG component 556 selects matching units of recorded speech and concatenates the units together to form audio data. In another method of synthesis called parametric synthesis, the SSG component 556 varies parameters such as frequency, volume, and noise to create audio data including an artificial speech waveform. Parametric synthesis uses a computerized voice generator, sometimes called a vocoder.

[0229] The user device 510 may include still image and / or video capture components such as a camera or cameras to capture one or more images. The user device 510 may include circuitry for digitizing the images and / or video for transmission to the system component(s) 520 as image data. The user device 510 may further include circuitry for voice command-based control of the camera, allowing a user 505 to request capture of image or video data. The user device 510 may process the commands locally or send audio data 711 representing the commands to the system component(s) 520 for processing, after which the system component(s) 520 may return output data that can cause the user device 510 to engage its camera.

[0230] The system component(s) 520 / the user device 510 may include a user recognition component 795 that recognizes one or more users using a variety of data. However, the disclosure is not limited thereto, and the user device 510 may include the user recognition component 795 instead of and / or in addition to the system component(s) 520 without departing from the disclosure.

[0231] The user recognition component 795 may take as input the audio data 711 and / or text data output by the ASR component 750. The user recognition component 795 may perform user recognition by comparing audio characteristics in the audio data 711 to stored audio characteristics of users. The user recognition component 795 may also perform user recognition by comparing biometric data (e.g., fingerprint data, iris data, etc.), received by the system in correlation with the present user input, to stored biometric data of users assuming user permission and previous authorization. The user recognition component 795 may further perform user recognition by comparing image data (e.g., including a representation of at least a feature of a user), received by the system in correlation with the present user input, with stored image data including representations of features of different users. The user recognition component 795 may perform additional user recognition processes, including those known in the art.

[0232] The user recognition component 795 determines scores indicating whether user input originated from a particular user. For example, a first score may indicate a likelihood that the user input originated from a first user, a second score may indicate a likelihood that the user input originated from a second user, etc. The user recognition component 795 also determines an overall confidence regarding the accuracy of user recognition operations.

[0233] Output of the user recognition component 795 may include a single user identifier corresponding to the most likely user that originated the user input. Alternatively, output of the user recognition component 795 may include an N-best list of user identifiers with respective scores indicating likelihoods of respective users originating the user input. The output of the user recognition component 795 may be used to inform processing of the arbitrator component 782, the orchestrator component 730, and / or the language model orchestrator component 530 as well as processing performed by other components of the system.

[0234] The system component(s) 520 / user device 510 may include a presence detection component that determines the presence and / or location of one or more users using a variety of data.

[0235] The system 100 (either on user device 510, system component(s), or a combination thereof) may include profile storage for storing a variety of information related to individual users, groups of users, devices, etc. that interact with the system. As used herein, a “profile” refers to a set of data associated with a user, group of users, device, etc. The data of a profile may include preferences specific to the user, device, etc.; input and output capabilities of the device; internet connectivity information; user bibliographic information; subscription information, as well as other information.

[0236] The profile storage 130 may include one or more user profiles, with each user profile being associated with a different user identifier / user profile identifier. Each user profile may include various user identifying data. Each user profile may also include data corresponding to preferences of the user. Each user profile may also include preferences of the user and / or one or more device identifiers, representing one or more devices of the user. For instance, the user account may include one or more internet protocol (IP) addresses, medium access control (MAC) addresses, and / or device identifiers, such as a serial number, of each additional electronic device associated with the identified user account. When a user logs into to an application installed on a user device 510, the user profile (associated with the presented login information) may be updated to include information about the user device 510, for example with an indication that the device is currently in use. Each user profile may include identifiers of components (e.g., responding component(s) 560 such as skills / apps, language model-based agents, knowledge bases, components for a particular domain, etc.) that the user has enabled. When a user enables a component, the user is providing the system component(s) with permission to allow the component to execute with respect to the user's inputs. If a user does not enable a component, the system component(s) may not invoke that component to execute with respect to the user's inputs.

[0237] The profile storage 130 may include one or more group profiles. Each group profile may be associated with a different group identifier. A group profile may be specific to a group of users. That is, a group profile may be associated with two or more individual user profiles. For example, a group profile may be a household profile that is associated with user profiles associated with multiple users of a single household. A group profile may include preferences shared by all the user profiles associated therewith. Each user profile associated with a group profile may additionally include preferences specific to the user associated therewith. That is, each user profile may include preferences unique from one or more other user profiles associated with the same group profile. A user profile may be a stand-alone profile or may be associated with a group profile.

[0238] The profile storage 130 may include one or more device profiles. Each device profile may be associated with a different device identifier. Each device profile may include various device identifying information. Each device profile may also include one or more user identifiers, representing one or more users associated with the device. For example, a household device's profile may include the user identifiers of users of the household.

[0239] Although the components of FIG. 7 may be illustrated as part of system component(s) 520, user device 510, or otherwise, the components may be arranged in other device(s) (such as in user device 510 if illustrated in system component(s) 520 or vice-versa, or in other device(s) altogether) without departing from the disclosure.

[0240] In at least some embodiments, the system component(s) 520 may receive the audio data 711 from the user device 510, to recognize speech corresponding to a spoken input in the received audio data 711, and to perform functions in response to the recognized speech. In at least some embodiments, these functions involve sending directives (e.g., commands), from the system component(s) to the user device 510 (and / or other user devices 510) to cause the user device 510 to perform an action, such as output an audible response to the spoken input via a loudspeaker(s), and / or control secondary devices in the environment by sending a control command to the secondary devices.

[0241] Thus, when the user device 510 is able to communicate with the system component(s) over the network(s) 599, some or all of the functions capable of being performed by the system component(s) may be performed by sending one or more directives over the network(s) 599 to the user device 510, which, in turn, may process the directive(s) and perform one or more corresponding actions. For example, the system component(s), using a remote directive that is included in response data (e.g., a remote response), may direct the user device 510 to output an audible response (e.g., using SSG processing performed by an on-device SSG component) to a user's question via a loudspeaker(s) of (or otherwise associated with) the user device 510, to output content (e.g., music) via the loudspeaker(s) of (or otherwise associated with) the user device 510, to display content on a display of (or otherwise associated with) the user device 510, and / or to send a directive to a secondary device (e.g., a directive to turn on a smart light). It is to be appreciated that the system component(s) may be configured to provide other functions in addition to those discussed herein, such as, without limitation, providing step-by-step directions for navigating from an origin location to a destination location, conducting an electronic commerce transaction on behalf of the user 505 as part of a shopping function, establishing a communication session (e.g., a video call) between the user 505 and another user, and so on.

[0242] In at least some embodiments, the user device 510, may send the audio data 711 to the wakeword detection component 720. If the wakeword detection component 720 detects a wakeword in the audio data 711, the wakeword detection component 720 may send an indication of such detection to the user device 510. In response to receiving the indication, the audio data 711 may be sent to the system component(s) 520 and / or the ASR component of the user device 510. The wakeword detection component 720 may also send an indication, to the user device 510, representing a wakeword was not detected. In response to receiving such an indication, the audio data 711 may not be sent to the system component(s) 520, and the user device 510 may prevent the ASR component of the user device 510 from further processing the audio data 711. In this situation, the audio data 711 can be discarded.

[0243] In some embodiments, the user device 510 may include some or all of the components illustrated in FIG. 7 and / or discussed herein above with respect to the system component(s) 520. In other embodiments, the components illustrated in FIG. 7 and / or discussed herein with respect to the system component(s) 520 may be distributed across the user device 510 and the system component(s) 520.

[0244] In at least some embodiments, the components of the user device 510 (e.g., on-device components) may not have the same capabilities as the components of the system component(s) 520. For example, on-device components may be configured to generate a response to only a subset of the natural language user inputs that may be handled by the system component(s) 520. For example, such subset of natural language user inputs may correspond to local-type natural language user inputs, such as those controlling devices or components associated with a user's home. In such circumstances the on-device components may be able to more quickly interpret and respond to a local-type natural language user input, for example, than processing that involves the system component(s). If the user device 510 attempts to process a natural language user input for which the on-device components are not necessarily best suited, the language processing results determined by the user device 510 may indicate a low confidence or other metric indicating that the processing by the user device 510 may not be as accurate as the processing done by the system component(s) 520.

[0245] In some embodiments, the system component(s) 520 and the user device 510 may process as described herein to generate responses to the user input corresponding to the audio data 711. The system component(s) 520 may send the response to the user device 510 and the user device 510 may determine whether to output the response generated by the system component(s) 520 or the response generated by the user device 510. In some embodiments, the system component(s) 520 may be configured to perform a portion of the processing described herein, such as a portion of processing not performable by the user device 510 and send the result of such processing to the user device 510. The user device 510 may be configured to determine whether to use the result to complete processing to generate the response to the user device 510.

[0246] In at least some embodiments, the user device 510 may include, or be configured to use, one or more skill / app components that may operate similarly to the skill / app component(s) 554. The skill / app component(s) on the user device 510 may correspond to one or more domains that are used in order to determine how to act on a spoken input in a particular way, such as by outputting a directive that corresponds to the determined intent, and which can be processed to implement the desired operation. The skill component(s) installed on the user device 510 may include, without limitation, a smart home skill component (or smart home domain) and / or a device control skill component (or device control domain) to execute in response to spoken inputs corresponding to an intent to control a second device(s) in an environment, a music skill component (or music domain) to execute in response to spoken inputs corresponding to a intent to play music, a navigation skill component (or a navigation domain) to execute in response to spoken input corresponding to an intent to get directions, a shopping skill component (or shopping domain) to execute in response to spoken inputs corresponding to an intent to buy an item from an electronic marketplace, and / or the like.

[0247] Additionally, or alternatively, the user device 510 may be in communication with one or more skill system component(s) 725. For example, a skill system component(s) 725 may be located in a remote environment (e.g., separate location) such that the user device 510 may only communicate with the skill system component(s) 725 via the network(s) 599. However, the disclosure is not limited thereto. For example, in at least some embodiments, a skill system component(s) 725 may be configured in a local environment (e.g., home server and / or the like) such that the user device 510 may communicate with the skill system component(s) 725 via a private network, such as a local area network (LAN).

[0248] FIG. 8 is a block diagram conceptually illustrating a user device 510 that may be used with the system. FIG. 9 is a block diagram conceptually illustrating example components of a remote device, such as the system component(s) 520, which may assist with ASR processing, NLU processing, language model processing, etc., and a skill system component(s) 725. System component(s) (520 / 725) may include one or more servers. A “server” as used herein may refer to a traditional server as understood in a server / client computing structure but may also refer to a number of different computing components that may assist with the operations discussed herein. For example, a server may include one or more physical computing components (such as a rack server) that are connected to other devices / components either physically and / or over a network and is capable of performing computing operations. A server may also include one or more virtual machines that emulates a computer system and is run on one or across multiple devices. A server may also include other combinations of hardware, software, firmware, or the like to perform operations discussed herein. The server(s) may be configured to operate using one or more of a client-server model, a computer bureau model, grid computing techniques, fog computing techniques, mainframe techniques, utility computing techniques, a peer-to-peer model, sandbox techniques, or other computing techniques.

[0249] While the user device 510 may operate locally to a user (e.g., within a same environment so the device may receive inputs and playback outputs for the user) the server / system component(s) may be located remotely from the user device 510 as its operations may not require proximity to the user. The server / system component(s) may be located in an entirely different location from the user device 510 (for example, as part of a cloud computing system or the like) or may be located in a same environment as the user device 510 but physically separated therefrom (for example a home server or similar device that resides in a user's home or business but perhaps in a closet, basement, attic, or the like). The system component(s) 520 may also be a version of a user device 510 that includes different (e.g., more) processing capabilities than other user device(s) 510 in a home / office. One benefit to the server / system component(s) being in a user's home / business is that data used to process a command / return a response may be kept within the user's home, thus reducing potential privacy concerns.

[0250] Multiple system components (520 / 725) may be included in the overall system 100 of the present disclosure, such as one or more natural language processing system component(s) 520 for performing ASR processing, one or more natural language processing system component(s) 520 for performing NLU processing, one or more skill system component(s) 725, etc. In operation, each of these systems may include computer-readable and computer-executable instructions that reside on the respective device (520 / 725), as will be discussed further below.

[0251] Each of these devices (510 / 520 / 725) may include one or more controllers / processors (804 / 904), which may each include a central processing unit (CPU) for processing data and computer-readable instructions, and a memory (806 / 906) for storing data and instructions of the respective device. The memories (806 / 906) may individually include volatile random-access memory (RAM), non-volatile read only memory (ROM), non-volatile magnetoresistive memory (MRAM), and / or other types of memory. Each device (510 / 520 / 725) may also include a data storage component (808 / 908) for storing data and controller / processor-executable instructions. Each data storage component (808 / 908) may individually include one or more non-volatile storage types such as magnetic storage, optical storage, solid-state storage, etc. Each device (510 / 520 / 725) may also be connected to removable or external non-volatile memory and / or storage (such as a removable memory card, memory key drive, networked storage, etc.) through respective input / output device interfaces (802 / 902).

[0252] Computer instructions for operating each device (510 / 520 / 725) and its various components may be executed by the respective device's controller(s) / processor(s) (804 / 904), using the memory (806 / 906) as temporary “working” storage at runtime. A device's computer instructions may be stored in a non-transitory manner in non-volatile memory (806 / 906), storage (808 / 908), or an external device(s). Alternatively, some or all of the executable instructions may be embedded in hardware or firmware on the respective device in addition to or instead of software.

[0253] Each device (510 / 520 / 725) includes input / output device interfaces (802 / 902). A variety of components may be connected through the input / output device interfaces (802 / 902), as will be discussed further below. Additionally, each device (510 / 520 / 725) may include an address / data bus (824 / 924) for conveying data among components of the respective device. Each component within a device (510 / 520 / 725) may also be directly connected to other components in addition to (or instead of) being connected to other components across the bus (824 / 924).

[0254] Referring to FIG. 8, the user device 510 may include input / output device interfaces 802 that connect to a variety of components such as an audio output component such as a speaker 812, a wired headset or a wireless headset (not illustrated), or other component capable of outputting audio. The user device 510 may also include an audio capture component. The audio capture component may be, for example, a microphone 820 or array of microphones, a wired headset or a wireless headset (not illustrated), etc. If an array of microphones is included, approximate distance to a sound's point of origin may be determined by acoustic localization based on time and amplitude differences between sounds captured by different microphones of the array. The user device 510 may additionally include a display 816 for displaying content. The user device 510 may further include a camera 818.

[0255] Via antenna(s) 822, the input / output device interfaces 802 may connect to one or more networks 599 via a wireless local area network (WLAN) (such as Wi-Fi) radio, Bluetooth, and / or wireless network radio, such as a radio capable of communication with a wireless communication network such as a Long Term Evolution (LTE) network, WiMAX network, 3G network, 4G network, 5G network, etc. A wired connection such as Ethernet may also be supported. Through the network(s) 599, the system may be distributed across a networked environment. The I / O device interface (802 / 902) may also include communication components that allow data to be exchanged between devices such as different physical servers in a collection of servers or other components.

[0256] The components of the user device(s) 510, the system component(s) 520, or a skill system component(s) 725 may include their own dedicated processors, memory, and / or storage. Alternatively, one or more of the components of the user device(s) 510, the system component(s) 520, or a skill system component(s) 725 may utilize the I / O interfaces (802 / 902), processor(s) (804 / 904), memory (806 / 906), and / or storage (808 / 908) of the user device(s) 510, the system component(s) 520, or the skill system component(s) 725, respectively. Thus, the ASR component 750 may have its own I / O interface(s), processor(s), memory, and / or storage; and so forth for the various components discussed herein.

[0257] As noted above, multiple devices may be employed in a single system. In such a multi-device system, each of the devices may include different components for performing different aspects of the system's processing. The multiple devices may include overlapping components. The components of the user device 510, the system component(s) 520, and a skill system component(s) 725, as described herein, are illustrative, and may be located as a stand-alone device or may be included, in whole or in part, as a component of a larger device or system. As can be appreciated, a number of components may exist either as a system component(s) and / or on user device 510. Unless expressly noted otherwise, the system version of such components may operate similarly to the user device version of such components and thus the description of one version (e.g., the system version or the local user device version) applies to the description of the other version (e.g., the local user device version or system version) and vice-versa.

[0258] As illustrated in FIG. 10, multiple devices (510a-510n, 520, 725) may contain components of the system and the devices may be connected over a network(s) 599. The network(s) 599 may include a local or private network or may include a wide network such as the Internet. Devices may be connected to the network(s) 599 through either wired or wireless connections. For example, a speech-detection user device 510a, a smart phone 510b, a smart watch 510c, a tablet computer 510d, a vehicle 510e, a speech-detection device with display 510f, a display / smart television 510g, a washer / dryer 510h, a refrigerator 510i, a microwave 510j, autonomously motile user device 510k (e.g., a robot), headphones 510m / 510n (e.g., wireless earbuds, wireless headphones), etc., may be connected to the network(s) 599 through a wireless service provider, over a Wi-Fi or cellular network connection, or the like. Other devices are included as network-connected support devices, such as the system component(s) 520, the skill system component(s) 725, and / or others. The support devices may connect to the network(s) 599 through a wired connection or wireless connection. Networked devices may capture audio using one-or-more built-in or connected microphones or other audio capture devices, with processing performed by components of the same device or another device connected via the network(s) 599, such as the system component(s) 520.

[0259] The concepts disclosed herein may be applied within a number of different devices and computer systems, including, for example, general-purpose computing systems, speech processing systems, and distributed computing environments.

[0260] The above aspects of the present disclosure are meant to be illustrative. They were chosen to explain the principles and application of the disclosure and are not intended to be exhaustive or to limit the disclosure. Many modifications and variations of the disclosed aspects may be apparent to those of skill in the art. Persons having ordinary skill in the field of computers and speech processing should recognize that components and process steps described herein may be interchangeable with other components or steps, or combinations of components or steps, and still achieve the benefits and advantages of the present disclosure. Moreover, it should be apparent to one skilled in the art, that the disclosure may be practiced without some or all of the specific details and steps disclosed herein. Further, unless expressly stated to the contrary, features / operations / components, etc. from one embodiment discussed herein may be combined with features / operations / components, etc. from another embodiment discussed herein.

[0261] Aspects of the disclosed system may be implemented as a computer method or as an article of manufacture such as a memory device or non-transitory computer readable storage medium. The computer readable storage medium may be readable by a computer and may comprise instructions for causing a computer or other device to perform processes described in the present disclosure. The computer readable storage medium may be implemented by a volatile computer memory, non-volatile computer memory, hard drive, solid-state memory, flash drive, removable disk, and / or other media. In addition, components of system may be implemented as in firmware or hardware.

[0262] Conditional language used herein, such as, among others, “can,”“could,”“might,”“may,”“e.g.,” and the like, unless specifically stated otherwise, or otherwise understood within the context as used, is generally intended to convey that certain embodiments include, while other embodiments do not include, certain features, elements and / or steps. Thus, such conditional language is not generally intended to imply that features, elements, and / or steps are in any way required for one or more embodiments or that one or more embodiments necessarily include logic for deciding, with or without other input or prompting, whether these features, elements, and / or steps are included or are to be performed in any particular embodiment. The terms “comprising,”“including,”“having,” and the like are synonymous and are used inclusively, in an open-ended fashion, and do not exclude additional elements, features, acts, operations, and so forth. Also, the term “or” is used in its inclusive sense (and not in its exclusive sense) so that when used, for example, to connect a list of elements, the term “or” means one, some, or all of the elements in the list.

[0263] Disjunctive language such as the phrase “at least one of X, Y, Z,” unless specifically stated otherwise, is understood with the context as used in general to present that an item, term, etc., may be either X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.

[0264] As used in this disclosure, the term “a” or “one” may include one or more items unless specifically stated otherwise. Further, the phrase “based on” is intended to mean “based at least in part on” unless specifically stated otherwise.

Claims

1. A computer-implemented method comprising:determining interaction data associated with a user profile, the interaction data including previously received user inputs, system outputs corresponding to the previously received user inputs, and context data associated with the previously received user inputs;processing, by a first language model, the interaction data to generate at least a first knowledge preference and a second knowledge preference based on information determined from the interaction data, the first knowledge preference including first natural language data and the second knowledge preference including second natural language data;processing, by the first language model, the first knowledge preference and the second knowledge preference to generate first preference summary data corresponding to the user profile;determining a question for determining an accuracy of the first preference summary data;processing, using a second language model, the interaction data and the question to generate a ground truth answer responsive to the question;processing, using the second language model, the first preference summary data and the question to generate a predicted answer responsive to the question;determining, using a bidirectional encoder, a first encoded representation corresponding to the ground truth answer and a second encoded representation corresponding to the predicted answer;comparing the first encoded representation and the second encoded representation to generate first data indicating a first accuracy of the first preference summary data with respect to the interaction data;based on the first data, the interaction data, and the first preference summary data, generating, using the first language model, second preference summary data including a revised version of the first preference summary data;receiving first user input data associated with the user profile;based on the first user input data being associated with the user profile, retrieving the second preference summary data;based on the first user input data and the second preference summary data, generating first output data responsive to the first user input data, wherein the first output data is associated with the user profile; andpresenting the first output data.

2. The computer-implemented method of claim 1, further comprising:determining evaluation criteria data including a first evaluation criterion for evaluating a relevancy of the first preference summary data based on the interaction data and a second evaluation criterion for evaluating redundancy in the first preference summary data; andprocessing, using a third language model, the interaction data, the first preference summary data, and the evaluation criteria data to generate second data, wherein the second data indicates the relevancy of the first preference summary data based on the interaction data and the redundancy in the first preference summary data.

3. The computer-implemented method of claim 1, further comprising:processing, by the first language model, the interaction data to generate the first knowledge preference associated with a category; andbased on the first knowledge preference being associated with the category, determining the question for evaluating an accuracy of preference summaries associated with the category.

4. The computer-implemented method of claim 1, further comprising:determining second output data representing the first preference summary data;presenting the second output data via a user device;in response to presenting the second output data, receiving feedback data corresponding to a modification to the first preference summary data; andgenerating, using the first language model, the second preference summary data further based on the feedback data.

5. A computer-implemented method comprising:determining interaction data associated with a user profile;determining, based on the interaction data, first summary data corresponding to the user profile;determining question data for evaluating an accuracy of the first summary data;determining, using at least one language model, the interaction data and the question data, ground truth answer data responsive to the question data;determining, using the at least one language model, the first summary data and the question data, predicted answer data responsive to the question data;determining, using a bidirectional encoder, a first encoded representation corresponding to the ground truth answer data and a second encoded representation corresponding to the predicted answer data;based on comparing the first encoded representation and the second encoded representation, generating first data corresponding to a first accuracy of the first summary data; andbased on the first data, the interaction data, and the first summary data, generating second summary data corresponding to the user profile.

6. The computer-implemented method of claim 5, further comprising:determining evaluation criteria data indicating a criterion for evaluating a quality of the first summary data;determining, using the interaction data, the first summary data, and the evaluation criteria data, second data indicating a first quality of the first summary data; andgenerating the second summary data further based on the second data.

7. The computer-implemented method of claim 5, further comprising:receiving, from a component, a first indication of a category associated with the component, the category usable for identifying data associated with the component;processing, by the at least one language model, the interaction data to generate the first summary data, the first summary data including a second indication of the category, the second indication representing the first summary data is associated with the category; andbased on the first summary data including the second indication, determining the question data, the question data being for determining an accuracy of natural language data associated with the category.

8. The computer-implemented method of claim 5, further comprising:determining output data corresponding to the second summary data;presenting the output data via a user device;in response to presenting the output data, receiving feedback data corresponding to a revision to the second summary data; andbased on the feedback data, generating third summary data corresponding to the user profile.

9. The computer-implemented method of claim 5, wherein the first summary data is determined using the at least one language model, the computer-implemented method further comprising:based on the first data, the interaction data, and the first summary data, configuring the at least one language model.

10. The computer-implemented method of claim 5, further comprising:receiving first input data associated with the user profile;based on the first input data being associated with the user profile, determining the second summary data;based on the first input data and the second summary data, generating output data responsive to the first input data; andpresenting the output data.

11. The computer-implemented method of claim 5, further comprising:processing, using the at least one language model, the question data and the interaction data to generate the ground truth answer data, the ground truth answer data including at least a first answer and a second answer;determining the first answer includes a response to a first question of the question data, the first question associated with a first category;determining the second answer indicates a second question of the question data could not be answered, the first question associated with a second category;processing, using the at least one language model, the question data and the first summary data to determine the predicted answer data, the predicted answer data including at least a third answer;determining the third answer indicates the second question could not be answered; andbased on the first answer, the second answer, and the third answer, determining the first data, the first data indicating the first category is associated with the interaction data, instead of the second category.

12. The computer-implemented method of claim 5, further comprising:determining the first summary data, the first summary data including a first portion associated with a first category and a second portion associated with a second category;based on the first data, determining the first portion of the first summary data fails to satisfy a condition; andgenerating the second summary data further based on determining the first portion of the first summary data fails to satisfy the condition, the second summary data including at least a third portion associated with the first category.

13. A computing system comprising:at least one processor; andat least one memory comprising instructions that, when executed by the at least one processor, cause the computing system to:determine interaction data associated with a user profile;determine, based on the interaction data, first summary data corresponding to the user profile;determine question data for evaluating an accuracy of the first summary data;determine, by at least one language model, using the interaction data and the question data, ground truth answer data responsive to the question data;determine, by the at least one language model, using the first summary data and the question data, predicted answer data responsive to the question data;determine, using a bidirectional encoder, a first encoded representation corresponding to the ground truth answer data and a second encoded representation corresponding to the predicted answer data;based on comparing the first encoded representation and the second encoded representation, generate first data corresponding to a first accuracy of the first summary data; andbased on the first data, the interaction data, and the first summary data, generate second summary data corresponding to the user profile.

14. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:determine evaluation criteria data indicating a criterion for evaluating a quality of the first summary data;determine, using the interaction data, the first summary data, and the evaluation criteria data, second data indicating a first quality of the first summary data; andgenerate the second summary data further based on the second data.

15. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:receive, from a component, a first indication of a category associated with the component, the category usable for identifying data associated with the component;process, by the at least one language model, the interaction data to generate the first summary data, the first summary data including a second indication of the category, the second indication representing the first summary data is associated with the category; andbased on the first summary data including the second indication, determine the question data, the question data being for determining an accuracy of natural language data associated with the category.

16. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:determine output data corresponding to the second summary data;present the output data via a user device;in response to presenting the output data, receive feedback data corresponding to a revision to the second summary data; andbased on the feedback data, generate third summary data corresponding to the user profile.

17. The computing system of claim 13, wherein the first summary data is determined using the at least one language model, and the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:based on the first data, the interaction data, and the first summary data, configuring the at least one language model.

18. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:receive first input data associated with the user profile;based on the first input data being associated with the user profile, determine the second summary data;based on the first input data and the second summary data, generate output data responsive to the first input data; andpresent the output data.

19. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:process, using the at least one language model, the question data and the interaction data to generate the ground truth answer data, the ground truth answer data including at least a first answer and a second answer;determine the first answer includes a response to a first question of the question data, the first question associated with a first category;determine the second answer indicates a second question of the question data could not be answered, the first question associated with a second category;process, using the at least one language model, the question data and the first summary data to determine the predicted answer data, the predicted answer data including at least a third answer;determine the third answer indicates the second question could not be answered; andbased on the first answer, the second answer, and the third answer, determine the first data, the first data indicating the first category is associated with the interaction data, instead of the second category.

20. The computing system of claim 13, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:determine the first summary data, the first summary data including a first portion associated with a first category and a second portion associated with a second category;based on the first data, determine the first portion of the first summary data fails to satisfy a condition; andgenerate the second summary data further based on determining the first portion of the first summary data fails to satisfy the condition, the second summary data including at least a third portion associated with the first category.

Citation Information

Patent Citations

  • Adaptive network querying system

    US10095688B1

  • User presence detection

    US10121494B1

  • Message response routing

    US10325599B1

  • Sender-receiver interface for artificial intelligence communication assistance for augmenting communications

    US10594757B1

  • Systems and method for automated data packet selection and delivery

    US10735402B1