Evaluating interpretations of search queries

The method employs machine learning models to automatically assess the accuracy of human interpretations of search queries, addressing inefficiencies in existing systems by reducing manual evaluation costs and resource waste, and improving query quality and user experience.

JP7564326B2Active Publication Date: 2024-10-08GOOGLE LLC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023500066
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-01
Filing Date
2020-12-10
Publication Date
2024-10-08
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

Existing systems face inefficiencies in evaluating the quality of human interpretations of natural language search queries, particularly when scaling to multiple languages, as they rely on costly manual human ratings and do not effectively utilize interaction signals, leading to increased resource usage and user frustration.

Method used

A method and system using machine learning models, such as BERT, to automatically evaluate the accuracy of human interpretations by training on human-rated search queries, incorporating temporal and cluster features to identify correct interpretations and reduce the need for follow-up searches.

Benefits of technology

This approach reduces the cost and time required for evaluating search query quality, improves network efficiency, and enhances user satisfaction by minimizing incorrect results and unnecessary re-searching, while maintaining high accuracy even with reduced manual training data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564326000001
    Figure 0007564326000001
  • Figure 0007564326000002
    Figure 0007564326000002
  • Figure 0007564326000003
    Figure 0007564326000003
Patent Text Reader

Abstract

A method for evaluating an interpretation of a search query is disclosed. The method includes receiving, by one or more processing circuits, a training dataset. The method includes training a first model using the training dataset. The first model is trained to evaluate whether a human interpretation of the search query is correct. The method includes receiving a search query and the human interpretation of the search query. The method includes using the first model to determine an initial assessment of whether the human interpretation of the search query is correct. The method includes generating a second model using the initial assessment from the first model, temporal features related to the search query, and cluster features related to the search query, and using the second model to determine a final assessment of whether the human interpretation of the search query is correct.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 047,039, filed July 1, 2020, the entire contents of which are incorporated herein by reference. [Background technology]

[0002] In many systems, measuring the quality of an interpretation of a search query involves using a user interface interaction, such as a selection of a result of a search query, instead of correctly interpreting the search query and providing the appropriate result. However, in some implementations of answers to natural language search queries, the results to a search query are drafted in a panel as soon as the search query is entered. Therefore, it is not possible to analyze the interaction signal to measure the quality of the results provided in response to the search query. Another method of measuring the quality of an answer to a search query is to use human evaluation to rate the quality of the answer. However, sending the interpretation of a search query and the results to humans to manually rate the quality can be costly and time consuming. Furthermore, using humans to evaluate the quality of an interpretation of a search query becomes excessively difficult when search queries are scaled to a huge number of languages. Therefore, there is a need for a predictive method in evaluating the accuracy of an interpretation of a natural language search query to increase the efficiency and cost of evaluating the quality of analysis data and improve the quality of the results returned by the search query. Summary of the Invention [Means for solving the problem]

[0003] An aspect of the present disclosure relates to a method for evaluating the accuracy of a human interpretation of a search query. The method may include receiving, by one or more processing circuits, a training dataset. The training dataset may include a plurality of past search queries, a human interpretation for each of the plurality of past search queries, and a human-rated label for each of the plurality of past search queries, whether the human interpretation was correct. The method may include training, by the one or more processing circuits, a first model using the training dataset. The first model may be trained to evaluate whether the human interpretation of the search query is correct. The method may include receiving, by the one or more processing circuits, a search query, the search query including one or more words entered via a user interface to request desired information, and receiving a human interpretation of the search query. The human interpretation may include one or more words that define an interpretation of the desired information. The method may include determining, by the one or more processing circuits, an initial evaluation of whether the human interpretation of the search query is correct using the first model. The method may include generating, by the one or more processing circuits, a second model using an initial assessment from the first model, temporal features for the search query, and cluster features for the search query. The method may include determining, by the one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model.

[0004] In some implementations of the method, the search query may be a first search query. In some implementations of the method, the method may include determining, by one or more processing circuits, whether the first search query is associated with a second search query received within a predetermined time interval after the first search query. In some implementations of the method, the method may include receiving, by one or more processing circuits, token embeddings from the first model for each of the first and second search queries. In some implementations of the method, the tokens may be words in the search query. In some implementations of the method, the method may include determining, by one or more processing circuits, a vector sentence representation for each of the first and second search queries by averaging token embeddings from the first model for each of the first and second search queries.

[0005] In some implementations of the method, the first model may be pre-trained on a set of natural language data, and the first model may be trained using a training dataset to tailor the first model to a particular classification problem.

[0006] In some implementations of the method, the method may include analyzing, by one or more processing circuits, the first and second search queries using a distance algorithm. In some implementations of the method, the distance algorithm may be at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

[0007] In some implementations of the method, the method may include determining, by the one or more processing circuits, whether the second search query is a search refinement of the first search query. In some implementations of the method, the search refinement may be a weighted indication of an incorrect human interpretation of the search query.

[0008] In some implementations of the method, the method may include generating, by the one or more processing circuits, a cluster of search queries based at least in part on a similarity between the search queries in the cluster. In some implementations of the method, the method may include updating, by the one or more processing circuits, the generated cluster in response to receiving a new search query.

[0009] In some implementations of the method, the method may include determining, by the one or more processing circuits, whether an input to view a report for the search query is received via a user interface. In some implementations of the method, the input to view the report may be a weighted indication of a correct human interpretation of the search query.

[0010] Another aspect of the present disclosure relates to a system configured to evaluate the accuracy of a human interpretation of a search query. The system may include one or more hardware processors configured with machine-readable instructions. The processor may be configured, by one or more processing circuits, to receive a training dataset. The training dataset may include a plurality of past search queries, a human interpretation for each of the plurality of past search queries, and a human-rated label for each of the plurality of past search queries, whether the human interpretation was correct. The processor may be configured, by one or more processing circuits, to train a first model using the training dataset. The first model may be trained to evaluate whether the human interpretation of the search query is correct. The processor may be configured, by one or more processing circuits, to receive a search query, the search query including one or more words entered via a user interface to request desired information, and to receive a human interpretation of the search query. The human interpretation may include one or more words that define an interpretation of the desired information. The processor may be configured, by one or more processing circuits, to determine an initial evaluation of whether the human interpretation of the search query is correct using the first model. The processor may be configured, by the one or more processing circuits, to generate a second model using the initial assessment from the first model, the temporal features for the search query, and the cluster features for the search query. The processor may be configured, by the one or more processing circuits, to determine a final assessment of whether the human interpretation of the search query is correct using the second model.

[0011] In some implementations of the system, the search query may be a first search query. In some implementations of the system, the processor may be configured, by one or more processing circuits, to determine whether the first search query is associated with a second search query received within a predetermined time interval. In some implementations of the system, the processor may be configured, by one or more processing circuits, to receive token embeddings from the first model for each of the first and second search queries. In some implementations of the system, the tokens may be words in the search query. In some implementations of the system, the processor may be configured, by one or more processing circuits, to determine a vector sentence representation for each of the first and second search queries by averaging the token embeddings from the first model for each of the first and second search queries.

[0012] In some implementations of the system, the first model may be pre-trained on a set of natural language data, and the training dataset is used to train the first model to tailor the first model to a particular classification problem.

[0013] In some implementations of the system, the processor may be configured, by the one or more processing circuits, to analyze the first and second search queries using a distance algorithm. In some implementations of the system, the distance algorithm may be at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

[0014] In some implementations of the system, the processor may be configured, via the one or more processing circuits, to determine whether the second search query is a search refinement of the first search query. In some implementations of the system, the search refinement is a weighted indication of an incorrect human interpretation of the search query.

[0015] In some implementations of the system, the processor may be configured, by the one or more processing circuits, to generate clusters of search queries based at least in part on similarities between the search queries in the clusters. In some implementations of the system, the processor may be configured, by the one or more processing circuits, to update the generated clusters in response to receiving a new search query.

[0016] In some implementations of the system, the processor may be configured by the one or more processing circuits to determine whether an input to view a report for the search query is received via a user interface. In some implementations of the system, the input to view the report may be a weighted indication of a correct human interpretation of the search query.

[0017] Yet another aspect of the disclosure relates to a non-transitory computer-readable storage medium embodied with instructions, the instructions executable by one or more processors to perform operations for evaluating accuracy of a human interpretation of a search query. The operations may include receiving, by one or more processing circuits, a training dataset. The training dataset may include a plurality of past search queries, a human interpretation for each of the plurality of past search queries, and a human-rated label for each of the plurality of past search queries of whether the human interpretation was correct. The operations may include training, by the one or more processing circuits, a first model using the training dataset. The first model may be trained to evaluate whether the human interpretation of the search query is correct. The operations may include receiving, by the one or more processing circuits, a search query, the search query including one or more words entered via a user interface to request the desired information, and receiving a human interpretation of the search query. The human interpretation may include one or more words that define an interpretation of the desired information. The operations may include determining, by the one or more processing circuits, an initial assessment of whether the human interpretation of the search query is correct using the first model. The operations may include generating, by the one or more processing circuits, a second model using the initial assessment from the first model, the temporal features for the search query, and the cluster features for the search query. The operations may include determining, by the one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model.

[0018] In some implementations of the computer-readable storage medium, the search query may be a first search query. In some implementations of the computer-readable storage medium, the operation may include determining, by one or more processing circuits, whether the first search query is associated with a second search query received within a predetermined time interval. In some implementations of the computer-readable storage medium, the operation may include receiving, by one or more processing circuits, token embeddings from the first model for each of the first and second search queries. In some implementations of the computer-readable storage medium, the tokens may be words in the search query. In some implementations of the computer-readable storage medium, the operation may include determining, by one or more processing circuits, a vector sentence representation for each of the first and second search queries by averaging the token embeddings from the first model for each of the first and second search queries.

[0019] In some implementations of the computer-readable storage medium, the first model may be pre-trained on a set of natural language data, and the training dataset is used to train the first model to tailor the first model to a particular classification problem.

[0020] In some implementations of the computer-readable storage medium, the operations may include analyzing, by one or more processing circuits, the first and second search queries using a distance algorithm. In some implementations of the computer-readable storage medium, the distance algorithm may be at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

[0021] In some implementations of the computer-readable storage medium, the operations may include determining, by the one or more processing circuits, whether the second search query is a search refinement of the first search query. In some implementations of the computer-readable storage medium, the search refinement may be a weighted indication of an incorrect human interpretation of the search query.

[0022] In some implementations of the computer-readable storage medium, the operations may include generating, by the one or more processing circuits, a cluster of search queries based at least in part on a similarity between the search queries in the cluster. In some implementations of the computer-readable storage medium, the operations may include updating, by the one or more processing circuits, the generated cluster in response to receiving a new search query.

[0023] Details of one or more implementations of the subject matter described herein are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. [Brief description of the drawings]

[0024] [Figure 1] 1 is a block diagram of a system configured to evaluate the accuracy of human interpretation of a search query and an associated environment, according to an example implementation. [Diagram 2] 2 is a block diagram of the system of FIG. 1 configured to evaluate the accuracy of human interpretation of a search query, according to an example implementation. [Diagram 3] 1 is a flow diagram of a process for evaluating the accuracy of a human interpretation of a search query, according to an example implementation. [Figure 4] 1 is a flow diagram of a process for analyzing a search query to evaluate whether a human interpretation of the search query is an accurate interpretation, according to an example implementation. [Diagram 5] 1 is a flow diagram of a process used to evaluate the accuracy of a human interpretation of a search query, according to an example implementation. [Figure 6] 1 is a flow diagram of a process for using clusters to evaluate the accuracy of a human interpretation of a search query, according to an example implementation. [Figure 7]2 is a block diagram of inputs and outputs for the first model and the final model used by the system of FIG. 1 according to an example implementation. [Figure 8] 2 is a diagram of a structure of a first model used by the system of FIG. 1 according to an exemplary implementation. [Figure 9] FIG. 2 illustrates a user interface for entering a search query and viewing a human interpretation of the search query and results, according to an example implementation. [Figure 10] FIG. 1 is a block diagram of a computing system in accordance with an example implementation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] Following below is a more detailed description of various concepts related to evaluating the quality of human interpretation of natural language search queries, as well as implementations of methods, apparatus, and systems for providing information using computer networks. The various concepts introduced above and discussed in more detail below may be implemented in any of a number of ways, as the concepts described are not limited to any particular implementation manner. Examples of specific implementations and applications are provided primarily for illustrative purposes.

[0026]

[0004] Referring generally to the drawings, various exemplary systems and methods for providing query results to content providers are shown. More particularly, the present disclosure relates to systems and methods for evaluating the accuracy of human interpretations of search queries (e.g., natural language search queries).

[0027] To produce quality data results for a search query, the system and method rely on a correct interpretation of the type of information desired by a user from the search query. Thus, the system and method described herein relates to a method for automatically evaluating whether a human interpretation of a natural language search query is a correct interpretation of the type of information desired. For example, the search query "What pages do people spend the most time on" has a correct human interpretation of "Top pages by average time to page". As another example, the search query "Slowest pages" may have an incorrect human interpretation of "Bottom pages by page views" and a correct human interpretation of "Bottom pages by average page load time".

[0028] In a typical system, user interface interactions such as the selection (e.g., clicking) of a particular result are analyzed to determine whether the search query was interpreted correctly, thus providing more appropriate and accurate results. However, in some systems, user interaction signals may not be taken into account to determine the quality of the interpretation for the search query. For example, in some systems, a single, best result for a search query may be selected and displayed in a results panel as soon as the user enters the search query. In other systems, manual input from a human is used to evaluate the quality of an answer to a search query. Using an individual to evaluate the accuracy of an interpretation for a search query may require an excessive amount of time and cost. Furthermore, using human evaluation to determine the quality of an interpretation for a search query becomes particularly challenging as the volume of search queries increases to include several languages. Thus, a more scalable predictive method for evaluating an interpretation is disclosed to beneficially reduce the time and cost required in evaluating the quality of an answer to a natural language search query.

[0029] Furthermore, it is desirable to answer search queries in a manner that avoids the need for users to submit follow-up search queries because a first search query was answered incorrectly. If a search query is interpreted incorrectly by the system, another search query needs to be submitted and processed to provide new results for the subsequent search query. This additional processing can waste valuable server and network resources, causing greater inefficiencies in the overall computing system that can become increasingly costly as problems and solutions scale to multiple languages. Avoiding resubmitting search queries, given the frequency of search queries occurring from moment to moment, can prevent unnecessary network packets from being sent and inefficient use of server time. Thus, reducing the frequency of resubmitting previously submitted search queries can advantageously improve network usage and bandwidth efficiency. Furthermore, a method for preventing users from having to submit follow-up search queries because a first search query was answered incorrectly can reduce the likelihood that users will abandon the analysis service due to inaccurate results.

[0030] The prediction approach allows a natural language processing (NLP) model, such as a bidirectional encoder representations from transformers (BERT) model, to be pre-trained using large-scale linguistic data, such as Wikipedia, and then further trained (i.e., fine-tuned) using a dataset of search queries and interpretations of the search queries that have been rated by humans for quality. After training the NLP model to evaluate whether the human interpretation of the search query is correct, the prediction method generates a new, final model, such as a logistic regression model, that is used to determine a final assessment (e.g., prediction) of whether the human interpretation of the search query is correct. The NLP model is also used to embed the search query for clustering. These cluster features are then used as inputs for the final model, such as how often on average a search query is issued in a cluster and how many different users issued a search query in a cluster. The embeddings from the NLP model, along with other temporal features about the search query, are further used to determine whether similar search queries are reissued within a short time period, which can be used as an indicator to assess that the original human interpretation of the search query was incorrect.

[0031] The advantage of fine-tuning an NLP model may be that the training data set consisting of search queries and human interpretations rated by humans can be small and still produce an accurate model. The model can still maintain a high level of accurate evaluation because the overall, pre-trained model can already effectively represent many NLP concepts. Thus, the prediction method disclosed herein still produces accurate evaluations (e.g., predictions) as in previous methods, but requires much less manual classification to train the model.

[0032] In this disclosure, the terms "human interpretation," "interpretation," and "answer" to a search query are used interchangeably to refer to an interpretation of what information is desired from a search query. For example, a search query "slowest pages" may have a given interpretation of "bottom pages by page views." As another example, a search query "countries with most users" may have a given answer of "top countries by users." Additionally, the terms "query," "search query," and "question" are used interchangeably herein to describe input from a user about desired information in a single search.

[0033] In situations where the systems discussed herein may collect and / or use personal information about a user or may utilize personal information, the user may be given the opportunity to control whether a program or function may collect personal information (e.g., information about the user's social network, social behavior or activity, the user's preferences, the user's current location, etc.) or to control whether and / or how to receive content from a content server that may be more relevant to the user. Furthermore, certain data may be anonymized in one or more ways such that personally identifiable information is removed when generating parameters (e.g., demographic parameters) before being stored or used. For example, the user's identification information may be anonymized such that personally identifiable information cannot be determined about the user, or the user's geographic location may be generalized (such as to the city, zip code, or state level) when location information is obtained such that the user's specific location cannot be determined. Thus, the user can control how information is collected about the user and used by the content server. Furthermore, because the individual user information itself is not expressed to the content provider, the content provider cannot discern interactions associated with a particular user.

[0034] Referring now to FIG. 1, in a brief overview, a block diagram of a computing environment for evaluating the accuracy of a human interpretation of a search query (e.g., a natural language search query) is shown, according to an example implementation. One or more user devices 104 may be used by a user to perform various actions and / or access various types of content, some of which may be provided over a network 102 (e.g., the Internet, a LAN, a WAN, etc.). For example, the user devices 104 may be used to access web pages (e.g., using an Internet browser), media files, and / or any other type of content. A content management system 108 may be configured to select content for display to a user in a resource (e.g., a web page, an application, etc.), and to provide content items 128 from a content database 126 to the user device 104 for display in the resource. The content items 128 from which the content management system 108 selects may be provided by one or more content providers over the network 102 using one or more content provider devices 106. In some implementations, content management system 108 may select one or more content items 128 from one or more content providers among multiple content items from multiple content providers. In such implementations, content management system 108 may determine content to be exposed in one or more content interfaces of a resource (e.g., a web page, an application, etc.) presented on user device 104 based at least in part on metrics or other characteristics of the content items or content providers.

[0035] With more particular reference to FIG. 1 , the user devices 104 and / or content provider devices 106 may be any type of computing device (e.g., having a processor and memory or other type of computer-readable storage medium), such as a television and / or set-top box, a mobile communication device (e.g., a cellular phone, a smartphone, etc.), a computer and / or media device (a desktop computer, a laptop or notebook computer, a netbook computer, a tablet device, a gaming system, etc.), or any other type of computing device. In some implementations, one or more of the user devices 104 may be a set-top box or other device for use with a television set. In some implementations, content may be provided via web-based applications and / or applications residing on the user device 104. In some implementations, the user devices 104 and / or content provider devices 106 may be designed to use various types of software and / or operating systems. In various exemplary implementations, the user devices 104 and / or content provider devices 106 may be equipped with and / or associated with input / output devices 110. For example, the input devices may include one or more user input devices (e.g., a keyboard, a mouse, a remote control, a touch screen, etc.) The input / output devices 110 may also include one or more display devices (e.g., a television, monitor, CRT, plasma, LCD, LED, touch screen, etc.) or other devices for outputting information to a user of the user device 104 and / or a user of the content provider device 106.

[0036] User devices 104 and / or content provider devices 106 may be configured to receive data from various sources using network 102 via network interfaces 112. In some implementations, network 102 may include a computing network (e.g., a LAN, a WAN, the Internet, etc.) to which network interfaces 112 of user devices 104 and / or content provider devices 106 may be connected via any type of network connection (e.g., wired, such as Ethernet, telephone lines, power lines, etc., or wireless, such as WiFi, WiMAX, 3G, 4G, satellite, etc.). In some implementations, network 102 may include a media distribution network, such as cable (e.g., coaxial metallic cable), satellite, fiber optics, etc., configured to distribute media programming and / or data content.

[0037] In some implementations, the content management system 108 is configured to select third-party content items to be presented on the resource. The content management system 108 includes a processor 120, a processing circuit 118, and a memory 122. The memory 122 may have instructions stored thereon that, when executed by the processor 120, cause the processing circuit 118 to perform various operations described herein. The operations described herein may be implemented using software, hardware, or a combination thereof. The processor 120 may include a microprocessor, an ASIC, an FPGA, or the like, or a combination thereof. In many implementations, the processor 120 may be a multi-core processor or an array of processors. The processor 120 may implement or facilitate a secure environment. For example, the processor 120 may implement Software Guard Extensions (SGX) to define a dedicated area (e.g., an isolated area) in the memory 122. The memory 122 may include, but is not limited to, electronic, optical, magnetic, or any other storage device capable of providing program instructions to the processor 120. Memory 122 may include a floppy disk, a CD-ROM, a DVD, a magnetic disk, a memory chip, a ROM, a RAM, an EEPROM, an EPROM, a flash memory, an optical media, or any other suitable memory from which processor 120 can read instructions. The instructions may include code from any suitable computer programming language, such as, but not limited to, C, C++, C#, Java, JavaScript, Perl, HTML, XML, Python, and Visual Basic.

[0038] The memory 122 includes a content database 126 and a content analysis circuit 124. In some implementations, the content analysis circuit 124 is configured to conduct an auction or bidding process. The content analysis circuit 124 may be configured to select one or more content items 128 of one or more winners of the auction or bidding process for display on the resource. In some implementations, the content analysis circuit 124 is further configured to use a quality score (i.e., a measure of how likely it is that a user of the user device 104 will interact with or take a conversion action associated with the content item 128) or other metric during the process of selecting the content item 128. Content providers, in some implementations, may create content campaigns or otherwise provide various settings or guidelines to the content management system 108. Such settings or guidelines may govern how the content provider participates in the auction or bidding process (e.g., how much it will cost to bid in a given auction, the total budget for the content provider (per week, per day, or otherwise), etc.). Such settings or guidelines may be set based on various metrics, such as cost per impression or cost per thousand impressions (CPM), cost per click (CPC), or cost per acquisition (CPA) or cost per conversion. Such settings or guidelines may further be set based on the type of platform on which the content item 128 should be served (e.g., mobile, desktop, etc.), on which type of resource the content item 128 should be served (e.g., search result page), the geographic location of the user device displaying the resource, etc. In some implementations, the settings or guidelines provided to the content management system 108 are stored in the content database 126.

[0039] The query processing system 150 may facilitate evaluation of the accuracy of a human interpretation of a search query. In various implementations, the query processing system 150 receives user interaction data from the content provider device 106 and / or the user device 104 from an analysis session. The query processing system 150 may also receive client data and content data for various client providers from the content management system 108. In some implementations, the query processing system 150 performs various functions on the session data and client data to generate an estimation of whether a given human interpretation of a search query is correct. In various implementations, the query processing system 150 is a secure environment that does not allow access to non-anonymous data. The query processing system 150 may be a server, a distributed processing cluster, a cloud processing system, or any other computing device. The query processing system 150 may include or execute at least one computer program or at least one script. In various implementations, the query processing system includes a combination of software and hardware, such as one or more processors configured to execute one or more scripts. Query processing system 150 is described in more detail below with reference to FIG.

[0040] FIG. 2 illustrates a block diagram of a query processing system 150 configured to evaluate whether a human interpretation of a search query is correct, according to some implementations. The query processing system 150 is shown to include a processing circuit 202 having a processor 204 and a memory 206. The memory 206 may have instructions stored thereon that, when executed by the processor 204, cause the processing circuit 202 to perform various operations described herein. The operations described herein may be implemented using software, hardware, or a combination thereof. The processor 204 may include a microprocessor, an ASIC, an FPGA, or the like, or a combination thereof. In many implementations, the processor 204 may be a multi-core processor or an array of processors. The processor 204 may implement or facilitate a secure environment. For example, the processor 204 may implement Software Guard Extensions (SGX) to define a dedicated region (e.g., an isolated region) in the memory 206. The memory 206 may include, but is not limited to, electronic, optical, magnetic, or any other storage device capable of providing program instructions to the processor 204. The memory 206 may include a floppy disk, a CD-ROM, a DVD, a magnetic disk, a memory chip, a ROM, a RAM, an EEPROM, an EPROM, a flash memory, an optical media, or any other suitable memory from which the processor 204 can read instructions. The instructions may include code from any suitable computer programming language, such as, but not limited to, C, C++, C#, Java, JavaScript, Perl, HTML, XML, Python, and Visual Basic. The memory 206 may include a model training circuit 208, a cluster generation circuit 210, a similarity scoring circuit 212, an interpretation evaluation circuit 214, and a database 220.

[0041] The model training circuit 208 may train a first model to generate an initial assessment of the accuracy of the human interpretation. In various implementations, the model training circuit 208 receives a training data set including a set of search queries, a given human interpretation of the search queries, and a human-labeled value of whether the interpretation was accurate. The model training circuit 208 may train the first model with the training data set. Further, the model training circuit 208 may generate and train a second, final model by combining the output of the initial assessment from the first model with one or more other inputs related to the search queries. For example, the model training circuit 208 may receive cluster data for the search queries from the cluster generation circuit 210 for use in training the second model. In various implementations, the model training circuit 208 may use the first model as a service to generate token embeddings for the search queries. The model training circuit 208 may then average the token embeddings for the search queries to generate a fixed vector sentence representation for each search query.

[0042] The cluster generation circuit 210 may determine cluster characteristics for the search query according to various implementations. In addition to determining whether the search query should be grouped with an existing cluster, the cluster generation circuit 210 may create a new cluster for the search query. In some implementations, the cluster generation circuit 210 is configured to apply clustering techniques, such as K-means clustering, density-based clustering, and the like, to assign the search query to a cluster. The cluster generation circuit 210 may control the size of one or more clusters based on whether a cluster of "similar search queries" or a cluster of "broad search query types" is desired. In some implementations, the cluster generation circuit 210 assigns more recent search queries to clusters first before assigning search queries that have been stored in the database 220 for an extended period of time. Thus, the query processing system 150 may prioritize clustering and analyzing more recent search queries over search queries issued further in the past. In some implementations, the cluster generation circuit 210 assigns search queries to clusters as additional serving signals while connected to the network 102. In response to a connection to the network 102 going down (i.e., offline), the cluster generation circuit 210 may use the clustering output to create a dashboard of clusters. Additionally, the cluster generation circuit 210 may be configured to update existing clusters in response to receiving a new search query.

[0043] The similarity scoring circuit 212 may receive a vector sentence representation of a search query and determine a similarity score between the two search queries. For example, the similarity scoring circuit 212 may use a similarity method, such as a cosine similarity algorithm, on the vector sentence representation to calculate a value representing how similar the search query is to another search query. Additionally, the similarity scoring circuit 212 may receive a vector sentence representation of a search query and an associated given interpretation from the model training circuit 208 to determine how similar the search query is to the given interpretation of the search query. The similarity scoring circuit 212 may calculate how similar the human interpretation is to the corresponding search query on a predefined scale (e.g., 0 to 1, 0% to 100% similar, etc.). This calculation may then be used by the interpretation evaluation circuit 214 in evaluating whether the interpretation is correct. In various implementations, the similarity scoring circuit 212 also analyzes the search queries to compare similarities. The similarity scoring circuit 212 may then use a distance algorithm, such as a cosine distance algorithm or a Euclidean distance algorithm, to assess the similarity between the search query and / or a given answer to the search query.

[0044] The interpretation evaluation circuit 214 includes an initial evaluation circuit 216 and a final evaluation circuit 218 according to some implementations. The initial evaluation circuit 216 may use the first model trained by the model training circuit 208 to generate a first estimate of whether there was an explicit error in the interpretation of the search query. In some implementations, the initial evaluation circuit 216 may determine the first evaluation based on the calculations from the similarity scoring circuit 212 and the cluster generation circuit 210. For example, if a user submits a search query that has been submitted historically by a client over an extended period of time, the frequency with which the user continues to submit the same query may be an indicator of a correct interpretation of the search query. The final evaluation circuit 218 may use the second, holistic model generated and trained by the model training circuit 208 to determine an estimate of whether the human interpretation of the search query is correct. In some implementations, the final evaluation circuit 218 provides an estimate of the overall evaluation by evaluating factors such as whether the user selected a report in an insight card about the answer to the search query and whether additional search refinement queries were made after the first, original search query was issued. In various implementations, the final evaluation circuit 218 outputs the evaluation to one or more user devices 104. The final evaluation circuit 218 may determine a confidence level of the overall evaluation. For example, the final evaluation circuit 218 may output either a 1 or a 0 for whether the interpretation was accurate along with a percentage for the confidence of the determination. In various implementations, the final evaluation circuit 218 weights factors such as whether a subsequent search refinement query was issued and whether the user selected an option to view the report differently depending on the configured settings for the query processing system 150.

[0045] The database 220 may store and update search queries that may be used by the systems disclosed herein. Additionally, the database 220 may store generated query clusters. In various implementations, the search query does not include a date. For example, if a user enters a search query such as "how many sessions have occurred since November 2019," the date in the search query may be stripped out and not considered by the query processing system 150. In other implementations, the search query that includes a date is stored in the database 220 and used in evaluating the accuracy of human interpretation of the search query. The database 220 may include one or more storage media. The storage media may include, but are not limited to, magnetic storage, optical storage, flash storage, and / or RAM. The query processing system 150 may implement or facilitate various APIs for performing database functions (i.e., managing data stored in the database 220). The APIs may be, but are not limited to, SQL, ODBC, JDBC, and / or any other data storage and manipulation API.

[0046] In some implementations, the query processing system 150 may include one or more computing platforms configured to communicate with remote platforms according to a client / server architecture, a peer-to-peer architecture, and / or other architectures. The remote platforms may be the same as or similar to the user devices 104 described in connection with FIG. 1. The remote platforms may be configured to communicate with other remote platforms via the computing platforms and / or according to a client / server architecture, a peer-to-peer architecture, and / or other architectures.

[0047] 2 as being implemented within a single processing unit, it should be understood that in implementations in which the processor 204 includes multiple processing units, one or more of the circuits 208, 210, 212, 214, 216, and 218 may be implemented remotely from the other circuits. The description of the functionality provided by the different circuits 208, 210, 212, 214, 216, and 218 is for illustration purposes and is not intended to be limiting, as any of the circuits 208, 210, 212, 214, 216, and 218 may provide more or less functionality than described.

[0048] 3, a flow diagram of a process 300 for evaluating the accuracy of a human interpretation of a search query is shown. Process 300 may be performed, for example, by query processing system 150 described with reference to Figures 1-2. In some implementations, process 300 is performed in response to a new search query being received by query processing system 150.

[0049] FIG. 3 illustrates a process 300 according to one or more implementations. The process 300 may be practiced by one or more components of the query processing system 150 in the computing environment 100. At 302, the process 300 includes receiving a training data set by one or more processing circuits. In some implementations, the model training circuit 208 is configured to perform the operations at 302. In other implementations, the operations described at 302 may be performed by one or more hardware processors configured by machine-readable instructions including the same or similar circuitry as the model training circuit 208. The training data set may include a set of past search queries, human interpretations of the past search queries, and human-rated labels for whether the human interpretations were correct. Thus, the training data set may include three different types of associated data points: past search queries, human interpretations, and human-rated labels. In some implementations, the past search query data may be associated with one or more human interpretations and corresponding human-rated labels. For example, the historical search query "slowest pages" may be associated with a human interpretation value of "lowest pages by page views" and a human-rated label of "incorrect." Additionally, the historical search query "slowest pages" may be associated with a human interpretation value of "lowest pages by average page load time" and a human-rated label of "correct" in a different set in the training dataset.

[0050] In some examples, each set in the training dataset also includes a score of the results for the search query, a status of the results for the search query, whether the user selected to view a report in the results portion of the search query (e.g., an insight card), and / or whether the user selected a different suggested report. Additionally, the set may include subsequent search queries and human interpretations within a short, predefined time period of the labeled search query. For example, the set may also include the subsequent search query submitted by the user after the labeled search query, a certain amount of time from the first search query that the subsequent search query was submitted, a human interpretation of the subsequent search query, whether the subsequent search query was a search refinement of the original, first search query, and a similarity score within the original, first search query.

[0051] At 304, the process 300 includes training a first model using the training dataset by one or more processing circuits. The first model may be trained to evaluate whether a human interpretation of the search query is correct. In some implementations, the model training circuit 208 is configured to perform the operations described in 304. In other implementations, the operations performed at 304 may be performed by one or more hardware processors configured with machine-readable instructions, including circuits that are the same or similar to the model training circuit 208. In some implementations, the first model is a Bidirectional Encoder Representation by Transformers (BERT) model. The first model may initially be pre-trained on a large corpus of language data, such as Wikipedia. In some implementations, the operations performed at 304 are to further train (i.e., fine-tune) the first model with information from the received training dataset for a particular classifier. The first model may be trained to compute a direct evaluation of whether a human interpretation of the search query is correct. Furthermore, the first model may be used as an embedding layer to calculate similarities between search queries within a cluster or in different clusters, and between a search query and a subsequent search query.

[0052] At 306, the process 300 includes receiving, by one or more processing circuits, a search query and a human interpretation of the search query. The search query includes one or more words entered via a user interface to request the desired information. The human interpretation may include one or more words that define an interpretation of the desired information. For example, the search query may be "how many users check out?" and the human interpretation associated with the search query may be "number of products check out." In some implementations, the interpretation evaluation circuit 214 is configured to perform the operations at 306. The interpretation evaluation circuit 214 may receive the search query and the human interpretation of the search query from the content management system 108 via the network 102.

[0053] At 308, the process 300 includes determining, by one or more processing circuits, an initial assessment of whether the human interpretation of the search query is correct using the first model. The operations described at 308 may be performed by the initial assessment circuit 216 according to some implementations. The first model may be used by the initial assessment circuit 216 to assess whether the human interpretation of the search query is correct by comparing the search query to a given answer. For example, the search query and the given interpretation may be input to the first model, which may output a probability that the interpretation is an incorrect answer. The initial assessment circuit 216 may analyze the similarity score of the input search query and the human interpretation calculated by the similarity scoring circuit 212 to make the first estimation. The initial assessment circuit 216 may also receive a comparison of the search query and any potential refinements to the search query from the similarity scoring circuit 212 to determine whether the subsequent search query was a refinement of the first search query. For example, the similarity scoring circuit 212 may output a similarity between the search queries by comparing an average of the token embeddings (e.g., vector representations) of the first query and the subsequent search query from the model training circuit 208. Taking the average of the token embeddings of the search query and the subsequent search query may include an average pooling of the penultimate hidden layer of each token in the sentence to achieve a fixed representation of the sentence in the query.

[0054] At 310, the process 300 includes generating, by one or more processing circuits, a second model using the initial assessment from the first model, the time features for the search query, and the cluster features for the search query. In some implementations, the model training circuit 208 is configured to perform the operations performed at 310. In some implementations, the second model generated and trained by the model training circuit 208 is a logistic regression model. The model training circuit 208 may receive an initial assessment of whether the human interpretation is correct for the search query from the initial assessment circuit 216. In various implementations, the model training circuit 208 receives the initial assessment from the first model of whether the human interpretation is correct along with session data, client data, and user data. The session data may include the duration of the session, the number of search queries placed during the session, the timing of each search query during the session, user interactions with the results of the search queries during the session (e.g., selection to view a report), etc. The client data may include information about the content provider, such as the most commonly submitted search queries for the client, data about the content provided by the client, past analytics results for the client, etc. In some implementations, the user data includes information about a particular user of a content provider device (e.g., the content provider device 106), such as past search queries submitted by the user, average session time for the user, etc. The data provided as input to the second model to determine the final rating may be retrieved from the database 220 according to some implementations. In other implementations, the model training circuit 208 may receive input for the final, second model from the content management system 108 over the network 102.

[0055] The cluster features for the search query may include the closest cluster to the search query, whether a subsequent, second search query is in the cluster that contains the search query, user data associated with the search query in the cluster that contains the search query, or session data associated with the search query in the cluster that contains the search query. For example, the model training circuit 208 may be configured to train the second model to analyze the number of different clusters into which a user places a search query during a session on average (e.g., cluster diversity), the variation of cluster membership by vertical, country, etc. (e.g., cluster segmentation), and the largest cluster in size among the search queries with predicted explicit errors (e.g., most frequently incorrectly answered search queries). In addition, the cluster with the lowest answer coverage among all search queries (e.g., search query growth), whether a subsequent search query issued by a user is in the same cluster as the previous search query (e.g., search refinement), the closest cluster to the search query (e.g., alternative interpretation), and which search queries should be rated (e.g., sampling efficiency) may also be analyzed by the model training circuit 208 when training the second model. These cluster features associated with the search query may be used by a second model generated and trained by the model training circuit 208 to determine whether the human interpretation of the search query is accurate.

[0056] In some implementations, the time characteristics for the search query include how often the search query is issued within a past time period, how often a search query in a cluster of search queries is issued, or how often the search query is suggested as an input via a user interface. For example, the time characteristics for the search query may include the time between when the user makes the search query and other search queries issued during a given time period either before or after the search query. The time characteristics for the search query may also include whether the search query was made by the user during a previous user session. For example, the model training circuit 208 may analyze whether the search query is a historical search query of the user stored in the database 220. Furthermore, the second model may be trained by the model training circuit 208 to take into account how often the user issues a search query in the past on average, and how often the user issues a search query in the same cluster as a past search query on average. In some implementations, the model training circuit 208 uses additional inputs to generate and train the second model to make a final assessment of the accuracy of human interpretation of the search query.

[0057] At 312, the process 300 includes determining, by one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model. In some implementations, the operations performed at 312 may be performed by the final assessment circuit 218. The final assessment circuit 218 may use the second model to generate a final assessment of whether the human interpretation is correct based on receiving a similarity score with a subsequent search query issued by the user from the similarity scoring circuit 212. Furthermore, the final assessment circuit 218 may consider a user interaction with a report in a results area for the search query as an indicator of whether the human interpretation is correct, as described in more detail below. In some implementations, the final assessment is a value of 0 for a correct interpretation or a value of 1 for an incorrect interpretation. The final assessment determined by the second model via the final assessment circuit 318 may be associated with a confidence score, such as a percentage value for the confidence that the second model did not make an error in its final assessment. In another implementation, the final assessment circuit 218 is configured to generate a final assessment using the second model, which is a probability that the human interpretation is correct for the search query. For example, the final assessment circuit 218 may determine a 91% output from the second model that the human interpretation for the search query is an accurate answer.

[0058]

[0036] Referring now to Figure 4, a flow diagram of a process 400 for analyzing a search query to evaluate whether a human interpretation of the search query is an accurate interpretation is shown. The process 400 may be performed, for example, by the query processing system 150 described with reference to Figures 1 and 2. Figure 4 illustrates the process 400 according to one or more implementations. In some implementations, the process 400 is performed by the query processing system 150 during the operations performed at 312 in the process 300 (Figure 3).

[0059] At 402, the process 400 includes, according to some implementations, determining by one or more processing circuits whether the first search query is associated with a second search query received within a predetermined time interval. The cluster generation circuit 210 may be configured to perform the operations performed at 402. The cluster generation circuit 210 may determine whether an additional search query has been submitted by a user from the content provider device 106 after the original search query. For example, the search query for which human interpretation is evaluated for accuracy may be a first question from the user, and the second search query may be a follow-up question from the user. In some implementations, the cluster generation circuit 210 may receive session data from the database 220 regarding the subsequent search query.

[0060] At 404, the process 404 includes receiving, by one or more processing circuits according to some implementations, token embeddings from the first model for the first and second search queries. The operations described at 404 may be performed by the model training circuit 208 according to some implementations. The model training circuit 208 may be configured to use the first model to generate token embeddings for each search query analyzed by the query processing system 150. A token is a word in a search query. An embedding is a mathematical representation, e.g., a vector representation, of a word. Thus, similar words have a relatively small distance between their respective embeddings. For example, a token embedding for the word "important" has a smaller distance from a token embedding for the word "significant" than a token embedding for the word "especially." The model training circuit 208 may then send the token embeddings for the search query to the similarity scoring circuit 212 to evaluate how similar the search query is to another search query or how similar the search query is to an interpretation of the search query.

[0061] At 406, the process 400 includes determining, by one or more processing circuits, vector sentence representations for the first and second search queries according to some implementations. The operations performed at 406 may be practiced by the model training circuit 208. The model training circuit 208 may average token embeddings from the first model for each of the first and second search queries to generate a vector sentence representation for each of the first and second search queries. For example, the first model may use an average pooling of token embeddings (i.e., vector representations) for each search query to determine a fixed representation of the sentences in the search queries. The vector sentence representations for the search queries may then be used by the similarity scoring circuit 212 to generate a similarity score between the search queries.

[0062] At 408, the process 400 includes generating, by one or more processing circuits, a similarity score for the first and second search queries according to some implementations. The similarity scoring circuit 212 may be configured to perform the operations performed at 408. The similarity score may be generated by the first model using a similarity-based metric (e.g., a cosine similarity calculation, a Jaccard similarity calculation, etc.) on the vector sentence representations. In some implementations, the similarity score ranges in value from 0 to 1, with 0 occurring when the vector sentence representations are the same. In other implementations, the similarity score may be generated by the similarity scoring circuit 212 on a different scale or as a percentage value. In some implementations, the similarity scoring circuit 212 may be configured to use the first model to analyze the first and second search queries and determine the similarity between the search queries using a distance algorithm, such as a cosine distance algorithm or a Euclidean distance algorithm.

[0063] Turning now to FIG. 5, a flow diagram of a process 500 used to evaluate the accuracy of a human interpretation of a search query is shown, according to an exemplary implementation. The process 500 may be performed, for example, by the query processing system 150 described with reference to FIGS. 1-2. The process 500 may be practiced in response to the operation at 408 being performed with respect to FIG. 4. At 502, the model training circuit 208 may determine whether the second search query is a search refinement of the first search query. The model training circuit 208 may conclude whether the subsequent search query is a search refinement of the first search query based on the value of the similarity score between the search queries from the similarity scoring circuit 212. For example, if the similarity score calculated at 408 of the process 400 is below a predetermined threshold, the model training circuit 208 may determine that the second search query is not a search refinement of the original search query. If the model training circuit 208 determines at 502 that the second search query is not a search refinement, the process 500 continues to 504. At 504, the final evaluation circuit 218 determines a weighted indication of a correct human interpretation for the search query according to some implementations. For example, if the two vector sentence representations of the search query have high similarity scores indicating that the vectors are very different, the final evaluation circuit 218 may evaluate the second search query as an unrelated follow-up question, which is therefore an indication that the interpretation of the first search query is correct.

[0064] However, if at 502 the model training circuit 208 determines that the second search query is a search refinement of the first search query, the process 500 proceeds to 506. For example, if the similarity score between the first search query and the subsequent search query is above a predetermined threshold (e.g., 0.8, 75%, etc.), the second model, via the model training circuit 208, determines that the subsequent search query is a search refinement of the first search query, and the process 500 proceeds to 506. At 506, the final evaluation circuit 218 determines a weighted indication of an incorrect human interpretation of the search query, according to some implementations. For example, if the first search query is "slowest page" with an interpretation of "lowest page by page view" and the subsequent search query is "slowest loading page", the final evaluation circuit 218 determines a weighted indication that the interpretation of "lowest page by page view" may be an incorrect interpretation. The indication is a weighted feature input to the second model in determining an overall evaluation. In some implementations, the final evaluation circuit 218 is configured to train the second model to weight the indications determined in 502, along with other factors, a predetermined amount in an evaluation of whether the interpretation of the search query was correct. Thus, the final evaluation of whether the interpretation of the search query was correct is based on the trained weighting of the indications as well as other feature inputs (e.g., historical search queries and human interpretation data).

[0065] At 508, the process 500 may include, according to some implementations, determining whether an input to view a report for the search query has been received. The final evaluation circuit 218 may be configured to receive session data from the database 220, including information about user interactions during the session in which the search query was issued. For example, the final evaluation circuit 218 may receive data indicating that a user selected an option to view a report in a results area for the search query via a user interface (e.g., user interface 900 (FIG. 9)) of the content provider device 106 or the user device 104. In some implementations, the final evaluation circuit 218 may instead receive the session data from the cluster generation circuit 210 or the model training circuit 208. In some implementations, the final evaluation circuit 218 may be configured to determine at 508 whether a user selected an option to view other suggested reports in the results area of ​​the search query.

[0066] If the final evaluation circuit 218 determines at 508 that a user input has been received to view a report to be displayed in the results area for the search query, the process 500 proceeds to 510. At 510, the final evaluation circuit 218 determines a weighted indication of a correct human interpretation of the search query, according to some implementations. The indication from the user input to view a report in the results area may be weighted more heavily by the final evaluation circuit 218 than other factors when evaluating whether the interpretation is correct. In other implementations, whether the user enters a subsequent search query that is a search refinement of the first search query may be weighted more heavily by the final evaluation circuit 218.

[0067] On the other hand, if at 508 the final assessment circuit 218 determines that no user input was received to view a report for the search query, the process 500 proceeds to 512. At 512, the final assessment circuit 218 may determine a weighted indication of an incorrect human interpretation of the search query. In some implementations, the indications determined at 510 and at 512 may not have equal impact on the final assessment made by the second model of whether the interpretation was correct. For example, receiving a user input to view a report may have a greater impact on the final assessment made by the final assessment circuit 218 than not receiving a user input (i.e., the second model may be trained to weight more heavily).

[0068] Referring now to FIG. 6, a flow diagram of a process 600 for using clusters to evaluate the accuracy of human interpretation of a search query is shown according to some implementations. The query processing system 150 described with reference to FIG. 1 and FIG. 2 may perform the process 600. In some implementations, the process 600 is performed by the query processing system 150 after the operations at 302 and 304 with respect to FIG. 3 are performed. At 602, the process 600 includes generating clusters of search queries based at least in part on the similarity between the search queries in the clusters. In some implementations, the cluster generation circuit 210 may be configured to receive from the model training circuit 208 the vector sentence representations for the search queries generated by the first model. The cluster generation circuit 210 may then use a given clustering technique to assign the search queries to clusters. In some implementations, the clustering technique uses a large value of k to cluster semantically similar search queries.

[0069] At 604, the cluster generating circuit 210 may be configured to receive a new search query according to some implementations. The cluster generating circuit 210 may receive the new search query, for example, from the database 220, from another component of the processing circuit 202, or from the content management system 108. In some implementations, the new search query is a past search query that has been sorted into a cluster. At 606, the process 600 includes updating the generated clusters based on the search queries in the clusters and their similarity to the new search query. The cluster generating circuit 210 may be configured to sort the new search query into a cluster based on a similarity score (e.g., as described at 408 with respect to FIG. 4) with other search queries in the cluster. In some implementations, the cluster generating circuit 210 is configured to search and discover new clusters in addition to assigning the new search query and corresponding interpretation to existing clusters. The cluster generating circuit 210 may generate a cluster dashboard using the clustering output to allow the clusters to be accessed both online and offline. In some implementations, the cluster generation circuitry 210 creates a dashboard for a cluster while disconnected from the network 102. However, while connected to the network 102, the cluster generation circuitry 210 may continually assign search queries to the cluster as additional serving signals.

[0070] In some embodiments, the dashboard created shows various categorizations of errors automatically generated by the overall model via the cluster generation circuit 210. Advantageously, the methods disclosed herein may allow a user to view which search queries have the highest percentage of human interpretation errors and related search queries. For example, the clusters determined by the cluster generation circuit 210 are used for reporting purposes, such as reporting that a search has a certain percentage of human interpretation errors for search queries in cluster A. Cluster A may be characterized by search queries that have similarities with the top 10 most common search queries in the cluster. Thus, information about which human interpretations are generating the most errors may be determined. Typically, humans are used to manually evaluate how to classify different search queries to generate statistics about the search queries and to use in reporting details about the human interpretation errors. Advantageously, the systems and methods disclosed herein facilitate automatic classification of errors in search queries and human interpretations.

[0071] Referring now to FIG. 7, a diagram 700 of a high-level modeling flow of the overall model used by the query processing system described in FIG. 1 and FIG. 2 is shown according to some implementations. The diagram 700 shows the inputs and outputs of the overall model for evaluating the accuracy of human interpretation of a natural language search query used by the query processing system 150. The inputs include a search query 702, an interpretation 704, session data 710, user data 712, and client data 714. The search query 702 may be entered through a user interface by a single search. The single search is a search bar for a user to enter a query into an analysis application. The interpretation 704 is a human interpretation of the search query 702, meaning that the interpretation 704 is a human language interpretation of what the user wants to display as a result in an insight card on the user interface (e.g., insight card 908 in FIG. 9). The method disclosed herein focuses on evaluating whether an explicit error occurred for the search query 702 and the interpretation 704 (i.e., the interpretation 704 is an incorrect interpretation for the search query 702). The search query 702 and the interpretation 704 are used as input for a first model 706 .

[0072] In some implementations, the first model 706 is a BERT model. The first model 706 may support fine-tuning after the first model 706 is pre-trained on a large corpus of language data and then specialized on a smaller corpus of human-rated language data for a particular classification problem. This is beneficial because the first model 706 then requires less manually-evaluated human-rated data, which is costly to collect, to perform the evaluation. Furthermore, fine-tuning the first model 706 may beneficially increase efficiency and improve the bandwidth of the system, such that a smaller amount of human-labeled training set may be used to specialize the first model 706. The session data 710, user data 712, and client data 714, along with the output of an initial evaluation from the first model of whether the interpretation is accurate, are used as inputs for the final model 708. The session data 710 may include information about other search queries submitted during the session, the frequency of search queries submitted, etc. The user data 712 may include statistics about a particular user, such as the average amount of search queries a user issues during a session. In some implementations, the client data 714 may include information about an entire client (e.g., a content provider company), such as the type of content the client provides, the most common types of search queries submitted for the client, etc. The final model 708 may be a combination model that uses the first model 706, as well as various cluster and time features for the search query 702, to identify a rating 716 for the correct interpretation. The rating 716 for the correct interpretation is an estimate of whether the interpretation 704 for the search query 702 is accurate or whether an explicit error occurred for the interpretation 704.

[0073] Turning now to Figure 8, a model architecture for the first model 706 and use cases for the first model 706 are shown according to some implementations. Figure 8 is shown to include an architecture diagram 800 for the first model 706 and a diagram 850 for a particular use case of the first model 706, used in the systems and methods disclosed herein. Diagram 800 illustrates a bidirectional transformer architecture for the first model 706. k represents a token (i.e., roughly a word), and T k denotes a numeric vector that is the representation of each input token in a (bidirectional) context. rm represents a transformer cell. The first model 706 as a BERT model can jointly learn from information about left and right context in all layers, encode words into vectors, and output a numerical vector corresponding to the word. The first model 706 can use a mechanism called self-attention, as opposed to a sequence mechanism as in recurrent neural networks (RNNs). For the transformer cell, each word can be assigned three vectors: a key, a value, and a query. The elements of each of these vectors are learned by the first model 706. Each word can then "query" every other word by calculating a dot product between its query and the key of the other word. This can then yield a weight for each word for each query. For each query, the transformer cell returns a weighted average of the value vectors. Thus, the output of each transformer cell is a vector for every word or query, which is then passed to the feedforward neural network. The process then repeats a number of times depending on the size of the first model 706.

[0074] The use case diagram 850 for the first model 706 illustrates the fine-tuning (i.e., transfer learning) capabilities of the first model 706. In the use case for sentence classification, special tokens are used, which is useful when there is a downstream task for the first model 706 to learn from. The diagram 850 illustrates the incorporation of the first model 706 (e.g., BERT) into an additional output layer. Advantageously, a minimal number of parameters are then used by the model to begin learning. In the diagram 850, E represents the input embedding and T i represents the context representation of token i, [CLS] represents a special symbol for classification output, and [SEP] is a special symbol for separating non-contiguous token sequences. The first model 706 fine-tuning pools the data into a single output token. Once the output token is created, a final model can be used to train the vector representation of the classification output as input and the corresponding label.

[0075] 9, a user interface for submitting a search query and viewing human interpretations and result data for the search query is shown according to some implementations. The user interface 900 is shown to include a single search 902, a human interpretation 904, selectable report options 906, and an insight card 908. The single search 902 may be a search bar for a user to submit a search query and view analytical data for content provided by the content management system 108. In some implementations, the single search 902 is auto-populated with suggestions for the search query based on common search queries submitted by the user in past sessions. In this example implementation, the submitted search query is "Countries with most users" and the corresponding human interpretation 904 is "Top countries by users" shown in the insight card 908. The selectable report options 906 may allow the user to view the generated reports by selecting a link displayed in the insight card 908. The insight card 908 is a results area displayed to the user in a right panel where insight results are shown for the submitted search query. In some implementations, the insight cards 908 display options for viewing other suggested reports. The insight cards 908 may also allow the user to select an option for asking a follow-up question (i.e., entering a follow-up search query).

[0076] 10 illustrates a computing system 1000 that may be used to implement, for example, an exemplary user device 104, an exemplary content management system 108, an illustrative content provider device 106, an exemplary query processing system 150, and / or various other exemplary systems described in this disclosure. The computing system 1000 includes a bus 1008 or other communication components for communicating information, and a processor 1012 coupled to the bus 1008 for processing information. The computing system 1000 also includes a main memory 1002, such as a random access memory (RAM) or other dynamic storage device coupled to the bus 1008 for storing information and instructions to be executed by the processor 1012. The main memory 1002 may also be used to store location information, time variables, or other intermediate information during execution of instructions by the processor 1012. The computing system 1000 may further include a read-only memory (ROM) 1004 and other static storage devices coupled to the bus 1008 for storing static information and instructions for the processor 1012. A storage device 1006 , such as a solid state device, magnetic disk, or optical disk, is coupled to bus 1008 for persistent storage of information and instructions.

[0077] The computing system 1000 may be coupled via a bus 1008 to a display 1014, such as a liquid crystal display or active matrix display, for displaying information to a user. An input device 1016, such as a keyboard including alphanumeric and other keys, may be coupled to the bus 1008 for communicating information and command selections to the processor 1012. In another implementation, the input device 1016 has a touchscreen display 1014. The input device 1016 may include a cursor control, such as a mouse, trackball, or cursor direction keys, for communicating directional information and command selections to the processor 1012 and for controlling cursor movement on the display 1014.

[0078] In some implementations, the computing system 1000 may include a communications adapter 1010, such as a networking adapter. The communications adapter 1010 may be coupled to the bus 1008 and configured to enable communication with a computing or communications network 1018 and / or other computing systems. In various exemplary implementations, any type of networking configuration may be achieved using the communications adapter 1010, such as wired (e.g., via Ethernet), wireless (e.g., via WiFi, Bluetooth, etc.), pre-configured, ad-hoc, LAN, WAN, etc.

[0079] According to various implementations, the processes for performing the exemplary implementations described herein may be accomplished by the computing system 1000 in response to the processor 1012 executing sequences of instructions contained in the main memory 1002. Such instructions may be read into the main memory 1002 from another computer-readable medium, such as the storage device 1006. Execution of sequences of instructions contained in the main memory 1002 causes the computing system 1000 to perform the exemplary processes described herein. One or more processors in a multi-processing arrangement may also be utilized to execute the instructions contained in the main memory 1002. In alternative implementations, hardwired circuitry may be used in place of or in combination with software instructions to implement the exemplary implementations. Thus, the implementations are not limited to any specific combination of hardware circuitry and software.

[0080] The systems and methods as described in this disclosure may be implemented for any type of third-party content item (i.e., for any type of content item to be displayed on a resource). In one implementation, the content item may include an advertisement. In one implementation, the content item may include any text, image, video, story (e.g., a news story), social media content, links, or any other type of content provided by a third party for display on the first-party content provider's resource. The types of content items for which the content visualization methods herein are used are not limiting.

[0081] Although an exemplary processing system is illustrated in FIG. 10, implementations of the subject matter and functional operations described herein may be practiced using other types of digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in a combination of one or more of them.

[0082] The subject embodiments and operations described herein may be practiced in digital electronic circuitry, or in computer software, firmware, or hardware embodied on tangible media, including the structures disclosed herein and structural equivalents thereof, or in a combination of one or more of them. Implementations of the subject matter described herein may be implemented as one or more computer programs, i.e., as one or more subsystems of computer program instructions encoded on one or more computer storage media for execution by or control of the operation of a data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, generated to encode information for transmission to a receiver device suitable for execution by the data processing device. The computer storage medium may be or be included in a computer readable storage device, a computer readable storage substrate, a random or serial access memory array or device, or a combination of one or more of them. Furthermore, the computer storage medium is not a propagating signal, and the computer storage medium may be a source or destination of computer program instructions encoded in an artificially generated propagating signal. A computer storage medium may also be, or be contained in, one or more separate components or media (e.g., multiple CDs, disks, or other storage devices). Thus, a computer storage medium is both tangible and non-transitory.

[0083] The operations described herein may be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.

[0084] The term "data processing apparatus" or "computing device" encompasses all kinds of apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, a system on a chip, or a plurality or combination of the above. The apparatus may include special-purpose logic circuitry, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). In addition to hardware, the apparatus may also include code that creates an execution environment for the computer program in question, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The apparatus and execution environment may implement a variety of different computing model infrastructures, such as web services, distributed computing infrastructures, and grid computing infrastructures.

[0085] A computer program (also known as a program, software, software application, script, or code) may be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may correspond to a file in a file system, but need not. A program may be stored in file portions that hold other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple cooperating files (e.g., files that store one or more subsystems, subprograms, or portions of code). A computer program may be deployed to be executed on one computer, or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0086] The processes and logic flows described herein may be implemented by one or more programmable processors executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows may also be implemented by, and devices may be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[0087] Processors suitable for executing computer programs include, by way of example, both general-purpose and special-purpose microprocessors, as well as any one or more processors of any kind of digital computer. Generally, a processor receives instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for performing actions according to the instructions, and one or more memory devices for storing instructions and data. Generally, a computer also includes one or more mass storage devices, e.g., magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to them, or both. However, a computer need not have such devices. Furthermore, a computer may be embedded in another device, e.g., a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0088] To enable interaction with a user, implementations of the subject matter described herein can be practiced using a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user, and a keyboard and pointing device, e.g., a mouse or trackball, for allowing the user to provide input to the computer. Other types of devices can also be used to provide interaction with the user, e.g., feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form, including acoustic, speech, or tactile input. Additionally, the computer can interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.

[0089] Implementations of the subject matter described herein may be practiced using a computing system that includes back-end components, e.g., as a data server, or includes middleware components, e.g., an application server, or includes front-end components, e.g., a client computer having an implementation of the subject matter described herein and a graphical user interface or web browser through which a user can interact, or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad-hoc peer-to-peer networks).

[0090] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some implementations, a server sends data (e.g., HTML pages) to a client device (e.g., to display the data to and receive user input from a user interacting with the client device). Data generated at the client device (e.g., results of user interaction) may be received at the server from the client device.

[0091] In some example implementations, the features disclosed herein may be implemented on a smart television module (or connected television module, hybrid television module, etc.), which may include processing circuitry configured to integrate Internet connectivity with relatively traditional television program sources (e.g., received by cable, satellite, broadcast, or other signals). The smart television module may be physically built into a television set or may include separate devices, such as set-top boxes, Blu-ray or other digital media players, game consoles, hotel television systems, and other companion devices. The smart television module may be configured to allow viewers to search and find videos, movies, photos, and other content stored on the web, on local cable TV channels, satellite TV channels, or on a local hard drive. A set-top box (STB) or set-top unit (STU) may include an information appliance device that includes a tuner and may connect to a television set and an external source of signals, turning the signals into content that is then displayed on a television screen or other display device. The smart television module may be configured to provide a home or top level screen that includes icons for multiple different applications, such as a web browser and multiple streaming media services, connected cable or satellite media sources, other web "channels," etc. The smart television module may further be configured to provide an electronic program guide to the user. Companion applications to the smart television module may be operable on a mobile computing device to provide the user with additional information about available programs, allow the user to control the smart television module, etc. In alternative implementations, features may be implemented on a laptop or other personal computer, a smartphone, other mobile phone, a handheld computer, a tablet PC, or other computing device.

[0092] Although this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or what may be claimed, but rather as descriptions of features specific to particular implementations of a particular invention. Certain features described herein in the context of separate implementations may be practiced in combination or in a single implementation. Conversely, various features described in the context of a single implementation may be practiced separately in multiple implementations or in any suitable subcombination. Furthermore, although features may be described above as working in some combinations and initially claimed as such, one or more features from the claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination. Furthermore, features described under certain headings may be used in connection with and / or in combination with example implementations described under other headings, and the headings, if provided, are included for ease of reading only and should not be construed as limiting any features provided under such headings.

[0093] Similarly, although operations are shown in the figures in a particular order, this should not be understood as requiring such operations to be performed in the particular order or sequence shown, or that all of the illustrated operations be performed, to achieve desirable results. In some situations, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the implementations described above should not be understood as requiring such separation in all implementations, and it should be understood that the program components and systems described may generally be incorporated together in a single software product or packaged into multiple software products embodied on tangible media.

[0094] Particular implementations of the subject matter have been described above. Other implementations are within the scope of the following claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown or sequential order to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous. [Explanation of symbols]

[0095] 100 Computing Environments 102 Network 104 User Devices 106 Content Provider Device 108 Content Management System 110 Input / Output Devices 112 Network Interface 118 Processing Circuit 120 processors 122 Memory 124 Content Analysis Circuit 126 Content Database 150 Query Processing System 202 Processing circuit 204 Processor 206 Memory 208 Model Training Circuit, Circuit 210 Cluster generation circuit, circuit 212 Similarity Scoring Circuit, Circuit 214 Interpretation and Evaluation Circuit, Circuit 216 Initial evaluation circuit, circuit 218 Final evaluation circuit, circuit 220 Database 900 User Interface 1000 Computing Systems 1002 Main memory 1004 Read-only memory (ROM) 1006 Storage Devices 1008 Bus 1010 Communication adapter 1012 processor 1014 Display, Touch Screen Display 1016 Input Devices

Claims

1. 1. A method for assessing accuracy of a human interpretation of a search query, comprising: receiving, by one or more processing circuits, a training dataset, the training dataset including a plurality of past search queries, a human interpretation for each of the plurality of search queries, and a human-rated label for each of the plurality of past search queries of whether the human interpretation was correct; training, by the one or more processing circuits, a first model using the training dataset, wherein the first model is trained to evaluate whether a human interpretation of a search query is correct; receiving, by the one or more processing circuits, a search query, the search query including one or more words entered via a user interface to request desired information and a human interpretation of the search query, the human interpretation including one or more words that define an interpretation of the desired information; determining, by the one or more processing circuits, an initial assessment of whether the human interpretation of the search query is correct using the first model; generating, by the one or more processing circuits, a second model using the initial estimates from the first model, temporal features for the search query, and cluster features for the search query, the cluster features being features of a given cluster in the search query assigned to the given cluster; and determining, by the one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model.

2. The search query is a first search query, and the method further comprises: determining, by the one or more processing circuits, whether the first search query is associated with a second search query received within a predetermined time interval after the first search query; receiving, by the one or more processing circuits, token embeddings from the first model for each of the first and second search queries, where tokens are words in the search queries; and determining, by the one or more processing circuits, a vector sentence representation for each of the first and second search queries by averaging the token embeddings from the first model for each of the first and second search queries.

3. 3. The computer-implemented method of claim 2, wherein the first model is pre-trained on a set of natural language data, and training the first model using the training data set tailors the first model to a particular classification problem.

4. 3. The computer-implemented method of claim 2, further comprising: analyzing, by the one or more processing circuits, the first and second search queries using a distance algorithm, wherein the distance algorithm is at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

5. 3. The computer-implemented method of claim 2, further comprising determining, by the one or more processing circuits, whether a second search query is a search refinement of the first search query, a search refinement being a weighted indication of an incorrect human interpretation of the search query.

6. generating, by the one or more processing circuits, clusters of search queries of different sizes based at least in part on similarities between the search queries in the clusters; and updating, by the one or more processing circuits, the generated clusters in response to receiving a new search query.

7. 2. The computer-implemented method of claim 1, further comprising determining, by the one or more processing circuits, whether an input to view a report for the search query is received via the user interface, the input to view a report being a weighted indication of a correct human interpretation for the search query.

8. 1. A system configured to evaluate accuracy of a human interpretation of a search query, comprising: one or more hardware processors, the one or more hardware processors configured to: receiving, by one or more processing circuits, a training dataset, the training dataset including a plurality of past search queries, a human interpretation for each of the plurality of search queries, and a human-rated label for each of the plurality of past search queries of whether the human interpretation was correct; training, by the one or more processing circuits, a first model using the training dataset, wherein the first model is trained to evaluate whether a human interpretation of a search query is correct; and receiving, by the one or more processing circuits, a search query, the search query including one or more words entered via a user interface to request desired information and a human interpretation of the search query, the human interpretation including one or more words defining an interpretation of the desired information; determining, by the one or more processing circuits, an initial assessment of whether the human interpretation of the search query is correct using the first model; generating, by the one or more processing circuits, a second model using the initial assessments from the first model, temporal features for the search query, and cluster features for the search query, the cluster features being features of the given cluster in the search query assigned to the given cluster; and determining, by the one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model.

9. the search query is a first search query, and the one or more hardware processors are configured to: determining, by the one or more processing circuits, whether the first search query is associated with a second search query received within a predetermined time interval after the first search query; receiving, by the one or more processing circuits, token embeddings from the first model for each of the first and second search queries, where tokens are words in the search queries; 9. The system of claim 8, further configured to: determine, by the one or more processing circuits, a vector sentence representation for each of the first and second search queries by averaging the token embeddings from the first model for each of the first and second search queries.

10. 10. The system of claim 9, wherein the first model is pre-trained on a set of natural language data, and the first model is trained using the training dataset to tailor the first model to a particular classification problem.

11. The one or more hardware processors are configured to:

10. The system of claim 9, further configured, by the one or more processing circuits, to analyze the first and second search queries using a distance algorithm, wherein the distance algorithm is at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

12. The one or more hardware processors are configured to:

10. The system of claim 9, further configured, by the one or more processing circuits, to determine whether a second search query is a search refinement of the first search query, a search refinement being a weighted indication of an incorrect human interpretation of the search query.

13. The one or more hardware processors are configured to: generating, by the one or more processing circuits, clusters of search queries of different sizes based at least in part on similarities between the search queries in the clusters; 10. The system of claim 8, further configured by the one or more processing circuits to: update the generated clusters in response to receiving a new search query.

14. The one or more hardware processors are configured to:

10. The system of claim 8, further configured, by the one or more processing circuits, to determine whether an input to view a report for the search query is received via the user interface, the input to view a report being a weighted indication of a correct human interpretation for the search query.

15. 1. A computer-readable storage medium comprising instructions executable by one or more processors to perform operations for evaluating accuracy of a human interpretation of a natural language search query, the operations comprising: receiving, by one or more processing circuits, a training dataset, the training dataset including a plurality of past search queries, a human interpretation for each of the plurality of search queries, and a human-rated label for each of the plurality of past search queries of whether the human interpretation was correct; training, by the one or more processing circuits, a first model using the training dataset, wherein the first model is trained to evaluate whether a human interpretation of a search query is correct; and receiving, by the one or more processing circuits, a search query, the search query including one or more words entered via a user interface to request desired information and a human interpretation of the search query, the human interpretation including one or more words defining an interpretation of the desired information; determining, by the one or more processing circuits, an initial assessment of whether the human interpretation of the search query is correct using the first model; generating, by the one or more processing circuits, a second model using the initial estimates from the first model, temporal features for the search query, and cluster features for the search query; and determining, by the one or more processing circuits, a final assessment of whether the human interpretation of the search query is correct using the second model.

16. the search query is a first search query; The operations include determining, by the one or more processing circuits, whether the first search query is associated with a second search query received within a predetermined time interval after the first search query; The operations include receiving, by the one or more processing circuits, token embeddings from the first model for each of the first and second search queries, where tokens are words in the search queries; 16. The computer-readable storage medium of claim 15, wherein the operation determines, by the one or more processing circuits, a vector sentence representation for each of the first and second search queries by averaging the token embeddings from the first model for each of the first and second search queries.

17. 17. The computer-readable storage medium of claim 16, wherein the first model is pre-trained on a set of natural language data, and training the first model using the training data set tailors the first model to a particular classification problem.

18. The operation includes:

17. The computer-readable storage medium of claim 16, further comprising analyzing, by the one or more processing circuits, the first and second search queries using a distance algorithm, wherein the distance algorithm is at least one of a Euclidean distance algorithm or a cosine similarity algorithm.

19. The operation includes:

17. The computer-readable storage medium of claim 16, further comprising an operation of determining, by the one or more processing circuits, whether a second search query is a search refinement of the first search query, where a search refinement is a weighted indication of an incorrect human interpretation of the search query.

20. The operation includes: generating, by the one or more processing circuits, clusters of search queries of different sizes based at least in part on similarities between the search queries in the clusters, the cluster features being features of the given cluster in the search queries assigned to the given cluster; and updating, by the one or more processing circuits, the generated clusters in response to receiving a new search query.

Citation Information

Patent Citations

  • Retrieval filtering device and retrieval filtering program

    JP2009163303A

  • Search program, search method, and search device

    JP2019185323A

  • Information processing apparatus, information processing system, information processing method, and program

    JP2019191686A