Machine-learned algorithms can be used in various different information retrieval activities, such as document searching, collaborative filtering, sentiment analysis, online ad selection, and so forth. Internet search engines are some of the most widely known technologies using machine-learned algorithms. Internet search engines perform document searching and retrieval, in which documents are identified and ranked in response to queries supplied by users.
Learning-to-rank is a process that uses training data to create or optimize ranking algorithms. Training data consists of queries, corresponding search results, and reliable relevance rankings of the search results. The relevance rankings are often provided by human judges. In addition, click-through data can be used to provide reliable relevance rankings or to validate or enhance the rankings provided by the human judges.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The term “techniques,” for instance, may refer to device(s), system(s), method(s) and/or computer-readable instructions as permitted by the context above and throughout the document.
The disclosure describes techniques for obtaining or optimizing training data for use in learning-to-rank procedures. The techniques use an existing set of training data, consisting of multiple triplets. Each triplet comprises a search specification or query, a document or other search result, and a relevance ranking that indicates the relative relevance of the document or other search result. The relevance rankings may be provided by human judges or by other means.
The training data is modeled by a probability function that is based in part on click-through data corresponding to the search results of the training data, and on model parameters that are initially unknown. Within the probability function, any particular search result is assumed to depend on the relevance of one or more other search results. In one implementation, it is assumed that the relevance of any individual search result depends on the relevance of an adjacent search result. In another implementation, it is assumed that the relevance of any individual search result depends on the relevance of all other search results.
Using the existing training data and available click-through data corresponding to the training data, the probability function is analyzed to determine the appropriate model parameters for future use in conjunction with the probability function. The model parameters fit the probability function to the training data in light of the click-through data. The probability function is then used with the model parameters and the click-through data to calculate a new set of rankings, which are referred to herein as predicted rankings.
The predicted rankings can be compared to the existing rankings to determine inconsistencies, and information regarding such inconsistencies may be used to improve judging methods or to otherwise enhance the training data. In some embodiments, inconsistencies may be flagged for further consideration. In other embodiments, existing rankings may be automatically corrected in light of the predicted rankings.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same numbers are used throughout the drawings to reference like features and components.
A set of search results 104 are generated from each search specification 102. Search results 104 may be generated manually, or using any of various search engines or document retrieval algorithms. In some embodiments, search results 104 are limited to the top or highest-ranking results, using the existing ranking methods of whatever document retrieval algorithm is used.
Note that although this description is given in the context of a document retrieval or search engine, the techniques described herein can be applied to other types of retrieval activities, such as document searching, collaborative filtering, sentiment analysis, online ad selection, and so forth. The term “search result” is used broadly, to indicate the output of these various different types of activities.
Search results 104 are ranked by one or more human judges to produce a set of human rankings 106 corresponding to search results 104. Specifically, each search result is given a relevance ranking indicating the relative relevance of that search result.
Click-through data 108 is also provided and associated with the search results. Click-through data 108 comprises information about actual human responses to search results 104 when using search specifications 102. For example, click-through data 108 may indicate the relative number of times a user actually selected a particular search result after submitting a particular search specification 102. This information can be gathered from actual search engines, by monitoring the responses of users to individual search queries.
A particular search specification 102 is thus associated with each set of search results 104, human rankings 106, and click-through data 108. This information can be organized as the following individual data items or data sets, corresponding to each search specification or query q:
a set of individual search results or documents d=(d1, d2, . . . , dn);
a set of corresponding human rankings y=(y1, y2, . . . , yn); and
a set of corresponding click-through data x=(x1, x2, . . . , xn).
A particular set of training data D may include data items for a plurality of search specifications or queries (q1, q2, . . . , qM) as follows: D={(dm, xm, ym)}m=1M, where M is the number of search specifications included in the training data D. The click-through data 108 may also be considered as part of the training data D in some situations.
A probability model 110 (also referred to herein as probability model Prθ) is formulated to represent training data D. Probability model 110 is a function of a set of model parameters 112 (also referred to herein as model parameters θ), which are initially unknown. They are estimated in an analysis based on the training data D, as will be described in more detail below.
The probability model 110 assumes that, given the click-through data, the ranking of any particular search result is conditionally dependent on the relevance of one or more other search results. Two examples of this conditional dependence will be given below. In the first example, referred to as sequential dependency, the ranking of any individual search result is locally dependent: the ranking is conditionally dependent on the relevance of an adjacently ranked search result. This models the situation where a user compares a document with adjacent documents before selecting it. In the second example, referred to as full dependency, the ranking of any individual search result is universally dependent: the ranking is conditionally dependent on the relevance of all other search results. This models the situation where a compares a document with all other documents before selecting it. For example, a user will not usually select a document if it is a duplicate of any other document.
Action 304 comprises obtaining click-through data 108 corresponding to the search results 104. Examples of click-through data 108 include click-through rates and dwell times. Further examples of click-through data will be described below.
Action 306 comprises formulating a model 110 of training data based on click-through data. This comprises modeling a set of search results as having rankings according to query relevance. It also comprises modeling the ranking of any particular search result as depending on the relevance of search results other than the particular search result. In an embodiment that assumes sequential dependency, the modeling assumes that the relevance of any individual search result depends on the relevance of an adjacent search result that is adjacent to the individual search result in an ordering of the search results based on their rankings. In an embodiment that assumes full dependency, the modeling assumes that the relevance of any individual search result depends on the relevance of all other search results. Specific models corresponding to these embodiments will be described in more detail below.
An action 308, which can be described as a training procedure or stage, comprises calculating model parameters 112 based on the existing rankings 106 and the click-through data 108. In this stage, it is assumed that human generated rankings 106 are of high quality.
An action 310, which can be described as a prediction stage, comprises calculating predicted rankings 202 based on probability model 110, click-through data 108, and the previously calculated model parameters 112. These calculations will be described in more detail below. The human generated rankings 106 are not involved in this stage. Rather, a predicted set of rankings 202 is generated based on the model parameters and the click-through data.
An action 312, which can be described as a correction stage, comprises comparing the existing rankings 106 and the predicted rankings 202, and correcting the existing rankings 106 based on the predicted rankings 202. In some embodiments, this comparison may be done by the original human judges who produced the existing rankings 106. Any discrepancies between the predicted rankings and the existing rankings may be automatically flagged for further examination by the human judges. The human judges may use the information to not only improve the current ranking data, but also to improve future judgments.
Note that sparseness of available click-through data may limit the above analysis to only the top-most results of a search. Nevertheless, providing this type of feedback to human judges may improve the quality of their judgments over time, thereby reducing the need for judging by multiple judges.
The sections below will describe more details regarding how to perform calculations of actions 306, 308, and 310.
The probability model 110 for the sequential dependency model can be defined as follows:
where:
Z(x)=Σyexp(Σi,kλkifk(yi-1,yi,x)+Σi,kμkigk(yi,x));
This sequential dependency model is position dependent. That is, although the same feature functions are defined for all the positions, each position has its own instances of feature functions with specific parameters λ and μ. This model can inherently capture position bias in click-through data.
Model parameters θ can be calculated by identifying the parameters (λ1, λ2 . . . ; μ1, μ2 . . . ) that maximize the log-likelihood objective function of {(xm, ym)}m=1M with respect to the probability model Prθ in accordance with the following:
θ=arg maxθL(θ)=arg maxθΣm=1M log(Prθ(ym|xm))
Because the objective function L(θ) is convex, the global maximum is guaranteed to exist. Differentiating the objective function with respect to parameter λki gives
and differentiating the objective function with respect to parameter μki gives
where Pr(yi-1m, yim|xm) can be calculated efficiently with a dynamic programming method such as a quasi-Newton optimization method. Specifically, the L-BFGS (limited-memory Broyden-Fletcher-Goldfarb-Shanno) method can be used.
Given click-through parameters x and model parameters θ, the predicted rankings y* can be calculated as follows:
y*=arg maxyPrθ(y|x)
The probability model 110 for the full dependency model can be defined as follows:
where:
Z(x)=Σyexp(Σi,j,kλki,jfk(yi,yj,x)+Σi,kμkigk(yi,x));
This full dependency model is position independent. That is, although the same feature functions are defined for all the positions, each position has its own instances of feature functions with specific parameters λ and μ, and can inherently capture position bias in click-through data.
Model parameters θ can be calculated by identifying the parameters (λ1, λ2 . . . ; μ1, μ2 . . . ) that maximize the log-likelihood objective function of {(xm, ym)}m=1M with respect to the probability model Prθ in accordance with the following:
θ=arg maxθL(θ)=arg maxθΣm=1M log(Prθ(ym|xm))
Differentiating the objective function with respect to parameter λki gives
and differentiating the objective function with respect to parameter μki gives
In this case, it may not be possible to compute Z(x) efficiently with a dynamic programming method. However, the Gibbs Sampling method can be used to sample N solutions with the highest probabilities to approximate the complete solution space, and to then calculate Pr(yim, yjm|xm) and Z(x) based on the sampled data. With such an approximation, the L-BFGS method can still be employed to estimate the model parameters θ.
To calculate predicted rankings y in this situation, a quadratic programming relaxation method can be used to solve the maximum a posteriori (MAP) problem. This method is described in P. Ravikumar and J. Lafferty; “Quadratic Programming Relaxations for Metric Labeling and Markov Random Field Map Estimation”; ICML '06: Proceedings of the 23rd International Conference on Machine Learning, pages 737-744; ACM, 2006.
More precisely, indicator functions are defined as follows:
In light of this, the most likely rankings are given by
y*=arg maxyΣi,j,k,s,tλki,jfk(ls,lt,x)Is(yi)It(yj)+Σi,k,sμkigk(Is,x)Is(yi).
Letting a variable v(i; s) be the relaxation of indication variable Is(yi), the quadratic program (QP) issue is as follows:
max Σi,j,k,s,tλki,jfk(ls,lt,x)v(i; s)v(j; t)+Σi,k,sμkigk(ls,x)v(i; s)
s.t. Σ
s
v(i; s)=1
0≦v(i; s)≦1
This equation is solvable in polynomial time with convex programming. In addition, Ravikumar describes an iterative update procedure that can solve this equation. Specifically, when considering yi, it is assumed that values for the others are fixed: v(j; .) j≠i. Then, the optimal ranking at position i is given by
s*(i)=arg maxsΣj,k,tλki,jfk(ls,lt,x)v(j; t)It(yj)+Σkμkigk(ls,x)
v(i; s)=Is*(yi)
Individual rankings of y can then be found by iteratively updating this function at each position i.
The techniques above assume two types of features: vertex features fk and edge features gk. Vertex features represent information relating to a single search result, while edge features represent information relating to relationships between search results. Various of these features can be directly derived from click-through log data of production search engines.
Examples of vertex features include:
Examples of edge features include:
Learning-to-rank algorithm 402 depends on training data. Such training data, as described above, comprises search specifications, search results, and verified or high-quality rankings of the search results. In this example, learning-to-rank algorithm 402 utilizes enhanced training data 408, which is the result of the techniques described above.
More specifically, a set of human judges 410 provide initial training data 412 based on their best judgments. This initial training data 412, also referred to as existing training data herein, is then subjected to a cleaning/correction process 414. Cleaning/correction process 414 uses a probability model 416 as described above, along with other data 418 such as click-through data, to detect and flag any rankings within training data 412 that may be erroneous. This information is provided back to human judges 410. Based on this information, the human judges correct or refine their rankings and re-submit them. This results in enhanced training data 408.
In the described embodiment, enhanced training data 408 is ultimately the result of human judgment. However, the human judgment has now been informed and potentially improved by the feedback from cleaning/correction process 414.
The techniques described above can be implemented by a general-purpose or special-purpose computing device.
In the illustrated example, the programs include an operating system 506 that provides basic functionality and interfaces with a user and various system components that are not shown. The memory may also store a training module 508 that performs the functionality described above with reference to block 308 of
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claims.