Information Retrieval CSE 8337 Spring 2005 Modeling Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto http:// www.sims.berkeley.edu/~hearst/irbook / Introduction to Modern Information Retrieval by Gerard Salton and Michael J. McGill, McGraw-Hill, 1983.
55
Embed
Information Retrieval CSE 8337 Spring 2005 Modeling Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Information Retrieval
CSE 8337
Spring 2005
Modeling
Material for these slides obtained from:Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto
http://www.sims.berkeley.edu/~hearst/irbook/Introduction to Modern Information Retrieval by Gerard Salton and Michael J. McGill, McGraw-Hill, 1983.
Set Theoretic Models Fuzzy Set Model Extended Boolean Model
Generalized Vector Model Latent Semantic Indexing Neural Network Model Alternative Probabilistic Models
Inference Network Belief Network
CSE 8337 Spring 2005 3
Introduction
IR systems usually adopt index terms to process queries
Index term: a keyword or group of selected words any word (more general)
Stemming might be used: connect: connecting, connection, connections
An inverted file is built for the chosen index terms
CSE 8337 Spring 2005 4
IntroductionDocs
Information Need
Index Terms
doc
query
Rankingmatch
CSE 8337 Spring 2005 5
Introduction
Matching at index term level is quite imprecise
No surprise that users get frequently unsatisfied
Since most users have no training in query formation, problem is even worst
Frequent dissatisfaction of Web users Issue of deciding relevance is critical for IR
systems: ranking
CSE 8337 Spring 2005 6
Introduction
A ranking is an ordering of the documents retrieved that (hopefully) reflects the relevance of the documents to the query
A ranking is based on fundamental premisses regarding the notion of relevance, such as: common sets of index terms sharing of weighted terms likelihood of relevance
Each set of premisses leads to a distinct IR model
CSE 8337 Spring 2005 7
IR Models
Non-Overlapping ListsProximal Nodes
Structured Models
Retrieval: Adhoc Filtering
Browsing
U s e r
T a s k
Classic Models
boolean vector probabilistic
Set Theoretic
Fuzzy Extended Boolean
Probabilistic
Inference Network Belief Network
Algebraic
Generalized Vector Lat. Semantic Index Neural Networks
Browsing
Flat Structure Guided Hypertext
CSE 8337 Spring 2005 8
IR Models
Index Terms Full Text Full Text +Structure
RetrievalClassic
Set TheoreticAlgebraic
Probabilistic
ClassicSet Theoretic
AlgebraicProbabilistic
Structured
Browsing FlatFlat
HypertextStructure Guided
Hypertext
LOGICAL VIEW OF DOCUMENTS
USER
TASK
CSE 8337 Spring 2005 9
Classic IR Models - Basic Concepts
Each document represented by a set of representative keywords or index terms
An index term is a document word useful for remembering the document main themes
Usually, index terms are nouns because nouns have meaning by themselves
However, search engines assume that all words are index terms (full text representation)
CSE 8337 Spring 2005 10
Classic IR Models - Basic Concepts
The importance of the index terms is represented by weights associated to them
ki- an index term dj - a document wij - a weight associated with (ki,dj) The weight wij quantifies the importance of
the index term for describing the document contents
CSE 8337 Spring 2005 11
Classic IR Models - Basic Concepts
t is the total number of index terms K = {k1, k2, …, kt} is the set of all index terms wij >= 0 is a weight associated with (ki,dj) wij = 0 indicates that term does not belong to
doc dj= (w1j, w2j, …, wtj) is a weighted vector
associated with the document dj
gi(dj) = wij is a function which returns the weight associated with pair (ki,dj)
CSE 8337 Spring 2005 12
The Boolean Model
Simple model based on set theory Queries specified as boolean expressions
precise semantics and neat formalism Terms are either present or absent. Thus,
wij {0,1} Consider
q = ka (kb kc) qdnf = (1,1,1) (1,1,0) (1,0,0) qcc= (1,1,0) is a conjunctive component
CSE 8337 Spring 2005 13
The Boolean Model
q = ka (kb kc)
sim(q,dj) =
1 if qcc | (qcc qdnf) (ki, gi(dj)= gi(qcc))
0 otherwise
(1,1,1)(1,0,0)
(1,1,0)
Ka Kb
Kc
CSE 8337 Spring 2005 14
Drawbacks of the Boolean Model
Retrieval based on binary decision criteria with no notion of partial matching
No ranking of the documents is provided Information need has to be translated into a
Boolean expression The Boolean queries formulated by the users are
most often too simplistic As a consequence, the Boolean model frequently
returns either too few or too many documents in response to a user query
CSE 8337 Spring 2005 15
The Vector Model
Use of binary weights is too limiting Non-binary weights provide
consideration for partial matches These term weights are used to
compute a degree of similarity between a query and each document
Ranked set of documents provides for better matching
CSE 8337 Spring 2005 16
The Vector Model
wij > 0 whenever ki appears in dj
wiq >= 0 associated with the pair (ki,q) dj = (w1j, w2j, ..., wtj) q = (w1q, w2q, ..., wtq) To each term ki is associated a unitary vector i The unitary vectors i and j are assumed to be orthonormal
(i.e., index terms are assumed to occur independently within the documents)
The t unitary vectors i form an orthonormal basis for a t-dimensional space where queries and documents are represented as weighted vectors
CSE 8337 Spring 2005 17
The Vector Model
Sim(q,dj) = cos()
= [dj q] / |dj| * |q|
= [ wij * wiq] / |dj| * |q|
Since wij > 0 and wiq > 0, 0 <= sim(q,dj) <=1
A document is retrieved even if it matches the query terms only partially
i
j
dj
q
CSE 8337 Spring 2005 18
Weights wij and wiq ? One approach is to examine the frequency of the
occurence of a word in a document: Absolute frequency:
tf factor, the term frequency within a document freqi,j - raw frequency of ki within dj
Both high-frequency and low-frequency terms may not actually be significant
Relative frequency: tf divided by number of words in document
Objective: to capture the IR problem using a probabilistic framework
Given a user query, there is an ideal answer set
Querying as specification of the properties of this ideal answer set (clustering)
But, what are these properties? Guess at the beginning what they could be
(i.e., guess initial description of ideal answer set)
Improve by iteration
CSE 8337 Spring 2005 28
Probabilistic Model An initial set of documents is retrieved somehow User inspects these docs looking for the relevant ones (in
truth, only top 10-20 need to be inspected) IR system uses this information to refine description of ideal
answer set By repeting this process, it is expected that the description of
the ideal answer set will improve Have always in mind the need to guess at the very beginning
the description of the ideal answer set Description of ideal answer set is modeled in probabilistic
terms
CSE 8337 Spring 2005 29
Probabilistic Ranking Principle
Given a user query q and a document dj, the probabilistic model tries to estimate the probability that the user will find the document dj interesting (i.e., relevant). Ideal answer set is referred to as R and should maximize the probability of relevance. Documents in the set R are predicted to be relevant.
But, how to compute probabilities? what is the sample space?
P(ki | R) P(ki | R) Probabilities P(ki | R) and P(ki | R) ? Estimates based on assumptions:
P(ki | R) = 0.5 P(ki | R) = ni N Use this initial guess to retrieve an initial
ranking Improve upon this initial ranking
CSE 8337 Spring 2005 35
Improving the Initial Ranking
Let V : set of docs initially retrieved Vi : subset of docs retrieved that contain ki
Reevaluate estimates: P(ki | R) = Vi
V P(ki | R) = ni - Vi
N - V Repeat recursively
CSE 8337 Spring 2005 36
Improving the Initial Ranking
To avoid problems with V=1 and Vi=0:
P(ki | R) = Vi + 0.5 V + 1 P(ki | R) = ni - Vi + 0.5 N - V + 1
Also, P(ki | R) = Vi + ni/N V + 1 P(ki | R) = ni - Vi + ni/N N - V + 1
CSE 8337 Spring 2005 37
Pluses and Minuses
Advantages: Docs ranked in decreasing order of
probability of relevance Disadvantages:
need to guess initial estimates for P(ki | R)
method does not take into account tf and idf factors
CSE 8337 Spring 2005 38
Brief Comparison of Classic Models
Boolean model does not provide for partial matches and is considered to be the weakest classic model
Salton and Buckley did a series of experiments that indicate that, in general, the vector model outperforms the probabilistic model with general collections
This seems also to be the view of the research community
CSE 8337 Spring 2005 39
Set Theoretic Models
The Boolean model imposes a binary criterion for deciding relevance
The question of how to extend the Boolean model to accomodate partial matching and a ranking has attracted considerable attention in the past
We discuss now two set theoretic models for this: Fuzzy Set Model Extended Boolean Model
CSE 8337 Spring 2005 40
Fuzzy Set Model
This vagueness of document/query matching can be modeled using a fuzzy framework, as follows: with each term is associated a fuzzy set each doc has a degree of membership in
this fuzzy set Here, we discuss the model proposed by
Ogawa, Morita, and Kobayashi (1991)
CSE 8337 Spring 2005 41
Fuzzy Set Theory A fuzzy subset A of U is characterized by a
membership function (A,u) : U [0,1]which associates with each element u of U a
number (u) in the interval [0,1] Definition
Let A and B be two fuzzy subsets of U. Also, let ¬A be the complement of A. Then,