---
title: Backtracking Ratio in PageRank
url: https://www.emergentmind.com/topics/backtracking-ratio-br
type: topic
---

# Backtracking Ratio in PageRank

The Backtracking Ratio (BR) is a quantitative characterization of the propensity for immediate reversals—backtracking steps—in random walks underlying PageRank-style centrality measures on graphs. Specifically, for a random walk traversing vertices $v_{t-2} \to v_{t-1} \to v_t$, a step is called a backtrack if $v_t = v_{t-2}$. The BR formalizes the conditional probability that, upon reaching a vertex via an edge, the walk immediately returns to the preceding node. Tuning the BR has significant implications for mixing dynamics, centrality sensitivity, and community detection in network analysis, motivating several variants of PageRank in recent literature [2211.13353].

## 1. Formal Definition and Computation

The backtracking probability at the instant the walk is at vertex $j$ (having arrived from $i$) is defined as
\[
\Pr(v_t = i \mid v_{t-1} = j, \text{ choose edge-step}).
\]
The local Backtracking Ratio at node $j$, denoted $\mathrm{BR}_j$, is the likelihood of returning to the immediately previous node, often averaged over the stationary distribution of the walk. For standard random walks,
\[
\mathrm{BR}^{\rm std}_j = \frac{1}{d_j},
\]
with $d_j$ the degree of $j$, since only one out of $d_j$ neighbor choices is a backtrack.

For PageRank-style walks with modified dynamics—such as non-backtracking and $\mu$-backtracking walks—the BR is governed by explicit construction of the transition rules:
- **Non-backtracking PageRank** sets $\mathrm{BR}_j = 0$ for every $j$.
- **$\mu$-PageRank** introduces a parameter $\mu \in [0, \infty)$ that interpolates between non-backtracking and standard random walks, yielding
\[
\mathrm{BR}^{(\mu)}_j = \frac{\mu}{d_j - 1 + \mu},
\]
with $\mathrm{BR}^{(0)}_j=0$ and $\mathrm{BR}^{(1)}_j = 1/d_j$.
- **$\infty$-PageRank** yields a limiting behavior where BR becomes the PageRank edge-follow probability $\epsilon$:
\[
\mathrm{BR}^{(\infty)} = \epsilon.
\]

## 2. PageRank Variants and Their Backtracking Properties

The effects of backtracking are explored via three concrete PageRank variants [2211.13353]:

| Variant                      | BR per node            | Key property                                                   |
|------------------------------|------------------------|---------------------------------------------------------------|
| Standard PageRank            | $1/d_j$                | Allows single-step reversals                                   |
| Non-backtracking PageRank    | $0$                    | Two-step returns forbidden                                     |
| $\mu$-PageRank               | $\frac{\mu}{d_j-1+\mu}$| Continuously interpolates BR                                   |
| $\infty$-PageRank            | $\epsilon$             | Walk saturates in two-node oscillation when edge chosen        |

Standard PageRank employs the transition matrix $P = \epsilon A D^{-1} + (1 - \epsilon) v \mathbf{1}^T$, allowing immediate backtracks with probability $1/d_j$. Non-backtracking dynamics are implemented via a lifted directed-edge graph, suppressing all returns of form $(i,j)\to(j,i)$. The $\mu$-PageRank generalizes these, controlling the backtracking edge via $\mu$:
\[
C_\mu = C - (1-\mu)\tau,\quad H_\mu = \epsilon C_\mu(\hat D - (1-\mu)I)^{-1} + (1-\epsilon)u\mathbf{1}^T.
\]
$\infty$-PageRank is implemented via $H_\infty = \epsilon \tau + (1-\epsilon)u\mathbf{1}^T$, forcing alternation.

## 3. Structural Invariance on Regular and Bipartite Graphs

A crucial result is that, for $k$-regular graphs and bipartite biregular graphs, varying the BR via $\mu$ does not affect the projected vertex PageRank:
\[
\pi_\mu = \pi_1 \text{ for all } \mu \in [0, \infty).
\]
Hence, BR-adjusted models are only distinct on heterogenous-degree networks; on regular or biregular structures, backtracking has no impact on centrality scores or node rankings.

## 4. Dynamical and Clustering Effects of Tuning the Backtracking Ratio

Empirically, as $\mu$ increases from 0 (non-backtracking) to $\infty$ (forced alternation), the distribution of node centralities $\pi_\mu(i)$ contracts, with the largest overall spread in the non-backtracking case. On scale-free graphs, $\pi_\infty$ and standard $\pi_1$ closely agree in top-node ranking, whereas on Erdős–Rényi graphs their overlap is poor [2211.13353]. In clustering applications, replacing standard PageRank with $\infty$-PageRank in the Chung–Tsiatas algorithm yields strong performance, especially as intra- vs. inter-cluster edge probabilities diverge. The rise in clustering accuracy with increased separation is nearly logarithmic as shown in the empirical results.

## 5. Theoretical and Practical Considerations for Setting the Backtracking Ratio

The choice of BR (via $\mu$) directly affects network walk dynamics:
- $\mu = 0$ (BR = 0) eliminates two-step reversals, improving mixing in tree-like regions.
- $\mu = 1$ (standard) produces $BR_j = 1/d_j$, balancing path diversity and locality.
- $\mu \to \infty$ yields BR $\to \epsilon$ and centralities reliant principally on immediate neighborhoods.

On irregular networks, selecting $\mu$ provides a tunable trade-off between non-backtracking sensitivity (e.g., to long loops and rare paths) and the variance-reducing, locality-emphasizing effects of high backtracking. Community detection performance, mixing speed, and stability of scores can all be optimized by appropriate BR tuning. On regular or homogeneous networks, this flexibility is ineffectual due to the equivalence theorem.

## 6. Broader Significance and Related Concepts

The formalization of BR in PageRank-type algorithms provides a unifying axis for centrality measures, clustering algorithms, and walk-mixing analyses. The BR concept underlies differences between classical and non-backtracking tools for network exploration, crucial in both statistical physics (mixing, percolation) and practical network mining. The approach of parameterizing walk structure via BR is extensible to various liftings and generalizations in random walk theory, offering a systematic method to interpolate between global and local measurement of importance.

## 7. Summary Formulas

Key definitions and relationships for BR-aware PageRank methods:

| Method                   | Local BR                                                 | Transition/Stationarity Expression                                                                                                                                                                              |
|--------------------------|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Standard PageRank        | $\mathrm{BR}_j = 1/d_j$                                  | $\pi^T = \pi^T[\epsilon A D^{-1} + (1-\epsilon)v\mathbf{1}^T]$                                                                                                          |
| Non-backtracking         | 0                                                        | $H_0 = \epsilon B^T(\hat D - I)^{-1} + (1-\epsilon)u\mathbf{1}^T$                                                                                                       |
| $\mu$-PageRank           | $\frac{\mu}{d_j - 1 + \mu}$                              | $H_\mu = \epsilon C_\mu(\hat D - (1-\mu)I)^{-1} + (1-\epsilon)u\mathbf{1}^T$                                                                                             |
| $\infty$-PageRank        | $\epsilon$                                               | $H_\infty = \epsilon \tau + (1-\epsilon)u\mathbf{1}^T,\;\;\pi_\infty = (1+\epsilon)^{-1}v + \frac{\epsilon}{1+\epsilon}A D^{-1}v$                                       |

The backtracking ratio thus offers a mathematically explicit and computationally practical mechanism for controlling walk-based algorithmic behavior on graphs, and is a foundational concept for the design and interpretation of modern spectral and random-walk–based centrality measures [2211.13353].

Source: https://www.emergentmind.com/topics/backtracking-ratio-br