CS255 Fundamentals of Information Retrieval
Lecture 7
Probabilistic Retrieval
Krishnendu Ghosh
Department of Computer Science & Engineering
Indian Institute of Information Technology Dharwad
Why Probabilities in IR
Why Probabilities in IR
User
Information Need
Documents
Document
Representation
Query
Representation
How to match?
Uncertain guess of
whether document has relevant content
Understanding
of user need is
uncertain
Why Probabilities in IR
Document Ranking Problem
The Probability Ranking Principle (PRP)
“If a reference retrieval system’s response to each request is a ranking of the documents in the collection in order of decreasing probability of relevance to the user who submitted the request, where the probabilities are estimated as accurately as possible on the basis of whatever data have been made available to the system for this purpose, the overall effectiveness of the system to its user will be the best that is obtainable on the basis of those data.”
The Probability Ranking Principle (PRP)
Let x represent a document in the collection.
Let R represent relevance of a document w.r.t. given (fixed) query and let R=1 represent relevant and R=0 not relevant.
Need to find p(R=1|x) – probability that a document x is relevant.
p(R=1), p(R=0) - prior probability of retrieving a relevant or non-relevant document at random
p(x|R=1), p(x|R=0) - probability that if a relevant (not relevant) document is retrieved, it is x.
The Probability Ranking Principle (PRP)
Let C1 be the cost of not retrieving a relevant document and C0 the cost of retrieval of a nonrelevant document. Then the Probability Ranking Principle says that if for a specific document d and for all documents d′ not yet retrieved
C0 · P(R = 0|d) − C1 · P(R = 1|d) ≤ C0 · P(R = 0|d′) − C1 · P(R = 1|d′)
then d is the next document to be retrieved.
Binary Independence Model
Binary Independence Model
Binary Independence Model
Needs estimation
Constant for a given query
Binary Independence Model
Binary Independence Model
| document | relevant (R=1) | not relevant (R=0) |
term present | xi = 1 | pi | ri |
term absent | xi = 0 | (1 – pi) | (1 – ri) |
Binary Independence Model
All matching terms
Non-matching query terms
All matching terms
All query terms
Binary Independence Model
Constant for
each query
Only quantity to be estimated
for rankings
Retrieval Status Value:
Binary Independence Model
All boils down to computing RSV.
The ci are log odds ratios (of contingency table a few slides back)
They function as the term weights in this model
So, how do we compute ci’s from our data?
Graphical Model for BIM – Bernoulli NB
R
xi
Binary
variables
Binary Independence Model
Estimation: Key Challenge
If non-relevant documents are approximated by the whole collection, then ri (prob. of occurrence in non-relevant documents for query) is n/N and
Estimation: Key Challenge
Collection vs Document Frequency
Collection frequency of t is the total number of occurrences of t in the collection (incl. multiples)
Document frequency is number of docs t is in
Example:
Which word is a better search term (and should get a higher weight)?
Word | Collection frequency | Document frequency |
insurance | 10440 | 3997 |
try | 10422 | 8760 |
Probabilistic Relevance Feedback
Probabilistic Relevance Feedback
PRP and BIM
Term frequency and the VSM
Okapi BM25
Generative model for documents
Words are drawn independently from the vocabulary using a multinomial distribution
Generative model for documents
Distribution of term frequencies (tf) follows a binomial distribution – approximated by a Poisson
Poisson distribution
The Poisson distribution models the probability of k, the number of events occurring in a fixed interval of time/space, with known average rate λ ( = cf/T), independent of the last event
Examples
Poisson distribution
If T is large and p is small, we can approximate a binomial distribution with a Poisson where λ = Tp
Poisson Distribution
Assume that term frequencies in a document (tfi) follow a Poisson distribution
Poisson Distribution
1-Poisson Model Flaw
| | Documents containing k occurrences of word (λ = 53/650) | ||||||||||||
Freq | Word | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
53 | expected | 599 | 49 | 2 | | | | | | | | | | |
52 | based | 600 | 48 | 2 | | | | | | | | | | |
53 | conditions | 604 | 39 | 7 | | | | | | | | | | |
55 | cathexis | 619 | 22 | 3 | 2 | 1 | 2 | 0 | 1 | | | | | |
51 | comic | 642 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 2 |
Eliteness (“aboutness”)
Elite terms
The National Football League Draft is an annual event in which the National Football League (NFL) teams select eligible college football players. It serves as the league’s most common source of player recruitment. The basic design of the draft is that each team is given a position in the draft order in reverse order relative to its record …
Graphical model with eliteness
R
tfi
Frequencies (not binary)
Ei
Binary variables
Retrieval Status Value
Similar to the BIM derivation, we have
where
and using eliteness, we have:
2-Poisson Model
The problems with the 1-Poisson model suggests fitting two Poisson distributions
In the “2-Poisson model”, the distribution is different depending on whether the term is elite or not
where π is probability that document is elite for term
but, unfortunately, we don’t know π, λ, μ
Parametric Plotting of RSV
Qualitative properties
increases monotonically with tfi
… but asymptotically approaches a maximum value as [not true for simple scaling of tf]
… with the asymptotic limit being
Weight of eliteness
Approximating the saturation function
Estimating parameters for the 2-Poisson model is not easy
… So approximate it with a simple parametric curve that has the same qualitative properties
Saturation Function
“Early” versions of BM25
Document length normalization
Document length normalization
Document length normalization
Okapi BM25
Okapi BM25
Why is BM25 better than VSM tf-idf?
Ranking with features
Ranking with zones
Ranking with zones
Thank You