+ All Categories
Home > Documents > Google’s Billion Dollar Eigenvector

Google’s Billion Dollar Eigenvector

Date post: 31-Dec-2015
Category:
Upload: philip-donovan
View: 89 times
Download: 6 times
Share this document with a friend
Description:
Google’s Billion Dollar Eigenvector. Gerald Kruse, PhD . John ‘54 and Irene ‘58 Dale Professor of MA, CS and I T Interim Assistant Provost 2013-14 Juniata College Huntingdon, PA [email protected] http://faculty.juniata.edu/kruse. Now, back to Search Engines… What must they do?. - PowerPoint PPT Presentation
Popular Tags:
27
Google’s Billion Google’s Billion Dollar Eigenvector Dollar Eigenvector Gerald Kruse, PhD Gerald Kruse, PhD . . John ‘54 and Irene ‘58 Dale Professor of MA, CS John ‘54 and Irene ‘58 Dale Professor of MA, CS and I T and I T Interim Assistant Provost 2013-14 Interim Assistant Provost 2013-14 Juniata College Juniata College Huntingdon, PA Huntingdon, PA [email protected] http://faculty.juniata.edu/kruse http://faculty.juniata.edu/kruse
Transcript

Google’s Billion Dollar Google’s Billion Dollar EigenvectorEigenvector

Gerald Kruse, PhDGerald Kruse, PhD..John ‘54 and Irene ‘58 Dale Professor of MA, CS and I TJohn ‘54 and Irene ‘58 Dale Professor of MA, CS and I T

Interim Assistant Provost 2013-14Interim Assistant Provost 2013-14Juniata CollegeJuniata CollegeHuntingdon, PAHuntingdon, PA

[email protected]://faculty.juniata.edu/krusehttp://faculty.juniata.edu/kruse

Now, back to Search Engines…Now, back to Search Engines…

What must they do?What must they do?

Crawl the web and locate all public pagesCrawl the web and locate all public pages

Index the “crawled” data so it can be searchedIndex the “crawled” data so it can be searched

Rank the pages for more effective Rank the pages for more effective searchingsearching ( the focus of this talk ) ( the focus of this talk )

PageRankPageRank is NOT a simple citation is NOT a simple citation indexindex

NOTE:NOTE: While While PageRankPageRank is an important part of Google’s is an important part of Google’s search results, it is not the sole means used to rank pages.search results, it is not the sole means used to rank pages.

A B

Which is the more popular page below, A or B?Which is the more popular page below, A or B?

What if the links to A were from unpopular pages, and the What if the links to A were from unpopular pages, and the one link to B was from one link to B was from www.yahoo.com ? ?

Intuitively Intuitively PageRankPageRank is analogous is analogous to popularityto popularity

The web as a graph: each page is a The web as a graph: each page is a vertexvertex, each , each hyperlink a directed hyperlink a directed edgeedge..A page is popular if a few very popular pages point (via A page is popular if a few very popular pages point (via hyperlinks) to it.hyperlinks) to it.A page could be popular if many not-necessarily A page could be popular if many not-necessarily popular pages point (via hyperlinks) to it.popular pages point (via hyperlinks) to it.

1BNPage A Page B

Page C

2AN

1CN

Which of these three would have the highest page rank?

So what is the mathematical So what is the mathematical definition of definition of PageRankPageRank??

In particular, a page’s rank is equal to the sum In particular, a page’s rank is equal to the sum of the ranks of all the pages pointing to it. of the ranks of all the pages pointing to it.

note the scaling of each page ranknote the scaling of each page rank

vfromlinksofnumberN

utolinkswithpagesofsetB

N

vRankuRank

v

u

Bv vu

)()(

Writing out the equation for each Writing out the equation for each web-page in our example gives:web-page in our example gives:

1BNPage A Page B

Page C

2AN

1CN

01

)(

2

)()(

002

)()(

1

)(00)(

BRankARankCRank

ARankBRank

CRankARank

Even though this is a circular definition we can Even though this is a circular definition we can calculate the ranks.calculate the ranks.Re-write the system of equations as a Matrix-Re-write the system of equations as a Matrix-Vector product.Vector product.

)(

)(

)(

012

1

002

1

100

)(

)(

)(

CRank

BRank

ARank

CRank

BRank

ARank

The The PageRankPageRank vector is simply an eigenvector of the vector is simply an eigenvector of the coefficient matrix, with coefficient matrix, with xAx

1

1BNPage A Page B

Page C

2AN

1CN

PageRank = 0.4

PageRank = 0.4

PageRank = 0.2

Note: we choose the eigenvector with Note: we choose the eigenvector with 11x

Note that the coefficient matrix is Note that the coefficient matrix is column-stochasticcolumn-stochastic**

1

10,

211

321

2232221

1131211

njjj

n

iij

ij

nnnnn

n

n

aaaa

a

aaaa

aaaa

aaaa

Every column-stochastic matrix has 1 as an eigenvalue.Every column-stochastic matrix has 1 as an eigenvalue.

** As long as there are no “dangling nodes” and the graph is As long as there are no “dangling nodes” and the graph is connected.connected.

In Page, Brin, et. al. [1], they suggest dangling nodes most likely In Page, Brin, et. al. [1], they suggest dangling nodes most likely would occur from pages which haven’t been crawled yet, and so would occur from pages which haven’t been crawled yet, and so they “simply remove them from the system until all the they “simply remove them from the system until all the PageRankPageRanks are calculated.”s are calculated.”

It is interesting to note that a column-substochastic does have a It is interesting to note that a column-substochastic does have a positive eigenvalue and corresponding eigenvector with positive eigenvalue and corresponding eigenvector with non-negative entries, which is called the Perron eigenvector, as non-negative entries, which is called the Perron eigenvector, as detailed in Bryan and Leise [2].detailed in Bryan and Leise [2].

Dangling Nodes have no outgoing linksDangling Nodes have no outgoing links

Page B

Page A

Page C

02/12/1

002/1

02/10In this example, Page C is a In this example, Page C is a dangling node. Note that its dangling node. Note that its associated column in the associated column in the coefficient matrix is all 0. coefficient matrix is all 0. Matrices like these are called Matrices like these are called column-substochasticcolumn-substochastic..

1

In this example, the eigenspace assiciated with In this example, the eigenspace assiciated with eigenvalue is two-dimensional. Which eigenvalue is two-dimensional. Which eigenvector should be used for ranking? eigenvector should be used for ranking?

A disconnected graph could lead to A disconnected graph could lead to non-unique rankingsnon-unique rankings

Page D

Page C

Page E

Page B

Page A

00000

2/10100

2/11000

00001

00010Notice the block Notice the block diagonal structure diagonal structure of the coefficient of the coefficient matrix. matrix. Note:Note: Re-ordering Re-ordering via permutation via permutation doesn’t change the doesn’t change the ranking, as in [2].ranking, as in [2].

1

Add a “random-surfer” term to the Add a “random-surfer” term to the simple simple PageRankPageRank formula. formula.

This models the behavior of a real web-surfer, who might jump to another This models the behavior of a real web-surfer, who might jump to another page by directly typing in a URL or by choosing a bookmark, rather than page by directly typing in a URL or by choosing a bookmark, rather than clicking on a hyperlink. Originally, clicking on a hyperlink. Originally, m=0.15m=0.15 in Google, according to [2]. in Google, according to [2].

can also be written as:can also be written as:

mSAmM )1(

Let Let SS be an be an nn x x nn matrix with all entries matrix with all entries 1/n1/n. . SS is column- is column-stochastic, and we consider the matrix stochastic, and we consider the matrix M M , which is a , which is a weighted average of weighted average of AA and and SS. .

smxAmx )1(xMx

Important NoteImportant Note: : We will use this formulation with We will use this formulation with AA when computing when computing x x ,,

and and ss is a column vector with all entries is a column vector with all entries 1/n1/n, where if , where if sxS 1ix

This gives a regular matrixThis gives a regular matrix

In matrix notation we haveIn matrix notation we have

Since Since we can rewrite as we can rewrite as

The new coefficient matrix is regular, so we can calculate The new coefficient matrix is regular, so we can calculate the eigenvector iteratively.the eigenvector iteratively.

This iterative process is a series of matrix-vector products, This iterative process is a series of matrix-vector products, beginning with an initial vector (typically the previous beginning with an initial vector (typically the previous PageRankPageRank vector). These products can be calculated vector). These products can be calculated without explicitly creating the huge coefficient matrix. without explicitly creating the huge coefficient matrix.

EARR

11R

REEnoteREAR )1(:,))1((

The eigenspace associated with is one-The eigenspace associated with is one-dimensional, and the normalized eigenvector isdimensional, and the normalized eigenvector is

MM for our previous disconnected for our previous disconnected graph, with graph, with m=0.15m=0.15

Page D

Page C

Page E

Page B

Page A

03.003.003.003.003.0

455.003.088.003.003.0

455.088.003.003.003.0

03.003.003.003.088.0

03.003.003.088.003.0

1

So the addition of the random surfer term permits So the addition of the random surfer term permits comparison between pages in different subwebs.comparison between pages in different subwebs.

)03.0,285.0,285.0,2.0,2.0(

The web currently contains tens of billions of pages. How The web currently contains tens of billions of pages. How does Google compute an eigenvector for something this large?does Google compute an eigenvector for something this large?

One possibility is the power method.One possibility is the power method.

In [2], it is shown that every positive (all entries are > 0) In [2], it is shown that every positive (all entries are > 0) column-stochastic matrix column-stochastic matrix MM has a unique vector has a unique vector qq with positive with positive

components such that components such that MqMq = = qq, with , and it can be, with , and it can be

computed as , for any initial guess withcomputed as , for any initial guess with

positive components and .positive components and .

Iterative CalculationIterative Calculation

11q

0lim xMq k

k

0x

110x

Rather than calculating the powers of M directly, we could use Rather than calculating the powers of M directly, we could use the iteration, .the iteration, .

Since M is positive, would be an calculation. Since M is positive, would be an calculation.

As we mentioned previously, Google uses the equivalent As we mentioned previously, Google uses the equivalent expression in the computation:expression in the computation:

These products can be calculated without explicitly creating These products can be calculated without explicitly creating the huge coefficient matrix, since the huge coefficient matrix, since AA contains mostly 0’s. contains mostly 0’s.

The iteration is guaranteed to converge, and it will converge The iteration is guaranteed to converge, and it will converge quicker with a better first guess, so the previous quicker with a better first guess, so the previous PageRankPageRank vector is used as the initial vector. vector is used as the initial vector.

Iterative Calculation continuedIterative Calculation continued

1 kk xMx

1kxM

)( 2nO

smxAmx kk

1)1(

““Google-ing” GoogleGoogle-ing” Google

Results in an early paper from Page, Brin et. al. Results in an early paper from Page, Brin et. al. while in graduate schoolwhile in graduate school

Attempts to Manipulate Search ResultsAttempts to Manipulate Search Results Via a “Google Bomb”Via a “Google Bomb”

Liberals vs. Conservatives!Liberals vs. Conservatives!

Juniata’s own “Google Bomb”Juniata’s own “Google Bomb”

At Juniata, CS 315 is my “Analysis and At Juniata, CS 315 is my “Analysis and Algorithms” courseAlgorithms” course

““Ego Surfing”Ego Surfing”Be very careful…Be very careful…

More than one Gerald Kruse…More than one Gerald Kruse…

Miscellaneous pointsMiscellaneous pointsTry a search in Google on “PigeonRank.”Try a search in Google on “PigeonRank.”

What types of sites would Google NOT give good results What types of sites would Google NOT give good results on?on?

PageRankPageRank is not the only means Google uses to order is not the only means Google uses to order search results.search results.

BibliographyBibliography

[1] S. Brin, L. Page, et. al., [1] S. Brin, L. Page, et. al., The PageRank Citation Ranking: Bringing The PageRank Citation Ranking: Bringing Order to the WebOrder to the Web, , http://dbpubs.stanford.edu/pub/1999-66 , Stanford , Stanford Digital Libraries Project (January 29, 1998).Digital Libraries Project (January 29, 1998).

[2] K. Bryan and T. Leise, [2] K. Bryan and T. Leise, The $25,000,000,000 Eigenvector: The The $25,000,000,000 Eigenvector: The Linear Algebra behind GoogleLinear Algebra behind Google, SIAM Review, 48 (2006), pp. 569-581., SIAM Review, 48 (2006), pp. 569-581.

[3] G. Strang, [3] G. Strang, Linear Algebra and Its ApplicationsLinear Algebra and Its Applications, Brooks-Cole, , Brooks-Cole, Boston, MA, 2005.Boston, MA, 2005.

[4] D. Poole, [4] D. Poole, Linear Algebra: A Modern IntroductionLinear Algebra: A Modern Introduction, Brooks-Cole, , Brooks-Cole, Boston, MA, 2005.Boston, MA, 2005.

Any Questions?Any Questions?

Slides available at Slides available at http://faculty.juniata.edu/krusehttp://faculty.juniata.edu/kruse


Recommended