Algorithm Search⌘K

Proofs: Greedy influence maximization

These are the human proofs of Greedy influence maximization, at full length.

Under the independent cascade and linear threshold models the spread is monotone and submodular, so the greedy seeds reach at least 1 - 1/e of the optimum full

This proof shows: correctness, termination.

Let G=(V,E)G = (V, E) be a directed graph with nn vertices. For a set L⊆EL \subseteq E of arcs and S⊆VS \subseteq V, let RL(S)R_L(S) be the set of vertices reachable from SS using only arcs of LL, with S⊆RL(S)S \subseteq R_L(S). The spread σ(S)\sigma(S) is the expected number of active vertices at the end of the process started from the seeds SS.

Termination. Line L2 runs min⁡(k,∣V∣)\min(k, |V|) times and line L3 at most ∣V∣|V| times per round, so GREEDY-IM makes at most k∣V∣+1k|V| + 1 calls to σ\sigma and stops. Each round adds a vertex not in SS, so ∣S∣=min⁡(k,∣V∣)|S| = \min(k, |V|) at the end.

Lemma 1 (live edges for the independent cascade). Draw every arc (u,v)(u, v) live independently with probability puvp_{uv}, giving a random set LL. Then for every SS, the final active set of the cascade from SS has the same distribution as RL(S)R_L(S); so σ(S)=E[∣RL(S)∣]\sigma(S) = \mathbb{E}[|R_L(S)|].

Proof. In the cascade, the coin of an arc (u,v)(u, v) is flipped at most once, when uu becomes active and vv is still inactive, and the coins are independent. Flip all the coins in advance instead and use each one when the cascade would flip it; this does not change the distribution of the run. With the coins fixed, a vertex is active at the end exactly when a path of live arcs leads to it from SS: by induction on the step, every vertex activated at step tt is at live-arc distance tt from SS, and every vertex at live-arc distance tt from SS is active by step tt, since its predecessor on a shortest live path is active by step t−1t - 1 and tries the live arc, unless the vertex was active already. Unused coins do not matter. □\square

Lemma 2 (live edges for the linear threshold model). Let every vertex vv independently keep at most one of its in-arcs: the arc (u,v)(u, v) with probability buvb_{uv}, and none with probability 1−∑ubuv1 - \sum_u b_{uv}. Let LL be the set of kept arcs. Then the final active set of the threshold process from SS has the same distribution as RL(S)R_L(S).

Proof. Let A0=SA_0 = S and AtA_t the active set after step tt in the threshold process, and let At′A'_t be the set of vertices at LL-distance at most tt from SS in the live-edge process. Both sequences increase and stop once two consecutive sets are equal. We show that (At)(A_t) and (At′)(A'_t) have the same distribution, by showing that both are Markov chains on pairs (At−1,At)(A_{t-1}, A_t) with the same transitions.

Threshold process. Fix the history up to step tt. A vertex v∉Atv \notin A_t is known only to have θv>∑u∈At−1buv\theta_v > \sum_{u \in A_{t-1}} b_{uv}, and the thresholds are independent and uniform on [0,1][0, 1]; so, given the history, θv\theta_v is uniform on (∑u∈At−1buv,1](\sum_{u \in A_{t-1}} b_{uv}, 1], independently for different vv. Vertex vv joins at step t+1t + 1 when θv≤∑u∈Atbuv\theta_v \le \sum_{u \in A_t} b_{uv}, with probability

∑u∈At∖At−1buv1−∑u∈At−1buv.\frac{\sum_{u \in A_t \setminus A_{t-1}} b_{uv}}{1 - \sum_{u \in A_{t-1}} b_{uv}}.

Live-edge process. Fix the history up to step tt. A vertex v∉At′v \notin A'_t is known only to have kept no arc from At−1′A_{t-1}', and the choices of different vertices are independent. Given that, its kept arc comes from At′∖At−1′A'_t \setminus A'_{t-1} with the same probability as above, and vv joins at step t+1t + 1 exactly in that case.

The two chains start at (∅,S)(\emptyset, S), and each vertex outside the current set joins independently with the same probability. So they have the same distribution, and so do their final sets. □\square

Lemma 3 (coverage is monotone and submodular). For a fixed LL, the function fL(S)=∣RL(S)∣f_L(S) = |R_L(S)| is monotone and submodular.

Proof. RL(S)=⋃s∈SRL({s})R_L(S) = \bigcup_{s \in S} R_L(\{s\}), so fLf_L counts the union of the sets RL({s})R_L(\{s\}), which grows with SS. For S⊆TS \subseteq T and v∉Tv \notin T, fL(S∪{v})−fL(S)=∣RL({v})∖RL(S)∣≥∣RL({v})∖RL(T)∣=fL(T∪{v})−fL(T)f_L(S \cup \{v\}) - f_L(S) = |R_L(\{v\}) \setminus R_L(S)| \ge |R_L(\{v\}) \setminus R_L(T)| = f_L(T \cup \{v\}) - f_L(T), because RL(S)⊆RL(T)R_L(S) \subseteq R_L(T). □\square

Lemma 4. In both models, σ\sigma is monotone and submodular, and σ(∅)=0\sigma(\emptyset) = 0.

Proof. By Lemma 1 or Lemma 2, σ(S)=∑LPr⁡[L] fL(S)\sigma(S) = \sum_L \Pr[L]\, f_L(S), a sum over the finitely many arc sets with non-negative coefficients. Monotonicity and the submodular inequality are linear inequalities, so they carry over from each fLf_L (Lemma 3) to the sum. RL(∅)=∅R_L(\emptyset) = \emptyset. □\square

Theorem (Nemhauser, Wolsey and Fisher). Let ff be monotone and submodular on the subsets of VV, with f(∅)=0f(\emptyset) = 0, and let S∗S^\ast maximize ff over the sets of size k≤∣V∣k \le |V|. With an exact oracle σ=f\sigma = f, GREEDY-IM returns SkS_k with

f(Sk)≥(1−(1−1k)k)f(S∗)≥(1−1e)f(S∗).f(S_k) \ge \Bigl(1 - \bigl(1 - \tfrac1k\bigr)^k\Bigr) f(S^\ast) \ge \Bigl(1 - \frac1e\Bigr) f(S^\ast).

Proof. Let SiS_i be the set after ii rounds and gi=f(S∗)−f(Si)g_i = f(S^\ast) - f(S_i). Write S∗∖Si={v1,…,vj}S^\ast \setminus S_i = \{v_1, \dots, v_j\} with j≤kj \le k. By monotonicity and then a telescoping sum,

f(S∗)≤f(Si∪S∗)=f(Si)+∑l=1j(f(Si∪{v1,…,vl})−f(Si∪{v1,…,vl−1})).f(S^\ast) \le f(S_i \cup S^\ast) = f(S_i) + \sum_{l=1}^{j} \bigl(f(S_i \cup \{v_1, \dots, v_l\}) - f(S_i \cup \{v_1, \dots, v_{l-1}\})\bigr).

By submodularity each term is at most f(Si∪{vl})−f(Si)f(S_i \cup \{v_l\}) - f(S_i), and line L5 chose uu with the largest such gain, so each term is at most f(Si+1)−f(Si)f(S_{i+1}) - f(S_i). Hence gi≤k(gi−gi+1)g_i \le k (g_i - g_{i+1}), that is gi+1≤(1−1/k)gig_{i+1} \le (1 - 1/k) g_i. With g0=f(S∗)g_0 = f(S^\ast), we get gk≤(1−1/k)kf(S∗)≤e−1f(S∗)g_k \le (1 - 1/k)^k f(S^\ast) \le e^{-1} f(S^\ast), using 1−x≤e−x1 - x \le e^{-x}. □\square

Corollary. With an exact spread oracle, GREEDY-IM returns, under the independent cascade model or the linear threshold model, a set SS of size min⁡(k,n)\min(k, n) with σ(S)≥(1−1/e)max⁡∣T∣=kσ(T)\sigma(S) \ge (1 - 1/e) \max_{|T| = k} \sigma(T). If k≥nk \ge n, it returns VV, which is optimal by monotonicity. This follows from Lemma 4 and the theorem.

Approximate oracles. Suppose every call returns a value within ±δ\pm \delta of the truth (additive). Then each computed gain is within ±2δ\pm 2\delta of the true gain, so the true gain of the chosen vertex is at least the largest true gain minus 4δ4\delta. The recurrence becomes gi≤k(gi−gi+1+4δ)g_i \le k(g_i - g_{i+1} + 4\delta), that is gi+1≤(1−1/k)gi+4δg_{i+1} \le (1 - 1/k) g_i + 4\delta, and summing the geometric series gives f(Sk)≥(1−1/e)f(S∗)−4kδf(S_k) \ge (1 - 1/e) f(S^\ast) - 4k\delta. Since f(S∗)≥kf(S^\ast) \ge k when k≤nk \le n (the seeds count themselves), choosing δ=ε/4\delta = \varepsilon/4 gives f(Sk)≥(1−1/e−ε)f(S∗)f(S_k) \ge (1 - 1/e - \varepsilon) f(S^\ast). Monte Carlo estimates reach this accuracy with high probability by the Hoeffding inequality.

∎

Back to Greedy influence maximization