CS255 Fundamentals of Information Retrieval
Lecture 12
IR Evaluation
Krishnendu Ghosh
Department of Computer Science & Engineering
Indian Institute of Information Technology Dharwad
Situation
Thanks to your stellar performance in CS468, you quickly rise to VP of Search at internet retail giant TEMU. Your boss brings in her nephew Sergey, who claims to have built a better search engine for TEMU. Do you
What could you ask Sergey?
How fast does it index?
How fast does it search?
Does it recommend related products?
This is all good, but it says nothing about the quality of Sergey’s search
How do you tell if users are happy?
Search returns products relevant to users
Search results get clicked a lot
Users buy after using the search engine
Repeat visitors/buyers
Happiness: Elusive to Measure
Most common proxy: relevance of search results
Pioneered by Cyril Cleverdon in the Cranfield Experiments
But how do you measure relevance?
Measuring Relevance
Three elements:
Want to Measure Quality of a New Search Algo?
Benchmark documents – TEMU’s products
Benchmark query suite – more on this
Judgments of document relevance for each query
Relevance Judgments
Binary (relevant vs. non-relevant) in the simplest case
More nuanced relevance levels also used(0, 1, 2, 3 …)
What are some issues already?
5 million times 50K takes us into the range of a quarter trillion judgments
If each judgment took a human 2.5 seconds, we’d still need 1011 seconds, or nearly $300 million if you pay people $10 per hour to assess
10K new products per day
What else?
Present query-document pairs to low-cost labor on online crowd-sourcing platforms
Lots of literature on using crowd-sourcing for such tasks
Crowd Source Relevance Judgments?
till need test queries
Classically (non-Web)
Early Public Test Collections (20th Century)
Recent datasets: 100s of million web pages (GOV, ClueWeb, …)
Benchmark
Let’s review some evaluation measures
Evaluating an IR system
Unranked Retrieval Evaluation: Precision and Recall
Binary assessments
Rank-Based Measures
Binary Relevance
Multiple levels of relevance
Precision@K
Set a rank threshold K
Compute % relevant in top K
Ignores documents ranked lower than K
Ex:
Prec@3 of 2/3
Prec@4 of 2/4
Prec@5 of 3/5
In similar fashion we have Recall@K
A precision-recall curve
Average Precision
Average Precision
where rel(k) is an indicator function equaling 1 if the item at rank k is a relevant document, zero otherwise. Note that the average is over relevant documents in top-k retrieved documents and the relevant documents not retrieved get a precision score of zero.
MAP
Mean Average Precision
If a relevant document never gets retrieved, we assume the precision corresponding to that relevant doc to be zero
MAP is macro-averaging: each query counts equally
Now perhaps most commonly used measure in research papers
Good for web search?
MAP assumes user is interested in finding many relevant documents for each query
MAP requires many relevance judgments in text collection
R-Precision
R-precision requires knowing all documents that are relevant to a query. The number of relevant documents, R, is used as the cutoff for calculation, and this varies from query to query.
Note that the R-Precision is equivalent to both the precision at the R-th position (P@R) and the recall at the R-th position.
Discounted Cumulative Gain
Popular measure for evaluating web search and related tasks
Two assumptions:
Highly relevant documents are more useful than marginally relevant documents
the lower the ranked position of a relevant document, the less useful it is for the user, since it is less likely to be examined
Discounted Cumulative Gain
Uses graded relevance as a measure of usefulness, or gain, from examining a document
Gain is accumulated starting at the top of the ranking and may be reduced, or discounted, at lower ranks
Typical discount is 1/log(rank)
With base 2, the discount at rank 4 is 1/2, and at rank 8 it is 1/3
Summarize a Ranking: DCG
What if relevance judgments are in a scale of [0,r]? r>2
Cumulative Gain (CG) at rank n
Let the ratings of the n documents be r1, r2, …rn (in ranked order)
CG = r1+r2+…rn
Discounted Cumulative Gain (DCG) at rank n
DCG = r1 + r2/log22 + r3/log23 + … rn/log2n
We may use any base for the logarithm
Discounted Cumulative Gain
DCG is the total gain accumulated at a particular rank p:
Alternative formulation:
used by some web search companies
emphasis on retrieving highly relevant documents
DCG Example
10 ranked documents judged on 0–3 relevance scale:
3, 2, 3, 0, 0, 1, 2, 2, 3, 0
discounted gain:
3, 2/1, 3/1.59, 0, 0, 1/2.59, 2/2.81, 2/3, 3/3.17, 0
= 3, 2, 1.89, 0, 0, 0.39, 0.71, 0.67, 0.95, 0
DCG:
3, 5, 6.89, 6.89, 6.89, 7.28, 7.99, 8.66, 9.61, 9.61
NDCG for Summarizing Rankings
Normalized Discounted Cumulative Gain (NDCG) at rank n
Normalize DCG at rank n by the DCG value at rank n of the ideal ranking
The ideal ranking would first return the documents with the highest relevance level, then the next highest relevance level, etc
Normalization useful for contrasting queries with varying numbers of relevant results
NDCG is now quite popular in evaluating Web search
NDCG for summarizing rankings
4 documents: d1, d2, d3, d4
i | Ground Truth | Ranking Function1 | Ranking Function2 | |||
Document Order | ri | Document Order | ri | Document Order | ri | |
1 | d4 | 2 | d3 | 2 | d3 | 2 |
2 | d3 | 2 | d4 | 2 | d2 | 1 |
3 | d2 | 1 | d2 | 1 | d4 | 2 |
4 | d1 | 0 | d1 | 0 | d1 | 0 |
| NDCGGT=1.00 | NDCGRF1=1.00 | NDCGRF2=0.9203 | |||
NDCG for summarizing rankings
What if the results are not in a list?
Suppose there’s only one Relevant Document
Scenarios:
Search duration ~ Rank of the answer
Mean Reciprocal Rank
Mean Reciprocal Rank
Given those three samples, we could calculate MRRS as (1/3+1/2+1)/3=11/18, or approximately 0.61.
Human Judgments
User Behavior
Search Results for “CIKM” (in 2009!)
# of clicks received
User Behavior
Adapt ranking to user clicks?
# of clicks received
What do clicks tell us?
Tools needed for non-trivial cases
# of clicks received
Eye-tracking User Study
Click Position-bias
Higher positions receive more user attention (eye fixation) and clicks than lower positions.
This is true even in the extreme setting where the order of positions is reversed.
“Clicks are informative but biased”.
Normal Position
Percentage
Reversed Impression
Percentage
Relative vs Absolute Ratings
User’s click sequence
Evaluating Pairwise Relative Ratings
Comparing Two Rankings via Clicks
Kernel machines
SVM-light
Lucent SVM demo
Royal Holl. SVM
SVM software
SVM tutorial
Kernel machines
SVMs
Intro to SVMs
Archives of SVM
SVM-light
SVM software
Query: [support vector machines]
Ranking A
Ranking B
Interleave the Two Rankings
Kernel machines
SVM-light
Lucent SVM demo
Royal Holl. SVM
Kernel machines
SVMs
Intro to SVMs
Archives of SVM
SVM-light
This interleaving�starts with B
…
Remove Duplicate Results
Kernel machines
SVM-light
Lucent SVM demo
Royal Holl. SVM
Kernel machines
SVMs
Intro to SVMs
Archives of SVM
SVM-light
…
Count User Clicks
Kernel machines
SVM-light
Lucent SVM demo
Royal Holl. SVM
Kernel machines
SVMs
Intro to SVMs
Archives of SVM
SVM-light
…
Clicks
Ranking A: 3�Ranking B: 1
A, B
A
A
Interleaved Ranking
A/B testing at Web Search Engines
Facts/Entities
Recap
User Behavior
Incorporating User Behavior into Ranking Algorithm
Thank You