Online Social Networks and Media. Link Analysis and Web Search

Similar documents
DATA MINING LECTURE 13. Link Analysis Ranking PageRank -- Random walks HITS

Online Social Networks and Media. Link Analysis and Web Search

Link Analysis Ranking

Link Mining PageRank. From Stanford C246

CS224W: Social and Information Network Analysis Jure Leskovec, Stanford University

Introduction to Data Mining

Slide source: Mining of Massive Datasets Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford University.

Thanks to Jure Leskovec, Stanford and Panayiotis Tsaparas, Univ. of Ioannina for slides

Thanks to Jure Leskovec, Stanford and Panayiotis Tsaparas, Univ. of Ioannina for slides

Slides based on those in:

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Link Analysis. Leonid E. Zhukov

Data Mining and Matrices

Web Ranking. Classification (manual, automatic) Link Analysis (today s lesson)

Lecture 12: Link Analysis for Web Retrieval

6.207/14.15: Networks Lecture 7: Search on Networks: Navigation and Web Search

Introduction to Search Engine Technology Introduction to Link Structure Analysis. Ronny Lempel Yahoo Labs, Haifa

0.1 Naive formulation of PageRank

CS246: Mining Massive Datasets Jure Leskovec, Stanford University.

LINK ANALYSIS. Dr. Gjergji Kasneci Introduction to Information Retrieval WS

Link Analysis. Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H. Schutze

STA141C: Big Data & High Performance Statistical Computing

PageRank algorithm Hubs and Authorities. Data mining. Web Data Mining PageRank, Hubs and Authorities. University of Szeged.

Lab 8: Measuring Graph Centrality - PageRank. Monday, November 5 CompSci 531, Fall 2018

Link Analysis. Stony Brook University CSE545, Fall 2016

1998: enter Link Analysis

CS 277: Data Mining. Mining Web Link Structure. CS 277: Data Mining Lectures Analyzing Web Link Structure Padhraic Smyth, UC Irvine

IR: Information Retrieval

INTRODUCTION TO MCMC AND PAGERANK. Eric Vigoda Georgia Tech. Lecture for CS 6505

INTRODUCTION TO MCMC AND PAGERANK. Eric Vigoda Georgia Tech. Lecture for CS 6505

Data and Algorithms of the Web

Wiki Definition. Reputation Systems I. Outline. Introduction to Reputations. Yury Lifshits. HITS, PageRank, SALSA, ebay, EigenTrust, VKontakte

A Note on Google s PageRank

1 Searching the World Wide Web

Web Ranking. Classification (manual, automatic) Link Analysis (today s lesson)

Models and Algorithms for Complex Networks. Link Analysis Ranking

ECEN 689 Special Topics in Data Science for Communications Networks

Data Mining Recitation Notes Week 3

Web Structure Mining Nodes, Links and Influence

CS6220: DATA MINING TECHNIQUES

How does Google rank webpages?

Powerful tool for sampling from complicated distributions. Many use Markov chains to model events that arise in nature.

Node Centrality and Ranking on Networks

Math 304 Handout: Linear algebra, graphs, and networks.

Jeffrey D. Ullman Stanford University

IS4200/CS6200 Informa0on Retrieval. PageRank Con+nued. with slides from Hinrich Schütze and Chris6na Lioma

Graph Models The PageRank Algorithm

CS6220: DATA MINING TECHNIQUES

Lecture: Local Spectral Methods (1 of 4)

PageRank. Ryan Tibshirani /36-662: Data Mining. January Optional reading: ESL 14.10

Uncertainty and Randomization

CS 3750 Advanced Machine Learning. Applications of SVD and PCA (LSA and Link analysis) Cem Akkaya

Google PageRank. Francesco Ricci Faculty of Computer Science Free University of Bozen-Bolzano

Link Analysis Information Retrieval and Data Mining. Prof. Matteo Matteucci

25.1 Markov Chain Monte Carlo (MCMC)

eigenvalues, markov matrices, and the power method

Probability & Computing

The Theory behind PageRank

Complex Social System, Elections. Introduction to Network Analysis 1

Page rank computation HPC course project a.y

Google Page Rank Project Linear Algebra Summer 2012

Information Retrieval and Search. Web Linkage Mining. Miłosz Kadziński

The Static Absorbing Model for the Web a

MAE 298, Lecture 8 Feb 4, Web search and decentralized search on small-worlds

Markov Chains Handout for Stat 110

Computing PageRank using Power Extrapolation

Jeffrey D. Ullman Stanford University

CS249: ADVANCED DATA MINING

Node and Link Analysis

SVD, Power method, and Planted Graph problems (+ eigenvalues of random matrices)

6.842 Randomness and Computation March 3, Lecture 8

Introduction to Information Retrieval

Hyperlinked-Induced Topic Search (HITS) identifies. authorities as good content sources (~high indegree) HITS [Kleinberg 99] considers a web page

How works. or How linear algebra powers the search engine. M. Ram Murty, FRSC Queen s Research Chair Queen s University

Definition A finite Markov chain is a memoryless homogeneous discrete stochastic process with a finite number of states.

CSI 445/660 Part 6 (Centrality Measures for Networks) 6 1 / 68

PageRank: The Math-y Version (Or, What To Do When You Can t Tear Up Little Pieces of Paper)

Degree Distribution: The case of Citation Networks

6.207/14.15: Networks Lectures 4, 5 & 6: Linear Dynamics, Markov Chains, Centralities

Faloutsos, Tong ICDE, 2009

The Google Markov Chain: convergence speed and eigenvalues

Updating PageRank. Amy Langville Carl Meyer

MultiRank and HAR for Ranking Multi-relational Data, Transition Probability Tensors, and Multi-Stochastic Tensors

Finding central nodes in large networks

CS47300: Web Information Search and Management

Stochastic processes. MAS275 Probability Modelling. Introduction and Markov chains. Continuous time. Markov property

Lecture 5: Random Walks and Markov Chain

6.842 Randomness and Computation February 24, Lecture 6

PV211: Introduction to Information Retrieval

Lecture 14: Random Walks, Local Graph Clustering, Linear Programming

CS54701 Information Retrieval. Link Analysis. Luo Si. Department of Computer Science Purdue University. Borrowed Slides from Prof.

Pr[positive test virus] Pr[virus] Pr[positive test] = Pr[positive test] = Pr[positive test]

Monte Carlo methods in PageRank computation: When one iteration is sufficient

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

As it is not necessarily possible to satisfy this equation, we just ask for a solution to the more general equation

Spectral Graph Theory and You: Matrix Tree Theorem and Centrality Metrics

Calculating Web Page Authority Using the PageRank Algorithm

MATH36001 Perron Frobenius Theory 2015

CS345a: Data Mining Jure Leskovec and Anand Rajaraman Stanford University

8. Statistical Equilibrium and Classification of States: Discrete Time Markov Chains

Transcription:

Online Social Networks and Media Link Analysis and Web Search

How to Organize the Web First try: Human curated Web directories Yahoo, DMOZ, LookSmart

How to organize the web Second try: Web Search Information Retrieval investigates: Find relevant docs in a small and trusted set e.g., Newspaper articles, Patents, etc. ( needle-in-ahaystack ) Limitation of keywords (synonyms, polysemy, etc) But: Web is huge, full of untrusted documents, random things, web spam, etc. Everyone can create a web page of high production value Rich diversity of people issuing queries Dynamic and constantly-changing nature of web content

Size of the Search Index http://www.worldwidewebsize.com/

How to organize the web Third try (the Google era): using the web graph Swift from relevance to authoritativeness It is not only important that a page is relevant, but that it is also important on the web For example, what kind of results would we like to get for the query greek newspapers?

Link Analysis Not all web pages are equal on the web The links act as endorsements: When page p links to q it endorses the content of the content of q What is the simplest way to measure importance of a page on the web?

Rank by Popularity Rank pages according to the number of incoming edges (in-degree, degree centrality) v v v 3. Red Page. Yellow Page 3. Blue Page 4. Purple Page. Green Page v v 4

Popularity It is not important only how many link to you, but also how important are the people that link to you. Good authorities are pointed by good authorities Recursive definition of importance

THE PAGERANK ALGORITHM

PageRank Good authorities should be pointed by good authorities The value of a node is the value of the nodes that point to it. How do we implement that? Assume that we have a unit of authority to distribute to all nodes. Initially each node gets n amount of authority Each node distributes the authority value they have to their neighbors The authority value of each node is the sum of the authority fractions it collects from its neighbors. w v = d out u w u u v w v : the PageRank value of node v Recursive definition

A simple example w w + w + w = w = w + w w = ½ w w = ½ w w w Solving the system of equations we get the authority values for the nodes w = ½ w = ¼ w = ¼

A more complex example v w = /3 w 4 + / w w = / w + w 3 + /3 w 4 w 3 = / w + /3 w 4 w 4 = / w v v 3 w = w v v 4 w v = u v d out u w u

Computing PageRank weights A simple way to compute the weights is by iteratively updating the weights PageRank Algorithm Initialize all PageRank weights to n Repeat: w v = u v This process converges d out u w u Until the weights do not change

PageRank Initially, all nodes PageRank /8 As a kind of fluid that circulates through the network The total PageRank in the network remains constant (no need to normalize)

PageRank: equilibrium A simple way to check whether an assignment of numbers s forms an equilibrium set of PageRank values: check that they sum to, and check that when apply the Basic PageRank Update Rule, we get the same values back. If the network is strongly connected then there is a unique set of equilibrium values.

Random Walks on Graphs The algorithm defines a random walk on the graph Random walk: Start from a node chosen uniformly at random with probability n. Pick one of the outgoing edges uniformly at random Move to the destination of the edge Repeat. The Random Surfer model Users wander on the web, following links.

Example Step v v v 3 v v 4

Example Step v v v 3 v v 4

Example Step v v v 3 v v 4

Example Step v v v 3 v v 4

Example Step v v v 3 v v 4

Example Step v v v 3 v v 4

Example Step 3 v v v 3 v v 4

Example Step 3 v v v 3 v v 4

Example Step 4 v v v 3 v v 4

Random walk Question: what is the probability p i t of being at node i after t steps? v v p = p t = 3 p 4 t + p t v 3 p = p t = p t + p 3 t + 3 p 4 t p 3 = p 3 t = p t + 3 p 4 t p 4 = p 4 t = p t v v 4 p = p t = p t

Markov chains A Markov chain describes a discrete time stochastic process over a set of states S = {s, s,, s n } according to a transition probability matrix P = {P ij } P ij = probability of moving to state j when at state i Matrix P has the property that the entries of all rows sum to P i, j = j A matrix with this property is called stochastic State probability distribution: The vector p t = (p i t, p t,, p n t ) that stores the probability of being at state s i after t steps Memorylessness property: The next state of the chain depends only at the current state and not on the past of the process (first order MC) Higher order MCs are also possible Markov Chain Theory: After infinite steps the state probability vector converges to a unique distribution if the chain is irreducible and aperiodic

Random walks Random walks on graphs correspond to Markov Chains The set of states S is the set of nodes of the graph G The transition probability matrix is the probability that we follow an edge from one node to another P i, j = / deg out (i)

An example 3 3 3 P v v 3 v 4 v v A

Node Probability vector The vector p t = (p i t, p t,, p n t ) that stores the probability of being at node v i at step t p i = the probability of starting from state i (usually) set to uniform We can compute the vector p t at step t using a vector-matrix multiplication p t = p t P

An example 3 3 3 P v v 3 v 4 v v p t = 3 p 4 t + p t p t = p t + p 3 t + 3 p 4 t p 3 t = p t + 3 p 4 t p 4 t = p t p t = p t

Stationary distribution The stationary distribution of a random walk with transition matrix P, is a probability distribution π, such that π = πp The stationary distribution is an eigenvector of matrix P the principal left eigenvector of P stochastic matrices have maximum eigenvalue The probability π i is the fraction of times that we visited state i as t Markov Chain Theory: The random walk converges to a unique stationary distribution independent of the initial vector if the graph is strongly connected, and not bipartite.

Computing the stationary distribution The Power Method Initialize q to some distribution Repeat q t = q t P Until convergence After many iterations q t π regardless of the initial vector q Power method because it computes q t = q P t Rate of convergence determined by the second eigenvalue λ t

The stationary distribution What is the meaning of the stationary distribution π of a random walk? π(i): the probability of being at node i after very large (infinite) number of steps π = p P, where P is the transition matrix, p the original vector P i, j : probability of going from i to j in one step P (i, j): probability of going from i to j in two steps (probability of all paths of length ) P i, j = π(j): probability of going from i to j in infinite steps starting point does not matter.

The PageRank random walk Vanilla random walk make the adjacency matrix stochastic and run a random walk 3 3 3 P

The PageRank random walk What about sink nodes? what happens when the random walk moves to a node without any outgoing inks? 3 3 3 P

3 3 3 P' The PageRank random walk Replace these row vectors with a vector v typically, the uniform vector P = P + dv T otherwise sink is i if d

The PageRank random walk What about loops? Spider traps

3 3 3 P'' ) ( The PageRank random walk Add a random jump to vector v with prob -α typically, to a uniform vector Restarts after /(-α) steps in expectation Guarantees irreducibility, convergence P = αp + (-α)uv T, where u is the vector of all s Random walk with restarts

PageRank algorithm [BP98] The Random Surfer model pick a page at random with probability - α jump to a random page with probability α follow a random outgoing link Rank according to the stationary distribution PR( q) PR( p) Out ( q ) n q p α =.8 in most cases. Red Page. Purple Page 3. Yellow Page 4. Blue Page. Green Page

PageRank: Example

Stationary distribution with random jump If v is the jump vector p = v p = αp P + α v = αvp + α v p = αp P + α v = α vp + α vαp + α v p = α v + α vαp + α vα P + = α I αp With the random jump the shorter paths are more important, since the weight decreases exponentially makes sense when thought of as a restart If v is not uniform, we can bias the random walk towards the nodes that are close to v Personalized and Topic-Specific Pagerank.

Effects of random jump Guarantees convergence to unique distribution Motivated by the concept of random surfer Offers additional flexibility personalization anti-spam Controls the rate of convergence the second eigenvalue of matrix P is α

Random walks on undirected graphs For undirected graphs, the stationary distribution is proportional to the degrees of the nodes Thus in this case a random walk is the same as degree popularity This is not longer true if we do random jumps Now the short paths play a greater role, and the previous distribution does not hold.

Pagerank implementation Store the graph in adjacency list, or list of edges Keep current pagerank values and new pagerank values Go through edges and update the values of the destination nodes. Repeat until the difference (L or L difference) is below some small value ε.

A (Matlab-friendly) PageRank algorithm Performing vanilla power method is now too expensive the matrix is not sparse q = v t = repeat t q δ t = t + until δ < ε T t P'' q q t q t Efficient computation of y = (P ) T x y αp β x T x y y y βv P = normalized adjacency matrix P = P + dv T, where d i is if i is sink and o.w. P = αp + (-α)uv T, where u is the vector of all s

Pagerank history Huge advantage for Google in the early days It gave a way to get an idea for the value of a page, which was useful in many different ways Put an order to the web. After a while it became clear that the anchor text was probably more important for ranking Also, link spam became a new (dark) art Flood of research Numerical analysis got rejuvenated Huge number of variations Efficiency became a great issue. Huge number of applications in different fields Random walk is often referred to as PageRank.

THE HITS ALGORITHM

The HITS algorithm Another algorithm proposed around the same time as Pagerank for using the hyperlinks to rank pages Kleinberg: then an intern at IBM Almaden IBM never made anything out of it

Query dependent input Root set obtained from a text-only search engine Root Set

Query dependent input IN Root Set OUT

Query dependent input IN Root Set OUT

Query dependent input Base Set IN Root Set OUT

Hubs and Authorities [K98] Authority is not necessarily transferred directly between authorities Pages have double identity hub identity authority identity Good hubs point to good authorities Good authorities are pointed by good hubs hubs authorities

Hubs and Authorities Two kind of weights: Hub weight Authority weight The hub weight is the sum of the authority weights of the authorities pointed to by the hub The authority weight is the sum of the hub weights that point to this authority.

HITS Algorithm Initialize all weights to. Repeat until convergence O operation : hubs collect the weight of the authorities h i a j j: i j I operation: authorities collect the weight of the hubs a i h j j: ji Normalize weights under some norm

HITS and eigenvectors The HITS algorithm is a power-method eigenvector computation In vector terms a t = A T h t and h t = Aa t a t = A T Aa t and h t = AA T h t Repeated iterations will converge to the eigenvectors The authority weight vector a is the eigenvector of A T A and the hub weight vector h is the eigenvector of AA T The vectors a and h are called the singular vectors of the matrix A

Singular Value Decomposition r : rank of matrix A σ σ σ r : singular values (square roots of eig-vals AA T, A T A) : left singular vectors (eig-vectors of AA T ) : right singular vectors (eig-vectors of A T A) r r r T v v v σ σ σ u u u V Σ U A [n r] [r r] [r n] r u,,,u u r v,,,v v T r r r T T v σ u v u σ v σ u A

Why does the Power Method work? If a matrix R is real and symmetric, it has real eigenvalues and eigenvectors: λ, w, λ, w,, (λ r, w r ) r is the rank of the matrix λ λ λ r For any matrix R, the eigenvectors w, w,, w r of R define a basis of the vector space For any vector x, Rx = α w + a w + + a r w r After t multiplications we have: R t x = λ t α w + λ t a w + + λ t a r w r Normalizing leaves only the term w.

Example Initialize hubs authorities

Example Step : O operation 3 hubs authorities

Example Step : I operation 3 6 hubs authorities

Example Step : Normalization (Max norm) /3 /3 /3 /3 hubs /6 /6 /6 /6 authorities

Example Step : O step /6 6/6 7/6 /6 hubs /6 /6 /6 /6 authorities

Example Step : I step /6 6/6 7/6 /6 hubs 33/6 7/6 3/6 7/6 /6 authorities

Example Step : Normalization 6/6 /6 7/6 /6 7/33 3/33 7/33 /33 hubs authorities

Example Convergence.4.7.3.8.6.4 hubs authorities