Mining of Massive Datasets
Edited based on Leskovecโs from http://www.mmds.org
A
3.3
B
38.4
C
34.3
D
3.9
E
8.1
F
3.9
1.6
1.6
1.6
1.6
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
1.6
2
y
[1/N]NxN
M
0.8·½+0.2·โ
1/2 1/2 0
0.8 1/2 0 0
0 1/2 1
0.8+0.2·โ
a
m
y
a =
m
1/3
1/3
1/3
r =
Ar
0.33 0.24
0.20 0.20
0.46 0.52
1/3 1/3 1/3
+ 0.2 1/3 1/3 1/3
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/15
0.26
0.18
0.56
...
A
7/33
5/33
21/33
Equivalently: ๐ = ๐ท ๐ด โ
๐ +
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
๐โ๐ท
๐ต ๐ต
3
๏ก
Input: Graph ๐ฎ and parameter ๐ท
๏ง Directed graph ๐ฎ with spider traps and dead ends
๏ง Parameter ๐ฝ
๏ก
Output: PageRank vector ๐
๏ง Set: ๐๐
๏ง do:
0
=
1
,
๐
๐ก=1
(๐โ๐)
๏ง โ๐:
๐
(๐)
๐โฒ๐ = ๐โ๐ ๐ท ๐
๐
๐
(๐)
๐โฒ๐ = ๐ if in-degree
of ๐ is 0
๏ง Now re-insert the leaked PageRank:
๐
โ๐: ๐๐ =
๐
๐โฒ ๐
+
๐โ๐บ
๐ต
๏ง ๐= ๐+๐
๏ง while
where: ๐ =
(๐ก)
๐
๐๐
(๐กโ1)
โ ๐๐
>๐
(๐ก)
๐ ๐โฒ๐
If the graph has no deadends then the amount of
leaked PageRank is 1-ฮฒ. But
since we have dead-ends the
amount of leaked PageRank
may be larger. We have to
explicitly account for it by
computing S.
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
4
๏ก
Measures generic popularity of a page
๏ง Will ignore/miss topic-specific authorities
๏ง Solution: Topic-Specific PageRank (next)
๏ก
Uses a single measure of importance
๏ง Other models of importance
๏ง Solution: Hubs-and-Authorities
๏ก
Susceptible to Link spam
๏ง Artificial link topographies created in order to
boost page rank
๏ง Solution: TrustRank
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
5
๏ก
๏ก
๏ก
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, history and computer security
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
7
๏ก
๏ก
Random walker has a small probability of
teleporting at any step
Teleport can go to:
๏ง Standard PageRank: Any page with equal probability
๏ง To avoid dead-end and spider-trap problems
๏ง Topic Specific PageRank: A topic-specific set of
โrelevantโ pages (teleport set)
๏ก
Idea: Bias the random walk
๏ง When walker 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/query
๏ง For each teleport set S, we get a different vector rS
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
8
๏ก
To make this work all we need is to update the
teleportation part of the PageRank formulation:
๐จ๐๐ = ๐ท ๐ด๐๐ + (๐ โ ๐ท)/|๐บ| if ๐ โ ๐บ
๐ท ๐ด๐๐ + ๐
otherwise
๏ง A is stochastic!
๏ก
We 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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
9
Suppose S = {1}, ๏ข = 0.8
0.2
1
0.5
0.4
2
Node
0.5
0.4
1
3
0.8
1
1
0.8
0.8
1
2
3
4
Iteration
0
1
0.25
0.4
0.25
0.1
0.25
0.3
0.25
0.2
4
S={1}, ฮฒ=0.90:
r=[0.17, 0.07, 0.40, 0.36]
S={1} , ฮฒ=0.8:
r=[0.29, 0.11, 0.32, 0.26]
S={1}, ฮฒ=0.70:
r=[0.39, 0.14, 0.27, 0.19]
2 โฆ
0.28
0.16
0.32
0.24
stable
0.294
0.118
0.327
0.261
S={1,2,3,4}, ฮฒ=0.8:
r=[0.13, 0.10, 0.39, 0.36]
S={1,2,3} , ฮฒ=0.8:
r=[0.17, 0.13, 0.38, 0.30]
S={1,2} , ฮฒ=0.8:
r=[0.26, 0.20, 0.29, 0.23]
S={1} , ฮฒ=0.8:
r=[0.29, 0.11, 0.32, 0.26]
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
10
๏ก
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, โฆ
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
11
Random Walk with Restarts: S is a single element
[Tong-Faloutsos, โ06]
I
1
J
1
A
1
1
1
H
1
B
1
D
1 1 1
E
G
F
a.k.a.: Relevance, Closeness, โSimilarityโโฆ
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
13
๏ก
Shortest path is not good:
๏ก
No effect of degree-1 nodes (E, F, G)!
Multi-faceted relationships
๏ก
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
14
๏ก
Network flow is not good:
๏ก
Does not punish long paths
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
15
[Tong-Faloutsos, โ06]
I
1
J
1
A
1
1
H
1
B
โข Multiple connections
1
1
D
โข Quality of connection
โฆ
โข Direct & Indirect
1 1 1
E
G
F
connections
โข Length, Degree,
Weightโฆ
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
16
๏ก
๏ก
SimRank: Random walks from a fixed node on
k-partite graphs
Conferences
Tags
Authors
Setting: k-partite graph
with k types of nodes
๏ง E.g.: Authors, Conferences, Tags
๏ก
๏ก
๏ก
Topic Specific PageRank
from node u: teleport set S = {u}
Resulting scores measures similarity to node u
Problem:
๏ง Must be done once for each node u
๏ง Suitable for sub-Web-scale applications
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
17
โฆ
โฆ
IJCAI
Philip S. Yu
KDD
ICDM
Ning Zhong
SDM
R. Ramakrishnan
AAAI
M. Jordan
โฆ
NIPS
Q: What is most related
conference to ICDM?
A: Topic-Specific
PageRank with
teleport set S={ICDM}
โฆ
Conference
Author
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
18
PKDD
SDM
PAKDD
0.008
0.009
0.007
0.005
KDD
ICML
0.011
ICDM
CIKM
0.005
0.004
0.004
ICDE
0.005
0.004
ECML
SIGMOD
DMKD
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
19
๏ก
โNormalโ PageRank:
๏ง Teleports uniformly at random to any node
๏ง All nodes have the same probability of surfer landing
there: S = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
๏ก
Topic-Specific PageRank also known as
Personalized PageRank:
๏ง Teleports to a topic specific set of pages
๏ง Nodes can have different probabilities of surfer
landing there: S = [0.1, 0, 0, 0.2, 0, 0, 0.5, 0, 0, 0.2]
๏ก
Random Walk with Restarts:
๏ง Topic-Specific PageRank where teleport is always to
the same node. S=[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
20
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
22
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
23
๏ก
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
24
๏ก
How do you make your page appear to be
about movies?
๏ง (1) Add the word movie 1,000 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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
25
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
26
๏ก
Our hypothetical shirt-seller looses
๏ง 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 1,000 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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
27
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
28
SPAM FARMING
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
29
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
30
๏ก
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
๏ง Owned pages
๏ง Completely controlled by spammer
๏ง May span multiple domain names
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
31
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
32
Accessible
Owned
1
Inaccessible
t
2
M
Millions of
farm pages
One of the most common and effective
organizations for a link farm
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
33
Accessible
Owned
1
Inaccessible
t
2
M
๏ก
๏ก
๏ก
Nโฆ# pages on the web
Mโฆ# of pages spammer
owns
x: PageRank contributed by accessible pages
y: PageRank of target page t
๐ฝ๐
1โ๐ฝ
Rank of each โfarmโ page = +
๐
๐
๐ฝ๐ฆ
1โ๐ฝ
1โ๐ฝ
๏ก ๐ = ๐ฅ + ๐ฝ๐
+
+
๐
๐
๐
๐ฝ 1โ๐ฝ ๐
1โ๐ฝ
2
Very small; ignore
=๐ฅ+๐ฝ ๐ฆ+
+
Now we solve for y
๐
๐
๐
๐ด
๐ฝ
๏ก ๐=
+๐
where ๐ =
๐โ๐ท๐
๐ต
1+๐ฝ
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
34
Accessible
Owned
1
Inaccessible
2
t
M
๐
๐โ๐ท๐
๐ด
+๐
๐ต
๐ฝ
1+๐ฝ
๏ก
๐=
๏ก
For ๏ข = 0.85, 1/(1-๏ข2)= 3.6
๏ก
Multiplier effect for acquired PageRank
By making M large, we can make y as
large as we want
๏ก
where ๐ =
Nโฆ# pages on the web
Mโฆ# of pages spammer
owns
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
35
๏ก
Combating term spam
๏ง Analyze text using statistical methods
๏ง Similar to email 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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
37
๏ก
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) to identify the good
pages and the spam pages in the seed set
๏ง Expensive task, so we must make seed set as
small as possible
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
38
๏ก
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
๏ก
Solution 1: Use a threshold value and mark
all pages below the trust threshold as spam
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
39
๏ก
๏ก
Set trust of each trusted page to 1
Suppose trust of page p is tp
๏ง Page p has a set of out-links op
๏ก
For each q๏op, p confers the trust to q
๏ง ๏ข tp /|op| for 0 <๏ข < 1
๏ก
Trust is additive
๏ง Trust of p is the sum of the trust conferred
on p by all its in-linked pages
๏ก
Note similarity to Topic-Specific PageRank
๏ง Within a scaling factor, TrustRank = PageRank with
trusted pages as teleport set
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
40
๏ก
Trust attenuation:
๏ง The degree of trust conferred by a trusted page
decreases with the distance in the graph
๏ก
Trust splitting:
๏ง The larger the number of out-links from a page,
the less scrutiny the page author gives each outlink
๏ง Trust is split across out-links
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
41
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
42
๏ก
๏ก
๏ก
Suppose we want to pick a seed set of k pages
How to do that?
(1) PageRank:
๏ง Pick the top k pages by PageRank
๏ง Theory is that you canโt get a bad pageโs rank
really high
๏ก
(2) Use trusted domains whose membership
is controlled, like .edu, .mil, .gov
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
43
๏ก
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
Trusted
set
Web
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
44
Solution 2:
๏ก ๐๐ = PageRank of page p
๏ก ๐+
๐ = PageRank of p with teleport into
trusted pages only
๏ก
Then: What fraction of a pageโs PageRank comes
from spam pages?
๐๐โ = ๐๐ โ ๐+
๐
๏ก
Spam mass of p =
๐โ
๐
Trusted
set
๐๐
๏ง Pages with high spam mass
are spam.
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
Web
45
๏ก
HITS (Hypertext-Induced Topic Selection)
๏ง Is a measure of importance of pages or documents,
similar to PageRank
๏ง Proposed at around same time as PageRank (โ98)
๏ก
Goal: Say we want to find good newspapers
๏ง Donโt just find newspapers. Find โexpertsโ โ people
who link in a coordinated way to good newspapers
๏ก
Idea: Links as votes
๏ง Page is more important if it has more links
๏ง In-coming links? Out-going links?
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
47
๏ก
Hubs and Authorities
Each page has 2 scores:
๏ง Quality as an expert (hub):
๏ง Total sum of votes of authorities pointed to
๏ง Quality as a content (authority):
๏ง Total sum of votes coming from experts
๏ก
NYT: 10
Ebay: 3
Yahoo: 3
CNN: 8
WSJ: 9
Principle of repeated improvement
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
48
Interesting pages fall into two classes:
1. Authorities are pages containing
useful information
๏ง Newspaper home pages
๏ง Course home pages
๏ง Home pages of auto manufacturers
2.
Hubs are pages that link to authorities
๏ง List of newspapers
๏ง Course bulletin
๏ง List of US auto manufacturers
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
49
Each page starts with hub
score 1. Authorities collect
their votes
(Note this is idealized example. In reality graph is not bipartite and
each page has both the hub and authority score)
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
50
Sum of hub
scores of nodes
pointing to NYT.
Each page starts with hub
score 1. Authorities collect
their votes
(Note this is idealized example. In reality graph is not bipartite and
each page has both the hub and authority score)
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
51
Sum of authority
scores of nodes that
the node points to.
Hubs collect authority scores
(Note this is idealized example. In reality graph is not bipartite and
each page has both the hub and authority score)
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
52
Authorities again collect
the hub scores
(Note this is idealized example. In reality graph is not bipartite and
each page has both the hub and authority score)
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
53
๏ก
A good hub links to many good authorities
๏ก
A good authority is linked from many good
hubs
๏ก
Model using two scores for each node:
๏ง Hub score and Authority score
๏ง Represented as vectors ๐ and ๐
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
54
[Kleinberg โ98]
๏ก
j1
Each page ๐ has 2 scores:
j2
j3
๏ง Authority score: ๐๐
๏ง Hub score: ๐๐
j4
i
HITS algorithm:
๐๐ =
๐๐
(0)
(0)
๐โ๐
๏ก Initialize: ๐๐ = 1/ N, hj = 1/ N
๏ก Then keep iterating until convergence:
i
๏ง โ๐:
(๐ก+1)
(๐ก)
Authority: ๐๐
= ๐โ๐ โ๐
(๐ก+1)
(๐ก)
Hub: โ๐
= ๐โ๐ ๐๐
๏ง โ๐:
๏ง โ๐: Normalize:
๐
๐๐
๐ก+1
2
= 1,
๐
โ๐
๐ก+1
2
j1
j2
j3
๐๐ =
=1
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
j4
๐๐
๐โ๐
55
[Kleinberg โ98]
๏ก
๏ก
HITS converges to a single stable point
Notation:
๏ง Vector ๐ = (๐1 โฆ , ๐๐ ), ๐ = (โ1 โฆ , โ๐ )
๏ง Adjacency matrix ๐จ (NxN): ๐จ๐๐ = 1 if ๐๏๐, 0 otherwise
๏ก
๏ก
Then ๐๐ = ๐โ๐ ๐๐
can be rewritten as ๐๐ =
So: ๐ = ๐จ โ
๐
Similarly, ๐๐ = ๐โ๐ ๐๐
can be rewritten as ๐๐ =
๐ ๐จ๐๐
โ
๐๐
๐ป
๐จ
โ
๐
=
๐จ
โ
๐
๐
๐ ๐๐
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
56
๏ก
HITS algorithm in vector notation:
๏ง Set: ๐๐ = ๐๐ =
๐
๐
Repeat until convergence:
๏ง ๐=๐จโ
๐
๏ง ๐ = ๐จ๐ป โ
๐
๏ง Normalize ๐ and ๐
๏ก
Then: ๐ = ๐จ๐ป โ
(๐จ โ
๐)
new ๐
new ๐
Convergence criterion:
๐ก
๐กโ1
๐ก
๐กโ1
โ๐ โ โ๐
2
<๐
๐
๐๐ โ ๐๐
2
<๐
๐
๐ is updated (in 2 steps):
๐ = ๐ด๐ (๐ด ๐) = (๐ด๐ ๐ด) ๐
h is updated (in 2 steps):
โ = ๐ด (๐ด๐ โ) = (๐ด ๐ด๐ ) โ
Repeated matrix powering
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
57
๏ก
๏ก
๏ก
๏ก
๏ก
h=ฮปAa
a = ฮผ AT h
h = ฮป ฮผ A AT h
a = ฮป ฮผ AT A a
ฮป = 1 / ๏ฅhi
ฮผ = 1 / ๏ฅai
Under reasonable assumptions about A,
HITS converges to vectors h* and a*:
๏ง h* is the principal eigenvector of matrix A AT
๏ง a* is the principal eigenvector of matrix AT A
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
58
111
A= 101
010
110
AT = 1 0 1
110
Yahoo
Amazon
Mโsoft
h(yahoo) =
h(amazon) =
h(mโsoft) =
.58 .80 .80
.58 .53 .53
.58 .27 .27
.79
.57
.23
...
...
...
.788
.577
.211
a(yahoo) =
a(amazon) =
a(mโsoft) =
.58 .58 .62
.58 .58 .49
.58 .58 .62
.62
.49
.62
...
...
...
.628
.459
.628
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
59
๏ก
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
J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org
60
© Copyright 2026 Paperzz