1 Random Walks on Graphs: An Overview Purnamrita Sarkar, CMU Shortened and modified by Longin Jan Latecki.

Slides:



Advertisements
Similar presentations
1 Random Walks on Graphs: An Overview Purnamrita Sarkar.
Advertisements

Markov Models.
Matrices, Digraphs, Markov Chains & Their Use by Google Leslie Hogben Iowa State University and American Institute of Mathematics Leslie Hogben Iowa State.
1 The PageRank Citation Ranking: Bring Order to the web Lawrence Page, Sergey Brin, Rajeev Motwani and Terry Winograd Presented by Fei Li.
The math behind PageRank A detailed analysis of the mathematical aspects of PageRank Computational Mathematics class presentation Ravi S Sinha LIT lab,
Information Networks Link Analysis Ranking Lecture 8.
Graphs, Node importance, Link Analysis Ranking, Random walks
Link Analysis: PageRank
Random Walks Ben Hescott CS591a1 November 18, 2002.
Overview of Markov chains David Gleich Purdue University Network & Matrix Computations Computer Science 15 Sept 2011.
More on Rankings. Query-independent LAR Have an a-priori ordering of the web pages Q: Set of pages that contain the keywords in the query q Present the.
Experiments with MATLAB Experiments with MATLAB Google PageRank Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University, Taiwan
DATA MINING LECTURE 12 Link Analysis Ranking Random walks.
Mining and Searching Massive Graphs (Networks)
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 3 March 23, 2005
Algorithmic and Economic Aspects of Networks Nicole Immorlica.
Link Analysis Ranking. How do search engines decide how to rank your query results? Guess why Google ranks the query results the way it does How would.
Introduction to PageRank Algorithm and Programming Assignment 1 CSC4170 Web Intelligence and Social Computing Tutorial 4 Tutor: Tom Chao Zhou
Multimedia Databases SVD II. Optimality of SVD Def: The Frobenius norm of a n x m matrix M is (reminder) The rank of a matrix M is the number of independent.
Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 21: Link Analysis.
Zdravko Markov and Daniel T. Larose, Data Mining the Web: Uncovering Patterns in Web Content, Structure, and Usage, Wiley, Slides for Chapter 1:
ICS 278: Data Mining Lecture 15: Mining Web Link Structure
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 3 April 2, 2006
15-853Page :Algorithms in the Real World Indexing and Searching III (well actually II) – Link Analysis – Near duplicate removal.
Multimedia Databases SVD II. SVD - Detailed outline Motivation Definition - properties Interpretation Complexity Case studies SVD properties More case.
Link Analysis, PageRank and Search Engines on the Web
Presented By: Wang Hao March 8 th, 2011 The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd.
1 Fast Incremental Proximity Search in Large Graphs Purnamrita Sarkar Andrew W. Moore Amit Prakash.
Link Analysis. 2 HITS - Kleinberg’s Algorithm HITS – Hypertext Induced Topic Selection For each vertex v Є V in a subgraph of interest: A site is very.
PageRank Debapriyo Majumdar Data Mining – Fall 2014 Indian Statistical Institute Kolkata October 27, 2014.
Presented by Zheng Zhao Originally designed by Soumya Sanyal
HCC class lecture 22 comments John Canny 4/13/05.
CS6800 Advanced Theory of Computation Fall 2012 Vinay B Gavirangaswamy
CS 277: Data Mining Lectures Analyzing Web Link Structure Padhraic Smyth, UC Irvine CS 277: Data Mining Mining Web Link Structure.
Motivation When searching for information on the WWW, user perform a query to a search engine. The engine return, as the query’s result, a list of Web.
PRESENTED BY ASHISH CHAWLA AND VINIT ASHER The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page and Sergey Brin, Stanford University.
R OBERTO B ATTITI, M AURO B RUNATO. The LION Way: Machine Learning plus Intelligent Optimization. LIONlab, University of Trento, Italy, Feb 2014.
The PageRank Citation Ranking: Bringing Order to the Web Presented by Aishwarya Rengamannan Instructor: Dr. Gautam Das.
Entropy Rate of a Markov Chain
Piyush Kumar (Lecture 2: PageRank) Welcome to COT5405.
Google’s Billion Dollar Eigenvector Gerald Kruse, PhD. John ‘54 and Irene ‘58 Dale Professor of MA, CS and I T Interim Assistant Provost Juniata.
Roshnika Fernando P AGE R ANK. W HY P AGE R ANK ?  The internet is a global system of networks linking to smaller networks.  This system keeps growing,
Random Walks and Semi-Supervised Learning Longin Jan Latecki Based on : Xiaojin Zhu. Semi-Supervised Learning with Graphs. PhD thesis. CMU-LTI ,
Lectures 6 & 7 Centrality Measures Lectures 6 & 7 Centrality Measures February 2, 2009 Monojit Choudhury
The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd Presented by Anca Leuca, Antonis Makropoulos.
Adaptive On-Line Page Importance Computation Serge, Mihai, Gregory Presented By Liang Tian 7/13/2010 1Adaptive On-Line Page Importance Computation.
Spectral Analysis based on the Adjacency Matrix of Network Data Leting Wu Fall 2009.
How works M. Ram Murty, FRSC Queen’s Research Chair Queen’s University or How linear algebra powers the search engine.
Relevant Subgraph Extraction Longin Jan Latecki Based on : P. Dupont, J. Callut, G. Dooms, J.-N. Monette and Y. Deville. Relevant subgraph extraction from.
1 1 COMP5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified based on the slides provided by Lawrence Page, Sergey Brin, Rajeev Motwani.
PageRank Algorithm -- Bringing Order to the Web (Hu Bin)
CompSci 100E 4.1 Google’s PageRank web site xxx web site yyyy web site a b c d e f g web site pdq pdq.. web site yyyy web site a b c d e f g web site xxx.
PERTEMUAN 26. Markov Chains and Random Walks Fundamental Theorem of Markov Chains If M g is an irreducible, aperiodic Markov Chain: 1. All states are.
Ljiljana Rajačić. Page Rank Web as a directed graph  Nodes: Web pages  Edges: Hyperlinks 2 / 25 Ljiljana Rajačić.
Random Sampling Algorithms with Applications Kyomin Jung KAIST Aug ERC Workshop.
Complexity and Efficient Algorithms Group / Department of Computer Science Testing the Cluster Structure of Graphs Christian Sohler joint work with Artur.
Mathematics of the Web Prof. Sara Billey University of Washington.
Extrapolation to Speed-up Query- dependent Link Analysis Ranking Algorithms Muhammad Ali Norozi Department of Computer Science Norwegian University of.
 Introduction  Important Concepts in MCL Algorithm  MCL Algorithm  The Features of MCL Algorithm  Summary.
1 Random Walks on Graphs: An Overview Rouhollah Nabati, modified and represent IAUSDJ.ac.ir Fall, 2016.
Roberto Battiti, Mauro Brunato
Quality of a search engine
Search Engines and Link Analysis on the Web
Link-Based Ranking Seminar Social Media Mining University UC3M
PageRank and Markov Chains
DTMC Applications Ranking Web Pages & Slotted ALOHA
Iterative Aggregation Disaggregation
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Presentation transcript:

1 Random Walks on Graphs: An Overview Purnamrita Sarkar, CMU Shortened and modified by Longin Jan Latecki

2 Motivation: Link prediction in social networks

3 Motivation: Basis for recommendation

4 Motivation: Personalized search

5 Why graphs? The underlying data is naturally a graph  Papers linked by citation  Authors linked by co-authorship  Bipartite graph of customers and products  Web-graph  Friendship networks: who knows whom

6 What are we looking for Rank nodes for a particular query  Top k matches for “Random Walks” from Citeseer  Who are the most likely co-authors of “Manuel Blum”.  Top k book recommendations for Purna from Amazon  Top k websites matching “Sound of Music”  Top k friend recommendations for Purna when she joins “Facebook”

7 Talk Outline Basic definitions  Random walks  Stationary distributions Properties  Perron frobenius theorem  Electrical networks, hitting and commute times Euclidean Embedding Applications  Pagerank Power iteration Convergencce  Personalized pagerank  Rank stability

8 Definitions nxn Adjacency matrix A.  A(i,j) = weight on edge from i to j  If the graph is undirected A(i,j)=A(j,i), i.e. A is symmetric nxn Transition matrix P.  P is row stochastic  P(i,j) = probability of stepping on node j from node i = A(i,j)/∑ i A(i,j) nxn Laplacian Matrix L.  L(i,j)=∑ i A(i,j)-A(i,j)  Symmetric positive semi-definite for undirected graphs  Singular

9 Definitions Adjacency matrix ATransition matrix P /2 1

10 What is a random walk 1 1/2 1 t=0

11 What is a random walk 1 1/ t=0 t=1

12 What is a random walk 1 1/ t=0 t=1 1 1/2 1 t=2

13 What is a random walk 1 1/ t=0 t=1 1 1/2 1 t=2 1 1/2 1 t=3

14 Probability Distributions x t (i) = probability that the surfer is at node i at time t x t+1 (i) = ∑ j (Probability of being at node j)*Pr(j->i) =∑ j x t (j)*P(j,i) x t+1 = x t P = x t-1 *P*P= x t-2 *P*P*P = …=x 0 P t Compute x 1 for x 0 =(1,0,0)’. 1 1/

15 Stationary Distribution What happens when the surfer keeps walking for a long time? When the surfer keeps walking for a long time When the distribution does not change anymore  i.e. x T+1 = x T For “well-behaved” graphs this does not depend on the start distribution!!

16 What is a stationary distribution? Intuitively and Mathematically

17 What is a stationary distribution? Intuitively and Mathematically The stationary distribution at a node is related to the amount of time a random walker spends visiting that node.

18 What is a stationary distribution? Intuitively and Mathematically The stationary distribution at a node is related to the amount of time a random walker spends visiting that node. Remember that we can write the probability distribution at a node as  x t+1 = x t P

19 What is a stationary distribution? Intuitively and Mathematically The stationary distribution at a node is related to the amount of time a random walker spends visiting that node. Remember that we can write the probability distribution at a node as  x t+1 = x t P For the stationary distribution v 0 we have  v 0 = v 0 P

20 What is a stationary distribution? Intuitively and Mathematically The stationary distribution at a node is related to the amount of time a random walker spends visiting that node. Remember that we can write the probability distribution at a node as  x t+1 = x t P For the stationary distribution v 0 we have  v 0 = v 0 P Whoa! that’s just the left eigenvector of the transition matrix !

21 Talk Outline Basic definitions  Random walks  Stationary distributions Properties  Perron frobenius theorem  Electrical networks, hitting and commute times Euclidean Embedding Applications  Pagerank Power iteration Convergencce  Personalized pagerank  Rank stability

22 Interesting questions Does a stationary distribution always exist? Is it unique?  Yes, if the graph is “well-behaved”. What is “well-behaved”?  We shall talk about this soon. How fast will the random surfer approach this stationary distribution?  Mixing Time!

23 Well behaved graphs Irreducible: There is a path from every node to every other node. IrreducibleNot irreducible

24 Well behaved graphs Aperiodic: The GCD of all cycle lengths is 1. The GCD is also called period. Aperiodic Periodicity is 3

25 Implications of the Perron Frobenius Theorem If a markov chain is irreducible and aperiodic then the largest eigenvalue of the transition matrix will be equal to 1 and all the other eigenvalues will be strictly less than 1.  Let the eigenvalues of P be {σ i | i=0:n-1} in non-increasing order of σ i.  σ 0 = 1 > σ 1 > σ 2 >= ……>= σ n

26 Implications of the Perron Frobenius Theorem If a markov chain is irreducible and aperiodic then the largest eigenvalue of the transition matrix will be equal to 1 and all the other eigenvalues will be strictly less than 1.  Let the eigenvalues of P be {σ i | i=0:n-1} in non-increasing order of σ i.  σ 0 = 1 > σ 1 > σ 2 >= ……>= σ n These results imply that for a well behaved graph there exists an unique stationary distribution.

27 Some fun stuff about undirected graphs A connected undirected graph is irreducible A connected non-bipartite undirected graph has a stationary distribution proportional to the degree distribution! Makes sense, since larger the degree of the node more likely a random walk is to come back to it.

PageRank Page, Lawrence and Brin, Sergey and Motwani, Rajeev and Winograd, Terry The PageRank Citation Ranking: Bringing Order to the Web. Technical Report. Stanford InfoLab, 1999.

29 Pagerank (Page & Brin, 1998) Web graph: if i is connected to j and 0 otherwise  An webpage is important if other important pages point to it.  Intuitively  v works out to be the stationary distribution of the Markov chain corresponding to the web: v = v P, where for example 1 1/2 1

30 Pagerank & Perron-frobenius Perron Frobenius only holds if the graph is irreducible and aperiodic. But how can we guarantee that for the web graph?  Do it with a small restart probability c. At any time-step the random surfer  jumps (teleport) to any other node with probability c  jumps to its direct neighbors with total probability 1-c.

31 Power iteration Power Iteration is an algorithm for computing the stationary distribution.  Start with any distribution x 0  Keep computing x t+1 = x t P  Stop when x t+1 and x t are almost the same.

32 Power iteration Why should this work? Write x 0 as a linear combination of the left eigenvectors {v 0, v 1, …, v n-1 } of P Remember that v 0 is the stationary distribution. x 0 = c 0 v 0 + c 1 v 1 + c 2 v 2 + … + c n-1 v n-1

33 Power iteration Why should this work? Write x 0 as a linear combination of the left eigenvectors {v 0, v 1, …, v n-1 } of P Remember that v 0 is the stationary distribution. x 0 = c 0 v 0 + c 1 v 1 + c 2 v 2 + … + c n-1 v n-1 c 0 = 1. WHY? (see next slide)

34 Convergence Issues 1 Lets look at the vectors x for t=1,2,… Write x 0 as a linear combination of the eigenvectors of P x 0 = c 0 v 0 + c 1 v 1 + c 2 v 2 + … + c n-1 v n-1 c 0 = 1. WHY? Remember that 1is the right eigenvector of P with eigenvalue 1, since P is stochastic. i.e. P*1 T = 1 T. Hence v i 1 T = 0 if i≠0. 1 = x*1 T = c 0 v 0 *1 T = c 0. Since v 0 and x 0 are both distributions

35 Power iteration v 0 v 1 v 2 ……. v n-1 1 c 1 c 2 c n-1

36 Power iteration v 0 v 1 v 2 ……. v n-1 σ 0 σ 1 c 1 σ 2 c 2 σ n-1 c n-1

37 Power iteration v 0 v 1 v 2 ……. v n-1 σ 0 2 σ 1 2 c 1 σ 2 2 c 2 σ n-1 2 c n-1

38 Power iteration v 0 v 1 v 2 ……. v n-1 σ 0 t σ 1 t c 1 σ 2 t c 2 σ n-1 t c n-1

39 Power iteration v 0 v 1 v 2 ……. v n-1 1 σ 1 t c 1 σ 2 t c 2 σ n-1 t c n- 1 σ 0 = 1 > σ 1 ≥…≥ σ n

40 Power iteration v 0 v 1 v 2 ……. v n σ 0 = 1 > σ 1 ≥…≥ σ n

41 Convergence Issues Formally ||x 0 P t – v 0 || ≤ |λ| t  λ is the eigenvalue with second largest magnitude The smaller the second largest eigenvalue (in magnitude), the faster the mixing. For λ<1 there exists an unique stationary distribution, namely the first left eigenvector of the transition matrix.

42 Pagerank and convergence The transition matrix pagerank really uses is The second largest eigenvalue of can be proven 1 to be ≤ (1-c) Nice! This means pagerank computation will converge fast. 1. The Second Eigenvalue of the Google Matrix, Taher H. Haveliwala and Sepandar D. Kamvar, Stanford University Technical Report, 2003.

43 Pagerank We are looking for the vector v s.t. r is a distribution over web-pages. If r is the uniform distribution we get pagerank. What happens if r is non-uniform?

44 Pagerank We are looking for the vector v s.t. r is a distribution over web-pages. If r is the uniform distribution we get pagerank. What happens if r is non-uniform? Personalization

45 Rank stability How does the ranking change when the link structure changes? The web-graph is changing continuously. How does that affect page-rank?

46 Rank stability 1 (On the Machine Learning papers from the CORA 2 database) 1.Link analysis, eigenvectors, and stability, Andrew Y. Ng, Alice X. Zheng and Michael Jordan, IJCAI-01 2.Automating the contruction of Internet portals with machine learning, A. Mc Callum, K. Nigam, J. Rennie, K. Seymore, In Information Retrieval Journel, 2000 Rank on 5 perturbed datasets by deleting 30% of the papers Rank on the entire database.

47 Rank stability Ng et al 2001: Theorem: if v is the left eigenvector of. Let the pages i 1, i 2,…, i k be changed in any way, and let v’ be the new pagerank. Then So if c is not too close to 0, the system would be rank stable and also converge fast!

48 Conclusion Basic definitions  Random walks  Stationary distributions Properties  Perron frobenius theorem Applications  Pagerank Power iteration Convergencce  Personalized pagerank  Rank stability

49 Thanks! Please send to Purna at with questions, suggestions, corrections

50 Acknowledgements Andrew Moore Gary Miller  Check out Gary’s Fall 2007 class on “Spectral Graph Theory, Scientific Computing, and Biomedical Applications”  Computing/F-07/index.html Computing/F-07/index.html Fan Chung Graham’s course on  Random Walks on Directed and Undirected Graphs  Random Walks on Graphs: A Survey, Laszlo Lov'asz Reversible Markov Chains and Random Walks on Graphs, D Aldous, J Fill Random Walks and Electric Networks, Doyle & Snell