next up previous contents index
Next: Result ranking by machine Up: Machine learning methods in Previous: Machine learning methods in   Contents   Index


A simple example of machine-learned scoring

In this section we generalize the methodology of Section 6.1.2 (page [*]) to machine learning of the scoring function. In Section 6.1.2 we considered a case where we had to combine Boolean indicators of relevance; here we consider more general factors to further develop the notion of machine-learned relevance . In particular, the factors we now consider go beyond Boolean functions of query term presence in document zones, as in Section 6.1.2 .

We develop the ideas in a setting where the scoring function is a linear combination of two factors: (1) the vector space cosine similarity between query and document and (2) the minimum window width $\omega$ within which the query terms lie. As we noted in Section 7.2.2 (page [*]), query term proximity is often very indicative of a document being on topic, especially with longer documents and on the web. Among other things, this quantity gives us an implementation of implicit phrases. Thus we have one factor that depends on the statistics of query terms in the document as a bag of words, and another that depends on proximity weighting. We consider only two features in the development of the ideas because a two-feature exposition remains simple enough to visualize. The technique can be generalized to many more features.

As in Section 6.1.2 , we are provided with a set of training examples, each of which is a pair consisting of a query and a document, together with a relevance judgment for that document on that query that is either relevant or nonrelevant. For each such example we can compute the vector space cosine similarity, as well as the window width $\omega$. The result is a training set as shown in Table 15.3 , which resembles Figure 6.5 (page [*]) from Section 6.1.2 .


Table 15.3: Training examples for machine-learned scoring.
Example DocID Query Cosine score $\omega$ Judgment
$\Phi_1$ 37 linux operating system 0.032 3 relevant
$\Phi_2$ 37 penguin logo 0.02 4 nonrelevant
$\Phi_3$ 238 operating system 0.043 2 relevant
$\Phi_4$ 238 runtime environment 0.004 2 nonrelevant
$\Phi_5$ 1741 kernel layer 0.022 3 relevant
$\Phi_6$ 2094 device driver 0.03 2 relevant
$\Phi_7$ 3191 device driver 0.027 5 nonrelevant
$\cdots$ $\cdots$ $\cdots$ $\cdots$ $\cdots$ $\cdots$


Here, the two features (cosine score denoted $\alpha$ and window width $\omega$) are real-valued predictors. If we once again quantify the judgment relevant as 1 and nonrelevant as 0, we seek a scoring function that combines the values of the features to generate a value that is (close to) 0 or 1. We wish this function to be in agreement with our set of training examples as far as possible. Without loss of generality, a linear classifier will use a linear combination of features of the form

\begin{displaymath}
Score(d,q) = Score(\alpha,\omega)=a\alpha + b\omega + c,
\end{displaymath} (179)

with the coefficients $a,b,c$ to be learned from the training data. While it is possible to formulate this as an error minimization problem as we did in Section 6.1.2 , it is instructive to visualize the geometry of Equation 179. The examples in Table 15.3 can be plotted on a two-dimensional plane with axes corresponding to the cosine score $\alpha$ and the window width $\omega$. This is depicted in Figure 15.7 .

\includegraphics[width=9cm,angle=270]{Figure15.7.eps} A collection of training examples.Each R denotes a training example labeled relevant, while each N is a training example labeled nonrelevant.

In this setting, the function $Score(\alpha,\omega)$ from Equation 179 represents a plane ``hanging above'' Figure 15.7 . Ideally this plane (in the direction perpendicular to the page containing Figure 15.7 ) assumes values close to 1 above the points marked R, and values close to 0 above the points marked N. Since a plane is unlikely to assume only values close to 0 or 1 above the training sample points, we make use of thresholding: given any query and document for which we wish to determine relevance, we pick a value $\theta$ and if $Score(\alpha,\omega)>\theta$ we declare the document to be relevant, else we declare the document to be nonrelevant. As we know from Figure 14.8 (page [*]), all points that satisfy $Score(\alpha,\omega)=\theta$ form a line (shown as a dashed line in Figure 15.7 ) and we thus have a linear classifier that separates relevant from nonrelevant instances. Geometrically, we can find the separating line as follows. Consider the line passing through the plane $Score(\alpha,\omega)$ whose height is $\theta$ above the page containing Figure 15.7 . Project this line down onto Figure 15.7 ; this will be the dashed line in Figure 15.7 . Then, any subsequent query/document pair that falls below the dashed line in Figure 15.7 is deemed nonrelevant; above the dashed line, relevant.

Thus, the problem of making a binary relevant/nonrelevant judgment given training examples as above turns into one of learning the dashed line in Figure 15.7 separating relevant training examples from the nonrelevant ones. Being in the $\alpha$-$\omega$ plane, this line can be written as a linear equation involving $\alpha$ and $\omega$, with two parameters (slope and intercept). The methods of linear classification that we have already looked at in classificationsvm provide methods for choosing this line. Provided we can build a sufficiently rich collection of training samples, we can thus altogether avoid hand-tuning score functions as in Section 7.2.3 (page [*]). The bottleneck of course is the ability to maintain a suitably representative set of training examples, whose relevance assessments must be made by experts.


next up previous contents index
Next: Result ranking by machine Up: Machine learning methods in Previous: Machine learning methods in   Contents   Index
© 2008 Cambridge University Press
This is an automatically generated page. In case of formatting errors you may want to look at the PDF edition of the book.
2009-04-07