Generating contextual responses for out-of-coverage requests for assistant systems
The out-of-coverage voice input is processed through graph representation and pattern matching technology to generate contextual responses, which solves the problem of user requests not being correctly understood in the existing technology and improves user experience and system trust.
Patent Information
- Application Number
- CN202410335633.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
It is difficult for existing technology to effectively handle voice input outside the coverage area, resulting in user requests not being correctly understood and responded to, affecting user experience and trust building.
A graph representation is used to connect structured data for speech input and natural language responses, and contextual responses are generated through pattern matching and pattern editing techniques to ensure implicit acknowledgment and failure responses to unsupported requests.
Generating contextual, explanatory responses increases user understanding, reduces the frequency of repeated requests, increases user trust and confidence in the assistant system, and increases discoverability of successful tasks.
Smart Images

Figure CN118694735A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. patent application No. 18 / 188,223, filed on March 22, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure generally relates to database and file management within a network environment, and more particularly to hardware and software for intelligent assistant systems. Background Art
[0004] The assistant system can provide information or services on behalf of the user based on a combination of user input, location awareness, and the ability to access information from various online sources (e.g., weather conditions, traffic congestion, news, stock prices, user schedules, retail prices, etc.). User input can include text (e.g., online chat) (especially text in instant messaging applications or other applications), voice, images, motion, or a combination thereof. The assistant system can perform concierge-type services (e.g., booking dinner, purchasing event tickets, making travel arrangements) or provide information based on user input. The assistant system can also perform management or data processing tasks based on online information and events without user initiation or interaction. Examples of those tasks that can be performed by the assistant system can include schedule management (e.g., sending a reminder to a dinner dater that the user is late due to traffic conditions, updating the schedules of both parties, and changing restaurant reservation times). The assistant system can be implemented by a combination of the following items: a computing device, an application programming interface (API), and a surge in applications on a user device.
[0005] A social networking system may enable its users (e.g., individuals or organizations) to interact with it and with each other through it, and may include a social networking website. The social networking system may utilize input from the user to create and store a user profile associated with the user in the social networking system. The user profile may include basic information, communication channel information, and information about the user's personal interests. The social networking system may also utilize input from the user to create and store a record of the user's relationships with other users in the social networking system, and provide services for facilitating social interaction between or among users (e.g., profile / news feed postings, photo sharing, event organization, messaging, games, or advertising).
[0006] The social networking system may send content or messages related to its services to the user's mobile device or other computing device through one or more networks. The user may also install a software application on the user's mobile device or other computing device to access the user's user profile and other data within the social networking system. The social networking system may generate a personalized set of content objects (e.g., a news feed of aggregated stories of other users associated with the user) for display to the user. Summary of the invention
[0007] In a particular embodiment, the assistant system can help users obtain information or services. The assistant system can enable users to interact with the assistant system through user input in various modes (e.g., audio, voice, text, vision, image, video, gesture, motion, activity, position, orientation) in stateful and multi-turn conversations to receive help from the assistant system. As an example and not limitation, the assistant system can support unimodal input (e.g., voice input only), multimodal input (e.g., voice input and text input), mixed / multimodal input, or any combination thereof. The user input provided by the user can be associated with a specific assistant-related task, and can include, for example, a user request (e.g., a verbal request for information or to perform an action), an interaction between the user and an assistant application associated with the assistant system (e.g., selecting a user interface (UI) element via touch or gesture), or any other type of suitable user input that can be detected and understood by the assistant system (e.g., a user action detected by the user's client device). The assistant system can create and store a user profile, which includes personal information and context information associated with the user. In a particular embodiment, the assistant system may use natural language understanding (NLU) to analyze user input. The analysis may be based on the user's user profile for a more personalized and context-aware understanding. The assistant system may parse entities associated with the user input based on the analysis. In a particular embodiment, the assistant system may interact with different agents to obtain information or services associated with the parsed entity. The assistant system may generate responses about information or services for the user by using natural language generation (NLG). Through interaction with the user, the assistant system may use dialogue management techniques to manage and advance the flow of dialogue with the user. In a particular embodiment, the assistant system may also help the user understand the information obtained effectively and efficiently by aggregating information. The assistant system may also help the user participate more in online social networks by providing tools that help users interact with online social networks (e.g., create posts, comments, messages). The assistant system may also help users manage different tasks, such as keeping track of events. In a particular embodiment, the assistant system may actively perform tasks related to user interests and preferences based on the user profile at a time relevant to the user without user input. In certain embodiments, the assistant system may check the privacy settings to ensure that accessing the user's profile or other user information and performing different tasks is permitted in compliance with the user's privacy settings.
[0008] In a particular embodiment, the assistant system can help users via a hybrid architecture built on a client process and a server process. The client process and the server process can be two parallel workflows for processing user input and providing assistance to the user. In a particular embodiment, the client process can be executed locally on a client system associated with the user. In contrast, the server process can be executed remotely on one or more computing systems. In a particular embodiment, an arbitrator on the client system can coordinate as follows: receiving user input (e.g., an audio signal), determining whether to use a client process, a server process, or a client process and a server process to respond to the user input, and analyzing the processing results from each process. The arbitrator can instruct the client or server-side agent to perform tasks associated with the user input based on the aforementioned analysis. The execution results can be further rendered as output to the client system. By utilizing client processes and server-side processes, the assistant system can effectively help users optimize the use of computing resources while protecting user privacy and enhancing security.
[0009] In certain embodiments, the assistant system can handle out-of-coverage (OOC) requests, such as requests that the assistant system intentionally does not support or requests that are supported by the NLU module but are not processed downstream in the assistant stack. The assistant system can provide a "contextual" response to out-of-coverage requests. In certain embodiments, a "contextual response" can be a failure response that references the user's request, letting the user know that the assistant system understands what the user is saying (implicit confirmation), and letting the user know that the assistant system cannot perform the task corresponding to the user's request. The assistant system can use machine learning to map the user's out-of-coverage (OOC) request to a new, simplified representation language. The assistant system can then implement a "pattern editing" system for the new representation language. The assistant system can also deform the edited pattern into a contextual response. Although the present disclosure describes the generation of a specific response by a specific system in a specific manner, the present disclosure contemplates the generation of any suitable response by any suitable system in any suitable manner.
[0010] In a particular embodiment, the assistant system may receive voice input from a first user from a client system via an assistant xbot associated with the assistant system. The assistant system may then determine that the voice input includes an out-of-coverage request. In a particular embodiment, the out-of-coverage request may include one or more intents or one or more slots that are not supported by the assistant system. The assistant system may then generate a contextual response for the out-of-coverage request. In a particular embodiment, the contextual response may include an implicit confirmation of the out-of-coverage request and a failure response to the out-of-coverage request. The implicit confirmation may reference the voice input from the first user. The failure response may indicate that the assistant system cannot perform the task corresponding to the out-of-coverage request. In a particular embodiment, the assistant system may also send an instruction to the client system for presenting the contextual response in response to the voice input.
[0011] There are some technical challenges in generating contextual responses for out-of-coverage (OOC) requests. One technical challenge may include effectively determining multiple patterns in user voice input for generating contextual responses. The solution to this challenge proposed by the embodiments disclosed herein may be to use a graph representation of the voice input, because the graph representation can connect the structured data of the voice input and the natural language response from the assistant system. Another technical challenge may include effectively generating auxiliary responses based on structured data, which can be well extended for the diversity and complexity of the data. The solution to this challenge proposed by the embodiments disclosed herein may be to use a graph structure representation, which can allow these structures to be easily manipulated at the assistant system for scalable, configuration-driven response creation. Another technical challenge may include effectively converting the graph representation of the voice input into a contextual natural language response. The solution to this challenge proposed by the embodiments disclosed herein may be pattern matching and pattern editing of the graph representation, because stronger pattern matching capabilities can support more contextual responses, and editing the graph representation via configuration can allow control of the desired language text.
[0012] Some embodiments disclosed herein may provide one or more technical advantages. The technical advantages of an embodiment may include generating contextual, explanatory responses to unsupported queries to show that the assistant system understands the request and improves user sentiment, because this can avoid the problem that the user feels not understood and therefore repeats the same query to only fail again and again, and builds trust and confidence in the assistant system, thereby reducing the frustration caused by multiple failed attempts. Another technical advantage of an embodiment may include promoting an increase in successful tasks by suggesting related support experiences, because the assistant system can semantically bind unsupported requests to already supported tasks and suggest queries that will work, thereby improving the discoverability of support features for users. Some embodiments disclosed herein may not provide the above technical advantages, or provide some or all of the above technical advantages. In view of the drawings, description, and claims of the present disclosure, one or more other technical advantages are obvious to those skilled in the art.
[0013] The various embodiments disclosed herein are merely examples, and the scope of the present disclosure is not limited to these embodiments. A specific embodiment may include all, some, or not include the components, elements, features, functions, operations, or steps in the embodiments disclosed herein. Embodiments according to the present invention are particularly disclosed in the attached claims for methods, storage media, systems, and computer program products, wherein any feature mentioned in one claim category (e.g., method) may also be claimed in another claim category (e.g., system). The dependencies or backreferences in the attached claims are selected only for formal reasons. However, any subject matter resulting from intentional reference to any previous claim (especially multiple dependencies) may also be claimed, so that any combination of multiple claims and multiple features thereof are disclosed and can be claimed regardless of the dependencies selected in the attached claims. The claimed subject matter includes not only multiple combinations of multiple features stated in the attached claims, but also any other combination of multiple features in the claims, wherein each feature mentioned in the claims may be combined with any other feature or combination of other features in the claims. Furthermore, any of the embodiments and features described or depicted herein may be claimed in a separate claim and / or in any combination with any embodiment or feature described or depicted herein or in any combination with any feature in the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 An example network environment associated with an assistant system is shown.
[0015] Figure 2 An example architecture for an assistant system is shown.
[0016] Figure 3 An example flow diagram of an assistant system is shown.
[0017] Figure 4 An example task-centric flow chart for processing user input is shown.
[0018] Figure 5 An example design flow is shown.
[0019] Figure 6 An example language mapping is shown.
[0020] Figure 7 An example process of graph mining is shown.
[0021] Figure 8 An example graph mining of an input language is shown.
[0022] Fig. 9 An example mode is shown.
[0023] Fig. 10A and Fig. 10B An example graph for graph search is shown.
[0024] Fig.11 An example high-level flow for graph editing is shown.
[0025] Fig.12 Example end-to-end processing of out-of-coverage requests is shown.
[0026] Fig.13 An example of user education is shown.
[0027] Fig.14 An example method for handling out of coverage requests is shown.
[0028] Fig.15 An example computer system is shown. DETAILED DESCRIPTION
[0029] System Overview
[0030] Figure 1 An example network environment 100 associated with an assistant system is shown. The network environment 100 includes a client system 130, an assistant system 140, a social networking system 160, and a third-party system 170 connected to each other via a network 110. Figure 1A particular arrangement of client system 130, assistant system 140, social networking system 160, third-party system 170, and network 110 is shown, but the present disclosure contemplates any suitable arrangement of client system 130, assistant system 140, social networking system 160, third-party system 170, and network 110. By way of example and not limitation, two or more of client system 130, social networking system 160, assistant system 140, and third-party system 170 may be directly connected to each other, bypassing network 110. As another example, two or more of client system 130, assistant system 140, social networking system 160, and third-party system 170 may be physically or logically co-located in whole or in part with each other. Furthermore, although Figure 1 A particular number of client systems 130, assistant systems 140, social networking systems 160, third-party systems 170, and networks 110 are shown, but the present disclosure contemplates any suitable number of client systems 130, assistant systems 140, social networking systems 160, third-party systems 170, and networks 110. By way of example and not limitation, network environment 100 may include multiple client systems 130, multiple assistant systems 140, multiple social networking systems 160, multiple third-party systems 170, and multiple networks 110.
[0031] The present disclosure contemplates any suitable network 110. By way of example and not limitation, one or more portions of network 110 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of a Public Switched Telephone Network (PSTN), a network based on cellular technology, a network based on satellite communication technology, another network 110, or a combination of two or more such networks.
[0032] A plurality of links 150 may connect client system 130, assistant system 140, social networking system 160, and third-party system 170 to communication network 110, or to each other. The present disclosure contemplates any suitable links 150. In particular embodiments, one or more links 150 include one or more wired (e.g., Digital Subscriber Line (DSL) or Data Over Cable Service Interface Specification (DOCSIS)) links, wireless (e.g., Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)) links, or optical (e.g., Synchronous Optical Network (SONET) or Synchronous Digital Hierarchy (SDH)) links. In certain embodiments, one or more links 150 each include an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a network based on cellular technology, a network based on satellite communication technology, another link 150, or a combination of two or more such links 150. The multiple links 150 need not all be identical throughout the network environment 100. In one or more aspects, the one or more first links 150 can be different from the one or more second links 150.
[0033] In certain embodiments, client system 130 may be any suitable electronic device including hardware, software, or embedded logic components or a combination of two or more such components, and may be capable of performing the functions implemented or supported by client system 130. By way of example and not limitation, client system 130 may include a computer system such as a desktop computer, a notebook or laptop computer, a netbook, a tablet computer, an e-book reader, a global positioning system (GPS) device, a camera, a personal digital assistant (PDA), a handheld electronic device, a cellular phone, a smart phone, a smart speaker, a smart watch, smart glasses, augmented reality (AR) smart glasses, virtual reality (VR) head-mounted viewer (headset), other suitable electronic devices, or any suitable combination thereof. In certain embodiments, client system 130 may be a smart assistant device. More information about smart assistant devices can be found in the following applications: U.S. Patent Application No. 15 / 949,011, filed on April 9, 2018, U.S. Patent Application No. 16 / 153,574, filed on October 5, 2018, U.S. Design Patent Application No. 29 / 631,910, filed on January 3, 2018, U.S. Design Patent Application No. 29 / 631,747, filed on January 2, 2018, U.S. Design Patent Application No. 29 / 631,913, filed on January 3, 2018, and U.S. Design Patent Application No. 29 / 631,914, filed on January 3, 2018, each of which is incorporated by reference. The present disclosure contemplates any suitable client system 130. In a particular embodiment, the client system 130 can enable a network user at the client system 130 to access the network 110. Client system 130 may also enable the user to communicate with other users at other client systems 130 .
[0034] In certain embodiments, the client system 130 may include a web browser 132 and may have one or more add-ons, plug-ins, or other extensions. A user at the client system 130 may enter a Uniform Resource Locator (URL) or other address that directs the web browser 132 to a specific server (e.g., server 162, or a server associated with a third-party system 170), and the web browser 132 may generate a Hypertext Transfer Protocol (HTTP) request and transmit the HTTP request to the server. The server may accept the HTTP request and transmit one or more Hypertext Markup Language (HTML) files to the client system 130 in response to the HTTP request. The client system 130 may render a web interface (e.g., a web page) based on an HTML file from a server for presentation to the user. The present disclosure contemplates any suitable source file. As an example and not limitation, a web interface may be rendered based on an HTML file, an Extensible Hyper Text Markup Language (XHTML) file, or an Extensible Markup Language (XML) file, according to specific needs. Such an interface may also execute scripts, combinations of markup languages and scripts, etc. In this document, references to a web interface include one or more corresponding source files (which a browser may use to render the web interface), and vice versa, where appropriate.
[0035] In certain embodiments, client system 130 may include social networking application 134 installed on client system 130. A user at client system 130 may use social networking application 134 to access an online social network. A user at client system 130 may use social networking application 134 to communicate with the user's social connections (e.g., friends, followers, followed accounts, contacts, etc.). A user at client system 130 may also use social networking application 134 to interact with a plurality of content objects (e.g., posts, news articles, ephemeral content, etc.) on an online social network. By way of example and not limitation, a user may use social networking application 134 to browse trending topics and breaking news.
[0036] In a particular embodiment, the client system 130 may include an assistant application 136. A user at the client system 130 may use the assistant application 136 to interact with the assistant system 140. In a particular embodiment, the assistant application 136 may include an assistant xbot function, which is used as a front-end interface to interact with the user of the client system 130 (including receiving user input and presenting output). In a particular embodiment, the assistant application 136 may include a standalone application. In a particular embodiment, the assistant application 136 may be integrated into a social network application 134 or another suitable application (e.g., a messaging application). In a particular embodiment, the assistant application 136 may also be integrated into the client system 130, an assistant hardware device, or any other suitable hardware device. In a particular embodiment, the assistant application 136 may also be a part of the assistant system 140. In a particular embodiment, the assistant application 136 may be accessed via a web browser 132. In a particular embodiment, a user may interact with the assistant system 140 by providing user input to the assistant application 136 via various modalities (e.g., audio, voice, text, vision, image, video, gesture, motion, activity, position, orientation). The assistant application 136 may transmit the user input to the assistant system 140 (e.g., via the assistant xbot). Based on the user input, the assistant system 140 may generate a response. The assistant system 140 may send the generated response to the assistant application 136. The assistant application 136 may then present the response to the user at the client system 130 via various modalities (e.g., audio, text, image, and video). As an example and not limitation, the user may interact with the assistant system 140 by providing user input (e.g., a verbal request for information about the current state of nearby vehicle traffic) to the assistant xbot via a microphone of the client system 130. The assistant application 136 may then transmit the user input to the assistant system 140 via the network 110. The assistant system 140 may analyze the user input accordingly, generate a response (e.g., vehicle traffic information obtained from a third-party source) based on the analysis of the user input, and transmit the generated response back to the assistant application 136. Assistant application 136 may then present the generated response to the user in any suitable manner (e.g., displaying a text-based push notification and / or one or more images of a local map showing nearby vehicular traffic on a display of client system 130).
[0037] In certain embodiments, client system 130 may implement wake-up word detection techniques to allow a user to conveniently activate assistant system 140 using one or more wake-up words associated with assistant system 140. By way of example and not limitation, a system audio API on client system 130 may continuously monitor user input received at client system 130, the user input comprising audio data (e.g., voice data frames). In this example, the wake-up word associated with assistant system 140 may be a voice phrase "Hey Assistant". In this example, when the system audio API on client system 130 detects the voice phrase "Hey Assistant" in the monitored audio data, assistant system 140 may be activated for subsequent interaction with the user. In alternative embodiments, similar detection techniques may be implemented to activate assistant system 140 using specific non-audio user input associated with assistant system 140. For example, the non-audio user input may be a specific visual signal detected by a low-power sensor (e.g., a camera) of client system 130. By way of example and not limitation, the visual signal may be a static image (e.g., a bar code, a QR code, a universal product code (UPC)), the user's location (e.g., the user's gaze at the client system 130), user motion (e.g., the user pointing at an object), or any other suitable visual signal.
[0038] In certain embodiments, client system 130 may include rendering device 137 and, optionally, companion device 138. Rendering device 137 may be configured to render output generated by assistant system 140 for a user. Companion device 138 may be configured to perform computations associated with a particular task (e.g., communication with assistant system 140) locally on companion device 138 (i.e., on the device) in certain circumstances (e.g., when rendering device 137 is unable to perform the computations associated with the particular task (e.g., communication with assistant system 140) as described above. In certain embodiments, client system 130, rendering device 137, and / or companion device 138 may each be a suitable electronic device including hardware, software, or embedded logic components, or a combination of two or more such components, and may be capable of separately or cooperatively performing the functionality implemented or supported by client system 130 as described herein. By way of example and not limitation, the client system 130, the rendering device 137, and / or the companion device 138 may each include a computer system, such as a desktop computer, a notebook or laptop computer, a netbook, a tablet computer, an e-book reader, a GPS device, a camera, a personal digital assistant (PDA), a handheld electronic device, a cellular phone, a smart phone, a smart speaker, a virtual reality (VR) head-mounted viewer, an augmented reality (AR) smart glasses, other suitable electronic devices, or any suitable combination thereof. In a particular embodiment, one or more of the client system 130, the rendering device 137, and the companion device 138 may operate as a smart assistant device. By way of example and not limitation, the rendering device 137 may include smart glasses, and the companion device 138 may include a smart phone. By way of another example and not limitation, the rendering device 137 may include a smart watch, and the companion device 138 may include a smart phone. By way of yet another example and not limitation, the rendering device 137 may include smart glasses, and the companion device 138 may include a smart remote control for the smart glasses. By way of yet another example and not limitation, the rendering device 137 may include a VR / AR head-mounted viewer, and the companion device 138 may include a smart phone.
[0039] In certain embodiments, a user may interact with assistant system 140 using rendering device 137 or companion device 138, either alone or in combination. In certain embodiments, one or more of client system 130, rendering device 137, and companion device 138 may implement a multi-stage wake-up word detection model to enable a user to conveniently activate assistant system 140 by continuously monitoring one or more wake-up words associated with assistant system 140. In the first stage of the wake-up word detection model, rendering device 137 may receive audio user input (e.g., a voice data frame). If a wireless connection between rendering device 137 and companion device 138 is available, an application on rendering device 137 may transmit the received audio user input to a companion application on companion device 138 via a wireless connection. In the second stage of the wake-up word detection model, a companion application on companion device 138 may process the received audio user input to detect a wake-up word associated with assistant system 140. The companion application on companion device 138 may then transmit the detected wake-up word to a server associated with assistant system 140 via wireless network 110. In the third stage of the wake-up word detection model, a server associated with assistant system 140 may perform keyword verification on the detected wake-up word to verify whether the user intends to activate assistant system 140 and receive help from assistant system 140. In alternative embodiments, any of the processing, detection, or keyword verification may be performed by rendering device 137 and / or companion device 138. In particular embodiments, when assistant system 140 has been activated by a user, an application on rendering device 137 may be configured to receive user input from the user, and a companion application on companion device 138 may be configured to process user input (e.g., user request) received by the application on rendering device 137. In particular embodiments, rendering device 137 and companion device 138 may be associated (i.e., paired) with each other via one or more wireless communication protocols (e.g., Bluetooth).
[0040] The following example workflow illustrates how the rendering device 137 and the companion device 138 may process user input provided by a user. In this example, an application on the rendering device 137 may receive user input including a user request directed to the rendering device 137. The application on the rendering device 137 may then determine the state of the wireless connection between the rendering device 137 and the companion device 138 (i.e., the tethering status). If the wireless connection between the rendering device 137 and the companion device 138 is unavailable, the application on the rendering device 137 may transmit the user request (optionally including additional data and / or contextual information available to the rendering device 137) to the assistant system 140 via the network 110. The assistant system 140 may then generate a response to the user request and transmit the generated response back to the rendering device 137. The rendering device 137 may then present the response to the user in any suitable manner. Alternatively, if a wireless connection between rendering device 137 and companion device 138 is available, the application on rendering device 137 can transmit the user request (optionally including additional data and / or context information available to rendering device 137) to the companion application on companion device 138 via the wireless connection. The companion application on companion device 138 can then transmit the user request (optionally including additional data and / or context information available to companion device 138) to assistant system 140 via network 110. Assistant system 140 can then generate a response to the user request and transmit the generated response back to companion device 138. The companion application on companion device 138 can then transmit the generated response to the application on rendering device 137. Rendering device 137 can then present the response to the user in any suitable manner. In the previous example workflow, rendering device 137 and companion device 138 can each perform one or more calculations and / or processing at each corresponding step of the workflow. In certain embodiments, the performance of computations and / or processing disclosed herein may be adaptively switched between the rendering device 137 and the companion device 138 based at least in part on the device state of the rendering device 137 and / or the companion device 138, the task associated with the user input, and / or one or more additional factors. By way of example and not limitation, one factor may be the signal strength of the wireless connection between the rendering device 137 and the companion device 138. For example, if the signal strength of the wireless connection between the rendering device 137 and the companion device 138 is strong, then adaptive switching may be performed to substantially perform the computations and processing by the companion device 138, e.g., to benefit from the greater processing power of the CPU of the companion device 138. Alternatively, if the signal strength of the wireless connection between the rendering device 137 and the companion device 138 is weak, then adaptive switching may be performed to substantially perform the computations and processing by the rendering device 137 in an independent manner.In certain embodiments, if the client system 130 does not include the companion device 138, the aforementioned calculations and processing may be performed separately by the rendering device 137 in an independent manner.
[0041] In certain embodiments, assistant system 140 can assist users in performing various assistant-related tasks. Assistant system 140 can interact with social networking system 160 and / or third-party system 170 when performing these assistant-related tasks.
[0042] In certain embodiments, social networking system 160 may be a network-addressable computing system that may host an online social network. Social networking system 160 may generate, store, receive, and transmit social networking data, such as user profile data, concept profile data, social graph information, or other suitable data related to an online social network. Social networking system 160 may be accessed directly by other components in network environment 100 or via network 110. By way of example and not limitation, client system 130 may access social networking system 160 directly or via network 110 using a web browser 132 or a native application associated with social networking system 160 (e.g., a mobile social networking application, a messaging application, another suitable application, or any combination thereof). In certain embodiments, social networking system 160 may include one or more servers 162. Each server 162 may be a single server or a distributed server across multiple computers or multiple data centers. By way of example and not limitation, each server 162 may be a web server, a news server, a mail server, a message server, an advertising server, a file server, an application server, an exchange server, a database server, a proxy server, another server suitable for performing the functions or processes described herein, or any combination thereof. In a particular embodiment, each server 162 may include hardware, software, or embedded logic components, or a combination of two or more such components, for performing the appropriate functions implemented or supported by the server 162. In a particular embodiment, the social networking system 160 may include one or more data repositories 164. The data repository 164 may be used to store various types of information. In a particular embodiment, the information stored in the data repository 164 may be organized according to a particular data structure. In a particular embodiment, each data repository 164 may be a relational database, a columnar database, a correlation database, or other suitable database. Although the present disclosure describes or illustrates a particular type of database, the present disclosure contemplates any suitable type of database. Particular embodiments may provide an interface that enables client system 130 , social networking system 160 , assistant system 140 , or third-party system 170 to manage, retrieve, modify, add, or delete information stored in data repository 164 .
[0043] In certain embodiments, social networking system 160 may store one or more social graphs in one or more data stores 164. In certain embodiments, a social graph may include a plurality of nodes—these nodes may include a plurality of user nodes (each corresponding to a particular user) or a plurality of concept nodes (each corresponding to a particular concept)—and a plurality of edges connecting these nodes. Social networking system 160 may provide users of an online social network with the ability to communicate and interact with other users. In certain embodiments, a user may join an online social network via social networking system 160 and may then add connections (e.g., relationships) with a plurality of other users in social networking system 160 with whom the user wants to establish connections. As used herein, the term “friend” may refer to any other user in social networking system 160 with whom a user has formed a connection, association, or relationship via social networking system 160.
[0044] In particular embodiments, social-networking system 160 may provide users with the ability to take action on various types of items or objects supported by social-networking system 160. By way of example and not limitation, items and objects may include groups or social networks to which users of social-networking system 160 belong, events or calendar items that may be of interest to the user, computer-based applications that the user may use, transactions that allow the user to buy or sell items via the service, interactions with advertisements that the user may act on, or other suitable items or objects. Users may interact with anything that can be represented within social-networking system 160 or by an external system of third-party system 170 that is separate from social-networking system 160 and coupled to social-networking system 160 via network 110.
[0045] In certain embodiments, social networking system 160 may be able to link various entities. By way of example and not limitation, social networking system 160 may enable users to interact with each other and receive content from third-party systems 170 or other entities, or allow users to interact with these entities through an application programming interface (API) or other communication channels.
[0046] In certain embodiments, third-party system 170 may include one or more types of servers, one or more data repositories, one or more interfaces (including but not limited to APIs), one or more web services, one or more content sources, one or more networks, or any other suitable component that can communicate with a server, for example. Third-party system 170 may be operated by a different entity than the entity that operates social networking system 160. However, in certain embodiments, social networking system 160 and third-party system 170 may operate in conjunction with each other to provide social networking services to users of social networking system 160 or third-party system 170. In this sense, social networking system 160 may provide a platform or backbone that other systems (such as third-party system 170) can use to provide social networking services and functionality to users over the Internet.
[0047] In certain embodiments, third-party system 170 may include a third-party content object provider. A third-party content object provider may include one or more sources of content objects that may be transmitted to client system 130. By way of example and not limitation, a content object may include information about things or activities of interest to a user, such as movie showtimes, movie reviews, restaurant reviews, restaurant menus, product information and reviews, or other suitable information. By way of another example and not limitation, a content object may include an incentive content object, such as a coupon, discount ticket, gift certificate, or other suitable incentive object. In certain embodiments, a third-party content provider may use one or more third-party agents to provide content objects and / or services. A third-party agent may be an implementation hosted and executed on third-party system 170.
[0048] In certain embodiments, social networking system 160 also includes user-generated content objects, which can enhance user interaction with social networking system 160. User-generated content can include any content that a user can add, upload, send, or "post" to social networking system 160. By way of example and not limitation, a user transmits a post from client system 130 to social networking system 160. Posts can include data such as status updates or other text data, location information, photos, videos, links, music, or other similar data or media. Content can also be added to social networking system 160 by third parties through "communication channels" (e.g., news feeds or streams).
[0049] In a particular embodiment, the social networking system 160 may include various servers, subsystems, programs, modules, logs, and data repositories. In a particular embodiment, the social networking system 160 may include one or more of the following: a network server, an action recorder, an API request server, a relevance and ranking engine, a content object classifier, a notification controller, an action log, a third-party content object exposure log, an inference module, an authorization / privacy server, a search module, an advertising pricing module, a user interface module, a user profile repository, a contact repository, a third-party content repository, or a location repository. The social networking system 160 may also include suitable components, such as a network interface, a security mechanism, a load balancer, a failover server, a management and network operation console, other suitable components, or any suitable combination thereof. In a particular embodiment, the social networking system 160 may include one or more user profile repositories for storing user profiles. A user profile may include, for example, biographical information, demographic information, behavioral information, social information, or other types of descriptive information (e.g., work experience, education, hobbies or preferences, interests, affinities, or addresses). Interest information may include interests associated with one or more categories. Categories may be general or specific. As an example and not limitation, if a user "likes" an item about a shoe brand, the category can be the brand, or the general category "shoes" or "clothing". A contact repository can be used to store contact information about a user. The contact information can indicate users with similar or common work experience, group membership, hobbies, educational history, or users who are related or share common attributes in any way. The contact information can also include user-defined connections between different users and content (both internal and external). A network server can be used to link the social networking system 160 with one or more client systems 130 or one or more third-party systems 170 via the network 110. The network server can include a mail server or other messaging function to receive and route messages between the social networking system 160 and one or more client systems 130. For example, an API request server can allow an assistant system 140 or a third-party system 170 to access information from the social networking system 160 by calling one or more APIs. An action recorder can be used to receive communications from a web server about a user's actions on or outside the social networking system 160. Together with the action log, a third-party content object log of a user contacting a third-party content object can be maintained. The notification controller may provide information about the content object to client system 130. The information may be pushed to client system 130 as a notification, or may be pulled from client system 130 in response to a user request, including a request received from client system 130. An authorization server may be used to enforce one or more privacy settings of users of social networking system 160.The user's privacy settings may determine how specific information associated with the user may be shared. The authorization server may allow users to opt in or out of having their actions recorded by the social networking system 160 or shared with other systems (e.g., third-party systems 170), for example, by setting appropriate privacy settings. A third-party content object repository may be used to store content objects received from third parties (e.g., third-party systems 170). A location repository may be used to store location information received from a client system 130 associated with a user. The advertising pricing module may combine social information, current time, location information, or other suitable information to provide relevant advertisements to users in the form of notifications.
[0050] Assistant System
[0051] Figure 2 An example architecture 200 of an assistant system 140 is shown. In certain embodiments, the assistant system 140 can help a user obtain information or services. The assistant system 140 can enable a user to interact with the assistant system 140 in a stateful and multi-turn conversation through user input in various modalities (e.g., audio, voice, text, vision, image, video, gesture, motion, activity, location, orientation) to receive help from the assistant system 140. As an example and not limitation, the user input can include audio input based on user voice (e.g., verbal commands), which can be processed by a system audio application programming interface (API) on the client system 130. The system audio API can perform the following techniques to generate audio data that can be easily processed by the assistant system 140: the techniques include echo cancellation, noise removal, beamforming, self-user voice activation, speaker recognition, voice activity detection (VAD), and / or any other suitable acoustic technology. In particular embodiments, assistant system 140 may support unimodal input (e.g., voice input only), multimodal input (e.g., voice input and text input), hybrid / multimodal input, or any combination thereof. In particular embodiments, user input may be user-generated input that is sent to assistant system 140 in a single turn. User input provided by a user may be associated with a particular assistant-related task and may include, for example, a user request (e.g., a verbal request for information or to perform an action), a user interaction with an assistant application 136 associated with assistant system 140 (e.g., selecting a UI element via touch or gesture), or any other type of suitable user input that can be detected and understood by assistant system 140 (e.g., user movement detected by the user's client system 130).
[0052] In a particular embodiment, the assistant system 140 may create and store a user profile that includes personal information and contextual information associated with the user. In a particular embodiment, the assistant system 140 may use natural language understanding (NLU) technology to analyze user input. The analysis may be based at least in part on the user's user profile to achieve a more personalized and context-aware understanding. The assistant system 140 may resolve entities associated with the user input based on the analysis. In a particular embodiment, the assistant system 140 may interact with different agents to obtain information or services associated with the resolved entity. The assistant system 140 may generate responses about information or services for the user by using natural language generation (NLG). Through interaction with the user, the assistant system 140 may use dialogue management technology to manage and forward conversation flows with the user. In a particular embodiment, the assistant system 140 may also help the user to effectively and efficiently understand the information obtained by aggregating information. The assistant system 140 may also help the user to participate more in online social networks by providing tools that help the user interact with online social networks (e.g., create posts, comments, messages). The assistant system 140 may also help the user manage different tasks, such as keeping track of events. In certain embodiments, assistant system 140 may proactively perform pre-authorized tasks related to user interests and preferences based on the user profile at a time relevant to the user without user input. In certain embodiments, assistant system 140 may check privacy settings to ensure that the user's privacy settings are allowed to be followed to access the user's profile or other user information and perform different tasks. More information about following privacy settings to assist users can be found in the following application: U.S. Patent Application No. 16 / 182,542, filed on November 6, 2018, which is incorporated by reference.
[0053] In certain embodiments, assistant system 140 can assist users via an architecture built on client-side processes and server-side processes that can operate in various modes of operation. Figure 2, the client-side process is shown above the dashed line 202, and the server-side process is shown below the dashed line 202. The first operating mode (i.e., on-device mode) can be a workflow in which the assistant system 140 processes user input and provides assistance to the user by primarily or exclusively executing the client-side process locally on the client system 130. For example, if the client system 130 is not connected to the network 110 (i.e., when the client system 130 is offline), the assistant system 140 can only utilize the client-side process to process user input in the first operating mode. The second operating mode (i.e., cloud mode) can be a workflow in which the assistant system 140 processes user input and provides assistance to the user by primarily or exclusively executing the server-side process on one or more remote servers (e.g., servers associated with the assistant system 140). As Figure 2 As shown, the third operation mode (i.e., hybrid mode) can be a parallel workflow in which the assistant system 140 processes user input and provides assistance to the user by executing client-side processes locally on the client system 130 in conjunction with server-side processes on one or more remote servers (e.g., servers associated with the assistant system 140). For example, both the client system 130 and the server associated with the assistant system 140 can perform automatic speech recognition (ASR) and natural language understanding (NLU) processes, but the client system 130 can delegate the dialog, agent, and natural language generation (NLG) processes to be performed by the server associated with the assistant system 140.
[0054] In certain embodiments, the selection of an operating mode may be based at least in part on the device state, the task associated with the user input, and / or one or more additional factors. By way of example and not limitation, as described above, one factor may be the network connection state of client system 130. For example, if client system 130 is not connected to network 110 (i.e., when client system 130 is offline), assistant system 140 may process the user input in a first operating mode (i.e., on-device mode). By way of another example and not limitation, another factor may be based on a measurement of the available battery power (i.e., battery state) of client system 130. For example, if client system 130 needs to conserve battery power (e.g., when client system 130 has minimal available battery power or the user has indicated a desire to conserve battery power of client system 130), assistant system 140 may process the user input in a second operating mode (i.e., cloud mode) or a third operating mode (i.e., hybrid mode) to perform less power-intensive operations on client system 130. By way of yet another example and not limitation, another factor may be one or more privacy constraints (e.g., specified privacy settings, applicable privacy policies). For example, if one or more privacy constraints limit or prevent certain data from being sent to a remote server (e.g., a server associated with assistant system 140), assistant system 140 can process user input in a first operating mode (i.e., on-device mode) to protect user privacy. As another example and not limitation, another factor can be desynchronized context data between client system 130 and a remote server (e.g., a server associated with assistant system 140). For example, it can be determined that client system 130 and a server associated with assistant system 140 have inconsistent, missing, and / or unreconciled context data, and assistant system 140 can process user input in a third operating mode (i.e., hybrid mode) to reduce the likelihood of inadequate analysis associated with the user input. As another example and not limitation, another factor can be a measurement of the latency of the connection between client system 130 and a remote server (e.g., a server associated with assistant system 140). For example, if the task associated with the user input (e.g., a photo collection task) may significantly benefit from and / or require immediate or immediate execution, assistant system 140 may process the user input in a first operating mode (i.e., on-device mode) to ensure that the task is performed in a timely manner. As yet another example and not limitation, for a feature related to a task associated with the user input, another factor may be whether the feature is only supported by a remote server (e.g., a server associated with assistant system 140).For example, if at the time of user input, the relevant feature requires advanced technical functionality (e.g., high power processing capability, fast update cycle), and the advanced technical functionality is only supported by a server associated with the assistant system 140 and not by the client system 130, the assistant system 140 can process the user input in a second operating mode (i.e., cloud mode) or a third operating mode (i.e., hybrid mode) in order to benefit from the relevant feature.
[0055] In certain embodiments, the on-device coordinator 206 on the client system 130 can coordinate receiving the user input and can determine which of the above-described operating modes should be used to process or continue processing the user input at one or more decision points in the example workflow. As described above, the selection of the operating mode can be based at least in part on the device state, the task associated with the user input, and / or one or more additional factors. By way of example and not limitation, reference is made to Figure 2 In the workflow architecture shown in , after receiving user input from the user, the on-device coordinator 206 can determine at decision point (D0) 205 whether to start processing the user input in a first operating mode (i.e., on-device mode), a second operating mode (i.e., cloud mode), or a third operating mode (i.e., hybrid mode). For example, if the client system 130 is not connected to the network 110 (i.e., when the client system 130 is offline), if one or more privacy constraints explicitly require on-device processing (e.g., adding or removing another person to a private call between users), or if the user input is associated with a task that does not require or benefit from server-side processing (e.g., setting an alarm or calling another user), then at decision point (D0) 205, the on-device coordinator 206 can select the first operating mode (i.e., on-device mode). As another example, if the client system 130 needs to conserve battery power (e.g., when the client system 130 has minimum available battery power or the user has indicated a desire to conserve battery power of the client system 130) or needs to limit additional utilization of computing resources (e.g., when other processes operating on the client system 130 require high CPU utilization (e.g., short message service (SMS) messaging applications)), then at decision point (D0) 205, the on-device coordinator 206 may select the second operating mode (i.e., cloud mode) or the third operating mode (i.e., hybrid mode).
[0056] In certain embodiments, if the on-device coordinator 206 determines at decision point (D0) 205 that the user input should be processed using the first mode of operation (i.e., the on-device mode) or the third mode of operation (i.e., the hybrid mode), the client process may continue, such as Figure 2As an example and not limitation, if the user input includes voice data, the voice data may be received at a local automatic speech recognition (ASR) module 208a on the client system 130. The ASR module 208a may allow the user to dictate and transcribe the speech into written text, synthesize a document into an audio stream, or issue commands that are recognized by the system.
[0057] In certain embodiments, the output of the ASR module 208a may be sent to a local natural language understanding (NLU) module 210a. The NLU module 210a may perform named entity resolution (NER), or named entity resolution may be performed by an entity resolution module 212a, as described below. In certain embodiments, one or more of an intent, a slot, or a domain may be the output of the NLU module 210a.
[0058] In certain embodiments, user input may include non-voice data, which may be received at the local context engine 220a. As an example and not limitation, non-voice data may include location, vision, touch, gesture, world update, social update, context information, information related to people, activity data, and / or any other suitable type of non-voice data. Non-voice data may also include sensory data received by the client system 130 sensor (e.g., microphone, camera), access to which may follow privacy constraints, and the sensory data may be further analyzed by computer vision techniques. In certain embodiments, computer vision techniques may include object detection, scene recognition, hand tracking, eye tracking, and / or any other suitable computer vision techniques. In certain embodiments, non-voice data may be subjected to geometric construction, which may include using any suitable type of data collected by the client system 130 to construct objects around the user. As an example and not limitation, the user may be wearing AR glasses, and geometric construction may be used to determine the spatial position of surfaces and items (e.g., floors, walls, user's hands). In certain embodiments, the non-voice data may be inertial data collected by AR glasses or VR head mounted view devices, and the non-voice data may be data associated with linear and angular motion (e.g., measurements associated with user body motion). In certain embodiments, the context engine 220a may determine various types of events and contexts based on the non-voice data.
[0059] In a particular embodiment, the output of the NLU module 210a and / or the context engine 220a may be sent to the entity resolution module 212a. The entity resolution module 212a may resolve entities associated with one or more slots output by the NLU module 210a. In a particular embodiment, each resolved entity may be associated with one or more entity identifiers. As an example and not limitation, the identifier may include a unique user identifier (ID) corresponding to a particular user (e.g., a unique username or user ID number of the social networking system 160). In a particular embodiment, each resolved entity may also be associated with a confidence score. More information about resolving entities can be found in the following applications: U.S. Patent No. 10,803,050 filed on July 27, 2018, and U.S. Patent Application No. 16 / 048072 filed on July 27, 2018, each of which is incorporated by reference.
[0060] In certain embodiments, at decision point (D0) 205, the on-device coordinator 206 may determine that the user input should be processed in the second operating mode (i.e., cloud mode) or the third operating mode (i.e., hybrid mode). In these operating modes, the user input may be processed by certain server-side modules in a manner similar to the client-side process described above.
[0061] In certain embodiments, if the user input includes voice data, the voice data of the user input may be received at a remote automatic speech recognition (ASR) module 208b on a remote server, such as a server associated with assistant system 140. ASR module 208b may allow the user to dictate and have the speech transcribed into written text, synthesize a document into an audio stream, or issue commands that are recognized by the system.
[0062] In certain embodiments, the output of the ASR module 208b may be sent to a remote natural language understanding (NLU) module 210b. In certain embodiments, the NLU module 210b may perform named entity resolution (NER), or named entity resolution may be performed by an entity resolution module 212b of a dialog manager 216b, as described below. In certain embodiments, one or more of an intent, a slot, or a domain may be the output of the NLU module 210b.
[0063] In certain embodiments, the user input may include non-speech data, which may be received at the remote context engine 220b. In certain embodiments, the remote context engine 220b may determine various types of events and contexts based on the non-speech data. In certain embodiments, the output of the NLU module 210b and / or the context engine 220b may be sent to the remote dialog manager 216b.
[0064] In certain embodiments, as described above, the on-device coordinator 206 on the client system 130 can coordinate receiving the user input and can determine which of the above-described operating modes should be used to process or continue processing the user input at one or more decision points in the example workflow. As further discussed above, the selection of the operating mode can be based at least in part on the device state, the task associated with the user input, and / or one or more additional factors. By way of example and not limitation, continue to refer to Figure 2 , after the entity resolution module 212a generates an output or an empty output, the on-device coordinator 206 can determine at decision point (D1) 215 whether to continue processing the user input in the first operation mode (i.e., on-device mode), the second operation mode (i.e., cloud mode), or the third operation mode (i.e., hybrid mode). For example, if the identified intent is associated with a latency-sensitive processing task (e.g., taking a photo, pausing a stopwatch), at decision point (D1) 215, the on-device coordinator 206 can select the first operation mode (i.e., on-device mode). As another example and not limitation, if the on-device processing on the client system 130 does not support messaging tasks, the on-device coordinator 206 can select the third operation mode (i.e., hybrid mode) to process the user input associated with the messaging request. As yet another example, if the task being processed requires access to a social graph, a knowledge graph, or a concept graph that is not stored on the client system 130, at decision point (D1) 215, the on-device coordinator 206 can select the second operation mode (i.e., cloud mode) or the third operation mode (i.e., hybrid mode). Alternatively, if a sufficient version of the information graph (e.g., a smaller and / or bootstrapped version of the knowledge graph) exists on the client system 130 that includes the necessary information for the task, the on-device coordinator 206 may instead select the first operating mode (ie, on-device mode).
[0065] In certain embodiments, if the on-device coordinator 206 determines at decision point (D1) 215 that the processing should continue using the first operating mode (i.e., on-device mode) or the third operating mode (i.e., hybrid mode), the client process may continue, such as Figure 2As shown. As an example and not limitation, the output from the entity resolution module 212a can be sent to the on-device dialogue manager 216a. In a specific embodiment, the on-device dialogue manager 216a may include a dialogue state tracker 218a and an action selector 222a. The on-device dialogue manager 216a may have complex dialogue logic and product-related business logic to manage the dialogue state and conversation flow between the user and the assistant system 140. The on-device dialogue manager 216a may include full functionality for end-to-end integration and multi-round support (e.g., confirmation, disambiguation). The on-device dialogue manager 216a may also be lightweight in terms of computing limitations and resources including memory, computing (CPU), and binary size constraints. The on-device dialogue manager 216a may also be extensible to improve the developer experience. In a specific embodiment, the on-device dialogue manager 216a may benefit the assistant system 140, for example, by providing offline support to alleviate network connection issues (e.g., unstable or unavailable network connections), using client processes to prevent privacy-sensitive information from being transmitted out of the client system 130, and providing a stable user experience in high latency-sensitive scenarios.
[0066] In certain embodiments, the on-device dialogue manager 216a may also perform false trigger mitigation. Implementations of false trigger mitigation may detect and prevent false triggers from user input that would otherwise invoke the assistant system 140 (e.g., an unintentional wake word), and may further prevent the assistant system 140 from generating data records based on false triggers that may be inaccurate and / or comply with privacy constraints. As an example and not limitation, if a user is in a voice call, the user's conversation during the voice call may be considered private, and false trigger mitigation may limit detection of the wake word to audio user input received locally by the user's client system 130. In certain embodiments, the on-device dialogue manager 216a may implement false trigger mitigation based on a nonsense detector. If the nonsense detector determines with high confidence that at the point in time when the wake word is received from the user, the received wake word is logically and / or contextually unreasonable, the on-device dialogue manager 216a may determine that the user did not intend to invoke the assistant system 140.
[0067] In certain embodiments, due to the limited computing power of the client system 130, the on-device dialog manager 216a may perform on-device learning based on a learning algorithm specifically customized for the client system 130. As an example and not a limitation, the on-device dialog manager 216a may implement a federated learning technique. Federated learning is a specific class of distributed machine learning techniques that can train machine learning models using decentralized data stored on terminal devices (e.g., mobile phones). In certain embodiments, the on-device dialog manager 216a may use a joint user representation learning model to extend existing neural network personalization techniques to implement federated learning of the on-device dialog manager 216a. Joint user representation learning may personalize the federated learning model through user representations (i.e., embeddings) specific to the learning task and / or through personalized model weights. Joint user representation learning is simple, scalable, privacy-preserving, and resource-efficient. Joint user representation learning may separate model parameters into joint parameters and private parameters. Private parameters such as private user embeddings may be trained locally on the client system 130 instead of being transmitted to a remote server (e.g., a server associated with the assistant system 140) or evenly distributed by the remote server. In contrast, the federated parameters can be trained remotely on the server. In certain embodiments, the on-device dialog manager 216a can use an active federated learning model that can transfer a global model trained on a remote server to the client system 130 and compute gradients locally on the client system 130. Active federated learning can enable the on-device dialog manager 216a to minimize the transmission costs associated with downloading the model and uploading the gradients. For active federated learning, in each round, the client system 130 can be selected in a semi-random manner based at least in part on a probability conditioned on the current model and the data on the client system 130 in order to optimize the training efficiency of the federated learning model.
[0068] In certain embodiments, as the user interacts with the world and assistant system 140 interacts with the user, conversation state tracker 218a can track changes in state over time. By way of example and not limitation, conversation state tracker 218a can track, for example, what the user is talking about, who the user is with, where the user is, what task the user is currently performing, and where the user is looking, subject to applicable privacy policies.
[0069] In certain embodiments, at decision point (D1) 215, the on-device coordinator 206 may determine to forward the user input to the server for the second mode of operation (i.e., cloud mode) or the third mode of operation (i.e., hybrid mode). As an example and not limitation, if a particular function or process (e.g., messaging) is not supported on the client system 130, the on-device coordinator 206 may determine to use the third mode of operation (i.e., hybrid mode) at decision point (D1) 215. In certain embodiments, the on-device coordinator 206 may cause the output from the NLU module 210a, the context engine 220a, and the entity resolution module 212a to be forwarded to the entity resolution module 212b of the remote dialog manager 216b via the dialog manager proxy 224 to continue processing. The dialog manager proxy 224 may be a communication channel for information / event exchange between the client system 130 and the server. In certain embodiments, the dialog manager 216b may additionally include a remote arbitrator 226b, a remote dialog state tracker 218b, and a remote action selector 222b. In certain embodiments, at decision point (D0) 205, assistant system 140 may have already begun processing user input in a second mode of operation (i.e., cloud mode), and at decision point (D1) 215, on-device coordinator 206 may determine to continue processing user input based on the second mode of operation (i.e., cloud mode). Thus, outputs from NLU module 210b and context engine 220b may be received at remote entity resolution module 212b. Remote entity resolution module 212b may have similar functionality to local entity resolution module 212a, which may include resolving entities associated with slots. In certain embodiments, entity resolution module 212b may access one or more of a social graph, a knowledge graph, or a concept graph when resolving entities. Outputs from entity resolution module 212b may be received at arbitrator 226b.
[0070] In certain embodiments, the remote arbitrator 226b may be responsible for selecting between client-side and server-side upstream results (e.g., results from the NLU module 210a / 210b, results from the entity resolution module 212a / 212b, and results from the context engine 220a / 220b). The arbitrator 226b may send the selected upstream result to the remote dialog state tracker 218b. In certain embodiments, similar to the local dialog state tracker 218a, the remote dialog state tracker 218b may convert the upstream result into a candidate task using a task specification and resolve the argument using entity resolution.
[0071] In a particular embodiment, at decision point (D2) 225, the on-device coordinator 206 may determine whether to continue processing the user input based on the first operating mode (i.e., the on-device mode) or to forward the user input to the server for the third operating mode (i.e., the hybrid mode). The decision may depend on, for example, whether the client process can successfully parse the task and slot, whether there is an effective task policy with specific feature support, and / or the context difference between the client process and the server-side process. In a particular embodiment, the decision made at decision point (D2) 225 may be for a multi-round scenario. In a particular embodiment, there may be at least two possible scenarios. In the first scenario, the assistant system 140 may have begun to process the user input in the first operating mode (i.e., the on-device mode) using the client-side dialog state. If the assistant system 140 decides at some point to switch to having the remote server process the user input, the assistant system 140 may create a procedural / predefined task with the current task state and forward it to the remote server. For subsequent rounds, the assistant system 140 may continue processing in the third operating mode (i.e., the hybrid mode) using the server-side dialog state. In another scenario, assistant system 140 may have already begun processing user input in the second operating mode (i.e., cloud mode) or the third operating mode (i.e., hybrid mode), and assistant system 140 may rely substantially on the server-side dialog state for all subsequent turns. If on-device coordinator 206 determines to continue processing user input based on the first operating mode (i.e., on-device mode), the output from dialog state tracker 218a may be received at action selector 222a.
[0072] In certain embodiments, at decision point (D2) 225, the on-device coordinator 206 may determine to forward the user input to the remote server and continue processing the user input in the second operating mode (i.e., cloud mode) or the third operating mode (i.e., hybrid mode). The assistant system 140 may create a procedural / predefined task with the current task state and forward it to the server, which may be received at the action selector 222b. In certain embodiments, the assistant system 140 may have already begun processing the user input in the second operating mode (i.e., cloud mode), and the on-device coordinator 206 may determine at decision point (D2) 225 to continue processing the user input in the second operating mode (i.e., cloud mode). Thus, the output from the dialog state tracker 218b may be received at the action selector 222b.
[0073] In a particular embodiment, the action selector 222a / 222b can perform interaction management. The action selector 222a / 222b can determine and trigger a set of general executable actions. These actions can be performed on the client system 130 or at a remote server. As an example and not a limitation, these actions can include providing information or suggestions to the user. In a particular embodiment, the action can interact with the agent 228a / 228b, the user, and / or the assistant system 140 itself. These actions can include the following actions: the action includes one or more of slot requests, confirmations, disambiguation or agent execution. The action can be independent of the bottom layer implementation of the action selector 222a / 222b. For more complex scenarios (e.g., multi-round tasks or tasks with complex business logic), the local action selector 222a can call one or more local agents 228a, and the remote action selector 222b can call one or more remote agents 228b to perform the action. The agent 228a / 228b can be called by the task ID, and any action can be routed to the correct agent 228a / 228b using the task ID. In a specific embodiment, the agent 228a / 228b can be configured to act as a proxy between multiple content providers of a domain. A content provider can be an entity responsible for performing an action associated with an intent or completing a task associated with the intent. In a specific embodiment, the agent 228a / 228b can provide several functions for the assistant system 140, including, for example, local template generation, task-specific business logic, and querying external APIs. When performing an action for a task, the agent 228a / 228b can use the context from the dialog state tracker 218a / 218b, and can also update the dialog state tracker 218a / 218b. In a specific embodiment, the agent 228a / 228b can also generate a partial payload from a dialog action.
[0074] In certain embodiments, the local proxy 228a may have different implementations to be edited / registered for different platforms (e.g., smart glasses and VR head-mounted viewer). In certain embodiments, implementations specific to multiple devices (e.g., real-time calls to the client system 130 or messaging applications on the client system 130) may be handled internally by a single proxy 228a. Alternatively, device-specific implementations may be handled by multiple proxies 228a associated with multiple domains. As an example and not limitation, calling the proxy 228a on smart glasses may be implemented differently from calling the proxy 228a on a smartphone. Different platforms may also use different numbers of proxies 228a. The proxy 228a may also be cross-platform (i.e., different operating systems on the client system 130). In addition, the proxy 228a may minimize the impact of startup time or binary size. The local proxy 228a may be suitable for specific use cases. As an example and not limitation, one use case may be an emergency call to the client system 130. As another example and not limitation, another use case may be responding to user input without a network connection. As yet another example and not limitation, another use case may be that certain domains / tasks may be privacy sensitive and sending user input to a remote server may be prohibited.
[0075] In a particular embodiment, the local action selector 222a can call the local delivery system 230a to perform an action, and the remote action selector 222b can call the remote delivery system 230b to perform an action. The delivery system 230a / 230b can deliver predefined events by performing corresponding actions when a trigger signal is received from the conversation state tracker 218a / 218b. The delivery system 230a / 230b can ensure that the event is delivered to a host with an active connection (living connection). As an example and not limitation, the delivery system 230a / 230b can broadcast to all online devices belonging to a user. As another example and not limitation, the delivery system 230a / 230b can deliver the event to a target specific device. The delivery system 230a / 230b can also use the latest device context to render the payload.
[0076] In a particular embodiment, the on-device dialog manager 216a may additionally include a separate local action execution module, and the remote dialog manager 216b may additionally include a separate remote action execution module. The local action execution module and the remote action execution module may have similar functions. In a particular embodiment, the action execution module may call the agent 228a / 228b to perform a task. The action execution module may additionally perform a group of general executable actions determined by the action selector 222a / 222b. The group of executable actions may interact with the agent 228a / 228b, the user, and the assistant system 140 itself via the delivery system 230a / 230b.
[0077] In a particular embodiment, if the user input is processed using a first operating mode (i.e., on-device mode), the results from the agent 228a and / or the delivery system 230a may be returned to the device dialogue manager 216a. The on-device dialogue manager 216a may then instruct the local arbitrator 226a to generate a final response based on these results. The arbitrator 226a may aggregate and evaluate these results. As an example and not limitation, the arbitrator 226a may sort and select the best result for responding to the user input. If the user request is processed in a second operating mode (i.e., cloud mode), the results from the agent 228b and / or the delivery system 230b may be returned to the remote dialogue manager 216b. The remote dialogue manager 216b may instruct the arbitrator 226a to generate a final response based on these results via the dialogue manager agent 224. Similarly, the arbitrator 226a may analyze the results and select the best result to provide to the user. If the user input is processed based on the third operating mode (i.e., hybrid mode), the client-side results and server-side results (e.g., from the proxy 228a / 228b and / or the delivery system 230a / 230b) can be provided to the arbitrator 226a by the on-device dialog manager 216a and the remote dialog manager 216b, respectively. The arbitrator 226 can then select between the client-side results and the server-side results to determine the final results to be presented to the user. In a particular embodiment, the logic for deciding between these results can depend on the particular use case.
[0078] In a particular embodiment, the local arbitrator 226a may generate a response based on the final result and send the response to the rendering output module 232. The rendering output module 232 may determine how to render the output in a manner suitable for the client system 130. As an example and not limitation, for a VR head-mounted viewer or AR smart glasses, the rendering output module 232 may determine to render the output using a visual-based modality (e.g., an image or a short video), which may be displayed via the VR head-mounted viewer or AR smart glasses. As another example, the response may be rendered as an audio signal that may be played by the user through the VR head-mounted viewer or AR smart glasses. As yet another example, the response may be rendered as augmented reality data for enhancing the user experience.
[0079] In certain embodiments, in addition to determining the operating mode for processing user input, the on-device coordinator 206 may also determine whether to process the user input on the rendering device 137, process the user input on the companion device 138, or process the user request on a remote server. The rendering device 137 and / or the companion device 138 may each use the assistant stack to process the user input in a manner similar to that disclosed above. As an example and not limitation, the on-device coordinator 206 may determine that some processing should be done on the rendering device 137, some processing should be done on the companion device 138, and the rest of the processing should be done on the remote server.
[0080] In certain embodiments, assistant system 140 may have various capabilities, including audio cognition, visual cognition, signal intelligence, reasoning, and memory. In certain embodiments, audio cognition capabilities may enable assistant system 140 to, for example, understand user input associated with various domains of different languages, understand and summarize conversations, perform on-device audio cognition for complex commands, recognize users by voice, extract topics from conversations and auto-tagged portions of conversations, enable audio interaction without a wake word, filter and amplify user voice from ambient noise and conversations, and / or understand which client system 130 a user is talking to if multiple client systems 130 are nearby.
[0081] In particular embodiments, visual recognition capabilities may enable assistant system 140 to: for example, identify interesting objects in the world through a combination of existing machine learning models and one-shot learning, identify interesting moments and automatically capture them, achieve semantic understanding across multiple visual frames across different time segments, provide platform support for additional capabilities in place or object recognition, recognize a full range of settings and micro-positioning (including personalized positioning), recognize complex activities, recognize complex gestures for controlling client system 130, process images / videos (e.g., with motion, capture angles, resolution) from egocentric cameras, achieve similar levels of accuracy and speed with respect to images with lower resolution, perform one-time registration and recognition of places and objects, and / or perform visual recognition on client system 130.
[0082] In a particular embodiment, the assistant system 140 can use computer vision technology to achieve visual cognition. In addition to computer vision technology, the assistant system 140 can also explore options that can supplement these technologies to expand object recognition. In a particular embodiment, the assistant system 140 can use supplementary signals, such as optical character recognition (OCR) of object labels, GPS signals for location recognition, and / or signals from the user's client system 130 to identify the user. In a particular embodiment, the assistant system 140 can perform general scene (e.g., home, work, public space) recognition to set the user's context and reduce the computer vision search space to identify possible objects or people. In a particular embodiment, the assistant system 140 can guide the user to train the assistant system 140. For example, crowdsourcing can be used to let users mark objects and help the assistant system 140 recognize more objects over time. As another example, when using the assistant system 140, the user can register their personal objects as part of the initial settings. The assistant system 140 can also allow users to provide positive / negative signals for the objects they interact with to train and improve the personalized model of the user.
[0083] In particular embodiments, signals intelligence capabilities may enable assistant system 140 to, at runtime: for example, determine user location, understand date / time, determine home location, understand the user's calendar and future expected locations, integrate richer voice understanding to recognize environment / context through voice alone, and / or build signals intelligence models that can be personalized for the user's individual routines.
[0084] In certain embodiments, reasoning capabilities may enable assistant system 140 to, for example, pick up prior conversational cues at any point in the future, synthesize all signals to understand micro- and personalized contexts, learn interaction patterns and preferences from a user's historical behavior and accurately suggest interactions that the user is likely to value, generate highly predictive proactive suggestions based on micro-context understanding, understand what content a user may want to watch at what time of day, and / or understand changes in context and how this may affect a user's desired content.
[0085] In certain embodiments, memory capabilities may enable assistant system 140 to, for example, remember social connections that a user has previously invoked or interacted with, write to memory and query memory at will (i.e., open dictation and automatic tagging), extract richer preferences based on previous interactions and long-term learning, remember the user's life history, extract rich information from egocentric data streams and automatic catalogs, and / or write to memory in a structured form to form rich short-term, episodic, and long-term memories.
[0086] Figure 3 An example flow chart 300 of an assistant system 140 is shown. In certain embodiments, the assistant service module 305 may access a request manager 310 upon receiving user input. In certain embodiments, the request manager 310 may include a context extractor 312 and a conversational understanding (CU) object generator 314. The context extractor 312 may extract context information associated with the user input. The context extractor 312 may also update the context information based on the assistant application 136 executed on the client system 130. As an example and not limitation, the update to the context information may include content items displayed on the client system 130. As another example and not limitation, the update to the context information may include whether an alarm is set on the client system 130. As another example and not limitation, the update to the context information may include whether a song is playing on the client system 130. The CU object generator 314 may generate a specific CU object related to the user input. The CU object may include dialog-session data and features associated with the user input, which may be shared with all modules of the assistant system 140. In particular embodiments, request manager 310 may store the context information and the generated CU objects in data store 320 , which is a particular data store implemented in assistant system 140 .
[0087] In a particular embodiment, the request manager 310 may send the generated CU object to the NLU module 210. The NLU module 210 may perform multiple steps to process the CU object. The NLU module 210 may first run the CU object through the allow list / block list 330. In a particular embodiment, the allow list / block list 330 may include interpretation data that matches the user input. Then, the NLU module 210 may perform a characterization 332 of the CU object. Then, the NLU module 210 may perform a domain classification / selection 334 on the user input based on the features generated by the characterization 332 to classify the user input into a predefined domain. In a particular embodiment, the domain may represent a social context of interaction (e.g., education), or a namespace of a set of intents (e.g., music). The domain classification / selection results may be further processed based on two related processes. In one process, the NLU module 210 may use a meta-intent classifier 336a to process the domain classification / selection results. The meta-intent classifier 336a may determine a category that describes the user's intent. An intent may be an element in a predefined semantic intent classification that may indicate the purpose of the user's interaction with the assistant system 140. The NLU module 210 may classify the user input into a member of a predefined classification. For example, the user input may be "Play Beethoven's 5th", and the NLU module 210 may classify the input as having the intent [IN:play_music]. In certain embodiments, intents common to multiple domains may be processed by the meta-intent classifier 336a. As an example and not limitation, the meta-intent classifier 336a may be based on a machine learning model that may take domain classification / selection results as input and calculate the probability that the input is associated with a particular predefined meta-intent. The NLU module 210 may then use a meta-slot tagger 338a to annotate one or more meta-slots of the classification results from the meta-intent classifier 336a. A slot may be a named substring that corresponds to a string representing a basic semantic entity within the user input. For example, the slot for "pizza" may be [SL:DISH]. In certain embodiments, a set of valid or expected named slots may be conditional on the classification intent. As an example and not limitation, for the intent [IN:play_music], a valid slot may be [SL:song_name]. In certain embodiments, the meta slot tagger 338a may tag a generic slot (e.g., a reference to an item (e.g., first)), the type of the slot, the value of the slot, etc. In certain embodiments, the NLU module 210 may use the intent classifier 336b to process the domain classification / selection results. The intent classifier 336b may determine a user intent associated with the user input.In a particular embodiment, there may be an intent classifier 336b for each domain to determine the most likely intent in a given domain. As an example and not limitation, the intent classifier 336b may be based on a machine learning model that may take the domain classification / selection result as input and calculate the probability that the input is associated with a specific predefined intent. Then, the NLU module 210 may use a slot tagger 338b to annotate one or more slots associated with the user input. In a particular embodiment, the slot tagger 338b may annotate one or more slots for the n-gram of the user input. As an example and not limitation, the user input may include "Convert $500 in my account to Japanese yen". The intent classifier 336b may take the user input as input and formulate it into a vector. Then, the intent classifier 336b may calculate the probability that the user input is associated with different predefined intents based on a vector comparison between the vector representing the user input and the vector representing different predefined intents. In a similar manner, the slot tagger 338b may take the user input as input and formulate each word into a vector. The slot tagger 338b can then calculate the probability that the word is associated with different predefined slots based on a vector comparison between the vector representing each word and the vector representing different predefined slots. The user's intent can be classified as "exchange currency". The slots entered by the user can include "500", "dollars", "accounts", and "yen". The user's meta-intent can be classified as "financial services". Metadata slots can include "finance".
[0088] In certain embodiments, the natural language understanding (NLU) module 210 may also extract information from one or more of a social graph, a knowledge graph, or a concept graph, and may retrieve a user profile stored locally on the client system 130. The NLU module 210 may also consider contextual information when analyzing user input. The NLU module 210 may further process information from these different sources by identifying and aggregating information, annotating n-grams of user input, sorting n-grams using confidence scores based on the aggregated information, and formulating sorted n-grams into features that can be used by the NLU module 210 to understand the user input. In certain embodiments, the NLU module 210 may identify one or more of a domain, an intent, or a slot from the user input in a personalized and context-aware manner. As an example and not limitation, the user input may include "tell me how to get to a coffee shop." The NLU module 210 may identify a specific coffee shop that the user wants to go to based on the user's personal information and associated contextual information. In a particular embodiment, the NLU module 210 may include a dictionary, a parser, and grammar rules for a particular language to divide sentences into internal representations. The NLU module 210 may also include one or more programs that perform naive semantic or stochastic semantic analysis, and may also use pragmatics to understand user input. In a particular embodiment, the parser may be based on a deep learning architecture including multiple long-short term memory (LSTM) networks. As an example and not limitation, the parser may be based on a recurrent neural network grammar (RNNG) model, which is a cyclic and recursive LSTM algorithm. More information about natural language understanding (NLU) can be found in the following applications: U.S. patent application number 16 / 011062 filed on June 18, 2018, U.S. patent application number 16 / 025317 filed on July 2, 2018, and U.S. patent application number 16 / 038120 filed on July 17, 2018, each of which is incorporated by reference.
[0089] In a particular embodiment, the output of the NLU module 210 may be sent to the entity resolution module 212 to resolve the relevant entities. Entities may include, for example, unique users or concepts, each of which may have a unique identifier (ID). These entities may include one or more of the following: real-world entities (from a general knowledge base), user entities (from user memory), context entities (device context / conversation context), or value resolution (numbers, date time, etc.). In a particular embodiment, the entity resolution module 212 may include domain entity resolution 340 and general entity resolution 342. The entity resolution module 212 may perform general entity resolution and domain-specific entity resolution. General entity resolution 342 may resolve entities by classifying slots and meta-slots into different general topics. Domain entity resolution 340 may resolve entities by classifying slots and meta-slots into different domains. As an example and not limitation, in response to the input of an inquiry about the advantages of a particular brand of electric vehicles, general entity resolution 342 may resolve the referenced brand of electric vehicles as vehicles, and domain entity resolution 340 may resolve the referenced brand of electric vehicles as electric vehicles.
[0090] In a particular embodiment, entities can be parsed based on knowledge 350 about the world and users. Assistant system 140 can extract ontology data from graph 352. As an example and not limitation, graph 352 can include one or more of a knowledge graph, a social graph, or a concept graph. Ontology data can include structural relationships between different slots / meta slots and domains. Ontology data can also include: information about how slots / meta slots can be grouped, information about how slots / meta slots can be associated within a hierarchical structure (where the higher level includes a domain), and information about how slots / meta slots can be subdivided according to similarities and differences. For example, a knowledge graph can include multiple entities. Each entity can include a single record associated with one or more attribute values. The particular record can be associated with a unique entity identifier. Each record can have different values for entity attributes. Each attribute value can be associated with a confidence probability and / or a semantic weight. The confidence probability of an attribute value indicates the probability that the value is accurate for a given attribute. The semantic weight of an attribute value can indicate how the value semantically fits a given attribute, taking into account all available information. For example, a knowledge graph may include an entity for a book named "BookName", which may include information extracted from multiple content sources (e.g., online social networks, online encyclopedias, book review sources, media databases, and entertainment content sources), which may be deduplicated, parsed, and fused to generate a single unique record of the knowledge graph. In this example, the entity named "BookName" may be associated with the "Fantasy" attribute value of the "Genre" entity attribute. More information about knowledge graphs can be found in the following applications: U.S. patent application No. 16 / 048049, filed on July 27, 2018, and U.S. patent application No. 16 / 048101, filed on July 27, 2018, each of which is incorporated by reference.
[0091] In certain embodiments, assistant user memory (AUM) 354 may include user episodic memories that help determine how to more effectively assist users. AUM 354 may be a central place for storing, retrieving, indexing, and searching user data. By way of example and not limitation, AUM 354 may store information such as contacts, photos, reminders, and the like. In addition, AUM 354 may automatically synchronize data to servers and other devices (for non-sensitive data only). By way of example and not limitation, if a user sets a nickname for a contact on one device, all devices may synchronize and obtain the nickname based on AUM 354. In certain embodiments, AUM 354 may first prepare events, user status, reminders, and trigger status for storage in a data repository. A memory node identifier (ID) may be created to store an entry object in AUM 354, where an entry may be a piece of information about a user (e.g., a photo, reminder, etc.). By way of example and not limitation, the first few bits of a memory node ID may indicate that this is a memory node ID type, the next multiple bits may be a user ID, and the next multiple bits may be a creation time. AUM 354 can then index this data for retrieval as needed. An index ID can be created for this purpose. In a particular embodiment, given an "index keyword" (e.g., PHOTO_LOCATION) and an "index value" (e.g., "San Francisco"), AUM 354 can obtain a list of memory IDs with that attribute (e.g., photos of San Francisco). As an example and not limitation, the first few bits can indicate that this is an index ID type, the next few bits can be a user ID, and the next few bits can encode the "index keyword" and "index value". AUM 354 can also use a flexible query language for information retrieval. A relationship index ID can be created for this purpose. In a particular embodiment, given a source memory node and edge type, AUM 354 can obtain the memory IDs of all target nodes with output edges of that type from the source. As an example and not limitation, the first few bits can indicate that this is a relationship index ID type, the next few bits can be a user ID, and the next few bits can be a source node ID and edge type. In a particular embodiment, AUM 354 can help detect concurrent updates of different events. More information about episodic memory can be found in U.S. patent application Ser. No. 16 / 552,559, filed on August 27, 2019, which is incorporated by reference.
[0092] In certain embodiments, the entity resolution module 212 may use different techniques to resolve different types of entities. For real-world entities, the entity resolution module 212 may use a knowledge graph to resolve the coverage of entities, such as "music track", "movie", etc. For user entities, the entity resolution module 212 may use user memory or some proxy to resolve the coverage of user-specific entities, such as "contact", "reminder", or "relationship". For contextual entities, the entity resolution module 212 may perform co-reference relationships based on information from the context engine 220 to resolve references to entities in the context, such as "he", "she", "first", or "last". In certain embodiments, for co-reference relationships, the entity resolution module 212 may create references for entities determined by the NLU module 210. The entity resolution module 212 may then accurately resolve these references. By way of example and not limitation, user input may include "find the nearest grocery store for me and direct me there". Based on the co-reference relationship, the entity resolution module 212 may interpret "there" as "the nearest grocery store". In certain embodiments, the coreference relationship may rely on information from the context engine 220 and the dialog manager 216 to interpret the reference with improved accuracy. In certain embodiments, for example, the entity resolution module 212 may also resolve entities under context (device context or dialog context), such as entities shown on the screen or entities from the last conversation history. For value resolution, the entity resolution module 212 may resolve references to precise values, such as numeric values, date times, addresses, etc., in a standardized form.
[0093] In a particular embodiment, the entity resolution module 212 may first perform a check on applicable privacy constraints to ensure that performing entity resolution does not violate any applicable privacy policies. As an example and not limitation, the entity to be resolved may be another user who specifies in his or her privacy settings that his or her identity should not be searchable on an online social network. In this case, the entity resolution module 212 may avoid returning an entity identifier for the user in response to the user input. By utilizing the described information obtained from the social graph, knowledge graph, concept graph, and user profile, and by complying with any applicable privacy policies, the entity resolution module 212 may resolve entities associated with the user input in a personalized, context-aware, and privacy-preserving manner.
[0094] In a particular embodiment, the entity resolution module 212 can work with the ASR module 208 to perform entity resolution. The following example illustrates how the entity resolution module 212 can resolve entity names. The entity resolution module 212 can first expand each name associated with the user into its respective standardized text form as a phonetic consonant representation that can be phonetically transcribed using a dimorphic algorithm. Then, the entity resolution module 212 can determine n sets of best candidate transcriptions and perform a parallel understanding process on all phonetic transcriptions in the n sets of best candidate transcriptions. In a particular embodiment, then, each transcription that resolves to the same intent can be collapsed into a single intent. Then, each intent can be assigned a score corresponding to the highest scoring candidate transcription of the intent. During the folding period, the entity resolution module 212 can identify various possible text transcriptions associated with each slot, which are associated by boundary timing offsets associated with the transcription of the slot. Then, the entity resolution module 212 can extract a subset of possible candidate transcriptions for each slot from multiple (e.g., 1000) candidate transcriptions, regardless of whether the multiple candidate transcriptions are classified into the same intent. In this way, the slots and intents can be a scoring list of phrases. In certain embodiments, a new or running task that can handle the intent (e.g., a message editing task for an intent to send a message to another user) may be identified and associated with the intent. Figure 1Then, the identified task can trigger the entity resolution module 212 by providing the entity resolution module 212 with a score list of phrases associated with one of its slots and the category for which it should be resolved. As an example and not limitation, if the entity attribute is specified as "friend", the entity resolution module 212 can run each candidate list of terms through the same expansion that can be run at the matcher compile time. Each candidate expansion of the term can be matched in a pre-compiled dictionary tree (trie) matching structure. A function based at least in part on the transcription input, the matching form and the friend's name can be used to score the match. As another example and not limitation, if the entity attribute is specified as "celebrity / famous person", the entity resolution module 212 can perform a parallel search for each candidate term set of the slot output from the ASR module 208 against the knowledge graph. The entity resolution module 212 can score the match based on the popularity of the matched person and the score signal provided by the ASR. In a specific embodiment, when a memory category is specified, the entity resolution module 212 can perform the same search for the user memory. The entity resolution module 212 can crawl backward through the user's memory and try to match each memory (e.g., a person recently mentioned in a conversation, or a person seen and recognized via a visual signal, etc.). For each entity, the entity resolution module 212 can use a match similar to how a friend is matched (i.e., voice). In a particular embodiment, the score can include a time decay factor that is associated with the recency of the previous mention of the name. The entity resolution module 212 can also combine, sort, and deduplicate all matches. In a particular embodiment, a task can receive a set of candidates. When there are multiple high-scoring candidates, the entity resolution module 212 can perform user-facilitated disambiguation (e.g., obtaining real-time user feedback from the user on these candidates).
[0095] In a particular embodiment, the context engine 220 can help the entity resolution module 212 improve entity resolution. The context engine 220 may include an offline aggregator and an online reasoning service. The offline aggregator may process multiple data associated with a user collected from a previous time window. As an example and not limitation, the data may include news push posts / comments collected during a predetermined time frame (e.g., from a previous 90-day window), interactions with news push posts / comments, search history, etc. The processing results may be stored in the context engine 220 as part of a user profile. The user profile of a user may include user profile data, which includes demographic information, social information, and contextual information associated with the user. The user profile data may also include the user's interests and preferences for multiple topics, which are aggregated through conversations on news push, search logs, messaging platforms, etc. The use of the user profile may be subject to privacy restrictions to ensure that the user's information can only be used for his / her benefit and cannot be shared with anyone else. More information about user profiles can be found in U.S. patent application Ser. No. 15 / 967,239, filed on April 30, 2018, which is incorporated by reference. In a particular embodiment, the online reasoning service can analyze the session data associated with the user received by the assistant system 140 at the current time. The analysis results can also be stored in the context engine 220 as part of the user profile. In a particular embodiment, both the offline aggregator and the online reasoning service can extract personalized features from multiple data. Other modules of the assistant system 140 can use the extracted personalized features to better understand the user input. In a particular embodiment, the entity resolution module 212 can process the information (e.g., user profile) from the context engine 220 in the following steps based on natural-language processing (NLP). In a particular embodiment, the entity resolution module 212 can mark the text by text normalization based on NLP, extract grammatical features from the text, and extract semantic features from the text. The entity resolution module 212 can also extract features from the following context information: the context information is taken from the conversation history between the user and the assistant system 140. The entity resolution module 212 can also perform global word embedding, domain-specific embedding and / or dynamic embedding based on the context information. The processing results can be annotated with entities by the entity tagger. Based on the annotations, the entity resolution module 212 can generate a dictionary. In a specific embodiment, the dictionary may include global dictionary features that can be dynamically updated offline. The entity resolution module 212 can sort the entities marked by the entity tagger. In a specific embodiment, the entity resolution module 212 can communicate with different graphs 352 including one or more of a social graph, a knowledge graph, or a concept graph to extract ontology data related to the information retrieved from the context engine 220.In certain embodiments, the entity resolution module 212 may further resolve entities based on the user profile, the ranked entities, and information from the graph 352 .
[0096] In a particular embodiment, the entity resolution module 212 can be driven by a task (corresponding to the agent 228). This inversion of the processing order can enable the domain information present in the task to be applied to pre-filter or bias the set of resolution targets when it is obvious and appropriate. As an example and not limitation, for the expression "Who is John?", there is no clear category in the expression. Therefore, the entity resolution module 212 can resolve "John" for all content. As another example and not limitation, for the expression "Send a message to John", the entity resolution module 212 can easily determine that "John" refers to such a person: a message can be sent to the person. Therefore, the entity resolution module 212 can bias the resolution towards friends. As another example and not limitation, for the expression "What is John's most famous album?", in order to resolve "John", the entity resolution module 212 can first determine the task corresponding to the expression, which is to find a music album. The entity resolution module 212 can determine that entities related to music albums include singers, producers, and recording studios. Therefore, the entity resolution module 212 can search in these types of entities in the music domain to resolve "John".
[0097] In a particular embodiment, the output of the entity resolution module 212 may be sent to the dialogue manager 216 to advance the conversation flow with the user. The dialogue manager 216 may be an asynchronous state machine that repeatedly updates the state and selects an action based on the new state. The dialogue manager 216 may also store previous conversations between the user and the assistant system 140. In a particular embodiment, the dialogue manager 216 may perform dialogue optimization. Dialogue optimization involves the following challenges: understanding and identifying the most likely branching options in the user's dialogue. As an example and not a limitation, because the assistant system 140 may determine that the person inferred based on the context and available data is a high confidence of the intended recipient, the assistant system 140 may implement dialogue optimization techniques to eliminate the need to confirm who the user wants to call. In a particular embodiment, the dialogue manager 216 may implement a reinforcement learning framework to improve dialogue optimization. The dialogue manager 216 may include a dialogue intent parser 356, a dialogue state tracker 218, and an action selector 222. In certain embodiments, the dialog manager 216 may perform the selected action and then call the dialog state tracker 218 again until the selected action requires a user response or there are no more actions to perform. Each action selected may depend on the execution results from the previous action. In certain embodiments, the dialog intent parser 356 may parse the user intent associated with the current dialog session based on the dialog history between the user and the assistant system 140. The dialog intent parser 356 may map the intent determined by the NLU module 210 to different dialog intents. The dialog intent parser 356 may further sort the dialog intents based on signals from the NLU module 210, the entity resolution module 212, and the dialog history between the user and the assistant system 140.
[0098] In a particular embodiment, the dialog state tracker 218 can use a set of operators to track the dialog state. The operator can include the data and logic required to update the dialog state. Each operator can be used as a delta of the dialog state after processing the incoming user input. In a particular embodiment, the dialog state tracker 218 can include a task tracker, which can be based on task specifications and different rules. The dialog state tracker 218 can also include a slot tracker and a co-referencing component, which can be rule-based and / or recent-based. The co-referencing component can help the entity resolution module 212 resolve entities. In an alternative embodiment, using the co-referencing component, the dialog state tracker 218 can replace the entity resolution module 212, and can resolve any references / mentions and keep tracking state. In a particular embodiment, the dialog state tracker 218 can use the task specification to convert the upstream results into candidate tasks, and use entity resolution to resolve the actual parameters. User status (e.g., the user's current activity) and task status (e.g., trigger conditions) can be tracked. Given the current state, the dialog state tracker 218 can generate candidate tasks that the assistant system 140 can process and perform for the user. By way of example and not limitation, the candidate tasks can include "show suggestions", "get weather information", or "take a photo". In certain embodiments, the dialog state tracker 218 can generate candidate tasks based on available data from, for example, a knowledge graph, user memory, and user task history. In certain embodiments, the dialog state tracker 218 can then use the parsed arguments to parse a trigger object. By way of example and not limitation, the user input "remind me to call mom when she's online and I'm home tonight" can perform a conversion from the NLU output to the trigger representation of the dialog state tracker 218, as shown in Table 1 below:
[0099]
[0100] Table 1: Example transformation from NLU output to trigger representation
[0101] In the example above, "mom", "home", and "tonight" are represented by their own entities: personEntity, locationEntity, datetimeEntity.
[0102] In certain embodiments, the dialog manager 216 may map events determined by the context engine 220 to actions. By way of example and not limitation, an action may be a natural language generation (NLG) action, a display or overlay, a device action, or a retrieval action. The dialog manager 216 may also perform context tracking and interaction management. Context tracking may include aggregating real-time event streams into a unified user state. Interaction management may include selecting the best action in each state. In certain embodiments, the dialog state tracker 218 may perform context tracking (i.e., tracking events related to the user). To support processing of event streams, the dialog state tracker 218 may use event processors (e.g., for disambiguation, confirmation, request) that may consume various types of events and update the internal assistant state. Each event type may have one or more processors. Each event processor may be modifying a certain segment of the assistant state. In certain embodiments, each event processor may operate on a disjoint subset of the state (i.e., only one processor may have write access to a specific field in the state). In certain embodiments, all event processors may have the opportunity to process a given event. By way of example and not limitation, the dialog state tracker 218 may run all event handlers in parallel for each event and may then merge the state updates proposed by each event handler (eg, most handlers may return NULL updates for each event).
[0103] In certain embodiments, the dialog state tracker 218 can be used as any programming processor (logic) that needs to be versioned. In certain embodiments, the dialog state tracker 218 can be a side-effect-free component and generates n best candidate dialog state update operators (which propose updates to the dialog state) instead of directly changing the dialog state. The dialog state tracker 218 can include an intent parser that contains logic to handle different types of NLU intents and generate operators based on the dialog state. In certain embodiments, the logic can be organized by intent processors (e.g., a disambiguation intent processor for processing intents when the assistant system 140 requests disambiguation, a confirmation intent processor including logic for processing confirmation, etc.). The intent parser can combine turn intents with the dialog state to generate contextual updates for the conversation with the user. The slot resolution component can then recursively resolve the slots in the update operator with a resolution provider and a domain agent including a knowledge graph. In certain embodiments, the dialog state tracker 218 can update / sort the dialog state of the current dialog session. As an example and not limitation, if the dialog session ends, the dialog state tracker 218 may update the dialog state to “complete.” As another example and not limitation, the dialog state tracker 218 may sort the dialog states based on priorities associated with the dialog states.
[0104] In certain embodiments, the dialog state tracker 218 may communicate with the action selector 222 about the dialog intent and the associated content object. In certain embodiments, the action selector 222 may rank different dialog hypotheses for different dialog intents. The action selector 222 may employ candidate dialog state operators and refer to the dialog strategy 360 to determine what action should be performed. In certain embodiments, the dialog strategy 360 may be a tree-based strategy, which is a pre-built dialog plan. Based on the current dialog state, the dialog strategy 360 may select nodes to be executed and generate corresponding actions. As an example and not limitation, the tree-based strategy may include a topic grouping node and a dialog action (leaf) node. In certain embodiments, the dialog strategy 360 may also include a data structure that describes the execution plan of the actions of the agent 228. The dialog strategy 360 may also include multiple targets that are related to each other by logical operators. In certain embodiments, the target may be the result of a part of the dialog strategy, and the target may be constructed by the dialog manager 216. A goal may be represented by an identifier (e.g., a string) with one or more named arguments that parameterize the goal. By way of example and not limitation, a goal with its associated goal arguments may be represented as {confirm_artist, args:{artist:"Madonna"}}. In particular embodiments, a goal may be mapped to a leaf of a tree of a tree structure representation of dialog strategies 360.
[0105] In certain embodiments, assistant system 140 may use hierarchical dialog strategies 360, where generic strategies 362 handle cross-domain business logic and task strategies 364 handle task / domain specific logic. Generic strategies 362 may be used for actions that are not specific to individual tasks. Generic strategies 362 may be used to determine task stacking and switching, active tasks, notifications, etc. Generic strategies 362 may include handling low confidence intents, internal errors, unacceptable user responses with retries, and / or skipping or inserting confirmations based on ASR or NLU confidence scores. Generic strategies 362 may also include logic that sorts dialog state update candidates output from dialog state tracker 218 and selects dialog state update candidates to be updated (e.g., selects the top ranked task intents). In certain embodiments, assistant system 140 may have a specific interface for generic strategies 362 that allows decentralized cross-domain policies / business rules (particularly those found in dialog state tracker 218) to be merged into the functionality of action selector 222. The interface for generic policies 362 may also allow the creation of self-contained sub-policy units that may depend on specific situations or clients (e.g., policy functionality that can be easily turned on or off based on the client, situation). The interface for generic policies 362 may also allow the provision of policy hierarchies (i.e., multiple policy units) with fallbacks, with highly specialized policy units that handle specific situations, supported by more generic policies 362 that apply to a wider range of situations. In this context, generic policies 362 may optionally include intent or task specific policies.
[0106] In certain embodiments, task policies 364 may include logic for action selector 222 based on the task and current state. Task policies 364 may be dynamic and self-organizing. In certain embodiments, types of task policies 364 may include one or more of the following: (1) manually created tree-based dialogue plans; (2) coded policies that directly implement an interface (the interface is used to generate actions); (3) slot-filling tasks specified by a configurator; or (4) policies based on machine learning models learned from data. In certain embodiments, assistant system 140 may guide new domains with rule-based logic and later refine task policies 364 with machine learning models. In certain embodiments, general policy 362 may select an operator from candidate operators to update the dialogue state, and then task policy 364 may select a user-oriented action. Once a task is active in a dialogue state, the corresponding task policy 364 may be referenced to select the correct action.
[0107] In certain embodiments, the action selector 222 may select an action based on one or more of: an event determined by the context engine 220, a dialog intent and state, an associated content object, and guidance from a dialog policy 360. Each dialog policy 360 may subscribe to a specific condition on a state field. After the event is processed and the state is updated, the action selector 222 may run a fast search algorithm (e.g., similar to Boolean satisfiability) to identify which policies should be triggered based on the current state. In certain embodiments, if multiple policies are triggered, the action selector 222 may use a tie-breaking mechanism to pick up a specific policy. Alternatively, the action selector 222 may use a more sophisticated approach that may dry run each policy and then pick up a specific policy that may be determined to have a high probability of success. In certain embodiments, mapping events to actions may bring several technical advantages to the assistant system 140. One technical advantage may include that each event may be a state update from the user or the user's physical / digital environment that may or may not trigger an action from the assistant system 140. Another technical advantage may include the possibility of handling rapid event bursts (e.g., a user enters a new building and sees many people) by first consuming all events to update the state and then triggering one or more actions from the final state. Another technical advantage may include consuming all events into a single global assistant state.
[0108] In certain embodiments, action selector 222 may take as part of the input a dialog state update operator for selecting a dialog action. The execution of a dialog action may generate a set of expectations to instruct dialog state tracker 218 to process future turns. In certain embodiments, the expectations may be used to provide context to dialog state tracker 218 when processing user input from the next turn. As an example and not limitation, a slot request dialog action may have an expectation to verify the value of the requested slot. In certain embodiments, both dialog state tracker 218 and action selector 222 may not change the dialog state before executing the selected action. This may allow assistant system 140 to execute dialog state tracker 218 and action selector 222 to process inferred ASR results and perform n-best rankings using dry runs.
[0109] In a particular embodiment, the action selector 222 may call different agents 228 to perform tasks. At the same time, the dialog manager 216 may receive instructions to update the dialog state. As an example and not a limitation, the update may include waiting for a response from the agent 228. The agent 228 may select from the registered content providers to complete the action. The data structure may be constructed by the dialog manager 216 based on the intent and one or more slots associated with the intent. In a particular embodiment, the plurality of agents 228 may include first-party agents and third-party agents. In a particular embodiment, the first-party agent may include an internal agent (e.g., an agent associated with a service provided by an online social network, such as a messaging service or a photo sharing service) that can be accessed and controlled by the assistant system 140. In a particular embodiment, the third-party agent may include an external agent (e.g., a third-party online music application agent, a ticket sales agent) that the assistant system 140 cannot control. The first-party agent may be associated with a first-party provider that provides content objects and / or services hosted by the social networking system 160. The third-party agent may be associated with a third-party provider that provides content objects and / or services hosted by a third-party system 170. In certain embodiments, each of the first-party agent or the third-party agent may be specified for a specific domain. By way of example and not limitation, the domain may include weather, traffic, music, shopping, social, video, photo, event, location, and / or work. In certain embodiments, the assistant system 140 may collaboratively use multiple agents 228 to respond to user input. By way of example and not limitation, the user input may include “direct me to my next meeting.” The assistant system 140 may use a calendar agent to retrieve the location of the next meeting. The assistant system 140 may then use a navigation agent to direct the user to the next meeting.
[0110] In a particular embodiment, the dialog manager 216 may support multiple rounds of composition parsing for slot mentions. For composition grammar analysis from the NLU module 210, the parser may recursively parse the nested slots. The dialog manager 216 may also support disambiguation of the nested slots. As an example and not limitation, the user input may be "remind me to call Alex". Before creating an executable reminder to-do entity, the parser may need to know which Alex to call. When further user clarification is required for a particular slot, the parser may pause parsing and set the parsing state. The general strategy 362 may check the parsing state and create corresponding dialogue actions for user clarification. In the dialogue state tracker 218, based on the user input and the last dialogue action, the dialog manager 216 may update the nested slots. This capability may allow the assistant system 140 to interact with the user to not only collect missing slot values, but also reduce the ambiguity of more complex / ambiguous expressions to complete the task. In certain embodiments, the dialog manager 216 may also support requesting missing slots in nested intents and multi-intent user inputs (e.g., “Take this picture and send it to Dad”). In certain embodiments, the dialog manager 216 may support machine learning models for a more robust dialog experience. As an example and not limitation, the dialog state tracker 218 may use a neural network-based model (or any other suitable machine learning model) to model beliefs over task assumptions. As another example and not limitation, for the action selector 222, the highest priority policy unit may include a whitelist / blacklist override, which may have to occur by design; the medium priority unit may include a machine learning model designed for action selection; and the lower priority unit may include a rule-based fallback when the machine learning model chooses not to handle the situation. In certain embodiments, a general policy unit based on a machine learning model may help the assistant system 140 reduce redundant disambiguation or confirmation steps, thereby reducing the number of turns to execute user input.
[0111] In certain embodiments, the action determined by the action selector 222 may be sent to the delivery system 230. The delivery system 230 may include a CU writer 370, a response generation component 380, a dialog state writing component 382, and a text-to-speech (TTS) component 390. Specifically, the output of the action selector 222 may be received at the CU writer 370. In certain embodiments, the output from the action selector 222 may be formulated as<k,c,u,d> tuple, where k indicates the knowledge source, c indicates the communication target, u indicates the user model, and d indicates the discourse model.
[0112] In a particular embodiment, the CU writer 370 may generate communication content for a user using a natural language generation (NLG) component 372. In a particular embodiment, the NLG component 372 may generate natural language output using different language models and / or language templates. The generation of natural language output may be application-specific. The generation of natural language output may also be personalized for each user. In a particular embodiment, the NLG component 372 may include a content determination component, a statement planner, and a surface implementation component. The content determination component may determine the communication content based on knowledge sources, communication goals, and user expectations. As an example and not a limitation, the determination may be based on description logic. The description logic may include, for example, three basic concepts, which are individuals (representing objects in a domain), concepts (describing sets of individuals), and roles (representing binary relationships between individuals or concepts). The description logic may be characterized by a set of constructors that allow a natural language generator to build complex concepts / roles from atomic concepts / roles. In a particular embodiment, the content determination component may perform the following tasks to determine the communication content. The first task may include a translation task, in which the input to the NLG component 372 may be translated into concepts. The second task may include a selection task, in which relevant concepts can be selected from the concepts generated by the translation task based on the user model. The third task may include a verification task, in which the consistency of the selected concepts can be verified. The fourth task may include an instantiation task, in which the verified concepts can be instantiated into executable files that can be processed by the NLG component 372. The sentence planner can determine the organization of the communication content so that it can be understood by humans. The surface implementation component can determine the specific words to be used, the order of sentences, and the style of the communication content.
[0113] In a particular embodiment, the CU writer 370 may also use the UI payload generator 374 to determine the modality of the generated communication content. Since the generated communication content can be considered as a response to user input, the CU writer 370 may additionally use a response sorter 376 to sort the generated communication content. As an example and not limitation, the sorting may indicate the priority of the response. In a particular embodiment, the CU writer 370 may include a natural language synthesis (natural-language synthesis, NLS) component, which may be separated from the NLG component 372. The NLS component may specify the properties of the synthesized speech generated by the CU writer 370, including gender, volume, rhythm, style, or range, in order to customize the response for a specific user, task, or agent. The NLS component may adjust the language synthesis without involving the implementation of the associated task. In a particular embodiment, the CU writer 370 may check the privacy constraints associated with the user to ensure that the generation of the communication content complies with the privacy policy. More information about customized natural language generation (NLG) can be found in the following applications: U.S. patent application No. 15 / 967,279 filed on April 30, 2018, and U.S. patent application No. 15 / 966,455 filed on April 30, 2018, which are incorporated by reference.
[0114] In certain embodiments, the delivery system 230 may perform different tasks based on the output of the CU writer 370. These tasks may include writing (i.e., storing / updating) the dialog state into the data repository 320 using the dialog state writing component 382, and generating responses using the response generation component 380. In certain embodiments, if the modality of the determined communication content is audio, the output of the CU writer 370 may also be sent to the TTS component 390. In certain embodiments, the output from the delivery system 230 includes one or more of the following: the generated response, the communication content, or the speech generated by the TTS component 390, which may then be sent back to the dialog manager 216.
[0115] In certain embodiments, the coordinator 206 may determine whether to process the user input on the client system 130, on the server, or in a third mode of operation (i.e., a hybrid mode) using both the client system and the server based on the output of the entity resolution module 212. In addition to determining how to process the user input, the coordinator 206 may also receive results from the agent 228 and / or from the delivery system 230 provided by the dialog manager 216. The coordinator 206 may then forward these results to the arbitrator 226. The arbitrator 226 may aggregate, analyze, select the best results, and provide the selected results to the rendering output module 232. In certain embodiments, the arbitrator 226 may refer to the dialog strategy 360 for guidance in analyzing these results. In certain embodiments, the rendering output module 232 may generate a response suitable for the client system 130.
[0116] Figure 4An example task-centric flowchart 400 for processing user input is shown. In a particular embodiment, the assistant system 140 can not only help users get a voice-initiated experience, but also help users get a more proactive multimodal experience initiated when understanding the user context. In a particular embodiment, the assistant system 140 can rely on assistant tasks for this purpose. Assistant tasks can be core concepts that are shared throughout the assistant stack to understand user intent, interact with the user and the world to complete the correct task for the user. In a particular embodiment, assistant tasks can be the basic unit of assistant capabilities. Assistant tasks can include data acquisition, updating a certain state, executing a certain command, or complex tasks composed of a collection of smaller tasks. Correctly and successfully completing tasks to pass value to users may be the goal of the assistant system 140 to optimize it. In a particular embodiment, assistant tasks can be defined as capabilities or features. If multiple product surfaces have exactly the same requirements, assistant tasks can be shared across multiple product surfaces, so the assistant tasks can be easily tracked. Assistant tasks can also be passed between devices and are easily picked up by another device midway in the task because the basic units are consistent. In addition, the consistent format of assistant tasks may allow developers to design around them more easily using different modules in the assistant stack. In addition, assistant tasks can also enable task sharing. As an example and not limitation, if a user is listening to music on smart glasses, the user can say "play this music on my phone". In the case where the phone is not awakened or there is a task to perform, the smart glasses can formulate a task provided to the phone, which can then be executed by the phone to start playing music. In a specific embodiment, if each surface has different expected behaviors, each surface can retain assistant tasks separately. In a specific embodiment, the assistant system 140 can identify the correct task based on different forms of user input or other signals on the server or local product surface, conduct a conversation to collect all necessary information, and use an internally or externally implemented action selector 222 to complete the task. In a specific embodiment, the assistant stack may include a set of processing components from waking up, identifying user input, understanding user intent, reasoning about tasks, completing tasks, to generate natural language responses with voice.
[0117] In certain embodiments, the user input may include a voice input. The voice input may be received at the ASR module 208 to extract a text transcription from the voice input. The ASR module 208 may use a statistical model to determine the most likely word sequence corresponding to a given speech portion received as an audio input by the assistant system 140. These models may include one or more of the following: a hidden Markov model, a neural network, a deep learning model, or any combination thereof. The received audio input may be encoded into digital data at a specific sampling rate (e.g., 16kHz, 44.1kHz, or 96kHz) and a specific number of bits representing each sample (e.g., 8, 16 of 24 bits).
[0118] In certain embodiments, the ASR module 208 may include one or more of the following: a grapheme-to-phoneme (G2P) model, a pronunciation learning model, a personalized acoustic model, a personalized language model (PLM), or an end-pointing model. In certain embodiments, the grapheme-to-phoneme (G2P) model may be used to determine a user's grapheme-to-phoneme style (i.e., what a particular word may sound like when a particular user says it). In certain embodiments, a personalized acoustic model may be a model of the relationship between an audio signal and the sound of a speech unit in a language. Thus, such a personalized acoustic model may recognize how a user's voice sounds. A personalized acoustic model may be generated using training data, such as a training speech received as an audio input and a corresponding speech unit corresponding to the speech. A personalized acoustic model may be trained or refined using the voice of a particular user to recognize the user's voice. In certain embodiments, the personalized language model may then determine the most likely phrase that corresponds to the recognized speech unit for a particular audio input. A personalized language model may be a model of the probability that various word sequences may appear in the language. A personalized language model can be used to match the sound of a speech unit in an audio input with a word sequence, and a greater weight can be assigned to a word sequence that is more likely to be a phrase in the language. Then, the word sequence with the highest weight can be selected as the text corresponding to the audio input. In a specific embodiment, the personalized language model can also be used to predict what words a user is most likely to say given a context. In a specific embodiment, an end-pointing model can detect when the end of a discourse is reached. In a specific embodiment, based at least in part on the limited computing power of the client system 130, the assistant system 140 can optimize the personalized language model at runtime during the client process. As an example and not a limitation, the assistant system 140 can pre-calculate multiple personalized language models for multiple possible topics that the user may talk about. When the user input is associated with a request for assistance, the assistant system 140 can quickly switch between the pre-calculated language models based on user activity at runtime and optimize the language model locally. In this way, the assistant system 140 can retain computing resources while efficiently identifying topics associated with the user input. In a specific embodiment, the assistant system 140 can also dynamically re-learn user pronunciations at runtime.
[0119] In certain embodiments, user input may include non-speech input. Non-speech input may be received at context engine 220 to determine events and context from the non-speech input. Context engine 220 may determine multimodal events including speech / text intent, location update, visual event, touch, gaze, gesture, activity, device / application event, and / or any other suitable type of event. Speech / text intent may depend on ASR module 208 and NLU module 210. Location updates may be consumed by dialog manager 216 to support various active / reactive scenarios. Visual events may be based on people or objects that appear in the user's field of view. These events may be consumed by dialog manager 216 and recorded in transient user states to support visual co-reference relationships (e.g., parsing out "that" in "how much is that shirt?" and parsing out "him" in "send my contact information to him"). Gaze, gesture, and activity may cause a flag to be set in a transient user state (e.g., the user is running), which may adjust action selector 222. For device / application events, if the application updates the device state, it can be published to the assistant system 140 so that the dialogue manager 216 can use the context (the context currently displayed to the user) to handle reactive and proactive scenarios. As an example and not limitation, the context engine 220 can enable push notification messages to be displayed on the display screen of the user's client system 130. The user can interact with the push notification message, which can initiate a multimodal event (e.g., an event workflow for replying to a message received from another user). Other example multimodal items can include seeing friends, seeing landmarks, being at home, running, starting a call with touch, taking a photo with touch, opening an application, etc. In a specific embodiment, the context engine 220 can also determine world events / social events based on world updates / social updates (e.g., weather changes, friends going online). Social updates can include events that the user subscribes to (e.g., friends' birthdays, posts, comments, other notifications). The dialogue manager 216 can consume these updates to trigger proactive actions based on context (e.g., suggesting that the user call a friend on his birthday, but only if the user is not paying attention to other things). By way of example and not limitation, receiving a message may be a social event that may trigger a task to read the message to the user.
[0120] In a particular embodiment, the text transcription from the ASR module 208 may be sent to the NLU module 210. The NLU module 210 may process the text transcription and extract the user intent (i.e., intent), and parse the slot or parse result based on the language ontology. In a particular embodiment, the intent and slot from the NLU module 210 and / or the event and context from the context engine 220 may be sent to the entity resolution module 212. In a particular embodiment, the entity resolution module 212 may parse entities associated with the user input based on the output from the NLU module 210 and / or the context engine 220. The entity resolution module 212 may use different techniques to resolve entities, including accessing user memory from the assistant user memory (AUM) 354. In a particular embodiment, the AUM 354 may include a user context memory that facilitates the resolution of entities by the entity resolution module 212. The AUM 354 may be a central place for storing, retrieving, indexing, and searching user data.
[0121] In a particular embodiment, the entity resolution module 212 may provide one or more of an intent, a slot, an entity, an event, a context, or a user memory to the dialog state tracker 218. The dialog state tracker 218 may accordingly identify a set of state candidates for the task, interact with the user to collect the information required to fill the state, and call the action selector 222 to complete the task. In a particular embodiment, the dialog state tracker 218 may include a task tracker 410. The task tracker 410 may track the task state associated with the assistant task. In a particular embodiment, the task state may be a data structure that continuously crosses the interaction rotation and is updated in real time to collect the state of the task during the entire interaction. The task state may include all current information about the state of the task execution, such as actual parameters, confirmation status, confidence scores, etc. Any errors or outdated information in the task state may cause the task to fail or be incorrectly executed. The task state may also be used as a set of context information for many other components such as the ASR module 208, the NLU module 210, etc.
[0122] In a particular embodiment, the task tracker 410 may include an intent processor 411, a task candidate ranking module 414, a task candidate generation module 416, and a merging layer 419. In a particular embodiment, a task may be identified by its ID name. If the task ID is not explicitly set in the task specification, such as the dialogue strategy 360, agent execution, NLG dialogue action, etc., the task ID may be used to associate the corresponding component resources. Therefore, the output from the entity resolution module 212 may be received by the task ID resolution component 417 of the task candidate generation module 416 to resolve the task ID of the corresponding task. In a particular embodiment, the task ID resolution component 417 may call the task specification manager API 430 to access the trigger specification and deployment specification for resolving the task ID. Given these specifications, the task ID resolution component 417 may resolve the task ID using intent, slot, dialogue state, context, and user memory.
[0123] In a particular embodiment, the technical specifications of a task can be defined by a task specification. The task specification can be used by the assistant system 140 to trigger a task, conduct a dialog session, and find the correct execution module (e.g., agent 228) to perform the task. The task specification can be an implementation of a product requirement document. The task specification can be used as a general contract and requirement for all component agreements. The task specification can be considered as an assembly specification for a product, and all development partners deliver modules according to the specification. In a particular embodiment, assistant tasks can be defined in an implementation by specifications. As an example and not a limitation, the task specification can be defined as the following categories. One category can be a basic task mode, which includes basic identification information such as an ID, a name, and a mode of input parameters. Another category can be a trigger specification, which is about how a task can be triggered, such as an intent, an event message ID, etc. Another category can be a session specification, which is used for the dialog manager 216 to conduct a session with a user and a system. Another category can be an execution specification, which is about how to execute and complete a task. Another category can be a deployment specification, which is about how to deploy features to certain surfaces, locals, and user groups.
[0124] In a particular embodiment, the task specification manager API 430 may be an API for accessing a task specification manager. The task specification manager may be a module in the runtime stack that loads specifications from all tasks and provides an interface to access all task specifications to obtain detailed information or generate task candidates. In a particular embodiment, the task specification manager may be able to access all components in the runtime stack via the task specification manager API 430. The task specification manager may include a set of static utility functions to manage tasks using the task specification manager, such as filtering task candidates by platform. Before the task specifications are landed, the assistant system 140 may also dynamically load multiple task specifications to support end-to-end development in the development phase.
[0125] In certain embodiments, task specifications may be grouped by domain and stored in runtime configuration 435. The runtime stack may load all task specifications from runtime configuration 435 during build time. In certain embodiments, in runtime configuration 435, for a domain, there may be a cconf file and a cinc file (e.g., sidechef_task.cconf and sidechef_task.inc). By way of example and not limitation, <domain>_tasks.cconf may include all the details of a task specification. As another example and not limitation, <domain>_tasks.cinc could provide a way to override the generated spec (if that functionality is not yet supported).
[0126] In a particular embodiment, task execution may require a group of actual parameters to execute.Therefore, actual parameter parsing component 418 can use the actual parameter specification of the task ID parsed to parse the actual parameter name.Can be based on NLU output (for example, slot [slot: contact] ([SL:contact]))), dialogue state (for example, short-term call history), user memory (for example, user preference, position, long-term call history, etc.) or device context (for example, timer state, screen content, etc.), parse these actual parameters.In a particular embodiment, the actual parameter form can be text, audio, image or other structured data.The mapping of slot to actual parameters can be defined by filling strategy and / or language ontology.In a particular embodiment, in the case of given task trigger specification, task candidate generation module 416 can search for task list to be triggered as task candidate based on parsed task ID and actual parameters.
[0127] In a particular embodiment, the generated task candidates may be sent to the task candidate ranking module 414 to be further ranked. The task candidate ranking module 414 may use a rule-based sorter 415 to sort the generated task candidates. In a particular embodiment, the rule-based sorter 415 may include a set of heuristics to favor certain domain tasks. The sorting logic may be described below with the principle of context priority. In a particular embodiment, the priority of the user-specified task may be higher than the foreground task. When the intent is a meta-intent, the priority of the foreground task may be higher than the device domain task. The priority of the device domain task may be higher than the task that triggers the intent domain. As an example and not limitation, if the task domain is mentioned or specified in the expression, such as "create a timer in the timer application", the sorting may select the task. As another example and not limitation, if the task domain is in the foreground or active state (for example, when the timer application is in the foreground and there is an active timer, "stop the timer" to stop the timer), the sorting may select the task. As another example and not limitation, if the intent is a general meta-intent and the task is device control without other active applications or active states, the sorting may select the task. As another example and not limitation, if the task is the same as the intent domain, the sorting can pick up the task. In a particular embodiment, the task candidate sorting module 414 can customize some more logic to check the match of intent / slot / entity type. The sorted task candidates can be sent to the merging layer 419.
[0128] In a specific embodiment, the output from the entity resolution module 212 may also be sent to the task ID resolution component 412 of the intent processor 411. Similar to the task ID resolution component 417, the task ID resolution component 412 may resolve the task ID of the corresponding task. In a specific embodiment, the intent processor 411 may also include an actual parameter resolution component 413. Similar to the actual parameter resolution component 418, the actual parameter resolution component 413 may use the actual parameter specification of the resolved task ID to resolve the actual parameter name. In a specific embodiment, the intent processor 411 may process features that are not related to the task and may not be expressed in a task-specific task specification. The intent processor 411 may output state candidates other than task candidates, such as actual parameter updates, confirmation updates, ambiguity elimination updates, etc. In a specific embodiment, some tasks may require very complex trigger conditions or very complex actual parameter filling logic, which may not be used again by other tasks even if they are supported in the task specification (e.g., voice commands in calls, media tasks via [IN:PLAY_MEDIA], etc.). The intent processor 411 may also be applicable to this type of task. In certain embodiments, the results from the intent processor 411 may take precedence over the results from the task candidate ranking module 414. The results from the intent processor 411 may also be sent to the merging layer 419.
[0129] In certain embodiments, the merging layer 419 may combine the results from the intent processor 411 and the results from the task candidate ranking module 414. The dialog state tracker 218 may suggest each task as a new state for the dialog policy 360 to select from, thereby generating a list of state candidates. The merged results may also be sent to a conversational understanding reinforcement engine (CURE) tracker 420. In certain embodiments, the CURE tracker 420 may be a personalized learning process to use real-time user feedback to improve the dialog state tracker 218's determination of state candidates in different contexts. More information about the conversational understanding reinforcement engine can be found in U.S. patent application Ser. No. 17 / 186,459, filed on Feb. 26, 2021, which is incorporated by reference.
[0130] In certain embodiments, the state candidates generated by CURE tracker 420 may be sent to action selector 222. Action selector 222 may reference task policy 364, which may be generated from an execution specification accessed via task specification manager API 430. In certain embodiments, the execution specification may describe how the task should be performed and what actions action selector 222 may need to take to complete the task.
[0131] In certain embodiments, the action selector 222 may determine an action associated with the system. Such an action may involve an agent 228 to perform. Thus, the action selector 222 may send the system action to the agent 228, and the agent 228 may return the results of the execution of these actions. In certain embodiments, the action selector may determine an action associated with a user or device. Such an action may need to be performed by a delivery system 230. Thus, the action selector 222 may send the user / device action to the delivery system 230, and the delivery system 230 may return the results of the execution of these actions.
[0132] The embodiments disclosed herein may include an artificial reality system, or be implemented in conjunction with an artificial reality system. Artificial reality is a form of reality that has been adjusted in some way before being presented to a user, which may include, for example, virtual reality (VR), augmented reality (AR), mixed reality (MR), hybrid reality, or some combination and / or derivative thereof. Artificial reality content may include fully generated content, or generated content combined with collected content (e.g., real-world photos). Artificial reality content may include video, audio, tactile feedback, or some combination thereof, and any of the above may be presented in a single channel or multiple channels (e.g., stereoscopic video that brings a three-dimensional effect to the viewer). In addition, in some embodiments, artificial reality may be associated with an application, product, accessory, service, or some combination thereof, which is used, for example, to create content in artificial reality, and / or to be used in artificial reality (e.g., to perform activities in artificial reality). Artificial reality systems that provide artificial reality content can be implemented on a variety of platforms, including a head-mounted display (HMD) connected to a host computer system, a standalone HMD, a mobile device or computing system, or any other hardware platform capable of providing artificial reality content to one or more viewers.
[0133] Generate contextual responses for out-of-coverage requests
[0134] In certain embodiments, the assistant system 140 can handle out-of-coverage (OOC) requests, such as requests that the assistant system 140 intentionally does not support, or requests that are supported by the NLU module 210 but are not processed downstream in the assistant stack. The assistant system 140 can provide a "contextual" response to the out-of-coverage request. In certain embodiments, the "contextual response" can be a failure response that references the user's request, letting the user know that the assistant system 140 understands what the user is saying (implicit confirmation), and letting the user know that the assistant system 140 cannot perform the task corresponding to the user's request. The assistant system 140 can use machine learning to map the user's out-of-coverage (OOC) request to a new, simplified representation language. The assistant system 140 can then implement a "schema editing" system for the new representation language. The assistant system 140 can also deform the edited schema into a contextual response. Although the present disclosure describes the generation of a particular response by a particular system in a particular manner, the present disclosure contemplates the generation of any suitable response by any suitable system in any suitable manner.
[0135] In a particular embodiment, the assistant system 140 may receive voice input from the first user from the client system 130 via an assistant xbot associated with the assistant system 140. The assistant system 140 may then determine that the voice input includes an out-of-coverage request. In a particular embodiment, the out-of-coverage request may include one or more intents or one or more slots that are not supported by the assistant system 140. The assistant system 140 may then generate a contextual response for the out-of-coverage request. In a particular embodiment, the contextual response may include an implicit confirmation of the out-of-coverage request and a failure response to the out-of-coverage request. The implicit confirmation may reference the voice input from the first user. The failure response may indicate that the assistant system 140 cannot perform the task corresponding to the out-of-coverage request. In a particular embodiment, the assistant system 140 may also send an instruction to the client system 130 for presenting the contextual response in response to the voice input.
[0136] According to one study, currently 15% to 25% of user requests may be out of scope (OOC), which are intentionally unsupported by the assistant system 140. In contrast, an out-of-domain (OOD) request may include any utterance that the NLU module 210 of the assistant system 140 does not know how to parse. In a particular embodiment, the assistant system 140 may determine that the NLU module 210 associated with the assistant system 140 cannot parse the out-of-coverage request. As an example and not a limitation, "order groceries" may be marked as [out_of_domain] by the NLU module 210. Out-of-coverage (OOC) requests may be a superset of out-of-domain (OOD) requests. In a particular embodiment, the assistant system 140 may determine that the out-of-coverage request is an out-of-domain request. In addition to out-of-domain (OOD) requests, out-of-coverage (OOC) requests may include requests that are supported by the NLU module 210 but are not processed downstream. In certain embodiments, the assistant system 140 may determine that the NLU module 210 associated with the assistant system 140 can resolve the out-of-coverage request. The assistant system 140 may also determine that one or more other modules associated with the assistant system 140 cannot perform the resolvable out-of-coverage (OOC) request. On the other hand, when an existing assistant receives an out-of-domain (OOD) request, the existing assistant may default to using a web page result. However, the assistant system 149 disclosed herein may not resort to web page results (e.g., assistant-enabled smart glasses may be limited to audio-only responses, so web page results would not be feasible).
[0137] According to another study, 25% of OOC requests may correspond to requests in which a domain or intent is predicted but no supporting task exists (i.e., no agent 228 exists to perform the task corresponding to the intent). This may be the largest category within OOC requests after an accidental activation of the assistant system 140. However, the assistant system 140 may return no response or a canonical fallback response to these requests. This may represent a largely missed opportunity for the assistant system 140 to improve its handling of OOC requests.
[0138] To address the above problems, embodiments disclosed herein can specifically handle out-of-coverage (OOC) requests. In a specific embodiment, the assistant system 140 can convert out-of-domain (OOD) requests into in-domain requests based on analyzing patterns in real-time traffic. The assistant system 140 can then provide two features, namely, explanatory out-of-coverage (OOC) processing and context-triggered user education. For explanatory out-of-coverage (OOC) processing, the assistant system 140 can process the out-of-coverage (OOC) request and formulate a context-related voice response, which can be a useful explanation of the out-of-coverage (OOC) request compared to a general, uninformative response. It can further assure the user that the assistant system 140 understands what they need, but simply does not have the ability to meet the request. Context-related voice responses can help users better understand assistant capabilities and distinguish them from other types of failures such as transcription errors. Thus, the assistant system 140 may have the technical advantage of generating contextual, explanatory responses to unsupported queries to show that the assistant system 140 understands the request and improve user sentiment, as this may avoid problems where the user feels not understood and therefore repeats the same query only to continually fail, and build trust and confidence in the assistant system 140, thereby reducing frustration caused by multiple failed attempts.
[0139] In particular embodiments, contextual voice responses may include implicit confirmations of requests (i.e., references to the request indicating that assistant system 140 understood what the user said) and failure responses (i.e., indicating that assistant system 140 could not perform the task). Contextual responses may also include an indication that assistant system 140 understood an out-of-coverage (OOC) request. In particular embodiments, the voice input may include multiple n-grams. Accordingly, an implicit confirmation may include one or more n-grams of the multiple n-grams associated with the voice input. By way of example and not limitation, a response may essentially say: "I understand that you're asking for <x>; unfortunately, I can't help (I understand your request <x>; Unfortunately, I can't help you with this. Note that the NLG module 210 can concatenate implicit confirmation and failure responses into a shorter response. As an example and not limitation, the response can simply say "unfortunately, I can't help you with this. <x>(I'm sorry, I can't help you. <x>)". For example, if the user asks: "Order flowers for my mom", the assistant system 140 can return a more informative response, such as, "Sorry, I cannot buy flowers for her just yet, but I am learning new skills every day."
[0140] In the case where the out-of-coverage (OOC) request is semantically related to the supported intent / task, the assistant system 140 can incorporate a user education signal into the response to enable context-triggered user education. The assistant system 140 can process the out-of-coverage (OOC) request and generate a suggestion request that is contextually relevant and supported by the assistant system 140. In certain embodiments, the contextual response can also include such a suggestion: the suggestion references one or more in-domain requests that can be executed by the assistant system 140. By way of example and not limitation, the suggestion request can be "..., but I can do <y>for you(...but I can do it for you <y>)". For example, for the query "Which school did Obama graduate from?", the assistant system 140 may respond: "I am still learningabout Obama; for now I can tell you what he studied in college". Even though the assistant system 140 may not directly answer the question, it can provide alternative queries that are currently supported. This can potentially drive more successful tasks by encouraging users to issue relevant and supported queries. As a result, the assistant system 140 may face the technical challenge of driving increased successful tasks by suggesting relevant support experiences because the assistant system 140 can semantically bind unsupported requests to already supported tasks and suggest queries that will work, thereby improving the discoverability of supported features by users.
[0141] With the above features, the assistant system 140 can handle out-of-coverage (OOC) requests in three modes, namely, only the first feature, only the second feature, and both the first feature and the second feature.
[0142] In certain embodiments, for the first feature, assistant system 140 may convey a contextual understanding of the request. By way of example and not limitation, for a request like "how did Alice buy the concert tickets before they ranout?", assistant system 140 may generate a response like "unfortunately, I don't know how Alice bought those tickets." To do this, assistant system 140 may recognize the clause structure in the request and reuse elements of the request in the response. Otherwise, assistant system 140 may not need to understand that the request is about an entity conducting a commercial transaction.
[0143] In the above framework of the first feature, the assistant system 140 can identify a key design principle for patterns that have semantics at the clause structure level, namely "intelligent pattern editing". That is, the assistant system 140 can find patterns in the request and deform the request into responses around these patterns. This can assume that the NLU module 210 has determined that the request is an out-of-coverage (OOC) situation. The dialogue manager 216 can then pass the out-of-coverage (OOC) information along with the original user input to the NLG module 372, and the NLG module 372 can perform the steps related to the first feature shown below. Alternatively, this can be done by the dialogue manager 216 (e.g., through an out-of-coverage agent), and the dialogue manager 216 can pass a standard dialogue representation to the NLG module 372 to be presented as a natural language response.
[0144] In a particular embodiment, the assistant system 140 may use the following solutions for "intelligent pattern editing" for English language structures. One solution may be rule-based pattern editing, such as regular expressions. With rule-based pattern editing, the assistant system 140 may not need to train a machine learning model, can quickly edit task behaviors by changing configurations, and can leverage already existing efficient parser implementations. Another solution may be machine learning-based pattern editing, which maps requests directly to responses. This solution may be scalable in principle. In addition, machine learning may be powerful and good at learning representations and interpolating data. In theory, this can be generalized to many patterns that are not seen in its training data. In addition, once a trusted machine learning model is trained, this may be easy to implement and easy to deploy for prediction.
[0145] In certain embodiments, the assistant system 140 may combine the aforementioned solutions and utilize machine learning driven system design. The assistant system may use machine learning to achieve its representation learning capabilities and scalability. This may be task independent and may not require task specific data. The assistant system may also independently design a deterministic find and replace system with high coverage and accuracy. This may be task specific and rule based.
[0146] Figure 5 An example design flow 500 is shown. Figure 5 As shown, the out-of-coverage (OOC) request 510 may be "book a private jet to Shanghai". In certain embodiments, the assistant system 140 may map the out-of-coverage (OOC) request to a first graph representation based on one or more machine learning models, the first graph representation comprising a plurality of nodes and a plurality of edges connecting the nodes. Figure 5 As shown, the assistant system 140 can use machine learning (ML) to map the input language 510 (e.g., English) to the structured representation language 520 corresponding to the request. The consideration may include that the structured representation language 520 should be customized to make it simple and extensible to manipulate the underlying text. Then, the assistant system 140 can implement a pattern editor system for the structured representation language 520. In a specific embodiment, the pattern editor can be compiled based on the pattern editing configuration 530. The assistant system 140 can implement a regular expression-based toolkit that is specifically designed to easily support the input language 510 through the structured representation language 520. Based on the pattern editing result, the assistant system 140 can generate another structured representation 540 corresponding to the response. The assistant system 140 can also use machine learning (ML) to map the other structured representation 540 to an output language 550, which can be "unfortunately, I can't book a jet.". In certain embodiments, the design flow 500 may be modular, for which vetting mechanisms may be inserted before and after each module to ensure system integrity.
[0147] In a particular embodiment, the code flow of the first feature can be described as follows. First, the assistant system 140 can convert the input language into a graph-based representation language. Since it is generally difficult to process context-free languages, the assistant system 140 can reduce the complexity of the input language without compromising its ability to manipulate or reconstruct it. To do this, the assistant system 140 can utilize a new "graph-based" language that removes the grammatical details of the input language. The assistant system 140 can then have a machine learning model that maps the language to the graph.
[0148] In certain embodiments, representing input language (unstructured data) in a structured representation space (ie, a graph representation) may allow the language to be treated like other data, thereby allowing all data to be edited in a unified space.
[0149] Figure 6 An example language mapping is shown. An example input language may be "how did Alice buy concerttickets before they ran out?" 605. The graph representation may include multiple nodes, for example, "how" 610, "q-ed" 615, "form" 620, "np0(alice)" 625, "buy" 630, "ncs1(concert ticket)" 635, "before" 640, "nds6(they)" 645, "run-out" 650, "form" 655, and "-ed" 660. There may be unidirectional edges connecting these nodes based on a sequence. In certain embodiments, "q-ed" 615, "form" 620, and "buy" 630 may be connected to indicate that the form of "buy" 630 is in the past tense. Similarly, "run-out" 650, "form" 655, and "-ed" 660 may be connected to indicate that the form of "run-out" 650 is in the past tense.
[0150] In a particular embodiment, the assistant system 140 may train a machine learning model for text-to-graph mapping as follows. The assistant system 140 may combine a graph neural network (GNN) with encoding for graph-to-text mapping and decoding for text-to-graph mapping. The assistant system 140 may also serialize the graph based on a sequence-to-sequence model. As an example and not limitation, a source sequence may be "Alice, who is a nice person, make music, and Bob listens". A corresponding target sequence based on the serialized graph may be "[np0(name[Alice]){such-that[np0]<be[nc1(name[person]){nice}]>}]<make[nc2(name[music])]> =and=[np3(name[bob])] <listen>As another example and not limitation, another source sequence might be "Cindy could have done things that may have helped." The corresponding target sequence based on the serialization graph might be "[np0(name[cindy])] <do[ncs1(name[thing]){such-that[ncs1]<help{form[may-have-ed]}>}]{form[could-have-ed]}>”.
[0151] In certain embodiments, the mapping can be bidirectional, which can be accomplished, for example, by a machine learning model pre-trained for mapping English to graphs and graphs to English. Using a graph representation for speech input can be an effective solution to the technical challenge of effectively determining patterns in a user's speech input to generate a contextual response, because the graph representation can connect the structured data of the speech input and the natural language response from assistant system 140.
[0152] In certain embodiments, assistant system 140 may generate a dataset for training a sequence-to-sequence model to map from a source sequence to a target sequence based on graph mining. Figure 7 An example process 700 for graph mining is shown. Input data 710 may include an English corpus 712, sentences 714, and grammatical parses 716. The English corpus 712 may be preprocessed to generate sentences 714. Sentences 714 may be processed by spaCy to generate grammatical parses 716. A graph miner (code) may then be applied to the input data 710 to generate mined data 720. The mined data 720 may include a mapping from sentences to graphs.
[0153] Figure 8 An example graph mining of input language is shown. Input language 810 may be "Alice makes music, and Bob listens." Input language 810 may be processed to generate grammatical analysis 820. Graph miner 830 may be applied to input language 810 and grammatical analysis 820 to generate graph representation 840. Based on input language 810 and graph representation 840, assistant system 140 may also generate a mapping 850 from a source sequence to a target sequence. By way of example and not limitation, a target sequence may be "[np0(name[alice])]<make[nc1(name[music])]> =and=[np2(name[bob])] <listen>”.
[0154] The embodiments disclosed herein perform experiments on image-to-text mapping and text-to-image mapping. All experiments use BART models with different implementations. One implementation is bart_6_6: BART base (6 encoding layers, 6 decoding layers, 768 dimensions per layer). Another implementation is bart_3_3: BART small (3 encoding layers, 3 decoding layers, 512 dimensions per layer). Another implementation is bart_5_1: BART small (5 encoding layers, 1 decoding layers, 512 dimensions per layer).
[0155] Two datasets were used. The first dataset includes 164K mined text / image pairs. The first dataset was split into 80%, 10%, and 10% for training, development, and testing, respectively. The second dataset includes 238K mined text / image pairs, where the original training, development, and test splits were used. Table 2 lists example text-to-image results. Table 3 lists example image-to-text results. Table 4 lists example delays for text-to-image and image-to-text mappings. For the delay results, the average single length of the input is 10 tokens for text and about 40 tokens for images. The overall mining yield for both datasets is about 37%.
[0156]
[0157] Table 2. Example text-to-graph results.
[0158]
[0159] Table 3. Example image-to-text results.
[0160]
[0161] Table 4. Example delays in milliseconds.
[0162] In a particular embodiment, the assistant system 140 can then determine one or more patterns in the speech input based on the first graph representation. The assistant system 140 can find patterns in the input language text via graph search. In a particular embodiment, determining one or more patterns in the speech input based on the first graph representation can include mapping one or more graph patterns to the first graph representation based on a subgraph matching routine. Similar to how regular expression patterns can be crafted and matched against text, the assistant system 140 can utilize more capable "graph patterns" and use a subgraph matching routine to match these graph patterns against the graph representing the input language. Fig. 9 Example patterns are shown. The matching macros 910, 920, 930, 940, and 950 (which start with "$") can represent special node matching functions or variables (customizable). This pattern might look for how / where / when / why questions. These graph patterns can also allow the assistant system 140 to obtain "node handles" (i.e., syntax). In a particular embodiment, a "node handle" can be a pointer to the actual matching node (conceptually similar to a capture group in a regular expression). In a particular embodiment, mapping one or more graph patterns to the first graph representation can include determining one or more matching nodes from among multiple nodes. The assistant system 140 can then determine one or more node handles configured to point to the one or more matching nodes.
[0163] Fig. 10A and Fig. 10B Example graph 1000 for graph search is shown. In a particular embodiment, graph search can refer to searching a graph for patterns defined by a (connected) query subgraph. Query subgraphs can be similar to random subgraphs, but instead of describing fixed objects (e.g., nodes with fixed labels), they can define equivalent object classes that can match some fixed objects. Representing the query subgraph as a query SGR, the query SGR can be represented as q - SGR1:[$any:-n0(domain[artist])]<sing:-p0[$any:n - 1(domain[track])] (q - SGR1:[$any:-n0(domain[artist])]<sing:-p0[$any:n - 1(domain[track])]). Like any SGR, this SGR can be mapped one - to - one to a graph, specifically the query subgraph it defines. Different from a regular SGR (in the above case, a regular SGR would describe a specific entity singing a specific track), this SGR can match any subgraph where an artist sings a song.
[0164] In certain embodiments, there may be two differences from normal SGRs. One difference may be that node labels are not constrained to reference literal labels. They can be matcher_variables / functions and can be prefixed with "$". As an example and not limitation, q-SGR1 may match entities with the domain "artist" with any label (e.g., track). This may allow the assistant system 140 to match nodes not only by requiring their labels to be some labels, but also by requiring that functions of their labels (which may be constant functions, i.e., variables) satisfy some things. Another difference may be that the query SGR may use the syntax ":-" to create node handles, which may reference the matched nodes in subsequent operations. The node handle may be attached to the actual node identifier in the matched graph. Without a node handle, it may not be possible to reference nodes belonging to the search pattern in a principled manner.
[0165] In particular embodiments, node handles may be an abstract concept for pointing to graph nodes via strings, such as "n0" in q-SGR1. They may be thought of as virtual (and shared) node identifiers with respect to a particular pattern. In particular embodiments, node handles may be introduced in two ways. In a query SGR, one way is to use the syntax ":-n0", followed by a node label. This may indicate that n0 may now be used as a handle that references a particular node identifier that matches the pattern in the SGR. Another way may be via an edit action that explicitly derives a handle from an existing node handle.
[0166] In certain embodiments, a matcher function (or "inverse" indicator function) may include multi-valued functions, which are defined via the inverted definitions below. Let I(X) be an indicator function of parameter X (which may be a tuple of parameters), meaning that X is considered either "true" or "false". A matcher function $f may be appended to I() and return a parameter set X for which I(X) = "true". In the setting of the embodiments disclosed herein, a matcher function may take a node label (and optional metadata) and return all nodes whose labels match certain criteria. By way of example and not limitation, $any may match any node label without restriction, while $any_in_set($ome_set) may have the following criteria: the node label may be in the set represented by the variable $ome_set.
[0167] To facilitate general editing of graphs, assistant system 140 may use multiple action abstractions. By way of example and not limitation, these action abstractions may include add, remove, and change. These action abstractions may be accessed through their respective interfaces, and any number of these action abstractions may be applied consecutively after a graph search.
[0168] Regarding additions, you can add content (via SGRs), node handles, and variables. Just like adding any SGR to an existing Figure 1 Similarly, adding content may add SGRs to the working graph. The difference may be that these SGRs are "executable" in that they include node handles, functions, and variables. You can add handles to existing nodes in the graph by representing them as descendants of other nodes. For example, you have already Fig. 10A and Fig. 10B In the example graph 1000 in , which has node handles to all artists, handles could be added for female artists, perhaps as a filter on the existing artist handles. To facilitate complex logic (arithmetic, aggregation, etc.), existing data could be adapted to map to other data, for example via functions. Variables could be added to the graph as a function of the graph data and the node handles, and these variables could be stored and used in subsequent actions. For example, a (handle-related) variable could be created to get the number of tracks performed by each artist.
[0169] Regarding removal, it may be necessary to prune an existing graph. By way of example and not limitation, nodes may be removed. This may be accomplished by providing node handles for the nodes that the user wants to remove from the graph. Using add and remove, large amounts of data in a graph may be easily changed. Furthermore, data may be changed via a change operation where this is inconvenient. By way of example and not limitation, node labels may be changed. A (node handle, label) pair may be provided to change the labels of all nodes in the graph referenced by the node handle.
[0170] In a particular embodiment, the assistant system 140 may provide a web-based user interface (UI) that the user can use to convert any text in the input language into a graph to better understand the graph-based language. The user can use the UI to edit the configuration. As an example and not limitation, the user can list editing rules with search conditions (possibly multiple through the "and / or" operator). The user can also list editing actions that can be performed sequentially. For example, the user can list add actions, remove actions, and change actions. The user can also edit metadata (e.g., scalars, vectors, sets, mappings). In a particular embodiment, the logic can be the action of running the first valid rule and then exiting. The user interface can allow the user to perform multiple configurations for complex editing. Using a graph structured representation can be an effective solution for solving the technical challenge of effectively generating auxiliary responses based on structured data (which can be well extended for data diversity and complexity) because these graph structured representations can allow these structures to be easily manipulated so that scalable, configuration-driven response creation can be performed at the assistant system 140.
[0171] In certain embodiments, more capable pattern matching can support more contextual responses. Assistant system 140 can utilize multiple levels of pattern matching, resulting in multiple levels of contextualization. In certain embodiments, the first level of pattern matching can be an exact match or a regular match of an utterance. For example, "I want some..." can match an utterance where the user wants "something." Assistant system 140 can then use this to put the response in context, for example, "I wish I had some <something>for you (I hope I have something for you)".
[0172] In certain embodiments, the second level pattern matching may be a nearest neighbor match of utterances based on a semantic lookup table. For example, the query "I adore you" may be matched to a set of predefined utterances such as "I love you". Assistant system 140 may then display a response crafted for the predefined utterance.
[0173] In certain embodiments, the third level of pattern matching can be a clause pattern matching based on a structured clause representation of an utterance. Assistant system 140 can use machine learning to perform pattern matching at this level. For example, assistant system 140 can match a sentence of type "blue<subject with a relative clause> <verb> <object>very much(blue <subject plus relative clause><verb><object>very)", where the subject, verb, and object are arbitrary. For example, this might match "blue pens that have too much ink annoy me very much", and assistant system 140 can then borrow any part of the clause into the response for contextualization. By way of example and not limitation, a possible response might be "those annoy me a lot too".
[0174] In certain embodiments, the fourth level of pattern matching may be a completely machine learning based approach that learns a mapping from utterances to responses. This level of pattern matching may be limited only by the amount of quality data that can be collected.
[0175] In a particular embodiment, the assistant system 140 can then perform graph editing. The assistant system 140 can edit one or more modes based on editing the first graph representation. By configuration, the assistant system 140 can edit the graph representation of the desired language text. In a particular embodiment, editing one or more modes may include one or more of the following: removing one or more nodes associated with one or more of the one or more node handles from the first graph representation; or adding one or more subgraphs to the first graph representation. One or more subgraphs can be determined based on one or more of the one or more matching nodes via one or more corresponding node handles. The assistant system 140 can replace the graph with other graphs based on the matching results. The assistant system 140 can remove all nodes with a specific node handle, or add more subgraphs using existing matching nodes via the node handle. This can allow the assistant system 140 to manipulate the graph in a flexible manner. During editing, the user can access all relevant task data (language, other task parameters, etc.) in one place, and use them to generate a representation of the response from the assistant system 140. In a particular embodiment, the assistant system 140 can collaboratively design language-to-graph representation mapping and configuration-based editing. As a result, the corresponding graph representation can efficiently control the underlying language text, and the configuration may be powerful enough to scale well with increasing editing complexity. For example, to easily control the clause structure of the language, the assistant system 140 can use mappings around clauses and their atomic components.
[0176] In certain embodiments, graph editing can encapsulate the principle that any graph may be able to be modified using generic (task / domain independent) operations. This can be based on searching for some patterns in the graphs and then modifying the patterns found in these graphs according to some predefined atomic actions (e.g., add, remove, change, etc.). Fig.11 An example high-level flow 1100 for graph editing is shown. A graph representation may be input to the assistant system 140. At step 1110, the assistant system 140 may perform a graph search. By way of example and not limitation, the graph search may include finding a subgraph that matches a pattern and obtaining node handles for the matching nodes. At step 1120, the assistant system 140 may add, remove, or change the graph. By way of example and not limitation, the assistant system 140 may use an atomic edit function with matching node handles. The resulting graph representation may then be output.
[0177] In certain embodiments, the assistant system may package the search pattern and edit graph into a single graph operation and compile it. At runtime, the assistant system 140 may apply the compiled operation on the graph. Pattern matching and pattern editing for graph representations may be an effective solution for addressing the technical challenge of effectively converting graph representations of speech input into contextual natural language responses, because more capable pattern matching may support more contextual responses, and editing the graph representation via configuration may allow control over the desired language text.
[0178] In certain embodiments, assistant system 140 can also convert the graph-based language back to the input language (e.g., English). Assistant system 140 can convert the edited first graph representation into a contextual response. Assistant system 140 can use the same type of machine learning used to convert the input language into the graph representation. However, the machine learning can be trained in the opposite direction (i.e., from graph to text).
[0179] Fig.12 An example of end-to-end processing of an out-of-coverage request is shown. An out-of-coverage request 1210 may be "book a private jet to Shanghai". Assistant system 140 may perform text-to-graph mapping to generate a first graph representation 1220. Assistant system 140 may then use a graph editor to generate a second graph representation 1230 from the first graph representation 1220. By way of example and not limitation, the graph editor may use the following editing rules:
[0180]
[0181] Assistant system 140 may further generate response 1240 based on second graph representation 1230. For example, response 1240 may be “unfortunately, I can't book a jet”.
[0182] In certain embodiments, the assistant system 140 may implement the first feature described above in the NLG module 372 at runtime. Within the NLG module 372, the assistant system 140 may trigger the first feature based on the task of the dialog action (issued from the agent 228) and the original NLU intent (the assistant system 140 may only trigger for some NLU intents). If triggered, the assistant system 140 may perform a graph-based "schema edit" and set the voice response from the assistant system 140 as the generated output response. In certain embodiments, this implementation may be surface agnostic. The assistant system 140 may enable the first feature on any assistant-enabled surface (e.g., a smart tablet or VR head-mounted viewer).
[0183] In a particular embodiment, the assistant system can design and implement the aforementioned second feature as follows. Assistant system 140 can notify the user of currently supported potentially related requests. Therefore, when the top-level NLU intent belongs to the out-of-coverage (OOC) category, assistant system 140 can identify "relevant and supported intents". As an example and not limitation, if the request is "orderfood" (which is not in coverage), assistant system 140 can identify local question and answering (Q&A) as a related intent (which is supported downstream) and can say "<the first featurehere> ,but I can show you nearby restaurants (<here is the first feature>, but I can take you to nearby restaurants)".
[0184] In a particular embodiment, assistant system 140 may use the following solution for the second feature. One solution may be based on deep k-nearest neighbors (KNN). Assistant system 140 may use a trained model (i.e., an NLU domain classifier) to obtain a dense embedding for each example in the training set. Given a test utterance, assistant system 140 may find its closest neighbors in this embedding space. When an utterance is out of coverage, its nearest neighbors / most similar examples in the training data may be potentially useful as alternative query suggestions.
[0185] Another solution may be based on the N best interpretations from the NLU module 210. The principle is that each module can express all meaningful hypotheses to drive the task ranking so that the assistant system 140 can select the best task for the user's needs, rather than the NLU module 210 optimizing one best interpretation and the dialog manager 216 focusing on the top tasks triggered by the NLU module 210. The assistant system 140 may output multiple independent domain predictions. The domain classification model may already be a multi-label model, with each domain classification independent of the other domain classifications. This can convince the assistant system 140 that if the top intent is out of coverage, other predicted intents (which can be guaranteed to be different) may be good candidates for the suggested and supported tasks due to semantic proximity to the utterance. In a particular embodiment, the model of the NLU module 210 may be trained with the goal of "find the user intent", and the second feature may require a slightly modified goal of "given the user intent, find something meaningful to do". Given resource constraints, the NLU native approach may be very feasible. In a particular embodiment, the assistant system 140 may use non-top intents from the N best interpretations of the NLU module 210.
[0186] In certain embodiments, assistant system 140 may implement the second feature end-to-end using the N best interpretations of NLU module 210 as follows. First, given an out-of-coverage (OOC) request utterance of a user, NLU module 210 may contextually and semantically predict a closer domain based on a multi-label domain classifier and pass the top N results to dialog manager 216.
[0187] In a particular embodiment, in response to determining that the speech input includes an out-of-coverage request, the assistant system 140 may determine one or more candidate intents based on the NLU module 210 associated with the assistant system 140. The assistant system 140 may further generate one or more task candidates based on the one or more candidate intents. As an example and not limitation, the intent processor 411 or the task candidate ranking module 414 may generate task candidates using NLU intent identifiers, common sense, and user information in the conversation. The candidates output by this step may all be executable given the current context. The process may be performed on the top N NLU intents. In a particular embodiment, the NLU intent ranking may be maintained by generating candidates and ranking them by intent.
[0188] In a particular embodiment, the assistant system 140 may select a first task candidate from one or more task candidates. The first candidate task may meet one or more criteria. As an example and not limitation, the one or more criteria may include one or more of the following: the task confidence is greater than a threshold or the identifier associated with the first task is non-out-of-domain, non-slot value is provided, or non-unsupported. In a particular embodiment, the assistant system 140 may iterate the sorted task candidate list and find the first task candidate that meets the following criteria. One criterion may be that the intent / task confidence is greater than a threshold. Other criteria may include that the task identifier is not "out-of-domain", not "slot value is provided", or not "unsupported". Task dryrun may return a successful result. In a particular embodiment, the assistant system 140 may add the task parameters associated with the first task and its corresponding candidate intent to the task corresponding to the out-of-coverage request. The assistant system 140 may also provide the task corresponding to the out-of-coverage request together with the task parameters to the NLG module 372 associated with the assistant system 140 to generate a contextual response. In other words, if an alternative task has been found, assistant system 140 can modify the original out-of-domain (OOD) task to include additional task arguments with the suggested intent and task, or any suitable information that needs to be passed to NLG module 372 .
[0189] In certain embodiments, the NLG module 372 may also use the propagated arguments and generate corresponding responses. For the example prototype, the NLG module 372 may use a simple mapping from intent to suggestion text and look up intents at runtime.
[0190] Fig.13 An example of user education is shown. When authoring based on a single template, response 1310 may be based on "You have {SL:NUM_ALARMS} alarms". Assistant system 140 may generate a diagram representation 1320 for response 1310. At runtime, assistant system 140 may expand response 1310 into multiple grammatical responses. For example, assistant system 140 may apply a diagram-to-text mapping based on SL:NUM_ALARMS=0 to generate a response such as "You don't have an alarm". As another example, assistant system 140 may apply a diagram-to-text mapping based on SL:NUM_ALARMS=1 to generate a response such as "You have 1 alarm". As yet another example, assistant system 140 may apply a diagram-to-text mapping based on SL:Num_Alarms=2 to generate a response such as "You have 2 alarms". In certain embodiments, instantiation of user education can be based on the use of rigid templates (without slots), which is more convenient than Fig.13 For this method, the NLG module 372 can use the propagated arguments and generate corresponding responses. In a specific embodiment, the NLG module 372 can use a simple mapping from intent to suggested text and look up the intent at runtime.
[0191] In a particular embodiment, the assistant system 140 may use the following metrics to test the performance of handling out-of-coverage requests. One metric may be naturalness. The assistant system 140 may clarify the concept of naturalness in the context of experimentally handling out-of-coverage requests, measuring other topline metrics, and analyzing user satisfaction surveys. Another metric may be the out-of-coverage recovery rate. The assistant system 140 may calculate the percentage of out-of-coverage requests that have been "recovered" by tracking a downward trend (depending on the device, tenure, and region) from a current baseline (e.g., 15% to 25%) to 0% (i.e., "full" understanding). Another metric may be user retention / stickiness. The assistant system 140 may evaluate performance regarding increased retention and stickiness by tracking user behavior with and without improved responses.
[0192] Fig.14 An example method 1400 for processing an out-of-coverage request is shown. The method may begin at step 1410, where the assistant system 140 may receive a voice input from a first user from a client system 130 via an assistant Xbot associated with the assistant system 140, wherein the voice input includes a plurality of n-grams. At step 1420, the assistant system 140 may determine that the voice input includes an out-of-coverage request, wherein the out-of-coverage request includes one or more intents or one or more slots that are not supported by the assistant system 140. At step 1430, the assistant system 140 may determine that the out-of-coverage request is an out-of-domain request that cannot be parsed by a natural language understanding (NLU) module 210 associated with the assistant system 140, or that can be parsed by the NLU module 210 but cannot be executed by one or more other modules associated with the assistant system 140. At step 1440, the assistant system 140 may map the out-of-coverage request to a first graph representation including a plurality of nodes and a plurality of edges connecting the nodes based on one or more machine learning models. At step 1450, assistant system 140 may determine one or more patterns in the speech input based on the first graph representation, including mapping the one or more graph patterns to the first graph representation based on a subgraph matching routine, wherein mapping the one or more graph patterns to the first graph representation includes determining one or more matching nodes from the plurality of nodes. At step 1460, assistant system 140 may determine one or more node handles configured to point to the one or more matching nodes. At step 1470, assistant system 140 may edit the one or more patterns based on editing the first graph representation. At step 1480, assistant system 140 may generate a contextual response for the out-of-coverage request, wherein the contextual response includes an implicit confirmation of the out-of-coverage request and a failure response to the out-of-coverage request, wherein the implicit confirmation references voice input from the first user, wherein the implicit confirmation includes one or more n-grams of a plurality of n-grams associated with the voice input, wherein the failure response indicates that assistant system 140 cannot perform a task corresponding to the out-of-coverage request, wherein the contextual response also includes one or more of: a reference to a suggestion of one or more in-domain requests that can be executed by assistant system 140; or an indication that assistant system 140 understands the out-of-coverage request, and wherein generating the contextual response includes converting the edited first graphical representation into the contextual response. At step 1490, assistant system 140 may send instructions to client system 130 for presenting a contextual response in response to the voice input. Where appropriate, specific embodiments may repeat Fig.14 Although the present disclosure describes and illustrates one or more steps of the method Fig.14 The specific steps of the method occur in a specific order, but the present disclosure contemplates Fig.14 Any appropriate steps of the method may occur in any suitable order. In addition, although the present disclosure describes and illustrates an example method for processing an out-of-coverage request including Fig.14 However, the present disclosure contemplates any suitable method for handling an out-of-coverage request including any suitable steps, which steps may include, where appropriate Fig.14 All, some, or none of the steps of the method Fig.14 Furthermore, although the present disclosure describes and illustrates the steps of performing Fig.14 specific components, devices or systems for specific steps of the method, but the present disclosure contemplates performing Fig.14 Any suitable combination of any suitable components, devices or systems of any suitable steps of the method.
[0193] privacy
[0194] In a particular embodiment, one or more objects (e.g., content or other types of objects) of a computing system may be associated with one or more privacy settings. The one or more objects may be stored on or associated with any suitable computing system or application, such as a social networking system 160, a client system 130, an assistant system 140, a third-party system 170, a social networking application, an assistant application, a messaging application, a photo sharing application, or any other suitable computing system or application. Although the examples discussed herein are in the context of an online social network, these privacy settings may be applied to any other suitable computing system. The privacy settings (or "access settings") of an object may be stored in any suitable manner (e.g., associated with the object, in an index on an authorization server, in another suitable manner, or any suitable combination thereof). The privacy settings of an object may specify how an object (or specific information associated with the object) may be accessed, stored, or otherwise used (e.g., viewed, shared, modified, copied, executed, displayed, or identified) within an online social network. When the privacy settings of an object allow a particular user or other entity to access the object, the object may be described as "visible" relative to the user or other entity. By way of example and not limitation, a user of an online social network may specify a privacy setting for a user profile page that identifies a set of users who may access work experience information on the user profile page, thereby blocking other users from accessing that information.
[0195] In certain embodiments, the privacy settings of an object may specify a "block list" of users or other entities that should not be allowed to access certain information associated with the object. In certain embodiments, the block list may include third-party entities. The block list may specify one or more users or entities for whom the object is not visible. As an example and not limitation, a user may specify a group of users that may not access an album associated with the user, thereby blocking these users from accessing the album (while also potentially allowing certain users who are not in the specified group of users to access the album). In certain embodiments, the privacy settings may be associated with certain social graph elements. The privacy settings of a social graph element (e.g., a node or edge) may specify how the social graph element, information associated with the social graph element, or objects associated with the social graph element may be accessed using an online social network. As an example and not limitation, a certain photo may have a privacy setting that specifies that only the user tagged in the photo and the friends of the user tagged in the photo can access the photo. In particular embodiments, privacy settings may allow users to opt-in or opt-out of having their content, information, or actions stored / recorded by social-networking system 160 or assistant system 140, or to opt-in or opt-out of having their content, information, or actions shared with other systems (e.g., third-party systems 170). Although this disclosure describes using particular privacy settings in particular ways, this disclosure contemplates using any suitable privacy settings in any suitable way.
[0196] In certain embodiments, social-networking system 160 may present a "privacy wizard" to the first user (e.g., within a webpage, module, one or more dialog boxes, or any other suitable interface) to assist the first user in specifying one or more privacy settings. The privacy wizard may display instructions, appropriate privacy-related information, current privacy settings, one or more input fields for accepting one or more inputs from the first user specifying changes to or confirmations of privacy settings, or any suitable combination thereof. In certain embodiments, social-networking system 160 may provide the first user with a "dashboard" function that may display the first user's current privacy settings. The dashboard function may be displayed to the first user at any suitable time (e.g., after input by the first user invoking the dashboard function, after a particular event or triggering action occurs). The dashboard function may allow the first user to modify one or more of the first user's current privacy settings at any time in any suitable manner (e.g., redirecting the first user to the privacy wizard).
[0197] The privacy settings associated with an object may specify any suitable granularity at which access is allowed or denied. By way of example and not limitation, access or denial of access may be specified for: a specific user (e.g., only me, my roommate, my boss), users within a specific degree of separation (e.g., friends, friends of friends), user groups (e.g., a gaming club, my family), user networks (e.g., employees of a specific employer, students or alumni of a specific university), all users ("public"), no users ("private"), users of a third-party system 170, a specific application (e.g., a third-party application, an external website), other suitable entities, or any suitable combination thereof. Although the present disclosure describes a specific granularity at which access is allowed or denied, the present disclosure contemplates any suitable granularity at which access is allowed or denied.
[0198] In certain embodiments, one or more servers 162 may be authorization / privacy servers for implementing privacy settings. In response to a request from a user (or other entity) for a particular object stored in data repository 164, social networking system 160 may send a request for the object to data repository 164. The request may identify a user associated with the request, and the object may only be sent to the user (or the user's client system 130) if the authorization server determines that the user is authorized to access the object based on the privacy settings associated with the object. If the requesting user is not authorized to access the object, the authorization server may block retrieval of the requested object from data repository 164, or may block sending the requested object to the user. In the context of a search query, an object may be provided as a search result only if the querying user is authorized to access the object (e.g., if the privacy settings for the object allow the object to be revealed to the querying user, allow the object to be discovered by the querying user, or allow the object to be otherwise visible to the querying user). In certain embodiments, an object may represent content visible to the user through the user's news feed. As an example and not limitation, one or more objects may be visible to a user's "Trending" page. In a particular embodiment, an object may correspond to a particular user. The object may be content associated with the particular user, or may be an account of the particular user, or information stored on the social networking system 160 or other computing system. By way of example and not limitation, a first user may view one or more second users of an online social network through the "People You May Know" feature of the online social network or by viewing the first user's friend list. By way of example and not limitation, a first user may specify that he or she does not want to see objects associated with a particular second user in his or her newsfeed or friend list. If the privacy settings for the object do not allow the object to be revealed to the user, discovered by the user, or visible to the user, the object may be excluded from the search results. Although the present disclosure describes implementing privacy settings in a particular manner, the present disclosure contemplates implementing privacy settings in any suitable manner.
[0199] In certain embodiments, different objects of the same type associated with a user may have different privacy settings. Different types of objects associated with a user may have different types of privacy settings. As an example and not limitation, a first user may specify that the first user's status update is public, but any images shared by the first user are visible only to the first user's friends on an online social network. As another example and not limitation, a user may specify different privacy settings for different types of entities (e.g., individual users, friends of friends, followers, user groups, or business entities). As another example and not limitation, a first user may specify a group of users who can view videos posted by the first user while preventing these videos from being visible to the first user's employer. In certain embodiments, different privacy settings may be provided for different user groups or user demographics. As an example and not limitation, a first user may specify that other users who attend the same university as the first user can view the first user's photos, but other users who are family members of the first user may not view these same photos.
[0200] In certain embodiments, social networking system 160 may provide one or more default privacy settings for each object of a certain object type. The privacy setting for an object that is set to default may be changed by a user associated with the object. As an example and not limitation, all images posted by a first user may have a default privacy setting that is visible only to the first user's friends, and for a particular image, the first user may change the privacy setting for the image to be visible to friends and friends of friends.
[0201] In certain embodiments, privacy settings may allow a first user to specify (e.g., by opting out, not opting in) whether social-networking system 160 or assistant system 140 may receive, collect, record, or store certain objects or information associated with the user for any purpose. In certain embodiments, privacy settings may allow a first user to specify whether certain applications or processes may access, store, or use certain objects or information associated with the user. Privacy settings may allow a first user to opt in or opt out of having an object or information accessed, stored, or used by a certain application or process. Social-networking system 160 or assistant system 140 may access such information to provide certain functionality or services to the first user, while social-networking system 160 or assistant system 140 may not have access to the information for any other purpose. Prior to accessing, storing, or using such an object or information, social-networking system 160 or assistant system 140 may prompt the user to provide privacy settings, specifying which applications or processes (if any) may access, store, or use the object or information, before allowing any such actions. As an example and not limitation, a first user may send messages to a second user via an application associated with an online social network (e.g., a messaging application) and may specify a privacy setting that the messages should not be stored by social networking system 160 or assistant system 140.
[0202] In certain embodiments, a user may specify whether certain types of objects or information associated with a first user may be accessed, stored, or used by social-networking system 160 or assistant system 140. By way of example and not limitation, a first user may specify that images sent by a first user via social-networking system 160 or assistant system 140 may not be stored by social-networking system 160 or assistant system 140. By way of another example and not limitation, a first user may specify that messages sent from a first user to a particular second user may not be stored by social-networking system 160 or assistant system 140. By way of yet another example and not limitation, a first user may specify that all objects sent via a particular application may be saved by social-networking system 160 or assistant system 140.
[0203] In certain embodiments, the privacy settings may allow the first user to specify whether certain objects or information associated with the first user may be accessed from certain client systems 130 or third-party systems 170. The privacy settings may allow the first user to opt-in or opt-out of having objects or information accessed from certain devices (e.g., a phone book on the user's smartphone), from certain applications (e.g., a messaging application), or from certain systems (e.g., an email server). The social networking system 160 or assistant system 140 may provide a default privacy setting for each device, system, or application, and / or the first user may be prompted to specify a specific privacy setting for each context. As an example and not limitation, the first user may utilize a location services feature of the social networking system 160 or assistant system 140 to provide recommendations for restaurants or other places near the user. The first user's default privacy settings may specify that the social networking system 160 or assistant system 140 may use location information provided from the first user's client system 130 to provide location-based services, however the social networking system 160 or assistant system 140 may not store the first user's location information or may not provide the first user's location information to any third-party system 170. The first user may then update the privacy settings to allow the location information to be used by the third party image sharing application to geotag the photos.
[0204] In certain embodiments, privacy settings may allow a user to specify one or more geographic locations from which an object may be accessed. Access or denial of access to an object may depend on the geographic location of the user attempting to access the object. As an example and not limitation, a user may share an object and specify that only users in the same city may access or view the object. As another example and not limitation, a first user may share an object and specify that the object is visible to a second user only when the first user is in a particular location. If the first user leaves the particular location, the object may no longer be visible to the second user. As another example and not limitation, the first user may specify that the object is visible only to a second user within a threshold distance from the first user. If the first user subsequently changes location, the original second user with access to the object may lose access, while a new set of second users may gain access when they come within a threshold distance of the first user.
[0205] In certain embodiments, the social networking system 160 or assistant system 140 may have features that can use the user's personal or biometric information as input for the purpose of user authentication or experience personalization. Users may choose to utilize these features to enhance their experience on online social networks. By way of example and not limitation, a user may provide personal or biometric information to the social networking system 160 or assistant system 140. The user's privacy settings may specify that such information may be used only for a specific process (e.g., authentication), and may also specify that such information may not be shared with any third-party system 170 or may not be used for other processes or applications associated with the social networking system 160 or assistant system 140. As another example and not limitation, the social networking system 160 may provide a user with a feature for providing a voiceprint recording to an online social network. By way of example and not limitation, if a user wishes to utilize this feature of an online social network, the user may provide a voice recording of his or her own voice to provide a status update on the online social network. The recording of the voice input may be compared to the user's voiceprint to determine what words the user has spoken. The user's privacy settings may specify that such voice recordings may be used only for voice input purposes (e.g., to authenticate the user, send voice messages, improve voice recognition, in order to use voice-controlled features of the online social network), and may also specify that such voice recordings may not be shared with any third-party systems 170 or used by other processes or applications associated with the social-networking system 160.
[0206] System and method
[0207] Fig.15 An example computer system 1500 is shown. In certain embodiments, one or more computer systems 1500 perform one or more steps of one or more methods described or illustrated herein. In certain embodiments, one or more computer systems 1500 provide functionality described or illustrated herein. In certain embodiments, software running on one or more computer systems 1500 performs one or more steps of one or more methods described or illustrated herein, or provides functionality described or illustrated herein. Certain embodiments include one or more portions of one or more computer systems 1500. Herein, references to a computer system may encompass a computing device, and vice versa, where appropriate. Furthermore, references to a computer system may encompass one or more computer systems, where appropriate.
[0208] The present disclosure contemplates any suitable number of computer systems 1500. The present disclosure contemplates computer systems 1500 in any suitable physical form. By way of example and not limitation, computer system 1500 may be an embedded computer system, a system-on-chip (SOC), a single-board computer system (SBC) (e.g., a computer-on-module (COM) or a system-on-module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a network of computer systems, a mobile phone, a personal digital assistant (PDA), a server, a tablet computer system, or a combination of two or more of these computer systems. Where appropriate, computer system 1500 may include one or more computer systems 1500; computer system 1500 may be single or distributed; across multiple locations; across multiple machines; across multiple data centers; or located in the cloud (which may include one or more cloud components in one or more networks). Where appropriate, one or more computer systems 1500 may perform one or more steps of one or more methods described or illustrated herein without substantial spatial or temporal constraints. By way of example and not limitation, one or more computer systems 1500 may perform one or more steps of one or more methods described or illustrated herein in real time or in batch mode. Where appropriate, one or more computer systems 1500 may perform one or more steps of one or more methods described or illustrated herein at different times or in different locations.
[0209] In a particular embodiment, computer system 1500 includes a processor 1502, memory 1504, storage 1506, an input / output (I / O) interface 1508, a communication interface 1510, and a bus 1512. Although this disclosure describes and illustrates a particular computer system having particular numbers of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable numbers of any suitable components in any suitable arrangement.
[0210] In a particular embodiment, the processor 1502 includes hardware for executing instructions, such as those that constitute a computer program. By way of example and not limitation, to execute instructions, the processor 1502 may retrieve (or read) a plurality of instructions from an internal register, an internal cache, a memory 1504, or a storage device 1506; decode and execute these instructions; and then write one or more results to an internal register, an internal cache, a memory 1504, or a storage device 1506. In a particular embodiment, the processor 1502 may include one or more internal cache memories for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 1502 that includes any suitable number of any suitable internal cache memories. By way of example and not limitation, the processor 1502 may include one or more instruction cache memories, one or more data cache memories, and one or more translation lookaside buffers (TLBs). The instructions in the instruction cache memory may be copies of the instructions in the memory 1504 or the storage device 1506, and the instruction cache memory may speed up the retrieval of these instructions by the processor 1502. The data in the data cache may be a copy of the data in the memory 1504 or the storage device 1506 for operation by the instructions executed at the processor 1502; may be the result of the previous instruction executed at the processor 1502 for access by the subsequent instruction executed at the processor 1502 or for writing to the memory 1504 or the storage device 1506; or may be other suitable data. The data cache may speed up the read operation or write operation of the processor 1502. The TLB may speed up the virtual address translation of the processor 1502. In a particular embodiment, the processor 1502 may include one or more internal registers for data, instructions, or addresses. Where appropriate, the present disclosure contemplates that the processor 1502 includes any suitable number of any suitable internal registers. Where appropriate, the processor 1502 may include one or more arithmetic logic units (ALUs); may be a multi-core processor; or may include one or more processors 1502. Although the present disclosure describes and illustrates a particular processor, the present disclosure contemplates any suitable processor.
[0211] In a particular embodiment, the memory 1504 includes a main memory for storing instructions for execution by the processor 1502 or data for operation by the processor 1502. As an example and not limitation, the computer system 1500 can load instructions from the storage device 1506 or another source (e.g., another computer system 1500) to the memory 1504. The processor 1502 can then load the instructions from the memory 1504 to an internal register or an internal cache memory. To execute these instructions, the processor 1502 can retrieve these instructions from the internal register or the internal cache memory and decode these instructions. During or after the execution of these instructions, the processor 1502 can write one or more results (which can be intermediate or final results) to the internal register or the internal cache memory. The processor 1502 can then write one or more of these results to the memory 1504. In a particular embodiment, the processor 1502 executes only instructions in one or more internal registers or in an internal cache memory or in memory 1504 (rather than storage device 1506 or elsewhere), and operates only on data in one or more internal registers or in an internal cache memory or in memory 1504 (different from storage device 1506 or elsewhere). One or more memory buses (each memory bus may include an address bus and a data bus) can couple the processor 1502 to the memory 1504. As described below, the bus 1512 may include one or more memory buses. In a particular embodiment, one or more memory management units (MMUs) are located between the processor 1502 and the memory 1504 and facilitate access to the memory 1504 requested by the processor 1502. In a particular embodiment, the memory 1504 includes random access memory (RAM). Where appropriate, the RAM is a volatile memory. Where appropriate, the RAM may be a dynamic RAM (DRAM) or a static RAM (SRAM). In addition, where appropriate, the RAM may be a single-port or multi-port RAM. The present disclosure contemplates any suitable RAM. Where appropriate, memory 1504 includes one or more memories 1504. Although the present disclosure describes and illustrates specific memories, the present disclosure contemplates any suitable memory.
[0212] In a particular embodiment, the storage device 1506 includes a large capacity memory for data or instructions. As an example and not limitation, the storage device 1506 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the storage device 1506 may include a removable or non-removable (or fixed) medium. Where appropriate, the storage device 1506 may be located inside or outside the computer system 1500. In a particular embodiment, the memory 1606 is a non-volatile solid-state memory. In a particular embodiment, the storage device 1506 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM) or a flash memory, or a combination of two or more of these ROMs. The present disclosure contemplates mass storage 1506 taking any suitable physical form. Storage 1506 may include one or more storage control units that facilitate communication between processor 1502 and storage 1506, where appropriate. Storage 1506 may include one or more storage devices 1506, where appropriate. Although the present disclosure describes and illustrates particular storage devices, the present disclosure contemplates any suitable storage devices.
[0213] In a particular embodiment, I / O interface 1508 includes hardware, software, or both, which provides one or more interfaces for communication between computer system 1500 and one or more I / O devices. Where appropriate, computer system 1500 may include one or more of these I / O devices. One or more of these I / O devices may be able to enable communication between a person and computer system 1500. As an example and not limitation, I / O devices may include a keyboard, a keypad, a microphone, a monitor, a mouse, a printer, a scanner, a speaker, a still camera, a stylus, a tablet computer, a touch screen, a trackball, a camera, another suitable I / O device, or a combination of two or more of these. I / O devices may include one or more sensors. The present disclosure contemplates any suitable I / O device and any suitable I / O interface 1508 for these I / O devices. Where appropriate, I / O interface 1508 may include one or more devices or software drivers: the one or more devices or software drivers enable processor 1502 to drive one or more of these I / O devices. Where appropriate, I / O interface 1508 may include one or more I / O interfaces 1508. Although this disclosure describes and illustrates a particular I / O interface, this disclosure contemplates any suitable I / O interface.
[0214] In certain embodiments, the communication interface 1510 includes hardware, software, or both that provide one or more interfaces for communication (e.g., packet-based communication) between the computer system 1500 and one or more other computer systems 1500 or one or more networks. By way of example and not limitation, the communication interface 1510 may include a network interface controller (NIC) or a network adapter for communicating with an Ethernet or other wired network, or may include a wireless NIC (WNIC) or a wireless adapter for communicating with a wireless network (e.g., a Wi-Fi network). The present disclosure contemplates any suitable network and any suitable communication interface 1510 for the network. By way of example and not limitation, the computer system 1500 may communicate with a network such as an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or one or more portions of the Internet, or a combination of two or more of these. One or more parts of one or more of these networks may be wired or wireless. As an example, the computer system 1500 may communicate with a wireless PAN (wireless PAN, WPAN) (e.g., BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular phone network (e.g., a Global System for Mobile Communications (Global System for Mobile Communications, GSM) network), or other suitable wireless networks, or a combination of two or more of these networks. Where appropriate, the computer system 1500 may include any suitable communication interface 1510 for any of these networks. Where appropriate, the communication interface 1510 may include one or more communication interfaces 1510. Although the present disclosure describes and illustrates specific communication interfaces, the present disclosure contemplates any suitable communication interface.
[0215] In particular embodiments, bus 1512 includes hardware, software, or both that couples the various components of computer system 1500 to each other. By way of example and not limitation, bus 1512 may include: an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a front-side bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBAND interconnect, a low-pin-count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a high-speed Peripheral Component Interconnect (PCI-Express, PCIe) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus, or a combination of two or more of these buses. Where appropriate, bus 1512 may include one or more buses 1512. Although this disclosure describes and illustrates a particular bus, this disclosure contemplates any suitable bus or interconnect.
[0216] In this document, where appropriate, one or more computer-readable non-transitory storage media may include: one or more semiconductor-based integrated circuits (integrated circuits, ICs) or other integrated circuits (e.g., field-programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard disk drives (HHDs), optical disks, optical disc drives (ODDs), magneto-optical disks, magneto-optical drives, floppy disks, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM drives, secure digital cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these. Where appropriate, the computer-readable non-transitory storage medium may be volatile, non-volatile, or a combination of volatile and non-volatile.
[0217] Other parameters
[0218] As used herein, "or" is inclusive and not exclusive, unless expressly stated otherwise or the context indicates otherwise. Thus, as used herein, "A or B" means "A, B, or both," unless expressly stated otherwise or the context indicates otherwise. Furthermore, "and" is both joint and several, unless expressly stated otherwise or the context indicates otherwise. Thus, as used herein, "A and B" means "A and B, jointly or severally," unless expressly stated otherwise or the context indicates otherwise.
[0219] The scope of the present disclosure includes all changes, substitutions, changes, transformations and modifications to the example embodiments described or shown herein, which will be understood by those of ordinary skill in the art. The scope of the present disclosure is not limited to the example embodiments described or shown herein. In addition, although the present disclosure describes and illustrates the various embodiments herein as including specific components, elements, features, functions, operations, or steps, any embodiment in these embodiments may include any combination or arrangement of any of the components, elements, features, functions, operations, or steps described or shown anywhere herein as will be understood by those of ordinary skill in the art. In addition, references to devices or systems suitable for, arranged to, capable of, configured to, enabled to, capable of operating, or operable to perform a specific function, or components in a device or system in the appended claims include the device, system, component, regardless of whether the device, system, component, or the specific function is activated, turned on, or unlocked, as long as the device, system, or component is so suitable for, arranged to, capable of, configured to, enabled to, capable of operating, or operable. Additionally, although this disclosure may describe or illustrate a particular embodiment as providing particular advantages, that particular embodiment may not provide these advantages, or may provide some or all of these advantages.< / object> < / verb> < / something> < / listen> < / listen> < / y> < / y> < / x> < / x> < / x> < / x> < / domain> < / domain>
Claims
1. A method, comprising: One or more computing systems: receiving voice input from a first user from a client system via an assistant xbot associated with the assistant system; determining that the speech input includes an out-of-coverage request, wherein the out-of-coverage request includes one or more intents or one or more slots not supported by the assistant system; generating a contextual response for the out of coverage request, wherein the contextual response includes an implicit confirmation of the out of coverage request and a failure response to the out of coverage request, wherein the implicit confirmation references the speech input from the first user, and wherein the failure response indicates that the assistant system cannot perform a task corresponding to the out of coverage request; and Instructions are sent to the client system for presenting the contextual response in response to the speech input.
2. The method according to claim 1, further comprising: Determine that the out-of-coverage request is an out-of-domain request.
3. The method according to claim 1, further comprising: It is determined that a natural language understanding (NLU) module associated with the assistant system is unable to parse the out-of-coverage request.
4. The method according to claim 1, further comprising: Determining that the out-of-coverage request can be parsed by a natural language understanding (NLU) module associated with the assistant system; as well as A determination is made that one or more other modules associated with the assistant system are unable to perform the out-of-coverage request that was able to be resolved.
5. The method according to claim 1, wherein: The speech input includes a plurality of n-grams, and wherein the implicit confirmation includes one or more n-grams of the plurality of n-grams associated with the speech input.
6. The method according to claim 1, wherein: The contextual response also includes suggestions referencing one or more in-domain requests that can be performed by the assistant system.
7. The method according to claim 1, wherein: The contextual response also includes an indication that the assistant system understands the out of coverage request.
8. The method according to claim 1, further comprising: Based on one or more machine learning models, the out-of-coverage request is mapped to a first graph representation, the first graph representation comprising a plurality of nodes and a plurality of edges connecting the plurality of nodes.
9. The method according to claim 8, further comprising: One or more patterns in the speech input are determined based on the first graph representation.
10. The method according to claim 9, wherein: Determining one or more patterns in the speech input based on the first graph representation includes mapping one or more graph patterns to the first graph representation based on a sub-graph matching routine.
11. The method according to claim 10, wherein: Mapping the one or more graph patterns to the first graph representation includes determining one or more matching nodes from the plurality of nodes.
12. The method according to claim 11, further comprising: One or more node handles configured to point to the one or more matching nodes are determined.
13. The method according to claim 12, further comprising: One or more of the one or more patterns are edited based on editing the first graph representation.
14. The method according to claim 13, wherein: Editing one or more of the one or more modes includes one or more of the following: removing one or more nodes associated with one or more of the one or more node handles from the first graph representation; or One or more subgraphs are added to the first graph representation, wherein the one or more subgraphs are determined based on one or more of the one or more matching nodes via the one or more corresponding node handles.
15. The method according to claim 13, wherein: Generating the context response includes: The edited first graph representation is converted into the context response.
16. The method according to claim 1, further comprising: In response to determining that the voice input includes the out-of-coverage request: determining one or more candidate intents based on a natural language understanding (NLU) module associated with the assistant system; as well as One or more task candidates are generated based on the one or more candidate intents.
17. The method according to claim 16, further comprising: Select a first task candidate from the one or more task candidates, wherein the first task candidate satisfies one or more criteria, wherein the one or more criteria include one or more of the following: a task confidence is greater than a threshold; or an identifier associated with the first task candidate is non-out-of-domain, non-provided slot value, or non-unsupported.
18. The method according to claim 17, further comprising: adding task arguments associated with the first task candidate and its corresponding candidate intent to the task corresponding to the out-of-coverage request; as well as The task corresponding to the out-of-coverage request is provided to a natural language generation (NLG) module associated with the assistant system together with the task argument to generate the contextual response.
19. One or more computer-readable non-transitory storage media containing software that, when executed, is operable to: receiving voice input from a first user from a client system via an assistant xbot associated with the assistant system; determining that the voice input comprises an out-of-coverage request, wherein: The out-of-coverage request includes one or more intents or one or more slots not supported by the assistant system; generating a contextual response for the out of coverage request, wherein the contextual response includes an implicit confirmation of the out of coverage request and a failure response to the out of coverage request, wherein the implicit confirmation references the speech input from the first user, and wherein the failure response indicates that the assistant system cannot perform a task corresponding to the out of coverage request; and Instructions are sent to the client system for presenting the contextual response in response to the speech input.
20. A system, comprising: one or more processors; and a non-transitory memory coupled to the one or more processors and comprising instructions executable by the one or more processors, the one or more processors being operable, when executing the instructions, to: receiving voice input from a first user from a client system via an assistant xbot associated with the assistant system; determining that the speech input includes an out-of-coverage request, wherein the out-of-coverage request includes one or more intents or one or more slots not supported by the assistant system; generating a contextual response for the out of coverage request, wherein the contextual response includes an implicit confirmation of the out of coverage request and a failure response to the out of coverage request, wherein the implicit confirmation references speech input from the first user, and wherein the failure response indicates that the assistant system cannot perform a task corresponding to the out of coverage request; and Instructions are sent to the client system for presenting the contextual response in response to the speech input.
