1 Random Sampling from a Search Engines Index Ziv Bar-Yossef Maxim Gurevich Department of Electrical Engineering Technion.

Slides:



Advertisements
Similar presentations
Towards Data Mining Without Information on Knowledge Structure
Advertisements

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advanced Piloting Cruise Plot.
Our library has two forms of encyclopedias: Hard copy and electronic versions. The first is simply the old-fashioned "book on the shelf" type of encyclopedia.
Kapitel S3 Astronomie Autor: Bennett et al. Raumzeit und Gravitation Kapitel S3 Raumzeit und Gravitation © Pearson Studium 2010 Folie: 1.
Kapitel 21 Astronomie Autor: Bennett et al. Galaxienentwicklung Kapitel 21 Galaxienentwicklung © Pearson Studium 2010 Folie: 1.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National.
Effective Change Detection Using Sampling Junghoo John Cho Alexandros Ntoulas UCLA.
1 Web Search Environments Web Crawling Metadata using RDF and Dublin Core Dave Beckett Slides:
1 Random Sampling from a Search Engines Index Ziv Bar-Yossef Department of Electrical Engineering, Technion Maxim Gurevich Department of Electrical Engineering,
Document #07-12G 1 RXQ Customer Enrollment Using a Registration Agent Process Flow Diagram (Switch) Customer Supplier Customer authorizes Enrollment.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Determine Eligibility Chapter 4. Determine Eligibility 4-2 Objectives Search for Customer on database Enter application signed date and eligibility determination.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
ZMQS ZMQS
Correctness of Gossip-Based Membership under Message Loss Maxim GurevichIdit Keidar Technion.
Chapter 7 Sampling and Sampling Distributions
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Randomized Algorithms Randomized Algorithms CS648 1.
ABC Technology Project
5-1 Chapter 5 Theory & Problems of Probability & Statistics Murray R. Spiegel Sampling Theory.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
Text Categorization.
Polynomial Factor Theorem Polynomial Factor Theorem
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Do you have the Maths Factor?. Maths Can you beat this term’s Maths Challenge?
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Januar MDMDFSSMDMDFSSS
Week 1.
We will resume in: 25 Minutes.
1 Random Sampling - Random Samples. 2 Why do we need Random Samples? Many business applications -We will have a random variable X such that the probability.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
12 January 2009SDS batch generation, distribution and web interface 1 ExESS IT tool for SDS batch generation, distribution and web interface ExESS IT tool.
A SMALL TRUTH TO MAKE LIFE 100%
PSSA Preparation.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
How Cells Obtain Energy from Food
Immunobiology: The Immune System in Health & Disease Sixth Edition
Towers of Hanoi
1 Random Sampling from a Search Engine‘s Index Ziv Bar-Yossef Maxim Gurevich Department of Electrical Engineering Technion.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 11 June 11, 2006
Automatic Evaluation Of Search Engines Project Presentation Team members: Levin Boris Laserson Itamar Instructor Name: Gurevich Maxim.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 10 June 4, 2006
1 Uniform Sampling from the Web via Random Walks Ziv Bar-Yossef Alexander Berg Steve Chien Jittat Fakcharoenphol Dror Weitz University of California at.
1 Random Sampling from a Search Engine‘s Index Ziv Bar-Yossef and Maxim Gurevich Department of Electrical Engineering Technion Presentation at group meeting,
Efficient Search Engine Measurements Maxim Gurevich Technion Ziv Bar-Yossef Technion and Google.
Uniform Sampling from the Web via Random Walks
Presentation transcript:

1 Random Sampling from a Search Engines Index Ziv Bar-Yossef Maxim Gurevich Department of Electrical Engineering Technion

2 Search Engine Samplers Index Public Interface Public Interface Search Engine Sampler Web D Queries Top k results Random document x D Indexed Documents

3 Motivation Useful tool for search engine evaluation: Freshness Fraction of up-to-date pages in the index Topical bias Identification of overrepresented/underrepresented topics Spam Fraction of spam pages in the index Security Fraction of pages in index infected by viruses/worms/trojans Relative Size Number of documents indexed compared with other search engines

4 Size Wars August 2005 : We index 20 billion documents. So, whos right? September 2005 : We index 8 billion documents, but our index is 3 times larger than our competitions.

5 Related Work Random Sampling from a Search Engines Index [BharatBroder98, CheneyPerry05, GulliSignorni05] Anecdotal queries [SearchEngineWatch, Google, BradlowSchmittlein00] Queries from user query logs [LawrenceGiles98, DobraFeinberg04] Random sampling from the whole web [Henzinger et al 00, Bar-Yossef et al 00, Rusmevichientong et al 01]

6 Our Contributions A pool-based sampler Guaranteed to produce near-uniform samples A random walk sampler After sufficiently many steps, guaranteed to produce near-uniform samples Does not need an explicit lexicon/pool at all! Focus of this talk

7 Search Engines as Hypergraphs results(q) = { documents returned on query q } queries(x) = { queries that return x as a result } P = query pool = a set of queries Query pool hypergraph: Vertices:Indexed documents Hyperedges:{ result(q) | q P } news.google.com news.bbc.co.uk maps.google.com maps.yahoot.com news bbc google maps en.wikipedia.org/wiki/BBC

8 Query Cardinalities and Document Degrees Query cardinality: card(q) = |results(q)| Document degree: deg(x) = |queries(x)| Examples: card(news) = 4, card(bbc) = 3 deg( = 1, deg(news.bbc.co.uk) = news.google.com news.bbc.co.uk maps.google.com maps.yahoot.com news bbc google maps en.wikipedia.org/wiki/BBC

9 The Pool-Based Sampler: Preprocessing Step C Large corpus P q1q1 … … Query Pool Example: P = all 3-word phrases that occur in C If to be or not to be occurs in C, P contains: to be or, be or not, or not to, not to be Choose P that covers most documents in D q2q2

10 Monte Carlo Simulation We dont know how to generate uniform samples from D directly How can we use biased samples to generate uniform samples? Samples with weights that represent their bias can be used to simulate uniform samples Monte Carlo Simulation Methods Rejection Sampling Importance Sampling Metropolis- Hastings Maximum- Degree

11 Document Degree Distribution We are able to generate biased samples from the document degree distribution Advantage: Can compute weights representing the bias of p:

12 Rejection Sampling [von Neumann] accept := false while (not accept) generate a sample x from p toss a coin whose heads probability is w p (x) if coin comes up heads, accept := true return x

13 Pool-Based Sampler Degree distribution sampler Search Engine Rejection Sampling q 1,q 2,… results(q 1 ), results(q 2 ),… x Pool-Based Sampler (x 1,1/deg(x 1 )), (x 2,1/deg(x 2 )),… Uniform sample Documents sampled from degree distribution with corresponding weights Degree distribution: p(x) = deg(x) / x deg(x)

14 Sampling documents by degree Select a random q P Select a random x results(q) Documents with high degree are more likely to be sampled If we sample q uniformly oversample documents that belong to narrow queries We need to sample q proportionally to its cardinality news.google.com news.bbc.co.uk maps.google.com maps.yahoot.com news bbc google maps en.wikipedia.org/wiki/BBC

15 Sampling queries by cardinality Sampling queries from pool uniformly:Easy Sampling queries from pool by cardinality: Hard Requires knowing cardinalities of all queries in the search engine Use Monte Carlo methods to simulate biased sampling via uniform sampling: Sample queries uniformly from P Compute cardinality weight for each sample: Obtain queries sampled by their cardinality

16 Dealing with Overflowing Queries Problem: Some queries may overflow (card(q) > k) Bias towards highly ranked documents Solutions: Select a pool P in which overflowing queries are rare (e.g., phrase queries) Skip overflowing queries Adapt rejection sampling to deal with approximate weights Theorem: Samples of PB sampler are at most -away from uniform. ( = overflow probability of P)

17 Bias towards Long Documents

18 Relative Sizes of Google, MSN and Yahoo! Google = 1 Yahoo! = 1.28 MSN Search = 0.73

19 Conclusions Two new search engine samplers Pool-based sampler Random walk sampler Samplers are guaranteed to produce near- uniform samples, under plausible assumptions. Samplers show no or little bias in experiments.

20 Thank You

21 Top-Level Domains in Google, MSN and Yahoo!

22 Query Cardinality Distribution Unrealistic assumptions: Can sample queries from the cardinality distribution In practice, dont know a priori card(q) for all q P q P, 1 card(q) k In practice, some queries underflow (card(q) = 0) or overflow (card(q) > k) results(q) = { documents returned on query q } card(q) = |results(q)| Cardinality distribution:

23 Degree Distribution Sampler Search Engine results(q) x Cardinality Distribution Sampler Sample x uniformly from results(q) q Degree Distribution Sampler Query sampled from cardinality distribution Document sampled from degree distribution

24 Cardinality Distribution Sampler Search Engine q Cardinality Distribution Sampler Uniform Query Sampler Rejection Sampling q 1,q 2,… card(q 1 ), card(q 2 ),… (q 1,card(q 1 )/k), (q 2,card(q 2 )/k), … Sample from cardinality distribution Uniform samples from P

25 Degree Distribution Sampler Complete Pool-Based Sampler Search Engine Rejection Sampling x (x,1/deg(x)),… Uniform document sample Documents sampled from degree distribution with corresponding weights Uniform Query Sampler Rejection Sampling (q,card(q)),… Uniform query sample Query sampled from cardinality distribution (q,results(q)),…

26 A random walk sampler Define a graph G over the indexed documents (x,y) E iff results(x) results(y) Run a random walk on G Limit distribution = degree distribution Use MCMC methods to make limit distribution uniform. Metropolis-Hastings Maximum-Degree Does not need a preprocessing step Less efficient than the pool-based sampler