Temporal PageRank

Machine Learning
Introduced by
Rozenshtein, P. & Gionis, A.
Year
2016
Type
Centrality / ranking algorithm for temporal networks
Family
Network science

What does it do?

Temporal PageRank adapts the PageRank random-walk ranking to networks whose edges carry timestamps.

Each edge is weighted by an exponential decay of its age, so recent interactions contribute more to a node's score than older ones. The result is a ranking of nodes at a chosen evaluation time, reflecting current rather than cumulative influence.

The intuition behind the method

Classic PageRank treats the graph as a static snapshot, so an edge formed years ago counts as much as one formed last week. In many temporal networks the relevance of an interaction fades with its age. In citation or message data, for example, recent activity often describes the current state of the system better than the full history does. Temporal PageRank multiplies each edge's contribution by a factor that shrinks as the edge ages, so the prestige passed along an edge weakens over time. As the evaluation time moves forward, the same edge list can produce a different ranking.

History

PageRank was introduced by Brin and Page in 1998 as the ranking algorithm behind Google Search. Rozenshtein and Gionis later presented Temporal PageRank at ECML PKDD 2016 as a ranking approach for temporal networks. The exponential time-decay weighting described on this page is one way of making PageRank time-aware. Readers who need the exact weighting, normalisation and path definitions used in the original paper should consult that paper directly.

When to use it

Choose Temporal PageRank when edges carry reliable timestamps and the question concerns current importance, such as which accounts are most influential now in a social stream, or which papers have recent influence in a citation network. It suits networks that change over time, because scores can be recomputed at a new evaluation time from the same edge list. Do not use it when the network is effectively static or when edge timestamps are missing or unreliable; standard PageRank or eigenvector centrality is then the simpler choice. Avoid it when lambda cannot be justified from the time scale of the phenomenon, since the ranking depends on that choice. The formula on this page is evaluated at a single time point and does not enforce time-respecting paths, so it is not suitable for questions about whether influence could have passed along an ordered chain of contacts unless that property is verified separately.

Limitations and considerations

  • Every edge needs a reliable timestamp, because the weight depends directly on the edge time t_e; missing or incorrect timestamps change the weights themselves, not just labels.
  • lambda must be chosen or estimated. It sets how strongly recent edges outweigh older ones, so the ranking can change noticeably when lambda changes.
  • Each evaluation time requires rebuilding the time-weighted matrix and iterating to convergence, so the computational cost grows with the number of edges in the active set.
  • Convergence of the power iteration should be checked on the data at hand, because the time-weighted matrix changes with each evaluation time and each choice of lambda.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Scores reflect the evaluation time: because each edge weight is exp(-lambda(t_now - t_e)), older edges contribute less, whereas static PageRank counts every edge equally.
  • The decay parameter lambda has a direct time-scale meaning (the half-life of an edge weight is ln(2)/lambda), so it can be set to the relevance horizon of the domain under study.
  • The propagation step keeps the PageRank structure: each node's outgoing weights are normalised by their total, so prestige is shared among current out-edges in proportion to their recency.
  • The computation uses the standard power-iteration scheme, so an existing PageRank implementation can be adapted by replacing the edge weights.
  • Because the weights depend only on edge age and the evaluation time, the same stored edge list can be re-scored at later times without changing the data.

Applications

  • Identifying currently influential users in social media streams such as Twitter or Reddit.
  • Ranking papers or authors in citation networks by recent rather than cumulative impact.
  • Detecting emerging hubs in communication or collaboration networks in near real time.
  • Prioritising nodes for targeted interventions in information-diffusion or epidemic-spread models.
  • Tracking the rise and fall of topic authorities in dynamic knowledge graphs.

How it works

How it works

1

The input is a set of timestamped directed edges (source, target, time), such as messages, citations or retweets. The edges are sorted by time and can be processed as time windows or as a stream. The weight formula uses only each edge's age, so how the data is windowed is a data-handling choice rather than part of the weight calculation.

2

Each edge receives a weight that falls exponentially with its age, measured from the evaluation time t_now. The decay parameter lambda sets how fast the weight drops: a small lambda keeps older edges influential for longer, while a large lambda concentrates the ranking on very recent edges. The weight of an edge halves over ln(2)/lambda time units.

Formula
w(e, t) = \exp(-\lambda (t_{\text{now}} - t_e))
3

At each evaluation time the weights are recomputed for all edges in the time range being scored. In the formula every edge keeps a positive weight that decays with age. Each node's outgoing weights are then normalised by their total, so the random-walk interpretation holds: from a given node, the next step is chosen in proportion to edge recency. A cut-off that drops edges below a chosen weight threshold is an implementation choice. It changes the normalisation and therefore the scores, so the threshold should be reported with the results.

4

Scores are obtained by power iteration of the update formula in the mechanics. A node's new score is (1 - d) plus d times the sum, over the nodes linking to it, of each sender's current score multiplied by that edge's share of the sender's total outgoing weight. The damping factor d, typically 0.85, sets the probability of following an edge rather than jumping to a random node. The teleportation term (1 - d) is added to each node without division by the number of nodes, so the resulting scores are unnormalised: they do not sum to one and cannot be compared directly with conventional PageRank values. Only their order should be interpreted.

Formula
r_i^{(t+1)} = (1-d) + d \sum_{j \in \text{in}(i)} \frac{w_{ji}^{(t)} \, r_j^{(t)}}{\sum_k w_{jk}^{(t)}}
5

Iteration stops when the score vector changes by less than a small tolerance epsilon, or after a fixed number of steps in a streaming setting. The output is the list of nodes ordered by score at the chosen evaluation time. A later evaluation time requires new weights but not a new edge list.

Common pitfalls

  • Choosing lambda arbitrarily without a sensitivity check. Rankings can change across plausible lambda values, so results should be compared over a range of values.
  • Assuming the formula enforces time-respecting paths. The weight depends only on edge age at t_now and does not restrict propagation to forward-in-time sequences, so the scores cannot by themselves show that influence could have travelled along an ordered chain of contacts.
  • Comparing scores across evaluation times or networks with different time spans. Weights depend on t_now and lambda, so scores are only comparable within a fixed setting.
  • Applying the method after aggregation. If pre-processing merges interactions into period totals, the individual edge ages that the weight requires are lost.
  • Reading rank shifts as causal. Row normalisation divides each node's outgoing weights by their total, so a change in a node's activity volume alters its share of prestige even when its links to other nodes stay the same.
  • Leaving nodes without outgoing weight unhandled. A node with no outgoing edges in the data, or whose outgoing edges have all been removed by a weight cut-off, has a zero total in the normalising denominator, so its share cannot be defined. The formula does not specify how such nodes are treated. A rule, such as redistributing their score uniformly over all nodes, must be chosen and stated, because it affects the ranking.

Frequently asked questions

How does Temporal PageRank differ from ordinary PageRank?

Standard PageRank treats the graph as static and gives equal weight to all edges regardless of age. Temporal PageRank weights each edge by an exponential decay of its age, so recent interactions contribute more to a node's score, and scores shift as the network evolves over time.

How do I choose the decay parameter lambda?

Lambda controls how quickly old edges lose influence. A common approach is to select it based on the half-life of relevance in your domain. For example, a half-life of one week implies lambda = ln(2) / 7 per day. Always run a sensitivity analysis across a range of plausible lambda values to check whether rankings are stable.

Can Temporal PageRank be computed on a streaming graph in real time?

Possibly. The weights depend only on edge age and the current time, so the weighted matrix can be rebuilt as new edges arrive and old edges become less relevant. Real-time performance depends on the implementation and the volume of edges, and should be measured on the intended workload.

What data format does Temporal PageRank require?

The method requires a directed edge list in which each entry records the source node, the target node and a timestamp. Under the weight formula, edges that share a timestamp receive the same weight, so their order within that timestamp has no effect on the scores.

When should I prefer eigenvector centrality or static PageRank instead?

If your graph is static, timestamps are unavailable, or the phenomenon you are studying unfolds on a time scale much longer than the edge age variation, static PageRank or eigenvector centrality is simpler and equally valid. Temporal PageRank adds value only when recency genuinely matters to the research question.

Related methods

Sources

  1. Rozenshtein, P. & Gionis, A. (2016). Temporal PageRank. In Proceedings of the European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML PKDD), Part II, LNCS 9852, pp. 674–689. Springer.

    Open DOI reference
  2. Lerman, K. & Ghosh, R. (2010). Information Contagion: An Empirical Study of the Spread of News on Digg and Twitter Social Networks. In Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media (ICWSM), pp. 90–97. AAAI Press.

    Open publication reference