cs 572: information retrieval - emory universityeugene/cs572/lectures... · • early keyword-based...

76
1 CS 572: Information Retrieval Introduction to Web Search Acknowledgements Some slides in this lecture are adapted from Manning (Stanford)

Upload: others

Post on 14-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

1

CS 572: Information Retrieval

Introduction to Web Search

Acknowledgements

Some slides in this lecture are adapted from Manning (Stanford)

Page 2: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Plan

• Logistics

• Web search

– Web? “surface web” vs. “deep web”

– Users

– Begin: Web crawling

Page 3: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Logistics

• Midterms results: Monday

• Project 1 results & competition: Monday

• Project 2 assigned: today (details + approximate timeline end of lecture)

Page 4: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Basic assumptions of Classical Information Retrieval

• Corpus: Fixed document collection

• Goal: Retrieve documents with information content that is relevant to user’s information need

Page 5: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Classic IR Goal

•Classic relevance–For each query Q and stored document D in a given

corpus assume there exists relevance Score(Q, D)

• Score is average over users U and contexts C

–Optimize Score(Q, D) as opposed to Score(Q, D, U, C)

–That is, usually:

• Context ignored

• Individuals ignored

• Corpus predetermined

Bad assumptions

in the web context

Page 6: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

The coarse-level dynamics

Content creators Content aggregators

Feeds

Crawls

Content consumers

Adver

tise

men

tE

dit

ori

al

Subsc

ripti

on

Tra

nsa

ctio

n

Page 7: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Web Search: Brief (non-technical) history

• Early keyword-based engines ca. 1995-1997

– Altavista, Excite, Infoseek, Inktomi, Lycos

• Paid search ranking: Goto (morphed into Overture.com Yahoo!)

– Your search ranking depended on how much you paid

– Auction for keywords: casino was expensive!

Page 8: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Web Search: Brief (non-technical) history 2

• 1998+: Link-based ranking pioneered by Google– Blew away all early engines save Inktomi

– Great user experience in search of a business model

– Meanwhile Goto/Overture’s annual revenues were nearing $1 billion

• Result: Google added paid search “ads” to the side, independent of search results– Yahoo followed suit, acquiring Overture (for paid placement) and Inktomi (for

search)

• 2005+: Google gains search share, dominating in Europe and very strong in North America– 2009: Yahoo! and Microsoft propose combined paid search offering

Page 9: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Algorithmic results.

Paid

Search Ads

Page 10: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Web search basics

The Web

Ad indexes

Web Results 1 - 10 of about 7,310,000 for miele. (0.12 seconds)

Miele, Inc -- Anything else is a compromise At the heart of your home, Appliances by Miele. ... USA. to miele.com. Residential Appliances. Vacuum Cleaners. Dishwashers. Cooking Appliances. Steam Oven. Coffee System ... www.miele.com/ - 20k - Cached - Similar pages

Miele Welcome to Miele, the home of the very best appliances and kitchens in the world. www.miele.co.uk/ - 3k - Cached - Similar pages

Miele - Deutscher Hersteller von Einbaugeräten, Hausgeräten ... - [ Translate this

page ] Das Portal zum Thema Essen & Geniessen online unter www.zu-tisch.de. Miele weltweit ...ein Leben lang. ... Wählen Sie die Miele Vertretung Ihres Landes. www.miele.de/ - 10k - Cached - Similar pages

Herzlich willkommen bei Miele Österreich - [ Translate this page ] Herzlich willkommen bei Miele Österreich Wenn Sie nicht automatisch weitergeleitet werden, klicken Sie bitte hier! HAUSHALTSGERÄTE ... www.miele.at/ - 3k - Cached - Similar pages

Sponsored Links CG Appliance Express Discount Appliances (650) 756-3931 Same Day Certified Installation www.cgappliance.com San Francisco-Oakland-San Jose, CA Miele Vacuum Cleaners Miele Vacuums- Complete Selection Free Shipping! www.vacuums.com Miele Vacuum Cleaners Miele-Free Air shipping! All models. Helpful advice. www.best-vacuum.com

Web crawler

Indexer

Indexes

Search

User

Sec. 19.4.1

Page 11: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

The Web corpus

• No design/co-ordination• Distributed content creation, linking,

democratization of publishing• Content includes truth, lies, obsolete

information, contradictions … • Unstructured (text, html, …), semi-

structured (XML, annotated photos), structured (Databases)…

• Scale much larger than previous text corpora … but corporate records are catching up.

• Growth – slowed down from initial “volume doubling every few months” but still expanding

• Content can be dynamically generatedThe Web

Page 12: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

12

The Web graph

• Edges can be directed or undirected

• Graph is highly dynamic– Nodes and edges are

added/deleted often– Content of existing nodes

is also subject to change– Pages and hyperlinks

created on the fly• Apart from primary

connected component there are also smaller disconnected components The Web

Page 13: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

• Issues

– The web is really infinite

• Dynamic content, e.g., calendar

• Soft 404: www.yahoo.com/anything is a valid page

– Static web contains syntactic duplication, mostly due to mirroring (~20-30%)

– Some servers are seldom connected

• Who cares?

– Media, and consequently the user

– Engine design

– Engine crawl policy. Impact on recall

What is the size of the web corpus?

Page 14: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

What can we attempt to measure?

•The relative sizes of search engines

–The notion of a page being indexed is still reasonably well defined.

–Already there are problems

• Document extension: e.g. engines index pages not yet crawled, by indexing anchortext.

• Document restriction: All engines restrict what is indexed (first nwords, only relevant words, etc.)

•The coverage of a search engine relative to another particular crawling process.

Sec. 19.5

Page 15: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

New definition?

(IQ is whatever the IQ tests measure.)

– The statically indexable web is whatever search engines index.

• Different engines have different preferences

– max url depth, max count/host, anti-spam rules, priority rules, etc.

• Different engines index different things under the same URL:

– frames, meta-keywords, document restrictions, document extensions, ...

Sec. 19.5

Page 16: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

A B = (1/2) * Size A

A B = (1/6) * Size B

(1/2)*Size A = (1/6)*Size B

\ Size A / Size B =

(1/6)/(1/2) = 1/3

Sample URLs randomly from A

Check if contained in B and vice versa

A B

Each test involves: (i) Sampling (ii) Checking

Relative Size from OverlapGiven two engines A and B

Sec. 19.5

Page 17: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Sampling URLs

Ideal strategy: Generate a random URL and check for

containment in each index.

Problem: Random URLs are hard to find! Enough to

generate a random URL contained in a given Engine.

Approach 1: Generate a random URL contained in a given engine Suffices for the estimation of relative size

Approach 2: Random walks / IP addresses In theory: might give us a true estimate of the size of the web (as opposed to just

relative sizes of indexes)

Sec. 19.5

Page 18: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Statistical methods

• Approach 1

– Random queries

– Random searches

• Approach 2

– Random IP addresses

– Random walks

Sec. 19.5

Page 19: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

• Both tasks by using the public interface SEs

• Sampling:

– Construct a large lexicon

– Use the lexicon to fire random queries

– Sample a page from the results

– (introduces query and ranking biases)

• Checking:

– Construct a strong query from the most k most distinctive terms of the page

– (in order to deal with aliases, mirror pages, etc.)

Sampling and checking pages

Page 20: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random URLs from random queries

• Generate random query: how?– Lexicon: 400,000+ words from a web crawl

– Conjunctive Queries: w1 and w2

e.g., vocalists AND rsi

• Get 100 result URLs from engine A

• Choose a random URL as the candidate to check for presence in engine B

• This distribution induces a probability weight W(p) for each page.

• Conjecture: W(SEA) / W(SEB) ~ |SEA| / |SEB|

Not an English

dictionary

Sec. 19.5

Page 21: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Query Based Checking

• Strong Query to check whether an engine B has a document D:– Download D. Get list of words. – Use 8 low frequency words as AND query to B– Check if D is present in result set.

• Problems:– Near duplicates– Frames– Redirects– Engine time-outs– Is 8-word query good enough?

Sec. 19.5

Page 22: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Advantages & disadvantages

• Statistically sound under the induced weight.

• Biases induced by random query

– Query Bias: Favors content-rich pages in the language(s) of the lexicon

– Ranking Bias: Solution: Use conjunctive queries & fetch all

– Checking Bias: Duplicates, impoverished pages omitted

– Document or query restriction bias: engine might not deal

properly with 8 words conjunctive query

– Malicious Bias: Sabotage by engine

– Operational Problems: Time-outs, failures, engine inconsistencies,

index modification.

Sec. 19.5

Page 23: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random searches

• Choose random searches extracted from a local log [Lawrence & Giles 97] or build “random searches” [Notes]

– Use only queries with small result sets.

– Count normalized URLs in result sets.

– Use ratio statistics

Sec. 19.5

Page 24: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Advantages & disadvantages

• Advantage

– Might be a better reflection of the human perception of coverage

• Issues

– Samples are correlated with source of log

– Duplicates

– Technical statistical problems (must have non-zero results, ratio average not statistically sound)

Sec. 19.5

Page 25: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random searches

• 575 & 1050 queries from the NEC RI employee logs

• 6 Engines in 1998, 11 in 1999

• Implementation:

– Restricted to queries with < 600 results in total

– Counted URLs from each engine after verifying query match

– Computed size ratio & overlap for individual queries

– Estimated index size ratio & overlap by averaging over all queries

Sec. 19.5

Page 26: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

• adaptive access control

• neighborhood preservation topographic

• hamiltonian structures

• right linear grammar

• pulse width modulation neural

• unbalanced prior probabilities

• ranked assignment method

• internet explorer favourites importing

• karvel thornber

• zili liu

Queries from Lawrence and Giles study

• softmax activation function

• bose multidimensional system theory

• gamma mlp

• dvi2pdf

• john oliensis

• rieke spikes exploring neural

• video watermarking

• counterpropagation network

• fat shattering dimension

• abelson amorphous computing

Sec. 19.5

Page 27: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

• Total web = 11.5 B

• Union of major search engines = 9.5 B

• Common web = 2.7 B (Much higher correlation than

before)

Refinement of the B&B technique

[Gulli & Signorini, 2005]

Page 28: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Bias towards long documents

0%

10%

20%

30%

40%

50%

60%

1 2 3 4 5 6 7 8 9 10

Pe

rce

nt o

f d

ocu

me

nts

fro

m s

am

ple

.

Deciles of documents ordered by size

Pool Based Random Walk

Bharat-Broder

Page 29: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random IP addresses

• Generate random IP addresses

• Find a web server at the given address

– If there’s one

• Collect all pages from server

– From this, choose a page at random

Sec. 19.5

Page 30: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random IP addresses

• HTTP requests to random IP addresses – Ignored: empty or authorization required or excluded

– [Lawr99] Estimated 2.8 million IP addresses running crawlable web servers (16 million total) from observing 2500 servers.

– OCLC using IP sampling found 8.7 M hosts in 2001• Netcraft [Netc02] accessed 37.2 million hosts in July 2002

• [Lawr99] exhaustively crawled 2500 servers and extrapolated– Estimated size of the web to be 800 million pages– Estimated use of metadata descriptors:

• Meta tags (keywords, description) in 34% of home pages, Dublin core metadata in 0.3%

Sec. 19.5

Page 31: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Netcraft Web Server Surveyhttp://news.netcraft.com/archives/web_server_survey.html

Page 32: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Advantages & disadvantages

• Advantages– Clean statistics– Independent of crawling strategies

• Disadvantages– Doesn’t deal with duplication – Many hosts might share one IP, or not accept requests– No guarantee all pages are linked to root page.

• Eg: employee pages

– Power law for # pages/hosts generates bias towards sites with few pages.• But bias can be accurately quantified IF underlying distribution

understood

– Potentially influenced by spamming (multiple IP’s for same server to avoid IP block)

Sec. 19.5

Page 33: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Random walks

• [Bar-Yossef and Gurevich, WWW 2006]

• View the Web as a directed graph

• Build a random walk on this graph– Includes various “jump” rules back to visited sites

• Does not get stuck in spider traps!

• Can follow all links!

– Converges to a stationary distribution• Must assume graph is finite and independent of the walk.

• Conditions are not satisfied (cookie crumbs, flooding)

• Time to convergence not really known

– Sample from stationary distribution of walk

– Use the “strong query” method to check coverage by SE

Sec. 19.5

Page 34: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Bias towards long documents

0%

10%

20%

30%

40%

50%

60%

1 2 3 4 5 6 7 8 9 10

Pe

rce

nt o

f d

ocu

me

nts

fro

m s

am

ple

.

Deciles of documents ordered by size

Pool Based Random Walk

Bharat-Broder

Page 35: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Google = 1

Yahoo! = 1.28

MSN Search = 0.73

• [Bar-Yossef and Gurevich, 2006]

Relative size of major search engines

Page 36: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Advantages & disadvantages

• Advantages

– “Statistically clean” method at least in theory!

– Could work even for infinite web (assuming convergence) under certain metrics.

• Disadvantages

– List of seeds is a problem.

– Practical approximation might not be valid.

– Non-uniform distribution

• Subject to link spamming

Sec. 19.5

Page 37: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Conclusions

• No sampling solution is perfect.

• Lots of new ideas ...

• ....but the problem is getting harder

• Quantitative studies are fascinating and a good research problem

Sec. 19.5

Page 38: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Web Content Evolution

• All of these numbers keep changing

• Relatively few scientific studies of the evolution of the web [e.g., Fetterly et al., 2003]– http://research.microsoft.com/research/sv/sv-pubs/p97-

fetterly/p97-fetterly.pdf

• Sometimes possible to extrapolate from small samples (fractal models) [Dill & al, 2001]– http://www.vldb.org/conf/2001/P069.pdf

Page 39: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Rate of change

• [Cho00] 720K pages from 270 popular sites sampled daily from Feb 17 – Jun 14, 1999 – Any changes: 40% weekly, 23% daily

• [Fett02] Massive study 151M pages checked over few months– Significant changed -- 7% weekly– Small changes – 25% weekly

• [Ntul04] 154 large sites re-crawled from scratch weekly– 8% new pages/week – 8% die– 5% new content– 25% new links/week

Page 40: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Static pages: rate of change

• Fetterly et al. study (2002): several views of data, 150 million pages over 11 weekly crawls– Bucketed into 85 groups by extent of change

Page 41: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

The Web: Dynamic content

• A page without a static html version– E.g., current status of flight AA129

– Current availability of rooms at a hotel

• Usually, assembled at the time of a request from a browser– Typically, URL has a ‘?’ character in it

Application server

Browser

AA129

Back-end

databases

Page 42: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Dynamic content

• Most dynamic content is ignored by web crawlers– Many reasons including malicious spider traps

• Some dynamic content (news stories from subscriptions) are sometimes delivered as dynamic content– Application-specific crawling

• Crawlers commonly view web pages just as Lynx (a text browser) would

• Note: even “static” pages are typically assembled on the

fly (e.g., headers are common)

Page 43: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

This was “surface” web

Page 44: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

The Invisible, Deep, or Hidden Web

• Web sites or information that Google or other popular search engines are not fully indexing

• Websites specifically excluded by the search engine

Page 45: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Invisible (Deep or Hidden) Web

• Public info is 400 – 550 times larger• 550 billion individual documents vs 20 billion on surface web• Higher Quality content than surface web• 95% of Deep Web is accessible to public (no fees or subscription

required) (Bergman, BrightPlanet)

Page 46: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Opaque Web – material that can be, but is not included in search engine results. Ex: new material added and not yet picked up.Private Web – sites intentionally excluded from search engine results. Ex: password protected Proprietary Web – sites that require user registration. Ex: eBay, New York TimesPay per click – Ex: overture.com, FindWhat.com

Hidden Web sites

Page 47: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Content of Databases

• Information stored in tables (Access, Oracle, SQL Server, DB2) and accessible only by query.

• Examples:– Phone books, People finders– Patents, laws– Items for sale in e-tailers– Web-based auctions – Digital exhibits– Multimedia– Stocks

Page 48: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Examples of Hidden Sites

• Pages in searchable databases: medical (WebMD.com), patent, scientific, legal (Lexis and Westlaw), reference

• Pages requiring login or registration: Blackboard, New York Times• Government publications or databases: ERIC• Online databases: Gale Research• PDF files, audio, video, any new format

Page 49: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

More Examples

• Dictionaries and thesauri

• Sites that require forms to be filled out (ex: travel direction, job hunting)

• Product catalogs and library catalogs

• Newspaper and magazine archives

• Dynamic web pages (ex: airline flight checkers, mapquest)

• Interactive tools (ex: calculators)

Page 50: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Searching the Invisible Web

• Use the following to get around, just like the visible web:

– Directories – subject guide compiled by human editors

– Search Engines

– Specialized Databases

Page 51: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Directories for the Invisible Web

• Big Hub– http://www.thebighub.com/

• Complete Planet: The Deep Web Directory – 70,000 searchable databases and specialty search engines– http://www.completeplanet.com

• IncyWincy: The Invisible Web Search Engine– Offers Web Search, Directory Search, Metasearch, News– http://www.incywincy.com

• Open Directory Project (dmoz)– http://www.dmoz.org (want to edit?)

• Invisible Web Directory– http://www.invisible-web.net/

Page 52: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Search Engines forthe Invisible Web

• AlltheWeb: find it all

– http://www.alltheweb.com

• Bright Planet

– http://www.brightplanet.com/

• Direct Search: SearchCenter (59 pages!)

– Can get updates through emails - Resourceshelf

– http://www.freepint.com/gary/direct.htm

• IxQuick: the world’s most powerful metasearch engine

– http://ixquick.com/

Page 53: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

The Web corpus

• No design/co-ordination• Distributed content creation, linking,

democratization of publishing• Content includes truth, lies, obsolete

information, contradictions … • Unstructured (text, html, …), semi-

structured (XML, annotated photos), structured (Databases)…

• Scale much larger than previous text corpora … but corporate records are catching up.

• Growth – slowed down from initial “volume doubling every few months” but still expanding

• Much of the content is duplicated• Content can be dynamically generated

The Web

Page 54: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Further Topics on Web Corpus

• Significant Content Duplication – Syntactic – 30%-40% (near) duplicates [Brod97,

Shiv99b, etc.]

– Semantic – ???

• Content Spam– Billions of pages

Page 55: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

DUPLICATE DETECTION

Sec. 19.6

Page 56: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Duplicate documents

• The web is full of duplicated content

• Strict duplicate detection = exact match

– Not as common

• But many, many cases of near duplicates

– E.g., Last modified date the only difference between two copies of a page

Sec. 19.6

Page 57: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Duplicate/Near-Duplicate Detection

• Duplication: Exact match can be detected with fingerprints

• Near-Duplication: Approximate match

– Overview

• Compute syntactic similarity with an edit-distance measure

• Use similarity threshold to detect near-duplicates– E.g., Similarity > 80% => Documents are “near duplicates”

– Not transitive though sometimes used transitively

Sec. 19.6

Page 58: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Computing Similarity

• Features:

– Segments of a document (natural or artificial breakpoints)

– Shingles (Word N-Grams)– a rose is a rose is a rose →

a_rose_is_arose_is_a_rose

is_a_rose_isa_rose_is_a

• Similarity Measure between two docs (= sets of shingles)

– Set intersection – Specifically (Size_of_Intersection / Size_of_Union)

Sec. 19.6

Page 59: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Shingles + Set Intersection

• Computing exact set intersection of shingles between all pairs of documents is expensive/intractable

–Approximate using a cleverly chosen subset of shingles from each (a sketch)

• Estimate (size_of_intersection / size_of_union) based on a short sketch

Doc

AShingle set A Sketch A

Doc B

Shingle set B Sketch B

Jaccard

Sec. 19.6

Page 60: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Sketch of a document

• Create a “sketch vector” (of size ~200) for each document

– Documents that share ≥ t (say 80%) corresponding vector elements are near duplicates

– For doc D, sketchD[ i ] is as follows:

• Let f map all shingles in the universe to 0..2m (e.g., f = fingerprinting)

• Let pi be a random permutation on 0..2m

• Pick MIN {pi(f(s))} over all shingles s in D

Sec. 19.6

Page 61: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Computing Sketch[i] for Doc1

Document 1

264

264

264

264

Start with 64-bit f(shingles)

Permute on the number line

with pi

Pick the min value

Sec. 19.6

Page 62: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Test if Doc1.Sketch[i] = Doc2.Sketch[i]

Document 1 Document 2

264

264

264

264

264

264

264

264

Are these equal?

Test for 200 random permutations: p1, p2,… p200

A B

Sec. 19.6

Page 63: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

However…

Document 1 Document 2

264

264

264

264

264

264

264

264

A = B iff the shingle with the MIN value in the union of Doc1 and Doc2 is common to both (i.e., lies in the intersection)

Claim: This happens with probabilitySize_of_intersection / Size_of_union

BA

Why?

Sec. 19.6

Page 64: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Set Similarity of sets Ci , Cj

• View sets as columns of a matrix A; one row for each element in the universe. aij = 1 indicates presence of item i in set j

• Example

ji

ji

jiCC

CC)C,Jaccard(C

C1 C2

0 11 01 1 Jaccard(C1,C2) = 2/5 = 0.40 01 10 1

Sec. 19.6

Page 65: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Key Observation

• For columns Ci, Cj, four types of rows

Ci Cj

A 1 1

B 1 0

C 0 1

D 0 0

• Overload notation: A = # of rows of type A

• ClaimCBA

A)C,Jaccard(C ji

Sec. 19.6

Page 66: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

“Min” Hashing

• Randomly permute rows

• Hash h(Ci) = index of first row with 1 in column Ci

• Surprising Property

• Why?

– Both are A/(A+B+C)

– Look down columns Ci, Cj until first non-Type-D row

– h(Ci) = h(Cj) type A row

jiji C,CJaccard )h(C)h(C P

Sec. 19.6

Page 67: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Min-Hash sketches

• Pick P random row permutations

• MinHash sketchSketchD = list of P indexes of first rows with 1 in column C

• Similarity of signatures

– Let sim[sketch(Ci),sketch(Cj)] = fraction of permutations where MinHash values agree

– Observe E[sim(sig(Ci),sig(Cj))] = Jaccard(Ci,Cj)

Sec. 19.6

Page 68: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Example

C1 C2 C3

R1 1 0 1

R2 0 1 1

R3 1 0 0

R4 1 0 1

R5 0 1 0

Signatures

S1 S2 S3

Perm 1 = (12345) 1 2 1

Perm 2 = (54321) 4 5 4

Perm 3 = (34512) 3 5 4

Similarities

1-2 1-3 2-3

Col-Col 0.00 0.50 0.25

Sig-Sig 0.00 0.67 0.00

Sec. 19.6

Page 69: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Implementation Trick

• Permuting universe even once is prohibitive

• Row Hashing– Pick P hash functions hk: {1,…,n}{1,…,O(n)}

– Ordering under hk gives random permutation of rows

• One-pass Implementation– For each Ci and hk, keep “slot” for min-hash value

– Initialize all slot(Ci,hk) to infinity

– Scan rows in arbitrary order looking for 1’s• Suppose row Rj has 1 in column Ci

• For each hk, – if hk(j) < slot(Ci,hk), then slot(Ci,hk) hk(j)

Sec. 19.6

Page 70: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

ExampleC1 C2

R1 1 0

R2 0 1

R3 1 1

R4 1 0

R5 0 1

h(x) = x mod 5

g(x) = 2x+1 mod 5

h(1) = 1 1 -

g(1) = 3 3 -

h(2) = 2 1 2

g(2) = 0 3 0

h(3) = 3 1 2

g(3) = 2 2 0

h(4) = 4 1 2

g(4) = 4 2 0

h(5) = 0 1 0

g(5) = 1 2 0

C1 slots C2 slots

Sec. 19.6

Page 71: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Comparing Signatures

• Signature Matrix S

–Rows = Hash Functions

–Columns = Columns

–Entries = Signatures

• Can compute – Pair-wise similarity of any pair of signature columns

Sec. 19.6

Page 72: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

All signature pairs

Now we have an extremely efficient method for estimating a Jaccard coefficient for a single pair of documents.

But we still have to estimate N2 coefficients where N is the number of web pages.

Still slow

One solution: locality sensitive hashing (LSH)

Another solution: sorting (Henzinger 2006)

Sec. 19.6

Page 73: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Final Project Guidelines

• Groups of 2-3 students• Evaluation: Proposal: 10%. Progress: 20%. Final Prez: 20%.

Results/Report: 50%Steps: 1. Initial project proposal: Monday March 21st

– Feedback Wednesday, March 23– Short 5-minute “idea pitch” to class (can still adjust/re-organize)

2. Final project proposal: March 28– 1.5 page– The project will be evaluated against the final proposal

3. Intermediate progress presentation (short): April 204. Presentation & Report: First week of May Short in-class presentation, in-class feedback Report (5 pages maximum): few days after presentation.

3/14/2016 CS 572: Information Retrieval. Spring 2010 73

Page 74: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Project Initial Proposals: Monday 3/21

• Project name, team member(s)1. 1 paragraph: problem and goal

Main project goal: problem addressed, why important?

2. 1-2 paragraphs: approachSketch of planned approach to the problem

3. 1 paragraph: evaluationSketch of planned experiments, metrics, datasets

4. 1 paragraph: potential issues and backup planWhat if approach in #2 does not work? Backup plan?

5. Special requirements?Any special hardware/software (virtual web server)? Datasets?

Monday: present short (5-10 minute) “pitch” to class, focusing on 1 & 2.

3/14/2016 CS 572: Information Retrieval. Spring 2010 74

Page 75: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Some Project Ideas

• Yahoo Learning to Rank Challengehttps://webscope.sandbox.yahoo.com/catalog.php?datatype=c

• Yandex Personalized Click Prediction Challengehttps://www.kaggle.com/c/yandex-personalized-web-search-challenge/

• Yahoo LiveQA challenge:http://trec-liveqa.org

• Network analysis: citation impacthttp://research.microsoft.com/en-us/projects/mag/

• Search/organization of Social Media Data:– Yahoo Answers, Twitter, Blogs, …. (datasets available)– Blogs (one big dataset and more project ideas available here):

http://www.icwsm.org/2010/data.shtml

• Multimedia search/analysis– Tag prediction, geolocation of images, ….

• Product search: https://www.kaggle.com/c/home-depot-product-search-relevance

• Other ideas very welcome!

3/14/2016 CS 572: Information Retrieval. Spring 2010 75

Page 76: CS 572: Information Retrieval - Emory Universityeugene/cs572/lectures... · • Early keyword-based engines ca. 1995-1997 –Altavista, Excite, Infoseek, Inktomi, Lycos • Paid search

Resources for Today's Lecture

• MRS Ch 19

3/14/2016 CS 572: Information Retrieval. Spring 2010 76