Spielman Laplacian Matrices of Graphs and Applications
Spielman Laplacian Matrices of Graphs and Applications
Daniel A. Spielman
Sparsification
CDC20 ANAPC10 1
0 CDC27 ANAPC2
ANAPC5 UBE2C
Interpolation on Graphs (Zhu,Ghahramani,Lafferty ’03)
1 X
(x(i) x(j))2
2
(i,j)2E
CDC20 ANAPC10 1
0 CDC27 ANAPC2
ANAPC5 UBE2C
Spring Networks
Interpolate values of a function at all vertices
from given values at a few vertices.
X
Minimize (x(i) x(j))2 = xT LG x
(i,j)2E
CDC20 ANAPC10
1
CDC27 ANAPC2
0
ANAPC5 UBE2C
Spring Networks
Interpolate values of a function at all vertices
from given values at a few vertices.
X
Minimize (x(i) x(j))2 = xT LG x
(i,j)2E
0.51
CDC20 ANAPC10
1
CDC27 ANAPC2
0 0.53
ANAPC5 UBE2C
0.30 0.61
In the solution, variables are the average of their neighbors
Drawing by Spring Networks (Tutte ’63)
Drawing by Spring Networks (Tutte ’63)
Drawing by Spring Networks (Tutte ’63)
Drawing by Spring Networks (Tutte ’63)
Drawing by Spring Networks (Tutte ’63)
Drawing by Spring Networks (Tutte ’63)
SS
Measuring boundaries of sets
Boundary: edges leaving a set
Characteristic Vector of S: 0
0
( 0 0
1 i in S 1
0 0
x(i) = 1 0
0 i not in S 1 0
1 1 1
SS 1 1 0 0
Measuring boundaries of sets
Boundary: edges leaving a set
Characteristic Vector of S: 0
0
( 0 0
1 i in S 1
0 0
x(i) = 1 0
0 i not in S 1 0
1 1 1
SS
X 1 1 0 0
2
(x(i) x(j))
(i,j)2E
= |boundary(S)|
Spectral Clustering and Partitioning
Find large sets of small boundary
-0.4
Heuristic to find 0.7
0.2 -1.1
x with xT LG x small 1.3
0.5
-0.20
0.9 0.4
1.6
1.3 1.0 0.8
Compute eigenvector S
S 1.1 0.8 0.5 -0.3
LG v 2 = 2 v2
X
LG = wi,j (bi,j bTi,j ) where bi,j = ei ej
(i,j)2E
Laplacian Matrices of Weighted Graphs
X
T
LG = wi,j (bi,j bi,j ) where bi,j = ei ej
(i,j)2E
T
LG = B W B
B is the signed edge-vertex adjacency matrix
with one row for each bi,j
0 0 0 0 1 1
Quickly Solving Laplacian Equations
S,Teng ’04: Using low-stretch trees and sparsifiers
c 1
O(m log n log ✏ )
An ✏ -accurate solution to LG x = b
is an x satisfying
kx x⇤ kLG ✏ kx⇤ kLG
p 1/2
T
where kvkLG = v LG v = ||LG v||
Quickly Solving Laplacian Equations
S,Teng ’04: Using low-stretch trees and sparsifiers
c 1
O(m log n log ✏ )
An ✏ -accurate solution to LG x = b
is an x satisfying
kx x⇤ kLG ✏ kx⇤ kLG
3.7
3.6
4.0
3.2
3.9
3.2
2.5
4.0
SAT
3.2
3.9
3.2
2.5
High-school GPA
Isotonic Regression (Ayer et. al. ‘55)
College GPA
3.7
3.6
4.0
Estimate by
SAT nearest neighbor?
3.2
3.9
3.2
2.5
High-school GPA
Isotonic Regression (Ayer et. al. ‘55)
College GPA
3.7
3.6
4.0
Estimate by
SAT nearest neighbor?
3.2
3.9
3.2
2.5
High-school GPA
4.0
SAT
3.2
3.9
3.2
2.5
High-school GPA
3.866
SAT
3.2
3.866
3.2
2.5
High-school GPA
3/2 3
in time O(m log m)
Linear Program for Isotonic Regression
Signed edge-vertex incidence matrix
0 1
1 0 0 1 0 0 0
B1 0 0 0 1 0 0C
B C
B0 1 1 0 0 0 0C
B C
B0 0 1 0 1 0 0C
B C
B0 0 1 0 0 1 0C
B C
B0 0 0 1 0 0 1C
B C
@0 0 0 0 1 0 1A
0 0 0 0 0 1 1
x is isotonic if Bx 0
Linear Program for Isotonic Regression
Given y, minimize kx yk1
subject to Bx 0
0 1
1 0 0 1 0 0 0
B1 0 0 0 1 0 0C
B C
B0 1 1 0 0 0 0C
B C
B0 0 1 0 1 0 0C
B C
B0 0 1 0 0 1 0C
B C
B0 0 0 1 0 0 1C
B C
@0 0 0 0 1 0 1A
0 0 0 0 0 1 1
Linear Program for Isotonic Regression
P
Given y, minimize i ri
subject to Bx 0
|xi yi | = ri
0 1
1 0 0 1 0 0 0
B1 0 0 0 1 0 0C
B C
B0 1 1 0 0 0 0C
B C
B0 0 1 0 1 0 0C
B C
B0 0 1 0 0 1 0C
B C
B0 0 0 1 0 0 1C
B C
@0 0 0 0 1 0 1A
0 0 0 0 0 1 1
Linear Program for Isotonic Regression
P
Given y, minimize i ri
subject to Bx 0
|xi yi | ri
0 1
1 0 0 1 0 0 0
B1 0 0 0 1 0 0C
B C
B0 1 1 0 0 0 0C
B C
B0 0 1 0 1 0 0C
B C
B0 0 1 0 0 1 0C
B C
B0 0 0 1 0 0 1C
B C
@0 0 0 0 1 0 1A
0 0 0 0 0 1 1
Linear Program for Isotonic Regression
P
Given y, minimize i ri
subject to Bx 0
x i y i ri
(xi yi ) ri
0 1
1 0 0 1 0 0 0
B1 0 0 0 1 0 0C
B C
B0 1 1 0 0 0 0C
B C
B0 0 1 0 1 0 0C
B C
B0 0 1 0 0 1 0C
B C
B0 0 0 1 0 0 1C
B C
@0 0 0 0 1 0 1A
0 0 0 0 0 1 1
Linear Program for Isotonic Regression
P
Minimize i ri
0 1 0 1
subject to 0 B ✓ ◆ 0
@ I A r
I @ y A
x
I I y
Linear Program for Isotonic Regression
P
Minimize i ri
0 1 0 1
subject to 0 B ✓ ◆ 0
@ I A r
I @ y A
x
I I y
Laplacian!
Laplacian!
A graph H is an ✏ -approximation of G if
1 xT LH x
for all x T 1+
1+ x LG x
LH ⇡ ✏ LG
Approximating Graphs
A graph H is an ✏ -approximation of G if
1 xT LH x
for all x T 1+
1+ x LG x
A graph H is an ✏ -approximation of G if
1 xT LH x
for all x T 1+
1+ x LG x
LH ⇡✏ LG () LH1 ⇡✏ LG1
Spectral Sparsification (Batson, S, Srivastava ’09)
Gaussian Elimination:
compute upper triangular U so that
LG = U T U
LG ⇡ U T U
Gaussian Elimination
0 1
16 4 8 4
B 4 5 0 1C
B C
@ 8 0 14 0A
4 1 0 7
2. Subtract it
Gaussian Elimination
1. Find the rank-1 matrix that agrees
on the first row and column
0 1 0 1
16 4 8 4 4
B 4 1 2 1C B 1C
B C=B C 4 1 2 1
@ 8 2 4 2A @ 2A
4 1 2 1 1
2. Subtract it
0 1 0 1 0 1
16 4 8 4 16 4 8 4 0 0 0 0
B 4 5 0 1C B 4 1 2 1C B 2C
B C B C = B0 4 2 C
@ 8 0 14 0A @ 8 2 4 2 A @0 2 10 2A
4 1 0 7 4 1 2 1 0 2 2 6
3. Repeat
Gaussian Elimination
2. Subtract it
0 1 0 1 0 1
16 4 8 4 16 4 8 4 0 0 0 0
B 4 5 0 1C B 4 1 2 1C B 2C
B C B C = B0 4 2 C
@ 8 0 14 0A @ 8 2 4 2 A @0 2 10 2A
4 1 0 7 4 1 2 1 0 2 2 6
2. Subtract it
0 1 0 1 0 1
0 0 0 0 0 0 0 0 0 0 0 0
B0 4 2 2C B0 4 2 2C B0 0 0 0C
B C B C=B C
@0 2 10 2A @0 2 1 1 A @0 0 9 3A
0 2 2 6 0 2 1 1 0 0 3 5
Gaussian Elimination
0 1
16 4 8 4
B 4 5 0 1C
B C
@ 8 0 14 0A
4 1 0 7
0 10 1T 0 10 1T 0 10
0 1 0 1T 1T
4 4 0 0 0 0 0 0
B 1C B 1C B 2 CB 2 C B 0 CB 0 C B0C B0C
= @ A@ A + @ A@ A + @ A@ A + B
B C B C B C B C B C B C
@
CB C
2 2 1 1 3 3 0A @0A
1 1 1 1 1 1 2 2
Gaussian Elimination
0 1
16 4 8 4
B 4 5 0 1C
B C
@ 8 0 14 0A
4 1 0 7
0 10 1T 0 10 1T 0
0 1 0 1T 10 1T
4 4 0 0 0 0 0 0
B 1C B 1C B 2 CB 2 C B 0 CB 0 C B0C B0C
= @ A@ A + @ A@ A + @ A@ A + B
B C B C B C B C B C B C
@
CB C
2 2 1 1 3 3 0A @0A
1 1 1 1 1 1 2 2
0 10 1
4 0 0 0 4 1 2 1
B 1 2 0 0C B0 2 1 1C
=B
@ 2
CB C
1 3 0A @0 0 3 1A
1 1 1 2 0 0 0 2
Gaussian Elimination
0 1
16 4 8 4
B 4 5 0 1C
B C
@ 8 0 14 0A
4 1 0 7
0 10 1T 0 10 1T
0 1 0 1T 0 10 1T
4 4 0 0 0 0 0 0
B 1C B 1C B 2 CB 2 C B 0 CB 0 C B0C B0C
= @ A@ A + @ A@ A + @ A@ A + B
B C B C B C B C B C B C
@
CB C
2 2 1 1 3 3 0A @0A
1 1 1 1 1 1 2 2
0 1T 0 1
4 1 2 1 4 1 2 1
B0 2 1 1C B0 2 1 1C
=B
@0
C B C
0 3 1A @0 0 3 1A
0 0 0 2 0 0 0 2
Gaussian Elimination
0 1
16 4 8 4
B 4 5 0 1C
B C
@ 8 0 14 0A
4 1 0 7
0 10 1T 0 10 1T 0 10
0 1 0 1T 1T
4 4 0 0 0 0 0 0
B 1C B 1C B 2 CB 2 C B 0 CB 0 C B0C B0C
= @ A@ A + @ A@ A + @ A@ A + B
B C B C B C B C B C B C
@
CB C
2 2 1 1 3 3 0A @0A
1 1 1 1 1 1 2 2
4 2 5 2 5
1 2
1
4 4 2 4
2
8 3 6 3 6
Approximate Gaussian Elimination
(Kyng & Sachdeva ‘16)
4 2 5 2 5
1 2
1
4 4 2 4
2
8 3 6 3 6
1
Approximate Gaussian Elimination
(Kyng & Sachdeva ‘16)
✓ ◆
connection Laplacians I Q
QT I
Laplacians.jl
To learn more
Lx = b, by Nisheeth Vishnoi