Suppose that we know the values of πo(s,t)\pi^o(s, t) for all t∈Vt \in V and r(s,vi)r(s, v_i) for all vi∈Vv_i \in V. We would like to evaluate the value of

π(s,t)=πo(s,t)+∑i=1nr(s,vi)π(vi,t) \pi(s, t) = \pi^o(s, t) + \sum_{i = 1}^n r(s, v_i) \pi(v_i, t)

where π(vi,t)\pi(v_i, t) denotes the probability of a random starts from viv_i and terminate at tt. Let π~(vi,t)\tilde \pi(v_i, t) be our estimation of π(vi,t)\pi(v_i,t), then we have an estimation of π(s,t)\pi(s, t):

π~(s,t)=πo(s,t)+∑i=1nr(s,vi)π~(vi,t) \tilde\pi(s, t) = \pi^o(s, t) + \sum_{i = 1}^n r(s, v_i) \tilde\pi(v_i, t)

To get π~(vi,t)\tilde\pi(v_i, t), we perform wiw_i (a value to be determined latter) random walks that start from viv_i and count the fraction of walks that terminate at tt. Formally, let Xi,jX_{i, j} be a Bernoulli random variable that takes value 1 if the jj-th walk from viv_i terminates at tt. Then

E[Xi,j]=π(vi,t) E[X_{i,j}] = \pi(v_i, t)

Let π~(vi,t)=1wi∑j=1wiXi,j\tilde \pi(v_i, t) = \frac{1}{w_i} \sum_{j = 1}^{w_i} X_{i,j} , so

E[r(s,vi)π~(vi,t)]=r(s,vi)wi∑j=1wiE[Xi,j]=r(s,vi)π(vi,t) E[r(s, v_i) \tilde \pi(v_i, t)] = \frac{r(s, v_i)}{w_i} \sum_{j = 1}^{w_i} E[X_{i,j}] = r(s, v_i) \pi(v_i, t)

A naïve use of Chenoff bound to us wi=Ω(log⁡(1/pfail)ϵ2π(vi,t))w_i = \Omega(\frac{\log (1 / p_{fail} ) }{\epsilon^2 \pi(v_i, t)} ) (which is even worse than evaluating π(s,t)\pi(s, t) by Monte Carlo directly), such that r(s,vi)π~(vi,t)r(s, v_i) \tilde \pi(v_i, t) takes value within [(1−ϵ)r(s,vi)π(vi,t),(1+ϵ)r(s,vi)π(vi,t)]\big[(1 - \epsilon) r(s, v_i) \pi(v_i, t), (1 + \epsilon) r(s, v_i) \pi(v_i, t)\big]with probability 1−pfail1 - p_{fail}. The problem here is that when π(vi,t)\pi(v_i, t) is small, we need large number of random walks to get a good approximation of it. On the other hand, when π(vi,t)\pi(v_i, t) is small, the contribution of r(s,vi)π(vi,t)r(s, v_i)\pi(v_i, t) to ∑i=1nr(s,vi)π(vi,t)\sum_{i = 1}^n r(s, v_i) \pi(v_i, t) is small, which means that more deviation is allowed on the estimation of π(vi,t)\pi(v_i, t).

What if the amount of deviation on the estimation of r(s,vi)π(vi,t)r(s, v_i) \pi(v_i, t) we allow is π(s,t)\pi(s, t)? How about π(s,t)/n\pi(s, t) / n? More clever way of allocating deviation? Better Chernoff bound?

[1] solves this by bounding the cumulative deviation of ∑i=1nr(s,vi)π~(vi,t)\sum_{i = 1}^n r(s, v_i) \tilde \pi(v_i, t) as a whole. The statistical tool it turns to is a special Chernoff bound:

Theorem

Let Y1,Y2,...,YwY_1, Y_2, ..., Y_w be independent random variables with

Pr[Yi=1]=piPr[Yi=0]=1−pi. Pr[Y_i = 1] = p_i \qquad Pr[Y_i = 0 ] = 1 - p_i.

Let Y=1w∑i=1wbiYiY = \frac{1}{w} \sum_{i = 1}^w b_i Y_i with bi>0b_i > 0, and v=1w∑i=1wbi2piv = \frac{1}{w} \sum_{i = 1}^w b_i^2 p_i. Then

Pr[∣Y−E[Y]∣≥λ]≤2exp⁡(−λ2w2v+2bλ/3) Pr[|Y - E[Y]| \ge \lambda ] \le 2 \exp \big(-\frac{\lambda^2 w} {2 v + 2 b \lambda / 3} \big)

where b=max⁡{b1,b2,...,bw}b = \max\{ b_1, b_2, ..., b_w\}

To apply this bound, we perform in total w=∑i=1nwiw = \sum_{i = 1}^n w_i random walks. The first w1w_1 walks starts from v1v_1 , the next w2w_2 walks starts from v2v_2, and so on. Let

{Y1,...,Yw1,Yw1+1,...,Yw1+w2,...,Y∑i=1n−1wi+1,...,Yw} \{ Y_{1}, ..., Y_{w_1}, Y_{w_1 + 1}, ..., Y_{w_1 + w_2}, ..., Y_{\sum_{i = 1}^{n -1}w_i + 1}, ..., Y_{w} \}

be the corresponding independent indicator random variables that take value 1 if the walks terminate at tt and

bj=wwir(s,vi) b_j = \frac{w}{w_i} r(s, v_i)

if the jj-th walk starts from vertex viv_i. So

b=max⁡{b1,b2,...,bw}=max⁡1≤i≤nwwir(s,vi) b = \max \{b_1, b_2, ..., b_w\} = \max_{1 \le i \le n} \frac{w}{w_i} r(s, v_i)

It can be verified that

E[Y]=1w∑i=1wE[Yi]=1w∑i=1n∑j=1wiwwir(s,vi)π(vi,t)=∑i=1nr(s,vi)π(vi,t) E[Y] = \frac{1}{w} \sum_{i = 1}^w E[Y_i] = \frac{1}{w} \sum_{i = 1}^n \sum_{j = 1}^{w_i} \frac{w}{w_i} r(s, v_i) \pi(v_i, t) = \sum_{i = 1}^n r(s, v_i) \pi(v_i, t)

To bound the deviation of π~(s,t)\tilde \pi(s, t) from π(s,t)\pi(s, t), we notice that

∣π~(s,t)−π(s,t)∣=∣∑i=1nr(s,vi)π~(vi,t)−∑i=1nr(s,vi)π(vi,t)∣=∣Y−E[Y]∣ |\tilde \pi(s, t) - \pi(s, t)| = | \sum_{i = 1}^n r(s, v_i) \tilde \pi(v_i, t) - \sum_{i = 1}^n r(s, v_i) \pi(v_i, t)| = |Y - E[Y]|

So

Pr[∣Y−E[Y]∣≥ϵπ(s,t)]≤2exp⁡(−ϵ2π2(s,t) w2v+2bϵπ(s,t)/3) Pr[|Y - E[Y]| \ge \epsilon \pi(s, t)] \le 2 \exp ( - \frac{ \epsilon^2 \pi^2(s, t) \ w}{2 v + 2 b \epsilon \pi(s, t) / 3})

But notice that

v=1w∑i=1wbi2pi≤(bw∑i=1wbipi)=b E[Y]≤b π(s,t) v = \frac{1}{w} \sum_{i = 1}^w b_i^2 p_i \le \big( \frac{b}{w} \sum_{i = 1}^w b_i p_i \big) = b \ E[Y] \le b \ \pi(s, t)

Thus

Pr[∣Y−E[Y]∣≥ϵπ(s,t)]≤2exp⁡(−ϵ2π2(s,t) w2v+2bϵπ(s,t)/3)≤2exp⁡(−ϵ2π2(s,t) w2bπ(s,t)+2bϵπ(s,t)/3)≤2exp⁡(−ϵ2π(s,t) wb(2+2ϵ/3))≤pfail \begin{align} Pr[|Y - E[Y]| \ge \epsilon \pi(s, t)] &\le 2 \exp ( - \frac{ \epsilon^2 \pi^2(s, t) \ w}{2 v + 2 b \epsilon \pi(s, t) / 3}) \\\\ &\le 2 \exp ( - \frac{ \epsilon^2 \pi^2(s, t) \ w}{2 b \pi(s, t) + 2 b \epsilon \pi(s, t) / 3}) \\\\ &\le 2 \exp ( - \frac{ \epsilon^2 \pi (s, t) \ w}{b (2 + 2\epsilon / 3)}) \\\\ &\le p_{fail} \end{align}

So

w≥b2+2ϵ/3ϵ2δlog⁡2pfail w \ge b \frac{2 + 2\epsilon / 3}{\epsilon^2 \delta} \log \frac{2}{p_{fail} }

We would like to minimize bb in order to minimize ww, which can be formulated as an convex optimization problem:

min⁡bs.t.b≥r(s,vi)/ki∑iki=1ki≥0 \begin{align} \min \quad &b \\\\ s.t. \quad &b \ge r(s, v_i) / k_i \\\\ &\sum_i k_i = 1 \\\\ &k_i \ge 0 \end{align}

Here we rewrite wiw=ki\frac{w_i}{w} = k_i. One simple way to solve this is to guess that bb is minimized when all r(s,vi)/ki{r(s, v_i)}/{k_i} equals. This gives ki=r(s,vi)/rsumk_i = r(s, v_i) / r_{sum}. We can prove this is indeed optimal: if this is not the case, there must be some ki<r(s,vi)/rsumk_i < r(s, v_i) / r_{sum}. Then b≥r(s,vi)/ki>rsumb \ge r(s, v_i) / k_i > r_{sum} .

We can also solve this problem by a heavy mechanism: KKT conditions. First, define

L(b,k,λ,β,,μ)=b+∑i=1nλi(r(s,vi)/ki−b)+∑i=1nβi(0−ki)+μ(∑i=1nki−1) L(b, k, \lambda, \beta, , \mu) = b + \sum_{i = 1}^n \lambda_i (r(s, v_i) / k_i - b) + \sum_{i = 1}^n \beta_i (0 - k_i) + \mu (\sum_{i = 1}^n k_i - 1)

Thus, the KKT conditions are

r(s,vi)/ki−b≤0∀i∈[1,n]−ki≤0∀i∈[1,n]∑iki−1=0λi≥0,βi≥0∀i∈[1,n]λi(r(s,vi)/ki−b)=0∀i∈[1,n]βi(0−ki)=0∀i∈[1,n]∂L∂b=1−∑i=1nλi=0∂L∂ki=−λir(s,vi)/ki2−βi+μ=0∀i∈[1,n] \begin{align} & r(s, v_i) / k_i - b \le 0 &\forall i \in [1, n] \\\\ & -k_i \le 0 &\forall i \in [1, n] \\\\ & \sum_i k_i - 1 = 0 \\\\ & \lambda_i \ge 0, \beta_i \ge 0 &\forall i \in [1, n] \\\\ & \lambda_i (r(s, v_i) / k_i - b) = 0 &\forall i \in [1, n] \\\\ &\beta_i (0 - k_i) = 0 &\forall i \in [1, n] \\\\ & \frac{\partial L}{\partial b} = 1 - \sum_{i = 1}^n \lambda_i = 0 \\\\ & \frac{\partial L}{\partial k_i} = -\lambda_i r(s, v_i) / k_i^2 - \beta_i + \mu = 0 &\forall i \in [1, n]\\\\ \end{align}

So one solution is given by

b=rsumki=r(s,vi)/rsum∀i∈[1,n]λi=r(s,vi)/rsum2∀i∈[1,n]βi=0∀i∈[1,n]μ=1 \begin{align} &b = r_{sum} \\\\ &k_i = r(s, v_i) / r_{sum} & \forall i \in [1, n] \\\\ &\lambda_i = r(s, v_i) / r_{sum}^2 & \forall i \in [1, n] \\\\ &\beta_i = 0 & \forall i \in [1, n] \\\\ &\mu = 1 \end{align}

which implies

w≥b2+2ϵ/3ϵ2δlog⁡2pfailwi=wki=wr(s,vi)rsum w \ge b \frac{2 + 2\epsilon / 3}{\epsilon^2 \delta} \log \frac{2}{p_{fail} } \\\\ w_i = w k_i = \frac{w r(s, v_i)}{r_{sum} }
Citations

[1] Wang, Sibo, et al. "FORA: Simple and Effective Approximate Single-Source Personalized PageRank." Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2017.