Information Retrieval

Similar documents
PV211: Introduction to Information Retrieval

Probabilistic Information Retrieval

Lecture 9: Probabilistic IR The Binary Independence Model and Okapi BM25

IR Models: The Probabilistic Model. Lecture 8

Information Retrieval

Ranked Retrieval (2)

Information Retrieval Basic IR models. Luca Bondi

Language Models. Web Search. LM Jelinek-Mercer Smoothing and LM Dirichlet Smoothing. Slides based on the books: 13

RETRIEVAL MODELS. Dr. Gjergji Kasneci Introduction to Information Retrieval WS

Behavioral Data Mining. Lecture 2

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from

Knowledge Discovery in Data: Overview. Naïve Bayesian Classification. .. Spring 2009 CSC 466: Knowledge Discovery from Data Alexander Dekhtyar..

Boolean and Vector Space Retrieval Models

CS630 Representing and Accessing Digital Information Lecture 6: Feb 14, 2006

Web Information Retrieval Dipl.-Inf. Christoph Carl Kling

Variable Latent Semantic Indexing

PV211: Introduction to Information Retrieval

Outline for today. Information Retrieval. Cosine similarity between query and document. tf-idf weighting


Scoring (Vector Space Model) CE-324: Modern Information Retrieval Sharif University of Technology

Modern Information Retrieval

Ranking-II. Temporal Representation and Retrieval Models. Temporal Information Retrieval

Scoring (Vector Space Model) CE-324: Modern Information Retrieval Sharif University of Technology

Scoring (Vector Space Model) CE-324: Modern Information Retrieval Sharif University of Technology

Information Retrieval

Chap 2: Classical models for information retrieval

Natural Language Processing. Topics in Information Retrieval. Updated 5/10

CS47300: Web Information Search and Management

University of Illinois at Urbana-Champaign. Midterm Examination

Chapter 4: Advanced IR Models

Information Retrieval and Organisation

Information Retrieval and Topic Models. Mausam (Based on slides of W. Arms, Dan Jurafsky, Thomas Hofmann, Ata Kaban, Chris Manning, Melanie Martin)

Ranked IR. Lecture Objectives. Text Technologies for Data Science INFR Learn about Ranked IR. Implement: 10/10/2017. Instructor: Walid Magdy

The Naïve Bayes Classifier. Machine Learning Fall 2017

Midterm Examination Practice

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from

Introduction to Information Retrieval (Manning, Raghavan, Schutze) Chapter 6 Scoring term weighting and the vector space model

Scoring, Term Weighting and the Vector Space

CS276A Text Information Retrieval, Mining, and Exploitation. Lecture 4 15 Oct 2002

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from

TDDD43. Information Retrieval. Fang Wei-Kleiner. ADIT/IDA Linköping University. Fang Wei-Kleiner ADIT/IDA LiU TDDD43 Information Retrieval 1

Fall CS646: Information Retrieval. Lecture 6 Boolean Search and Vector Space Model. Jiepu Jiang University of Massachusetts Amherst 2016/09/26

Term Weighting and the Vector Space Model. borrowing from: Pandu Nayak and Prabhakar Raghavan

Generative Learning. INFO-4604, Applied Machine Learning University of Colorado Boulder. November 29, 2018 Prof. Michael Paul

Information Retrieval

Retrieval by Content. Part 2: Text Retrieval Term Frequency and Inverse Document Frequency. Srihari: CSE 626 1

Language Models. CS6200: Information Retrieval. Slides by: Jesse Anderton

Vector Space Model. Yufei Tao KAIST. March 5, Y. Tao, March 5, 2013 Vector Space Model

Replicated Softmax: an Undirected Topic Model. Stephen Turner

PROBABILITY AND INFORMATION THEORY. Dr. Gjergji Kasneci Introduction to Information Retrieval WS

Lecture 2: IR Models. Johan Bollen Old Dominion University Department of Computer Science

Maximum Likelihood (ML), Expectation Maximization (EM) Pieter Abbeel UC Berkeley EECS

Language Models, Smoothing, and IDF Weighting

Information Retrieval and Web Search

Learning with Probabilities

Bayesian Learning. CSL603 - Fall 2017 Narayanan C Krishnan

Information Retrieval

Motivation. User. Retrieval Model Result: Query. Document Collection. Information Need. Information Retrieval / Chapter 3: Retrieval Models

Boolean and Vector Space Retrieval Models CS 290N Some of slides from R. Mooney (UTexas), J. Ghosh (UT ECE), D. Lee (USTHK).

A Study of the Dirichlet Priors for Term Frequency Normalisation

Probabilistic representation and reasoning

INFO 630 / CS 674 Lecture Notes

Elements of probability theory

Bayesian Methods: Naïve Bayes

Language Models. Hongning Wang

naive bayes document classification

Probabilistic Field Mapping for Product Search

Term Weighting and Vector Space Model. Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H. Schutze

COS 424: Interacting with Data. Lecturer: Dave Blei Lecture #11 Scribe: Andrew Ferguson March 13, 2007

An AI-ish view of Probability, Conditional Probability & Bayes Theorem

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty.

Compact Indexes for Flexible Top-k Retrieval

CS 2750: Machine Learning. Bayesian Networks. Prof. Adriana Kovashka University of Pittsburgh March 14, 2016

Introduction to Bayesian Learning. Machine Learning Fall 2018

Data Mining 2018 Logistic Regression Text Classification

Bayesian Networks. Motivation

Score Distribution Models

11. Learning To Rank. Most slides were adapted from Stanford CS 276 course.

Undirected Graphical Models

CS-E3210 Machine Learning: Basic Principles

Probabilistic representation and reasoning

Day 6: Classification and Machine Learning

3. Basics of Information Retrieval

Information Retrieval

Markov Networks. l Like Bayes Nets. l Graph model that describes joint probability distribution using tables (AKA potentials)

Ranked IR. Lecture Objectives. Text Technologies for Data Science INFR Learn about Ranked IR. Implement: 10/10/2018. Instructor: Walid Magdy

7.1 What is it and why should we care?

Outline. Supervised Learning. Hong Chang. Institute of Computing Technology, Chinese Academy of Sciences. Machine Learning Methods (Fall 2012)

What is Text mining? To discover the useful patterns/contents from the large amount of data that can be structured or unstructured.

Statistical learning. Chapter 20, Sections 1 3 1

CS 188: Artificial Intelligence. Bayes Nets

Machine Learning Algorithm. Heejun Kim

Preliminary Statistics Lecture 2: Probability Theory (Outline) prelimsoas.webs.com

Basic Probability and Statistics

CS 188: Artificial Intelligence. Outline

In today s lecture. Conditional probability and independence. COSC343: Artificial Intelligence. Curse of dimensionality.

Chapter 15. Probability Rules! Copyright 2012, 2008, 2005 Pearson Education, Inc.

CSCE 561 Information Retrieval System Models

Vector Space Scoring Introduction to Information Retrieval INF 141 Donald J. Patterson

Transcription:

Introduction to Information Retrieval Lecture 11: Probabilistic Information Retrieval 1

Outline Basic Probability Theory Probability Ranking Principle Extensions 2

Basic Probability Theory For events A and B Joint probability P(A, B) of both events occurring Conditional probability P(A B) of event A occurring given that event B has occurred Chain rule gives fundamental relationship between joint and conditional probabilities: Partition rule: if B can be divided into an exhaustive set of disjoint subcases, then P(B) is the sum of the probabilities of the subcases. A special case of this rule gives: 3

Basic Probability Theory Bayes Rule for inverting conditional probabilities: Can be thought of as a way of updating probabilities: Start off with prior probability P(A) Derive a posterior probability P(A B) after having seen the evidence B, based on the likelihood of B occurring in the two cases that A does or does not hold Odds of an event provide a kind of multiplier for how probabilities change: Odds: 4

Outline Basic Probability Theory Probability Ranking Principle Extensions 5

Probability Ranking Principle (PRP) Ranked retrieval setup: given a collection of documents, the user issues a query, and an ordered list of documents is returned Assume binary notion of relevance: R d,q is a random binary variable, such that R d,q = 1 if document d is relevant w.r.t query q R d,q = 0 otherwise Probabilistic ranking orders documents decreasingly by their estimated probability of relevance w.r.t. query: P(R = 1 d, q) PRP in brief If the retrieved documents (w.r.t a query) are ranked decreasingly on their probability of relevance, then the effectiveness of the system will be the best that is obtainable 6

Binary Independence Model (BIM) Traditionally used with the PRP Assumptions: Binary (equivalent to Boolean): documents and queries represented as binary term incidence vectors E.g., document d represented by vector x = (x 1,..., x M ), where x t = 1 if term t occurs in d and x t = 0 otherwise Independence : no association between terms (not true, but practically works - naive assumption of Naive Bayes models) 7

Binary Independence Model 2 is modeled using term incidence vectors as and : : probability that if a relevant or nonrelevant document is retrieved, then that document s representation is Statistics about the actual document collection are used to estimate these probabilities 8

Binary Independence Model - 3 is modeled using term incidence vectors as and : prior probability of retrieving a relevant or nonrelevant document for a query q Estimate and from percentage of relevant documents in the collection Since a document is either relevant or nonrelevant to a query, we must have that: 9

Deriving a Ranking Function for Query Terms Given a query q, ranking documents by is modeled under BIM as ranking them by Easier: rank documents by their odds of relevance (gives same ranking & we can ignore the common denominator) is a constant for a given query - can be ignored 10

Deriving a Ranking Function for Query Terms 2 It is at this point that we make the Naive Bayes conditional independence assumption that the presence or absence of a word in a document is independent of the presence or absence of any other word (given the query): So: 11

Deriving a Ranking Function for Query Terms 3 Since each x t is either 0 or 1, we can separate the terms to give: Let be the probability of a term appearing in relevant document Let be the probability of a term appearing in a nonrelevant document Visualise as contingency table: 12

Deriving a Ranking Function for Query Terms 4 Additional simplifying assumption: terms not occurring in the query are equally likely to occur in relevant and nonrelevant documents If q t = 0, then p t = u t 13

Deriving a Ranking Function for Query Terms 5 Including the query terms found in the document into the right product, but simultaneously dividing through by them in the left product, gives: the right product is now over all query terms, hence constant for a particular query and can be ignored. The only quantity that needs to be estimated to rank documents w.r.t a query is the left product Hence the Retrieval Status Value (RSV) in this model: 14

Deriving a Ranking Function for Query Terms 6 So everything comes down to computing the RSV. We can equally rank documents using the log odds ratios for the terms in the query The odds ratio is the ratio of two odds: (i) the odds of the term appearing if the document is relevant (p t /(1 p t )), and (ii) the odds of the term appearing if the document is nonrelevant (u t /(1 u t )) c t = 0 if a term has equal odds of appearing in relevant and nonrelevant documents, and c t is positive if it is more likely to appear in relevant documents c t functions as a term weight, so that Operationally, we sum c t quantities in accumulators for query terms appearing in documents, just as for the vector space model calculations 15

Deriving a Ranking Function for Query Terms 7 For each term t in a query, estimate c t in the whole collection using a contingency table of counts of documents in the collection, where df t is the number of documents that contain term t: To avoid the possibility of zeroes (such as if every or no relevant document has a particular term) there are different ways to apply smoothing 16

Probability Estimates in Practice Assuming that relevant documents are a very small percentage of the collection, approximate statistics for nonrelevant documents by statistics from the whole collection Hence, u t (the probability of term occurrence in nonrelevant documents for a query) is df t /N and log[(1 u t )/u t ] = log[(n df t )/df t ] log N/df t The above approximation cannot easily be extended to relevant documents 17

Probability Estimates in Practice Statistics of relevant documents (p t ) can be estimated in various ways: ❶ Use the frequency of term occurrence in known relevant documents (if known). This is the basis of probabilistic approaches to relevance feedback weighting in a feedback loop ❷ Set as constant. E.g., assume that p t is constant over all terms x t in the query and that p t = 0.5 Each term is equally likely to occur in a relevant document, and so the pt and (1 p t ) factors cancel out in the expression for RSV 18

Outline Basic Probability Theory Probability Ranking Principle Extensions 19

Okapi BM25: A Non-binary Model The BIM was originally designed for short catalog records of fairly consistent length, and it works reasonably in these contexts For modern full-text search collections, a model should pay attention to term frequency and document length BestMatch25 (a.k.a BM25 or Okapi) is sensitive to these quantities From 1994 until today, BM25 is one of the most widely used and robust retrieval models 20

Okapi BM25: A Non-binary Model 2 The simplest score for document d is just idf weighting of the query terms present in the document: Improve this formula by factoring in the term frequency and document length: tf td : term frequency in document d L d (L ave ): length of document d (average document length in the whole collection) k 1 : tuning parameter controlling the document term frequency scaling b: tuning parameter controlling the scaling by document length 21

Okapi BM25: A Non-binary Model 3 If the query is long, we might also use similar weighting for query terms tf tq : term frequency in the query q k 3 : tuning parameter controlling term frequency scaling of the query No length normalisation of queries (because retrieval is being done with respect to a single fixed query) The above tuning parameters should ideally be set to optimize performance on a development test collection. In the absence of such optimisation, experiments have shown reasonable values are to set k 1 and k 3 to a value between 1.2 and 2 and b = 0.75 22