Introduction to Information Retrieval LINK ANALYSIS 1.

Slides:



Advertisements
Similar presentations
Lecture 18: Link analysis
Advertisements

Matrices, Digraphs, Markov Chains & Their Use by Google Leslie Hogben Iowa State University and American Institute of Mathematics Leslie Hogben Iowa State.
Analysis of Large Graphs: TrustRank and WebSpam
Link Analysis: PageRank and Similar Ideas. Recap: PageRank Rank nodes using link structure PageRank: – Link voting: P with importance x has n out-links,
CS345 Data Mining Link Analysis Algorithms Page Rank Anand Rajaraman, Jeffrey D. Ullman.
Link Analysis: PageRank
CS345 Data Mining Page Rank Variants. Review Page Rank  Web graph encoded by matrix M N £ N matrix (N = number of web pages) M ij = 1/|O(j)| iff there.
DATA MINING LECTURE 12 Link Analysis Ranking Random walks.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 3 March 23, 2005
Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 21: Link Analysis.
Introduction to PageRank Algorithm and Programming Assignment 1 CSC4170 Web Intelligence and Social Computing Tutorial 4 Tutor: Tom Chao Zhou
CS345 Data Mining Web Spam Detection. Economic considerations  Search has become the default gateway to the web  Very high premium to appear on the.
Information Retrieval IR10 Today’s lecture Anchor text Link analysis for ranking Pagerank and variants HITS.
Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 21: Link Analysis.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 3 April 2, 2006
CS345 Data Mining Link Analysis 3: Hubs and Authorities Spam Detection Anand Rajaraman, Jeffrey D. Ullman.
CS276B Text Retrieval and Mining Winter 2005 Lecture 11.
Link Analysis, PageRank and Search Engines on the Web
CS345 Data Mining Link Analysis Algorithms Page Rank Anand Rajaraman, Jeffrey D. Ullman.
INF 2914 Web Search Lecture 4: Link Analysis Today’s lecture Anchor text Link analysis for ranking Pagerank and variants HITS.
CS347 Lecture 6 April 25, 2001 ©Prabhakar Raghavan.
Adapted from Lectures by
PageRank Debapriyo Majumdar Data Mining – Fall 2014 Indian Statistical Institute Kolkata October 27, 2014.
CS345 Data Mining Link Analysis 2: Topic-Specific Page Rank Hubs and Authorities Spam Detection Anand Rajaraman, Jeffrey D. Ullman.
Information Retrieval Link-based Ranking. Ranking is crucial… “.. From our experimental data, we could observe that the top 20% of the pages with the.
CS246 Link-Based Ranking. Problems of TFIDF Vector  Works well on small controlled corpus, but not on the Web  Top result for “American Airlines” query:
Cloud and Big Data Summer School, Stockholm, Aug., 2015 Jeffrey D. Ullman.
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα
Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 21: Link Analysis.
Introduction to Information Retrieval (Manning, Raghavan, Schutze) Chapter 21 Link analysis.
Adversarial Information Retrieval The Manipulation of Web Content.
Information retrieval Lecture 9 Recap and today’s topics Last lecture web search overview pagerank Today more sophisticated link analysis using links.
PrasadL17LinkAnalysis1 Link Analysis Adapted from Lectures by Prabhakar Raghavan (Yahoo, Stanford) and Christopher Manning (Stanford)
ITCS 6265 Lecture 17 Link Analysis This lecture Anchor text Link analysis for ranking Pagerank and variants HITS.
Lecture 14: Link Analysis
CS276 Lecture 18 Link Analysis Today’s lecture Anchor text Link analysis for ranking Pagerank and variants HITS.
CS276 Information Retrieval and Web Search Christopher Manning and Prabhakar Raghavan Lecture 18: Link analysis.
Web Spam Detection with Anti- Trust Rank Vijay Krishnan Rashmi Raj Computer Science Department Stanford University.
Introduction to Information Retrieval Introduction to Information Retrieval CS276 Information Retrieval and Web Search Chris Manning, Pandu Nayak and.
Introduction to Information Retrieval Introduction to Information Retrieval Information Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan Lecture.
Introduction to Information Retrieval Introduction to Information Retrieval Modified from Stanford CS276 slides Chap. 21: Link analysis.
1 University of Qom Information Retrieval Course Web Search (Link Analysis) Based on:
When Experts Agree: Using Non-Affiliated Experts To Rank Popular Topics Meital Aizen.
CS315 – Link Analysis Three generations of Search Engines Anchor text Link analysis for ranking Pagerank HITS.
Web Search and Tex Mining Lecture 9 Link Analysis.
Lecture 2: Extensions of PageRank
Link Analysis in Web Mining Hubs and Authorities Spam Detection.
PageRank. s1s1 p 12 p 21 s2s2 s3s3 p 31 s4s4 p 41 p 34 p 42 p 13 x 1 = p 21 p 34 p 41 + p 34 p 42 p 21 + p 21 p 31 p 41 + p 31 p 42 p 21 / Σ x 2 = p 31.
CS349 – Link Analysis 1. Anchor text 2. Link analysis for ranking 2.1 Pagerank 2.2 Pagerank variants 2.3 HITS.
Link Analysis Rong Jin. Web Structure  Web is a graph Each web site correspond to a node A link from one site to another site forms a directed edge 
Ranking Link-based Ranking (2° generation) Reading 21.
COMP4210 Information Retrieval and Search Engines Lecture 9: Link Analysis.
CS345 Data Mining Link Analysis 2: Topic-Specific Page Rank Hubs and Authorities Spam Detection Anand Rajaraman, Jeffrey D. Ullman.
Web-Mining Agents Community Analysis Tanya Braun Universität zu Lübeck Institut für Informationssysteme.
Information Retrieval and Web Search Link analysis Instructor: Rada Mihalcea (Note: This slide set was adapted from an IR course taught by Prof. Chris.
Link Analysis Algorithms Page Rank Slides from Stanford CS345, slightly modified.
CS 540 Database Management Systems Web Data Management some slides are due to Kevin Chang 1.
Web Mining Link Analysis Algorithms Page Rank. Ranking web pages  Web pages are not equally “important” v  Inlinks.
Modified by Dongwon Lee from slides by
WEB SPAM.
Quality of a search engine
Search Engines and Link Analysis on the Web
Link analysis and Page Rank Algorithm
Information Retrieval Christopher Manning and Prabhakar Raghavan
INFORMATION RETRIEVAL TECHNIQUES BY DR. ADNAN ABID
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
INFORMATION RETRIEVAL TECHNIQUES BY DR. ADNAN ABID
Junghoo “John” Cho UCLA
Link Analysis II Many slides are borrowed from Stanford Data Mining Class taught by Drs Anand Rajaraman, Jeffrey D. Ullman, and Jure Leskovec.
Presentation transcript:

Introduction to Information Retrieval LINK ANALYSIS 1

Introduction to Information Retrieval Today’s lecture – hypertext and links  We look beyond the content of documents  We begin to look at the hyperlinks between them  Address questions like  Do the links represent a conferral of authority to some pages? Is this useful for ranking?  How likely is it that a page pointed to by the CERN home page is about high energy physics  Big application areas  The Web   Social networks Slides by Manning, Raghavan, Schutze2

Introduction to Information Retrieval Links are everywhere  Powerful sources of authenticity and authority  Mail spam – which accounts are spammers?  Host quality – which hosts are “bad”?  Phone call logs  The Good, The Bad and The Unknown 3 ? ? ? ? Good Bad Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Simple iterative logic  The Good, The Bad and The Unknown  Good nodes won’t point to Bad nodes  All other combinations plausible 4 ? ? ? ? Good Bad Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Simple iterative logic  Good nodes won’t point to Bad nodes  If you point to a Bad node, you’re Bad  If a Good node points to you, you’re Good 5 ? ? ? ? Good Bad Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Simple iterative logic  Good nodes won’t point to Bad nodes  If you point to a Bad node, you’re Bad  If a Good node points to you, you’re Good 6 ? ? Good Bad Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Simple iterative logic  Good nodes won’t point to Bad nodes  If you point to a Bad node, you’re Bad  If a Good node points to you, you’re Good 7 ? Good Bad Sometimes need probabilistic analogs – e.g., mail spam Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Many other examples of link analysis  Social networks are a rich source of grouping behavior  E.g., Shoppers’ affinity – Goel+Goldstein 2010  Consumers whose friends spend a lot, spend a lot themselves  8Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Our primary interest in this course  Analogs of most IR functionality based purely on text  Scoring and ranking  Link-based clustering – topical structure from links  Links as features in classification – documents that link to one another are likely to be on the same subject  Crawling  Based on the links seen, where do we crawl next? 9Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval The Web as a Directed Graph Assumption 1: A hyperlink between pages denotes a conferral of authority (quality signal) Assumption 2: The text in the anchor of the hyperlink describes the target page (textual context) Page A hyperlink Page B Anchor Sec Slides by Manning, Raghavan, Schutze10

Introduction to Information Retrieval Assumption 1: reputed sites 11Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Assumption 2: annotation of target 12Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Anchor Text WWW Worm - McBryan [Mcbr94]  For ibm how to distinguish between:  IBM’s home page (mostly graphical)  IBM’s copyright page (high term freq. for ‘ibm’)  Rival’s spam page (arbitrarily high term freq.) “ibm” “ibm.com” “IBM home page” A million pieces of anchor text with “ibm” send a strong signal Sec Slides by Manning, Raghavan, Schutze13

Introduction to Information Retrieval Indexing anchor text  When indexing a document D, include (with some weight) anchor text from links pointing to D. Armonk, NY-based computer giant IBM announced today Joe’s computer hardware links Sun HP IBM Big Blue today announced record profits for the quarter Sec Slides by Manning, Raghavan, Schutze14

Introduction to Information Retrieval Indexing anchor text  Can sometimes have unexpected side effects - e.g., evil empire.  Can score anchor text with weight depending on the authority of the anchor page’s website  E.g., if we were to assume that content from cnn.com or yahoo.com is authoritative, then trust the anchor text from them Sec Slides by Manning, Raghavan, Schutze15

Introduction to Information Retrieval Anchor Text  Other applications  Weighting/filtering links in the graph  Generating page descriptions from anchor text Sec Slides by Manning, Raghavan, Schutze16

Introduction to Information Retrieval Citation Analysis  Citation frequency  Bibliographic coupling frequency  Articles that co-cite the same articles are related  Citation indexing  Who is this author cited by? (Garfield 1972)  Pagerank preview: Pinsker and Narin ’60s Slides by Manning, Raghavan, Schutze17

Introduction to Information Retrieval The web isn’t scholarly citation  Millions of participants, each with self interests  Spamming is widespread  Once search engines began to use links for ranking (roughly 1998), link spam grew  You can join a group of websites that heavily link to one another 18Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval In-links to pages – unusual patterns 19Slides by Manning, Raghavan, Schutze

Introduction to Information Retrieval Pagerank scoring  Imagine a browser doing a random walk on web pages:  Start at a random page  At each step, go out of the current page along one of the links on that page, equiprobably  “In the steady state” each page has a long-term visit rate - use this as the page’s score. 1/3 Sec Slides by Manning, Raghavan, Schutze20

Introduction to Information Retrieval Not quite enough  The web is full of dead-ends.  Random walk can get stuck in dead-ends.  Makes no sense to talk about long-term visit rates. ?? Sec Slides by Manning, Raghavan, Schutze21

Introduction to Information Retrieval Teleporting  At a dead end, jump to a random web page.  At any non-dead end, with probability 10%, jump to a random web page.  With remaining probability (90%), go out on a random link.  10% - a parameter. Sec Slides by Manning, Raghavan, Schutze22

Introduction to Information Retrieval Result of teleporting  Now cannot get stuck locally.  There is a long-term rate at which any page is visited (not obvious, will show this).  How do we compute this visit rate? Sec Slides by Manning, Raghavan, Schutze23

Introduction to Information Retrieval Markov chains  A Markov chain consists of n states, plus an n  n transition probability matrix P.  At each step, we are in exactly one of the states.  For 1  i,j  n, the matrix entry P ij tells us the probability of j being the next state, given we are currently in state i. ij P ij Sec Slides by Manning, Raghavan, Schutze24

Introduction to Information Retrieval Markov chains  Clearly, for all i,  Markov chains are abstractions of random walks.  Exercise: represent the teleporting random walk from 3 slides ago as a Markov chain, for this case: Sec Slides by Manning, Raghavan, Schutze25

Introduction to Information Retrieval Ergodic Markov chains  For any (ergodic) Markov chain, there is a unique long-term visit rate for each state.  Steady-state probability distribution.  Over a long time-period, we visit each state in proportion to this rate.  It doesn’t matter where we start. Sec Slides by Manning, Raghavan, Schutze26

Introduction to Information Retrieval Theory of Markov chains  Fact: For any start vector, the power method applied to a Markov transition matrix P will converge to a unique positive stationary vector as long as P is stochastic, irreducible and aperiodic. Slides by Jure Leskovec: Mining Massive Datasets 27

Introduction to Information Retrieval Make M Stochastic  Stochastic: Every column sums to 1  A possible solution: Add green links Slides by Jure Leskovec: Mining Massive Datasets 28 y y a a m m yam y½½1/3 a½0 m0½ r y = r y /2 + r a /2 + r m /3 r a = r y /2+ r m /3 r m = r a /2 + r m /3 a i …=1 if node i has out deg 0, =0 else 1…vector of all 1s

Introduction to Information Retrieval Make M Aperiodic  A chain is periodic if there exists k > 1 such that the interval between two visits to some state s is always a multiple of k.  A possible solution: Add green links Slides by Jure Leskovec: Mining Massive Datasets 29 y y a a m m

Introduction to Information Retrieval Make M Irreducible  From any state, there is a non-zero probability of going from any one state to any another  A possible solution: Add green links Slides by Jure Leskovec: Mining Massive Datasets 30 y y a a m m

Introduction to Information Retrieval Probability vectors  A probability (row) vector x = (x 1, … x n ) tells us where the walk is at any point.  E.g., (000…1…000) means we’re in state i. in1 More generally, the vector x = (x 1, … x n ) means the walk is in state i with probability x i. Sec Slides by Manning, Raghavan, Schutze31

Introduction to Information Retrieval Change in probability vector  If the probability vector is x = (x 1, … x n ) at this step, what is it at the next step?  Recall that row i of the transition prob. Matrix P tells us where we go next from state i.  So from x, our next state is distributed as xP  The one after that is xP 2, then xP 3, etc.  (Where) Does the converge? Sec Slides by Manning, Raghavan, Schutze32

Introduction to Information Retrieval How do we compute this vector?  Let a = (a 1, … a n ) denote the row vector of steady- state probabilities.  If our current position is described by a, then the next step is distributed as aP.  But a is the steady state, so a=aP.  Solving this matrix equation gives us a.  So a is the (left) eigenvector for P.  (Corresponds to the “principal” eigenvector of P with the largest eigenvalue.)  Transition probability matrices always have largest eigenvalue 1. Sec Slides by Manning, Raghavan, Schutze33

Introduction to Information Retrieval Pagerank summary  Preprocessing:  Given graph of links, build matrix P.  From it compute a – left eigenvector of P.  The entry a i is a number between 0 and 1: the pagerank of page i.  Query processing:  Retrieve pages meeting query.  Rank them by their pagerank.  But this rank order is query-independent … Sec Slides by Manning, Raghavan, Schutze34

Introduction to Information Retrieval Solution: Random Jumps  Slides by Jure Leskovec: Mining Massive Datasets 35 d i … out- degree of node i From now on: We assume M has no dead ends That is, we follow random teleport links with probability 1.0 from dead-ends

Introduction to Information Retrieval The Google Matrix  Slides by Jure Leskovec: Mining Massive Datasets 36

Introduction to Information Retrieval Random Teleports (  ) Slides by Jure Leskovec: Mining Massive Datasets 37 y a = m 1/ /33 5/33 21/33... y y a a m m 0.8·½+0.2·⅓ 0.2·⅓ ·⅓ 0.2·⅓ 0.8·½+0.2·⅓ 1/2 1/2 0 1/ /2 1 1/3 1/3 1/3 y 7/15 7/15 1/15 a 7/15 1/15 1/15 m 1/15 7/15 13/ S 1/n·1·1 T A

Introduction to Information Retrieval Some Problems with Page Rank  Measures generic popularity of a page  Biased against topic-specific authorities  Solution: Topic-Specific PageRank (next)  Susceptible to Link spam  Artificial link topographies created in order to boost page rank  Solution: TrustRank (next)  Uses a single measure of importance  Other models e.g., hubs-and-authorities  Solution: Hubs-and-Authorities (next) Slides by Jure Leskovec: Mining Massive Datasets 38

Introduction to Information Retrieval Topic-Specific PageRank  Instead of generic popularity, can we measure popularity within a topic?  Goal: Evaluate Web pages not just according to their popularity, but by how close they are to a particular topic, e.g. “sports” or “history.”  Allows search queries to be answered based on interests of the user  Example: Query “Trojan” wants different pages depending on whether you are interested in sports or history. Slides by Jure Leskovec: Mining Massive Datasets 39

Introduction to Information Retrieval Topic-Specific PageRank  Assume each walker has a small probability of “teleporting” at any step  Teleport can go to:  Any page with equal probability  To avoid dead-end and spider-trap problems  A topic-specific set of “relevant” pages (teleport set)  For topic-sensitive PageRank.  Idea: Bias the random walk  When walked teleports, she pick a page from a set S  S contains only pages that are relevant to the topic  E.g., Open Directory (DMOZ) pages for a given topic  For each teleport set S, we get a different vector r S Slides by Jure Leskovec: Mining Massive Datasets 40

Introduction to Information Retrieval Matrix Formulation  Let:  A ij =  M ij + (1-  ) /|S| if i  S  M ij otherwise  A is stochastic!  We have weighted all pages in the teleport set S equally  Could also assign different weights to pages!  Compute as for regular PageRank:  Multiply by M, then add a vector  Maintains sparseness Slides by Jure Leskovec: Mining Massive Datasets 41

Introduction to Information Retrieval Example Slides by Jure Leskovec: Mining Massive Datasets Suppose S = {1},  = 0.8 NodeIteration 012 …stable Note how we initialize the PageRank vector differently from the unbiased PageRank case

Introduction to Information Retrieval Discovering the Topic  Create different PageRanks for different topics  The 16 DMOZ top-level categories:  arts, business, sports,…  Which topic ranking to use?  User can pick from a menu  Classify query into a topic  Can use the context of the query  E.g., query is launched from a web page talking about a known topic  History of queries e.g., “basketball” followed by “Jordan”  User context, e.g., user’s bookmarks, … Slides by Jure Leskovec: Mining Massive Datasets 43

Web Spam

Introduction to Information Retrieval What is Web Spam?  Spamming:  any deliberate action to boost a web page’s position in search engine results, incommensurate with page’s real value  Spam:  web pages that are the result of spamming  This is a very broad definition  SEO industry might disagree!  SEO = search engine optimization  Approximately 10-15% of web pages are spam Slides by Jure Leskovec: Mining Massive Datasets 45

Introduction to Information Retrieval Web Search  Early search engines:  Crawl the Web  Index pages by the words they contained  Respond to search queries (lists of words) with the pages containing those words  Early page ranking:  Attempt to order pages matching a search query by “importance”  First search engines considered:  1) Number of times query words appeared.  2) Prominence of word position, e.g. title, header. Slides by Jure Leskovec: Mining Massive Datasets 46

Introduction to Information Retrieval First Spammers  As people began to use search engines to find things on the Web, those with commercial interests tried to exploit search engines to bring people to their own site – whether they wanted to be there or not.  Example:  Shirt-seller might pretend to be about “movies.”  Techniques for achieving high relevance/importance for a web page Slides by Jure Leskovec: Mining Massive Datasets 47

Introduction to Information Retrieval First Spammers: Term Spam  How do you make your page appear to be about movies?  1) Add the word movie 1000 times to your page  Set text color to the background color, so only search engines would see it  2) Or, run the query “movie” on your target search engine  See what page came first in the listings  Copy it into your page, make it “invisible”  These and similar techniques are term spam Slides by Jure Leskovec: Mining Massive Datasets 48

Introduction to Information Retrieval Google’s Solution to Term Spam  Believe what people say about you, rather than what you say about yourself  Use words in the anchor text (words that appear underlined to represent the link) and its surrounding text  PageRank as a tool to measure the “importance” of Web pages Slides by Jure Leskovec: Mining Massive Datasets 49

Introduction to Information Retrieval Why It Works?  Our hypothetical shirt-seller loses  Saying he is about movies doesn’t help, because others don’t say he is about movies  His page isn’t very important, so it won’t be ranked high for shirts or movies  Example:  Shirt-seller creates 1000 pages, each links to his with “movie” in the anchor text  These pages have no links in, so they get little PageRank  So the shirt-seller can’t beat truly important movie pages like IMDB Slides by Jure Leskovec: Mining Massive Datasets 50

Introduction to Information Retrieval Google vs. Spammers: Round 2  Once Google became the dominant search engine, spammers began to work out ways to fool Google  Spam farms were developed to concentrate PageRank on a single page  Link spam:  Creating link structures that boost PageRank of a particular page Slides by Jure Leskovec: Mining Massive Datasets 51

Introduction to Information Retrieval Link Spamming  Three kinds of web pages from a spammer’s point of view:  Inaccessible pages  Accessible pages:  e.g., blog comments pages  spammer can post links to his pages  Own pages:  Completely controlled by spammer  May span multiple domain names Slides by Jure Leskovec: Mining Massive Datasets 52

Introduction to Information Retrieval Link Farms  Spammer’s goal:  Maximize the PageRank of target page t  Technique:  Get as many links from accessible pages as possible to target page t  Construct “link farm” to get PageRank multiplier effect Slides by Jure Leskovec: Mining Massive Datasets 53

Introduction to Information Retrieval Link Farms Slides by Jure Leskovec: Mining Massive Datasets 54 Inaccessible t Accessible Own 1 2 M One of the most common and effective organizations for a link farm Millions of farm pages

Introduction to Information Retrieval Analysis  Slides by Jure Leskovec: Mining Massive Datasets 55 Very small; ignore Now we solve for y N…# pages on the web M…# of pages spammer owns Inaccessible t AccessibleOwn 1 2 M

Introduction to Information Retrieval Analysis  Slides by Jure Leskovec: Mining Massive Datasets 56 N…# pages on the web M…# of pages spammer owns Inaccessible t AccessibleOwn 1 2 M

Combating Web Spam

Introduction to Information Retrieval Combating Spam  Combating term spam  Analyze text using statistical methods  Similar to spam filtering  Also useful: Detecting approximate duplicate pages  Combating link spam  Detection and blacklisting of structures that look like spam farms  Leads to another war – hiding and detecting spam farms  TrustRank = topic-specific PageRank with a teleport set of “trusted” pages  Example:.edu domains, similar domains for non-US schools Slides by Jure Leskovec: Mining Massive Datasets 58

Introduction to Information Retrieval TrustRank: Idea  Basic principle: Approximate isolation  It is rare for a “good” page to point to a “bad” (spam) page  Sample a set of “seed pages” from the web  Have an oracle (human) identify the good pages and the spam pages in the seed set  Expensive task, so we must make seed set as small as possible Slides by Jure Leskovec: Mining Massive Datasets 59

Introduction to Information Retrieval Trust Propagation  Call the subset of seed pages that are identified as “good” the “trusted pages”  Perform a topic-sensitive PageRank with teleport set = trusted pages.  Propagate trust through links:  Each page gets a trust value between 0 and 1  Use a threshold value and mark all pages below the trust threshold as spam Slides by Jure Leskovec: Mining Massive Datasets 60

Introduction to Information Retrieval Why is it a good idea?  Trust attenuation:  The degree of trust conferred by a trusted page decreases with distance  Trust splitting:  The larger the number of out-links from a page, the less scrutiny the page author gives each out-link  Trust is “split” across out-links Slides by Jure Leskovec: Mining Massive Datasets 61

Introduction to Information Retrieval Picking the Seed Set  Two conflicting considerations:  Human has to inspect each seed page, so seed set must be as small as possible  Must ensure every “good page” gets adequate trust rank, so need make all good pages reachable from seed set by short paths Slides by Jure Leskovec: Mining Massive Datasets 62

Introduction to Information Retrieval Approaches to Picking Seed Set  Suppose we want to pick a seed set of k pages  PageRank:  Pick the top k pages by PageRank  Theory is that you can’t get a bad page’s rank really high  Use domains whose membership is controlled, like.edu,.mil,.gov Slides by Jure Leskovec: Mining Massive Datasets 63

Introduction to Information Retrieval Spam Mass  In the TrustRank model, we start with good pages and propagate trust  Complementary view: What fraction of a page’s PageRank comes from “spam” pages?  In practice, we don’t know all the spam pages, so we need to estimate Slides by Jure Leskovec: Mining Massive Datasets 64

Introduction to Information Retrieval Spam Mass Estimation  r(p) = PageRank of page p  r + (p) = page rank of p with teleport into “good” pages only  Then: r - (p) = r(p) – r + (p)  Spam mass of p = r - (p)/ r (p) Slides by Jure Leskovec: Mining Massive Datasets 65

Introduction to Information Retrieval The reality  Pagerank is used in google and other engines, but is hardly the full story of ranking  Many sophisticated features are used  Some address specific query classes  Machine learned ranking (Lecture 19) heavily used  Pagerank still very useful for things like crawl policy Slides by Manning, Raghavan, Schutze66

Introduction to Information Retrieval Hyperlink-Induced Topic Search (HITS)  In response to a query, instead of an ordered list of pages each meeting the query, find two sets of inter- related pages:  Hub pages are good lists of links on a subject.  e.g., “Bob’s list of cancer-related links.”  Authority pages occur recurrently on good hubs for the subject.  Best suited for “broad topic” queries rather than for page-finding queries.  Gets at a broader slice of common opinion. Sec Slides by Manning, Raghavan, Schutze67

Introduction to Information Retrieval Hubs and Authorities  Thus, a good hub page for a topic points to many authoritative pages for that topic.  A good authority page for a topic is pointed to by many good hubs for that topic.  Circular definition - will turn this into an iterative computation. Sec Slides by Manning, Raghavan, Schutze68

Introduction to Information Retrieval The hope Mobile telecom companies Hubs Authorities Sec Slides by Manning, Raghavan, Schutze69

Introduction to Information Retrieval High-level scheme  Extract from the web a base set of pages that could be good hubs or authorities.  From these, identify a small set of top hub and authority pages;  iterative algorithm. Sec Slides by Manning, Raghavan, Schutze70

Introduction to Information Retrieval Base set  Given text query (say browser), use a text index to get all pages containing browser.  Call this the root set of pages.  Add in any page that either  points to a page in the root set, or  is pointed to by a page in the root set.  Call this the base set. Sec Slides by Manning, Raghavan, Schutze71

Introduction to Information Retrieval Visualization Root set Base set Sec Get in-links (and out-links) from a connectivity server Slides by Manning, Raghavan, Schutze72

Introduction to Information Retrieval Distilling hubs and authorities  Compute, for each page x in the base set, a hub score h(x) and an authority score a(x).  Initialize: for all x, h(x)  1; a(x)  1;  Iteratively update all h(x), a(x);  After iterations  output pages with highest h() scores as top hubs  highest a() scores as top authorities. Key Sec Slides by Manning, Raghavan, Schutze73

Introduction to Information Retrieval Iterative update  Repeat the following updates, for all x: x x Sec Slides by Manning, Raghavan, Schutze74

Introduction to Information Retrieval Scaling  To prevent the h() and a() values from getting too big, can scale down after each iteration.  Scaling factor doesn’t really matter:  we only care about the relative values of the scores. Sec Slides by Manning, Raghavan, Schutze75

Introduction to Information Retrieval How many iterations?  Claim: relative values of scores will converge after a few iterations:  in fact, suitably scaled, h() and a() scores settle into a steady state!  proof of this comes later.  In practice, ~5 iterations get you close to stability. Sec Slides by Manning, Raghavan, Schutze76

Introduction to Information Retrieval Japan Elementary Schools  The American School in Japan  The Link Page  ‰ªèŽs—§ˆä“c¬ŠwZƒz[ƒ€ƒy[ƒW  Kids' Space  ˆÀéŽs—§ˆÀé¼”¬ŠwZ  ‹{é‹³ˆç‘åŠw‘®¬ŠwZ  KEIMEI GAKUEN Home Page ( Japanese )  Shiranuma Home Page  fuzoku-es.fukui-u.ac.jp  welcome to Miasa E&J school  _“ސ쌧E‰¡lŽs—§’†ì¼¬ŠwZ‚̃y   fukui haruyama-es HomePage  Torisu primary school  goo  Yakumo Elementary,Hokkaido,Japan  FUZOKU Home Page  Kamishibun Elementary School...  schools  LINK Page-13  “ú–{‚ÌŠwZ  a‰„¬ŠwZƒz[ƒ€ƒy[ƒW  100 Schools Home Pages (English)  K-12 from Japan 10/...rnet and Education )   ‚l‚f‚j¬ŠwZ‚U”N‚P‘g¨Œê  ÒŠ—’¬—§ÒŠ—“Œ¬ŠwZ  Koulutus ja oppilaitokset  TOYODA HOMEPAGE  Education  Cay's Homepage(Japanese)  –y“쏬ŠwZ‚̃z[ƒ€ƒy[ƒW  UNIVERSITY  ‰J—³¬ŠwZ DRAGON97-TOP  ŽÂ‰ª¬ŠwZ‚T”N‚P‘gƒz[ƒ€ƒy[ƒW  ¶µ°é¼ÂÁ© ¥á¥Ë¥å¡¼ ¥á¥Ë¥å¡¼ HubsAuthorities Sec Slides by Manning, Raghavan, Schutze77

Introduction to Information Retrieval Things to note  Pulled together good pages regardless of language of page content.  Use only link analysis after base set assembled  iterative scoring is query-independent.  Iterative computation after text index retrieval - significant overhead. Sec Slides by Manning, Raghavan, Schutze78

Introduction to Information Retrieval Proof of convergence  n  n adjacency matrix A:  each of the n pages in the base set has a row and column in the matrix.  Entry A ij = 1 if page i links to page j, else = Sec Slides by Manning, Raghavan, Schutze79

Introduction to Information Retrieval Hub/authority vectors  View the hub scores h() and the authority scores a() as vectors with n components.  Recall the iterative updates Sec Slides by Manning, Raghavan, Schutze80

Introduction to Information Retrieval Rewrite in matrix form  h=Aa.  a=A t h. Recall A t is the transpose of A. Substituting, h=AA t h and a=A t Aa. Thus, h is an eigenvector of AA t and a is an eigenvector of A t A. Further, our algorithm is a particular, known algorithm for computing eigenvectors: the power iteration method. Guaranteed to converge. Sec Slides by Manning, Raghavan, Schutze81

Introduction to Information Retrieval Issues  Topic Drift  Off-topic pages can cause off-topic “authorities” to be returned  E.g., the neighborhood graph can be about a “super topic”  Mutually Reinforcing Affiliates  Affiliated pages/sites can boost each others’ scores  Linkage between affiliated pages is not a useful signal Sec Slides by Manning, Raghavan, Schutze82

Introduction to Information Retrieval PageRank and HITS  PageRank and HITS are two solutions to the same problem:  What is the value of an in-link from u to v?  In the PageRank model, the value of the link depends on the links into u  In the HITS model, it depends on the value of the other links out of u  The destinies of PageRank and HITS post-1998 were very different Slides by Jure Leskovec: Mining Massive Datasets 83

Introduction to Information Retrieval Resources  IIR Chap 21  Chapter 5, Mining Massive Datasets, by Anand Rajaraman and Jeff Ullman, Cambridge University Press, 2011 Slides by Manning, Raghavan, Schutze84