How HITS scores hubs and authorities

Short answer: HITS gives every page two scores. The authority score is the sum of the hub scores of pages that link to it. The hub score is the sum of the authority scores of pages it links to. Iterating those two sums and normalizing is power iteration on A transpose A and on A A transpose, where A is the adjacency matrix of a directed link graph. Kleinberg computed it on a query neighborhood, not as a single ranking of the whole web. PageRank is a different one-score walk.


What the problem actually asks

A page can be useful because other careful pages point to it, and a page can be useful because it points to useful pages. Those two roles support each other. Writing them as a pair of vectors turns the definition into an eigenvector. On a query, the graph is the set of pages that match the query, expanded by pages that link to them or that they link to. The scores are relative to that neighborhood.

A single global walk with a teleport, PageRank, answers a different question. It has one score per page and a damping term that makes the stationary distribution unique. HITS has no teleport. Its uniqueness depends on the spectral gap of A transpose A.


What the algorithm guarantees

If the largest eigenvalue of A transpose A is simple, repeated multiplication and normalization converge to the corresponding positive principal direction, up to sign, from a generic start. Each iteration is a sparse multiply by A and by A transpose, linear in the number of edges of the neighborhood. Extra memory is two score vectors. The usual normalization is the Euclidean norm after each half-step, so the vectors stay unit length.

A repeated principal eigenvalue means more than one direction fits, and the limit can depend on the starting vector. A tightly linked community inside the neighborhood can capture both vectors even when the community is off the query’s topic. That capture is a property of the neighborhood graph, and shrinking or reweighting the neighborhood is part of using the algorithm on a real query.


The working steps

  1. Build the directed adjacency matrix A of the query neighborhood.
  2. Start the hub vector at a positive vector and normalize it.
  3. Replace the authority vector by A transpose times the hub vector, and normalize. Replace the hub vector by A times the authority vector, and normalize.
  4. Repeat until the angular change falls below a tolerance.
  5. Read the largest entries of the authority vector as the authoritative pages and the largest entries of the hub vector as the directories.

Convergence to a unique pair of rankings needs a simple principal eigenvalue. PageRank is the damped single-vector walk. HITS is the hub and authority iteration on a link neighborhood.


Approaches that look simpler and fail

Approach Why it fails when the two updates are collapsed into one sum
Set one score to the sum of the in-neighbors’ scores and stop That is one step of a walk. HITS alternates in-links and out-links so hubs and authorities reinforce each other.
Skip normalization The entries grow like the principal eigenvalue to the power of the iteration count. The ranking may survive and the numbers overflow.
Run the iteration on a different graph than the query neighborhood and expect query-specific authorities The principal vector ranks the graph it is given. A whole-web matrix answers a different query.
Treat a tie in the top eigenvalue as a rounding error A multiple eigenvalue is a real split in the model. Two runs can then emphasize different communities.

A damped stationary distribution is PageRank. The matrix iteration underneath HITS is power iteration. HITS is the paired hub and authority score.


A working example

This Python fragment alternates authority and hub scores and normalizes after each half-step. Vertex 1 points at vertex 0, so 0 is the authority and 1 is the hub. It prints the authority scores 1.00 0.00.

# adjacency A[u][v] = 1 if u links to v
A = [[0, 0], [1, 0]]
hub = [1.0, 1.0]
for _ in range(10):
    auth = [0.0, 0.0]
    for u in range(2):
        for v in range(2):
            auth[v] += A[u][v] * hub[u]
    norm = sum(x * x for x in auth) ** 0.5 or 1
    auth = [x / norm for x in auth]
    hub = [0.0, 0.0]
    for u in range(2):
        for v in range(2):
            hub[u] += A[u][v] * auth[v]
    norm = sum(x * x for x in hub) ** 0.5 or 1
    hub = [x / norm for x in hub]
assert auth[0] > 0.9 and auth[1] < 0.1
print(f"{auth[0]:.2f}", f"{auth[1]:.2f}")

Where it is used

HITS scores hubs and authorities on a link graph. It was the web-search alternative to PageRank and is still used in bibliometrics. PageRank is the damped walk that search engines shipped. The two scores answer different questions about the same links.


When you can drop this algorithm

Drop HITS when a single global importance score with a unique stationary distribution is the goal. Use PageRank. Keep HITS when a query neighborhood should yield both directories and the pages they agree on.


Why this stays published

We publish this so a search for HITS returns the alternating hub and authority updates and the eigenvector they compute. HITS ranks a link neighborhood by alternating hub and authority sums, which is power iteration for the principal vectors of A A transpose and A transpose A.

本文由 HoHo 與 AI 協作整理,最後更新於 2026 年 11 月 13 日。

Leave a Reply

Your email address will not be published. Required fields are marked *