Download presentation
Presentation is loading. Please wait.
1
Density Independent Algorithms for Sparsifying π-Step Random Walks
Gorav Jindal, Pavel Kolev (MPI-INF) Richard Peng, Saurabh Sawlani (Georgia Tech) August 18, 2017
2
Talk Outline Definitions Our result Sparsification by Resistances
Random walk graphs Our result Sparsification by Resistances Walk sampling algorithm 8/18/2017
3
Spectral Sparsification
Sparsification: Removing (many) edges from a graph while approximating some property Spectral properties of the graph Laplacian! πΏ πΊ = 2 β2 0 β2 3 β1 0 β1 1 Graph Laplacian =π·βπ΄ e.g.: πΊ= 2 1 Formally, find sparse π» s.t.: 1βπ π₯ π πΏ πΊ π₯ β€ π₯ π πΏ π» π₯β€ 1+π π₯ π πΏ πΊ π₯ βπ₯ This preserves eigenvalues, cuts. 8/18/2017
4
Applications of Sparsification
Process huge graphs faster Dense graphs that arise in algorithms: Partial states of Gaussian elimination π-step random walks. 8/18/2017
5
Random Walk Graphs Walk along edges of πΊ.
When at vertex π£, choose the next edge π with probability proportional to π€(π) a u Pr π’βπ = π€(π’π) π€ π’π +π€ π’π +π€(π’π) = π€(π’π) π·(π’) b c Each step = π· β1 π΄ k step transition matrix = ( π· β1 π΄) π 8/18/2017
6
Random Walk Graphs Special case: π· = πΌ (for this talk)
Weights become probabilities Transition of k-step walk matrix: π΄ π Laplacian πΌβ π΄ π 8/18/2017
7
Random Walk Graphs Example: πΊ= πΊ 2 = .68 .68 .2 .8 .32 .32 .68 .8 .2
b b .32 πΊ= πΊ 2 = .32 .68 .8 Make numbers bigger .2 c c .68 8/18/2017
8
Our Result Assume π is constant π hides log log terms Running time
Comments Spielman Srivastava β08 π (π log 2.5 π) Only π = 1 Kapralov Panigrahi β11 π (π log 3 π) π=1, combinatorial Koutis Levin Peng β12 π (π log 2 π) π (π+π log 10 π) Peng-Spielman `14, Koutis β14 π (π log 4 π) π β€ 2, combinatorial Highlight density independent ones Cheng, Cheng, Liu, Peng, Teng β15 π ( π 2 π log π(1) π) πβ₯1 Jindal, Kolev β15 π (π log 2 π+π log 4 π log 5 π) Only π = 2π Our result O (m+ k 2 n log 4 n) πβ₯1 O (m+ k 2 n log 6 n) combinatorial
9
Density Independence Only sparsify when m >> size of sparsifier.
O (m+ k 2 n log 4 n) Only sparsify when m >> size of sparsifier. SS`08 + KLP `12: π(π log π ) edge sparsifer in π(π log 2 π ) time Actual cost at least: π(π log 3 π ) Density independent: π π + πβ
overhead Clearer picture of runtime
10
Algorithm Sample an edge in πΊ Pick an integer π u.a.r. between 0 and k
Walk π steps from π’ and kβ1βπ steps from π£ Add the corresponding edge in πΊ π to sparsifier (with rescaling) Walk sampling has analogs in: Personalized page rank algorithms Triangle counting / sampling 8/18/2017
11
Effective Resistances
View πΊ as an electrical circuit Resistance of π: π
π=1/ π€ π Effective resistance (πΈπ
) between two vertices: Voltage difference required between them to get 1 unit of current between them. Leverage score = π€ π’π£ βπΈπ
π’π£ Importance Intuitive way of observing a graph Sparsification by πΈπ
is extremely useful! (Next slide) 8/18/2017
12
Sparsification using πΈπ
Suppose we have upper bounds on leverage scores of edges. ( π β² π β₯π€ π πΈπ
(π)) Algorithm: Repeat π=π( π β2 β π β² π β log π ) times Pick an edge with probability π β² π / π β² π . Add it to H with appropriate re-weighting. Was this first used in SS08? [Tropp β12] The output π» is an πβsparsifier of πΊ. Need: leverage score bounds for the edges in πΊ π 8/18/2017
13
Tools for Bounding Leverage Scores
Odd-even lemma [CCLPT β15]: For odd π, πΈπ
πΊ π π’,π£ β€2β πΈπ
πΊ π’,π£ For even π, πΈπ
πΊ π π’,π£ β€ πΈπ
πΊ 2 π’,π£ Triangle inequality of πΈπ
(on path π’0β¦π’π): πΈπ
πΊ π’ 0 , π’ π β€ π=0 π πΈπ
πΊ π’ π , π’ π+1 We will use these to implicitly select edges by leverage score 8/18/2017
14
Analysis: Goal: sample an edge (π’0,π’π) in πΊ π w.p. proportional to:
Simplifications: Assume odd π (even π uses one more idea) Assume access to exact effective resistances of πΊ (available from previous works) Goal: sample an edge (π’0,π’π) in πΊ π w.p. proportional to: π€ πΊ π π’ 0 , π’ π β
πΈπ
πΊ π π’ 0 , π’ π Claim: walk sampling achieves this! 8/18/2017
15
Analysis: Claim: it suffices to sample a path π’0β¦π’π w.p. proportional to: π€ π’ 0 , π’ 1 ,β¦, π’ π β
π=0 πβ1 πΈ π
πΊ π’ π , π’ π+1 β₯π€ π’ 0 , π’ 1 ,β¦, π’ π β
πΈ π
πΊ π’ 0 , π’ π (β³ inequality) β₯π€ π’ 0 , π’ 1 ,β¦, π’ π β
πΈ π
πΊ π π’ 0 , π’ π (odd-even lemma) Summing over all k-length paths from π’ 0 to π’ π , = π€ πΊ π π’ 0 , π’ π β
πΈπ
πΊ π π’ 0 , π’ π 8/18/2017
16
Walk Sampling Algorithm
Algorithm (to pick an edge in πΊ π ): Choose an edge (π’,π£) in πΊ with probability proportional to π€ π’π£ βπΈπ
π’π£ Pick u.a.r. an index π in the range 0, πβ1 Walk π steps from π’ and kβ1βπ steps from π£ 8/18/2017
17
Analysis of Walk Sampling
Probability of sampling the walk ( π’ 0 , π’ 1 ,β―, π’ π )β Pr[selecting the edge ( π’ π , π’ π+1 )] Pr[index=i] x x Pr[Walk from π’ π to π’ 0 ] x Pr[Walk from π’ π+1 to π’ π ] = π=0 πβ1 1 π β
π€ π’ π , π’ π+1 πΈ π
πΊ π’ π , π’ π+1 β
π=0 πβ1 π€ π’ π , π’ π+1 β
π=π+1 πβ1 π€ π’ π , π’ π+1 = π=0 πβ1 1 π β
πΈ π
πΊ π’ π , π’ π+1 β
π=0 πβ1 π€ π’ π , π’ π+1 = 1 π β
π€(π’0,π’1β¦π’π)β
π=0 πβ1 πΈ π
β² π’ π , π’ π+1 8/18/2017
18
π = even: πΊ 2 πΈ π
πΊβπ2 π1,π1 =πΈ π
πΊ 2 (π,π)
πΊ 2 is still dense and cannot be computed! Compute product of G and length 2 path, return ER from that .68 .68 d a b .2 .8 π1 π2 a .32 b π1 π2 .68 .32 .8 .2 π1 π2 c c π1 π2 .68 πΊ πΊΓπ2 πΊ 2 πΈ π
πΊβπ2 π1,π1 =πΈ π
πΊ 2 (π,π) 8/18/2017
19
Future Work This result: π π+ π 2 π log 4 π time.
Log-dependency on π (as in JK β15) Better runtime of π π+π log 2 π ??? (combinatorial algorithm) 8/18/2017
20
ER estimates for πΊ (or πΊ Γ π 2 )
Iterative improvement similar to KLP β12: Create sequence of graphs, each more tree like than the previous, πΊ1β¦πΊπ‘ π 1 -Sparsify the last graph to get π»π‘ Use sparsifier π» π+1 to construct an π 1 -sparsifier π» π of πΊ π . 8/18/2017
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.