Upcoming SlideShare
×

# probabilistic ranking

969 views
895 views

Published on

Published in: Technology, Education
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
969
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
26
0
Likes
0
Embeds 0
No embeds

No notes for slide

### probabilistic ranking

1. 1. Ahmet Selman Bozkır
2. 2. <ul><li>Introduction to conditional, total probability & Bayesian theorem </li></ul><ul><li>Historical background of probabilistic information retrieval </li></ul><ul><li>Why probabilities in IR? </li></ul><ul><li>Document ranking problem </li></ul><ul><li>Binary Independence Model </li></ul>
3. 3. <ul><li>Given some event B with nonzero probability P(B) > 0 </li></ul><ul><li>We can define conditional prob. as an event A, given B, by </li></ul><ul><li>The Probabilty P(A|B) simply reflects the fact that the probability of an event A may depend on a second event B. So if A and B are mutually exclusive, A  B =  </li></ul>
4. 4. Let’s define three events: 1. A as “draw 47  resistor 2. B as “draw” a resistor with 5% 3. C as “draw” a “100  resistor P(A) = P(47  ) = 44/100 P(B) = P(5%) = 62/100 P(C) = P(100  ) = 32 /100 The joint probabilities are: P(A  B) = P(47   5%) = 28/100 P(A  C) = P(47   100  ) = 0 P(B  C) = P(5%  100  ) = 24/100 I f we use them the cond. prob. : Tolerance Resistance (  )‏ 5% 10% Total 22-  10 14 24 47-  28 26 44 100-  24 8 32 Total: 62 38 100
5. 5. <ul><li>The probability of P(A) of any event A defined on a sample space S can be expressed in terms of cond. probabilities. Suppose we are given N mutually exclusive events B n ,n = 1,2…. N whose union equals S as ilustrated in figure </li></ul>A  B n A B1 B3 B2 Bn
6. 6. <ul><li>The definition of conditional probability applies to any two events. In particular ,let B n be one of the events defined above in the subsection on total probability. İf P(A)≠O,or, alternatively, </li></ul>
7. 7. <ul><li>if P(B n )≠0, one form of Bayes’ theorem is obtained by equating these two expressions: </li></ul><ul><li>Another form derives from a substitution of P(A) as given: </li></ul>
8. 8. <ul><li>The first attempts to develop a probabilistic theory of retrieval were made over 30 years ago [Maron and Kuhns 1960; Miller 1971], and since then there has been a steady development of the approach. There are already several operational IR systems based upon probabilistic or semiprobabilistic models. </li></ul><ul><li>  </li></ul><ul><li>One major obstacle in probabilistic or semiprobabilistic IR models is finding methods for estimating the probabilities used to evaluate the probability of relevance that are both theoretically sound and computationally efficient. </li></ul><ul><li>  </li></ul><ul><li>The first models to be based upon such assumptions were the “binary independence indexing model” and the “binary independence retrieval model </li></ul><ul><li>  </li></ul><ul><li>One area of recent research investigates the use of an explicit network representation of dependencies. The networks are processed by means of Bayesian inference or belief theory , using evidential reasoning techniques such as those described by Pearl 1988. This approach is an extension of the earliest probabilistic models, taking into account the conditional dependencies present in a real environment. </li></ul>
9. 9. User Information Need Documents Document Representation Query Representation How to match? In traditional IR systems, matching between each document and query is attempted in a semantically imprecise space of index terms. Probabilities provide a principled foundation for uncertain reasoning. Can we use probabilities to quantify our uncertainties? Uncertain guess of whether document has relevant content Understanding of user need is uncertain
10. 10. <ul><li>Classical probabilistic retrieval model </li></ul><ul><ul><li>Probability ranking principle, etc. </li></ul></ul><ul><li>(Naïve) Bayesian Text Categorization </li></ul><ul><li>Bayesian networks for text retrieval </li></ul><ul><li>Probabilistic methods are one of the oldest but also one of the currently hottest topics in IR. </li></ul><ul><ul><li>Traditionally: neat ideas, but they’ve never won on performance. It may be different now. </li></ul></ul>
11. 11. <ul><li>In probabilistic information retrieval, the goal is the estimation of the probability of relevance P(R l q k , d m ) that a document d m will be judged relevant by a user with request q k . In order to estimate this probability, a large number of probabilistic models have been developed. </li></ul><ul><li>Typically, such a model is based on representations of queries and documents (e.g., as sets of terms); in addition to this, probabilistic assumptions about the distribution of elements of these representations within relevant and nonrelevant documents are required. </li></ul><ul><li>By collecting relevance feedback data from a few documents, the model then can be applied in order to estimate the probability of relevance for the remaining documents in the collection. </li></ul>
12. 12. <ul><li>We have a collection of documents </li></ul><ul><li>User issues a query </li></ul><ul><li>A list of documents needs to be returned </li></ul><ul><li>Ranking method is core of an IR system: </li></ul><ul><ul><li>In what order do we present documents to the user? </li></ul></ul><ul><ul><li>We want the “best” document to be first, second best second, etc…. </li></ul></ul><ul><li>Idea: Rank by probability of relevance of the document w.r.t. information need </li></ul><ul><ul><li>P(relevant|document i , query)‏ </li></ul></ul>
13. 13. <ul><li>For events a and b: </li></ul><ul><li>Bayes’ Rule </li></ul><ul><li>Odds: </li></ul>Prior P osterior
14. 14. Let x be a document in the collection. Let R represent relevance of a document w.r.t. given (fixed) query and let NR represent non-relevance. p( x|R ), p( x|NR ) - probability that if a relevant (non-relevant) document is retrieved, it is x . Need to find p( R|x) - probability that a document x is relevant. p( R) ,p( NR ) - prior probability of retrieving a (non) relevant document R={0,1} vs. NR/R
15. 15. <ul><li>Bayes’ Optimal Decision Rule </li></ul><ul><ul><li>x is relevant iff p ( R | x ) > p ( NR | x )‏ </li></ul></ul><ul><li>PRP in action: Rank all documents by p ( R | x )‏ </li></ul>
16. 16. <ul><li>More complex case: retrieval costs. </li></ul><ul><ul><li>Let d be a document </li></ul></ul><ul><ul><li>C - cost of retrieval of relevant document </li></ul></ul><ul><ul><li>C’ - cost of retrieval of non-relevant document </li></ul></ul><ul><li>Probability Ranking Principle: if </li></ul><ul><li>for all d’ not yet retrieved , then d is the next document to be retrieved </li></ul><ul><li>We won’t further consider loss/utility from now on </li></ul>
17. 17. <ul><li>How do we compute all those probabilities? </li></ul><ul><ul><li>Do not know exact probabilities, have to use estimates </li></ul></ul><ul><ul><li>Binary Independence Retrieval (BIR) – which we discuss later today – is the simplest model </li></ul></ul><ul><li>Questionable assumptions </li></ul><ul><ul><li>“ Relevance” of each document is independent of relevance of other documents. </li></ul></ul><ul><ul><ul><li>Really, it’s bad to keep on returning duplicates </li></ul></ul></ul><ul><ul><li>Boolean model of relevance </li></ul></ul>
18. 18. <ul><li>Estimate how terms contribute to relevance </li></ul><ul><ul><li>How tf, df, and length influence your judgments about do things like document relevance? </li></ul></ul><ul><ul><ul><li>One answer is the Okapi formulae (S. Robertson)‏ </li></ul></ul></ul><ul><li>Combine to find document relevance probability </li></ul><ul><li>Order documents by decreasing probability </li></ul>
19. 19. <ul><li>Basic concept: </li></ul><ul><li>&quot;For a given query, if we know some documents that are relevant, terms that occur in those documents should be given greater weighting in searching for other relevant documents. </li></ul><ul><li>By making assumptions about the distribution of terms and applying Bayes Theorem, it is possible to derive weights theoretically.&quot; </li></ul><ul><li>Van Rijsbergen </li></ul>
20. 20. <ul><li>Traditionally used in conjunction with PRP </li></ul><ul><li>“ Binary” = Boolean : documents are represented as binary incidence vectors of terms (cf. lecture 1): </li></ul><ul><ul><li>iff term i is present in document x . </li></ul></ul><ul><li>“ Independence”: terms occur in documents independently </li></ul><ul><li>Different documents can be modeled as same vector </li></ul><ul><li>Bernoulli Naive Bayes model (cf. text categorization!)‏ </li></ul>
21. 21. <ul><li>Queries: binary term incidence vectors </li></ul><ul><li>Given query q , </li></ul><ul><ul><li>for each document d need to compute p ( R | q,d ) . </li></ul></ul><ul><ul><li>replace with computing p ( R | q,x ) where x is binary term incidence vector representing d Interested only in ranking </li></ul></ul><ul><li>Will use odds and Bayes’ Rule: </li></ul>
22. 22. Constant for a given query Needs estimation <ul><li>Using Independence Assumption: </li></ul><ul><li>So : </li></ul>
23. 23. <ul><li>Since x i is either 0 or 1: </li></ul>Then... This can be changed (e.g., in relevance feedback)‏ <ul><li>Let </li></ul><ul><li>Assume, for all terms not occurring in the query ( q i =0 )‏ </li></ul>
24. 24. All matching terms Non-matching query terms All matching terms All query terms
25. 25. Constant for each query Only quantity to be estimated for rankings <ul><li>Retrieval Status Value: </li></ul>
26. 26. <ul><li>Estimating RSV coefficients. </li></ul><ul><li>For each term i look at this table of document counts: </li></ul><ul><li>Estimates: </li></ul>For now, assume no zero terms.
27. 27. <ul><li>If non-relevant documents are approximated by the whole collection, then r i (prob. of occurrence in non-relevant documents for query) is n/N and </li></ul><ul><ul><li>log (1– r i )/ r i = log (N– n )/ n ≈ log N/ n = IDF! </li></ul></ul><ul><li>p i (probability of occurrence in relevant documents) can be estimated in various ways: </li></ul><ul><ul><li>from relevant documents if know some </li></ul></ul><ul><ul><ul><li>Relevance weighting can be used in feedback loop </li></ul></ul></ul><ul><ul><li>constant (Croft and Harper combination match) – then just get idf weighting of terms </li></ul></ul><ul><ul><li>proportional to prob. of occurrence in collection </li></ul></ul><ul><ul><ul><li>more accurately, to log of this (Greiff, SIGIR 1998)‏ </li></ul></ul></ul>
28. 28. <ul><li>Assume that p i constant over all x i in query </li></ul><ul><ul><li>p i = 0.5 (even odds) for any given doc </li></ul></ul><ul><li>Determine guess of relevant document set: </li></ul><ul><ul><li>V is fixed size set of highest ranked documents on this model (note: now a bit like tf.idf!)‏ </li></ul></ul><ul><li>We need to improve our guesses for p i and r i , so </li></ul><ul><ul><li>Use distribution of x i in docs in V. Let V i be set of documents containing x i </li></ul></ul><ul><ul><ul><li>p i = |V i | / |V| </li></ul></ul></ul><ul><ul><li>Assume if not retrieved then not relevant </li></ul></ul><ul><ul><ul><li>r i = (n i – |V i |) / (N – |V|)‏ </li></ul></ul></ul><ul><li>Go to 2. until converges then return ranking </li></ul>
29. 29. <ul><li>Guess a preliminary probabilistic description of R and use it to retrieve a first set of documents V, as above. </li></ul><ul><li>Interact with the user to refine the description: learn some definite members of R and NR </li></ul><ul><li>Reestimate p i and r i on the basis of these </li></ul><ul><ul><li>Or can combine new information with original guess (use Bayesian prior): </li></ul></ul><ul><li>Repeat, thus generating a succession of approximations to R . </li></ul>κ is prior weight
30. 30. <ul><li>Getting reasonable approximations of probabilities is possible. </li></ul><ul><li>Requires restrictive assumptions: </li></ul><ul><ul><li>term independence </li></ul></ul><ul><ul><li>terms not in query don’t affect the outcome </li></ul></ul><ul><ul><li>boolean representation of documents/queries/relevance </li></ul></ul><ul><ul><li>document relevance values are independent </li></ul></ul><ul><li>Some of these assumptions can be removed </li></ul><ul><li>Problem: either require partial relevance information or only can derive somewhat inferior term weights </li></ul>
31. 31. <ul><li>In general, index terms aren’t independent </li></ul><ul><li>Dependencies can be complex </li></ul><ul><li>van Rijsbergen (1979) proposed model of simple tree dependencies </li></ul><ul><ul><li>Exactly Friedman and Goldszmidt’s Tree Augmented Naive Bayes (AAAI 13, 1996)‏ </li></ul></ul><ul><li>Each term dependent on one other </li></ul><ul><li>In 1970s, estimation problems held back success of this model </li></ul>
32. 32. <ul><li>What is a Bayesian network? </li></ul><ul><ul><li>A directed acyclic graph </li></ul></ul><ul><ul><li>Nodes </li></ul></ul><ul><ul><ul><li>Events or Variables </li></ul></ul></ul><ul><ul><ul><ul><li>Assume values. </li></ul></ul></ul></ul><ul><ul><ul><ul><li>For our purposes, all Boolean </li></ul></ul></ul></ul><ul><ul><li>Links </li></ul></ul><ul><ul><ul><li>model direct dependencies between nodes </li></ul></ul></ul>
33. 33. a b c <ul><li>Bayesian networks model causal relations between events </li></ul><ul><li>Inference in Bayesian Nets: </li></ul><ul><ul><li>Given probability distributions </li></ul></ul><ul><ul><li>for roots and conditional </li></ul></ul><ul><ul><li>probabilities can compute </li></ul></ul><ul><ul><li>apriori probability of any instance </li></ul></ul><ul><ul><li>Fixing assumptions (e.g., b </li></ul></ul><ul><ul><li>was observed) will cause </li></ul></ul><ul><ul><li>recomputation of probabilities </li></ul></ul>For more information see: R.G. Cowell, A.P. Dawid, S.L. Lauritzen, and D.J. Spiegelhalter. 1999. Probabilistic Networks and Expert Systems . Springer Verlag. J. Pearl. 1988. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan-Kaufman. p(c|ab) for all values for a,b,c p(a)‏ p(b)‏ Conditional dependence
34. 34. Gloom (g)‏ Finals (f)‏ No Sleep (n)‏ Triple Latte (t)‏ Project Due (d)‏
35. 35. <ul><li>Independence assumption: </li></ul><ul><li>P(t|g, f)=P(t|g)‏ </li></ul><ul><li>Joint probability </li></ul><ul><li>P(f d n g t)‏ </li></ul><ul><li>=P(f) P(d) P(n|f) P(g|f d) P(t|g)‏ </li></ul>Gloom (g)‏ Finals (f)‏ Project Due (d)‏ No Sleep (n)‏ Triple Latte (t)‏
36. 36. <ul><li>Goal </li></ul><ul><ul><li>Given a user’s information need (evidence), find probability a doc satisfies need </li></ul></ul><ul><li>Retrieval model </li></ul><ul><ul><li>Model docs in a document network </li></ul></ul><ul><ul><li>Model information need in a query network </li></ul></ul>
37. 37. I - goal node Document Network Query Network Large, but Compute once for each document collection Small, compute once for every query d1 d n d2 t1 t2 t n r1 r2 r3 r k d i - documents t i - document representations r i - “concepts” I q2 q1 c m c2 c1 c i - query concepts q i - high-level concepts
38. 38. <ul><li>Construct Document Network (once !)‏ </li></ul><ul><li>For each query </li></ul><ul><ul><li>Construct best Query Network </li></ul></ul><ul><ul><li>Attach it to Document Network </li></ul></ul><ul><ul><li>Find subset of d i ’s which maximizes the probability value of node I (best subset). </li></ul></ul><ul><ul><li>Retrieve these d i ’s as the answer to query. </li></ul></ul>
39. 39. d 1 d 2 r 1 r 3 c 1 c 3 q 1 q 2 i r 2 c 2 Document Network Query Network Documents Terms/Concepts Concepts Query operators ( AND/OR/NOT )‏ Information need
40. 40. <ul><li>Prior doc probability P ( d ) = 1 /n </li></ul><ul><li>P ( r | d )‏ </li></ul><ul><ul><li>within-document term frequency </li></ul></ul><ul><ul><li>tf  idf - based </li></ul></ul><ul><li>P ( c | r )‏ </li></ul><ul><ul><li>1-to-1 </li></ul></ul><ul><ul><li>thesaurus </li></ul></ul><ul><li>P ( q | c ) : canonical forms of query operators </li></ul><ul><ul><li>Always use things like AND and NOT – never store a full CPT* </li></ul></ul><ul><ul><li>*conditional probability table </li></ul></ul>
41. 41. Hamlet Macbeth reason double reason two OR NOT User query trouble trouble Document Network Query Network
42. 42. <ul><li>Prior probs don’t have to be 1/n . </li></ul><ul><li>“ User information need” doesn’t have to be a query - can be words typed, in docs read, any combination … </li></ul><ul><li>Phrases, inter-document links </li></ul><ul><li>Link matrices can be modified over time. </li></ul><ul><ul><li>User feedback. </li></ul></ul><ul><ul><li>The promise of “personalization” </li></ul></ul>
43. 43. <ul><li>Document network built at indexing time </li></ul><ul><li>Query network built/scored at query time </li></ul><ul><li>Representation: </li></ul><ul><ul><li>Link matrices from docs to any single term are like the postings entry for that term </li></ul></ul><ul><ul><li>Canonical link matrices are efficient to store and compute </li></ul></ul><ul><li>Attach evidence only at roots of network </li></ul><ul><ul><li>Can do single pass from roots to leaves </li></ul></ul>
44. 44. All sources served by Google!