Docsity

Probabilistic Information Retrieval: Basic Model and Probability Ranking Principle - Prof., Study notes of Computer Science

Toggle sidebar
bg1
1
Information Retrieval
James Allan
University of Massachusetts Amherst
Information
Retrieval
Retrieval Models
Classic probabilistic model
University
of
Massachusetts
Amherst
CMPSCI 646
Fall 2007
All slides copyright © Bruce Croft and/or James Allan
Much of this presentation adapted from
C.J. van Rijsbergen, Information Retrieval,
Butterworths 1979. Out of print, but available
on-line at http://www.dcs.gla.ac.uk/~iain/keith/
Basic Probabilistic Retrieval Model
•Retrieval is modeled as a classification process
•
Two classes for each query: the
relevant
and
non
-
Two
classes
for
each
query:
the
relevant
and
non
relevant documents
–could be extended to three classes (i.e., add a don’t care)
•Given a particular document D, calculate the
probability of belonging to the relevant class, retrieve
if greater than probability of belonging to non-relevant
class
CMPSCI 646 Copyright © Bruce Croft and/or James Allan
–i.e., retrieve if P(R|D) > P(NR|D)
•Equivalently, rank by likelihood ratio P(D|R)÷P(D|NR)
•Different ways of estimating these probabilities lead
to different probabilistic models
pf3
pf4
pf5
pf8

Partial preview of the text

Download Probabilistic Information Retrieval: Basic Model and Probability Ranking Principle - Prof. and more Study notes Computer Science in PDF only on Docsity!

Information Retrieval

James Allan

University of Massachusetts Amherst

Information Retrieval

Retrieval Models

Classic probabilistic model

University of Massachusetts Amherst

CMPSCI 646

Fall 2007

All slides copyright © Bruce Croft and/or James Allan

Much of this presentation adapted from C.J. van Rijsbergen, Information Retrieval , Butterworths 1979. Out of print, but available on-line at http://www.dcs.gla.ac.uk/~iain/keith/

Basic Probabilistic Retrieval Model

  • Retrieval is modeled as a classification process
  • Two classes for each query: theTwo classes for each query: the relevantrelevant andand nonnon-

relevant documents

  • could be extended to three classes (i.e., add a don’t care )
  • Given a particular document D, calculate the

probability of belonging to the relevant class, retrieve

if greater than probability of belonging to non-relevant

class

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • i.e., retrieve if P(R|D) > P(NR|D)
  • Equivalently, rank by likelihood ratio P(D|R)÷P(D|NR)
  • Different ways of estimating these probabilities lead

to different probabilistic models

Basic Probabilistic Model

RelevantRelevant

Documents

Non-Relevant

The rain in Spain falls mainly in the plain The rain in Spain falls mainly in the plain The rain in Spain falls mainly in the plain The rain in Spain falls mainly in the plain

Document

P(R|D)

P(NR|D)

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

Documents

Event Space

  • Probability of an event is the sum of the probabilities

of the sample points associated with the event

  • Sample points represent the possible outcomes of a statisticalp p p p

“experiment”

  • For a retrieval model, the event space is Q × D,

where each sample point is a query-document pair

and has an associated relevance judgement

  • Because Q and D are representations, there

(conceptually) may be many pairs with Q and D the

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

same but with different relevance judgements

  • P(R|Q,D) is the proportion of the identical (Q,D) pairs

that are judged relevant

  • In the following, assume a given Q and use P(R|D)

Basic Probabilistic Model

  • Minimizing risk gives
    • Want risk of choosing relevant to be less than that of

choosing non-relevant

  • i.e., want that c (^) rr P(R|D) + c (^) rnP(NR|D) < cnrP(R|D) + cnn P(NR|D)
  • (c nr

-c

rr

)P(R|D) > (c

rn

-c

nn

)P(NR|D)

  • So want O(R|D) = P(R|D) / P(NR|D) > (c rn

-c

nn

)/(c

nr

-c

rr

  • As always, hard to estimate, so transform

with Bayes’ theorem, so…

  • (c nr

-c

rr

) P(D|R)P(R) > (c

rn

-c

nn

) P(D|NR)P(NR)

  • Likelihood ratio

(P(D) cancels)

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • P(D|R)/P(D|NR) > (c (^) rn -c (^) nn )P(NR)/ (c (^) nr -c (^) rr ) P(R)
  • retrieve when likelihood ratio greater than some threshold or,

rank by likelihood ratio

  • typically c rr

= c

nn

= 0 and c

rn

= c

nr

Binary Independence Retrieval (BIR)

  • Assume document D is represented by a binary vector

d = (d 1 , d 2 , …d n ) where d i = 0 or 1 indicates the absence or

presence of the index term

  • p i

= P(d

i

=1|R) 1- p

i

= P(d

i

=0|R)

  • q (^) i = P(d (^) i =1|NR) 1- q (^) i = P(d (^) i =0|NR)
  • Assume conditional independence, write P( d |R) as the product

of the probabilities for the components of d (i.e., product of

probabilities of getting a particular vector of 1’s and 0’s)

  • Likelihood functions are

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

(sometimes called “linked dependence” assumption)

BIR, cont.

  • Convert to a linear discriminant function
    • g( d ) = log P( d |R)/P( d |NR) + log P(R)/P(NR)

1 P(R)

n (^) ⎡ ⎤

If ranking derived from: P(D|R)/P(D|NR) > P(NR)/ P(R)

  • The second term is a constant (d i

does not occur) for a given

query and does not affect the ranking

A th t f t t i th

P(NR)

P(R)

log 1 q

1 p ( 1 d)log q

p g() dlog

n

i (^1) i

i i i

i i ⎥+ ⎦

= (^) ∑ + −

d

= (^) ∑ ∑ = = P(NR)

P(R)

log 1 q

1 p log q( 1 p)

p( 1 q) g() dlog

n

i (^1) i

i

n

i (^1) i i

i i d i

i 1 d i i

n

i 1

d P( |R) pi (1p) −

=

d = ∏ −

i 1 d i i

n

i 1

d P( |NR) qi (1q) −

=

d = ∏ −

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • Assume that for terms not in the query, p (^) i = q (^) i
    • this can be changed, but is a handy simplification
  • The retrieval status value for a document is computed by

summing the weight log (pi /(1-p i )) + log((1-qi )/q i ) for all query

terms in the document

Estimation using training data

  • Must estimate p (^) i and q (^) i
  • Given information about relevant documents, we would have the

following contingency table:

  • Use maximum likelihood estimators
    • p (^) i = P(di =1|R) = r/R q (^) i = P(di =1|NR) = (n-r)/(N-R)
    • Robertson and Sparck Jones F4 weight: log (r/(R-r))/((n-r)/(N-n-R+r))

R l i f ti i ll t il bl

Relevant Not Relevant

di = 1 r n - r n

di = 0 (^) R − r N – n – R + r (^) N − n

R (^) N − R

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • Relevance information is usually not available
    • (except after/if searcher provides relevance feedback)
  • Estimate probabilities based on information in the query, the

document collection

  • previous queries can also be used with some learning approaches

Re-examine the way g(x) is used

  • Introduce probability that a term is assigned
    • A term has two possible states
      • d (^) ii = 1 means the term is assignedg
      • d (^) i = 0 means the term is not assigned
    • P(di = 1 | d) is probability that di is assigned to d
      • P(d (^) i = 0 | d) = 1 - P(xi = 1 | d) is probability it is not assigned
  • Use expected value of g(d i

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • To get expected value of g(d)

Relationship between probabilities

  • Have these components
    • P(di=1 | document)
    • p i = P(d i p =1 | relevance) i P(d i 1 | relevance)
    • q i = P(d i =1 | non-relevance)
  • The first comes from the document and the others

come from the relevant and not relevant sets

  • Not all that different from heuristic approach

B t j tifi bl

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • But justifiable
  • Also prefer appropriate method for estimating weight

Tangent: term independent

  • In general, terms are not independent (e.g., phrases)
  • Modeling dependence can be very complex
  • Van Rijsbergen proposed a simpleVan Rijsbergen proposed a simple tree dependencetree dependence

model

  • e.g. P( d ) = P(d 1 )P(d 2 |d 1 )P(d 3 |d 2 )P(d 4 |d 2 )P(d 5 |d 2 )P(d 6 |d 5 )
  • each term is dependent on only one other term
  • tree that represents the most dependence is a maximum spanning

tree whose edges are weighted using EMIM

  • model involves estimation of P(di=1|dj=1),

P(d 1|d 0) P(d 0|d 1) P(d 0|d 0) for

d (^1)

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

P(di=1|dj=0), P(di=0|dj=1), P(di=0|dj=0) for

both relevant and non-relevant documents

  • no effectiveness improvements due to

estimation problems

d (^2)

d (^3) d 4 d (^5)

d (^6)

Recent repeat of MST approach

  • Rather than look at dependence across entire

document, consider sentences

  • A plausible “fundamental” semantic unit in text

[Nallapati and Allan, 2003]

p

  • Match against sentences rather than words (document likelihood)
  • Assumes independence across sentences
  • Use MST to find dependence within sentence
  • But actually build a minimum spanning forest

Calculate probabilities of components (each with a MST)

CMPSCI 646 Copyright © Bruce Croft and/or James Allan

  • Calculate probabilities of components (each with a MST)
  • Modest gains in effectiveness