75
Spectral Graph Theory and its Applications Daniel A. Spielman Dept. of Computer Science Program in Applied Mathematics Yale Unviersity

Spectral Graph Theory and its Applications Daniel A. Spielman Dept. of Computer Science

  • Upload
    jola

  • View
    45

  • Download
    4

Embed Size (px)

DESCRIPTION

Spectral Graph Theory and its Applications Daniel A. Spielman Dept. of Computer Science Program in Applied Mathematics Yale Unviersity. Outline. Adjacency matrix and Laplacian Intuition, spectral graph drawing Physical intuition Isomorphism testing Random walks - PowerPoint PPT Presentation

Citation preview

Page 1: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Graph Theoryand its

Applications

Daniel A. SpielmanDept. of Computer Science

Program in Applied MathematicsYale Unviersity

Page 2: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

OutlineAdjacency matrix and Laplacian

Intuition, spectral graph drawing

Physical intuition

Isomorphism testing

Random walks

Graph Partitioning and clustering

Distributions of eigenvalues and compression

Computation

Page 3: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

What I’m SkippingMatrix-tree theorem.

Most of algebraic graph theory.

Special graphs (e.g. Cayley graphs).

Connections to codes and designs.

Lots of work by theorists.

Expanders.

Page 4: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

The Adjacency Matrix1 2 3 4

is eigenvalue and v is eigenvector if

Think of , or even better

Symmetric -> n real eigenvalues and real eigenvectors form orthonormal basis

Page 5: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Example

1 2 3 4

-1 -0.618 0.618 1

Page 6: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Example

1 2 3 4

-1 -0.618 0.618 1

1-0.6180.382

Page 7: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Example: invariant under re-labeling

1 2 3 4

-1 -0.618 0.618 1

Page 8: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Example: invariant under re-labeling

2 1 3 4

-1 -0.618 0.618 1

Page 9: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Operators and Quadratic FormsView of A as an operator:

View of A as quadratic form:

if and then

Page 10: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Laplacian: natural quadratic form on graphs

where D is diagonal matrix of degrees

1 2 3 4

Page 11: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Laplacian: fast facts

so, zero is an eigenvalue

If k connected components,

Fiedler (‘73) called “algebraic connectivity of a graph”The further from 0, the more connected.

Page 12: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Embedding graph in line (Hall ’70)map

minimize

trivial solution: So, require

Solution

Atkins, Boman, Hendrickson ’97: Gives correct embedding for graphs like

Page 13: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Courant-Fischer definition of eigvals/vecs

(here )

Page 14: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Embedding graph in plane (Hall ’70)

minimize

map

trivial solution:

Also require

Solution up to rotation

So, require

degenerate solution:

Page 15: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

A Graph

Page 16: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Drawing of the graph using v2, v3

Plot vertex i at

Page 17: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science
Page 18: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral drawing of Streets in Rome

Page 19: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral drawing of Erdos graph: edge between co-authors of papers

Page 20: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Dodecahedron

Best embedded by first three eigenvectors

Page 21: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Condition for eigenvector

Spectral graph drawing: Tutte justification

Gives for all i

small says x(i) near average of neighbors

Tutte ‘63: If fix outside face, and let every other vertex be average of neighbors, get planar embedding of planar graph.

Page 22: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Tutte ‘63 embedding of a graph.

Fix outside face.Edges -> springs.

Vertex at centerof mass of nbrs.

3-connected -> get planar embedding

Page 23: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Fundamental modes: string with fixed ends

Page 24: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Fundamental modes: string with free ends

Page 25: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Eigenvectors of path graph1:

2:

3:

4:

17:

Page 26: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Drawing of the graph using v3, v4

Plot vertex i at

-0.06 -0.04 -0.02 0 0.02 0.04 0.06-0.06

-0.04

-0.02

0

0.02

0.04

0.06

Page 27: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral graph coloring from high eigenvectors

Embedding of dodecahedron by 19th and 20th eigvecs.

Coloring 3-colorable random graphs [Alon-Kahale ’97]

Page 28: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral graph drawing: FEM justificationIf apply finite element method to solve

Laplace’s equation in the plane

with a Delaunay triangulation

Would get graph Laplacian,

but with some weights on edges

Fundamental solutions are x and y coordinates

(see Strang’s Introduction to Applied Mathematics)

Page 29: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Isomorphism testing1. different eigenvalues -> non-isomorphic

2. If each vertex distinct in spectral embedding, just need to line up embeddings.

Each eigvec determined up to sign.

Page 30: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Isomorphism testing

2 = 3, eigvecs determined up to rotation

Page 31: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Isomorphism testing

2 = 3, eigvecs determined up to rotation

Distinguish bynorm in embedding

Page 32: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Isomorphism testing: difficulties

2. If i has a high dimensional space, eigvecs only determined up to basis rotations

1. Many vertices can map to same place in spectral embedding, if only use few eigenvectors.

3. Some pairs have an exponential number of isomorphisms.

Ex.: Strongly regular graphs with only 3 eigenvalues,of multiplicities 1, (n-1)/2 and (n-1)/2

Page 33: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Isomorphism testing: success [Babai-Grigoryev-Mount ‘82]

If each eigenvalue has multiplicity O(1), can test in polynomial time.

Ideas: Partition vertices into classes by norms in embeddings. Refine partitions using other partitions. Use vertex classes to split eigenspaces.

Use computational group theory to fuse information, and produce description of all isomorphisms.

Page 34: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Random Walks

Page 35: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Random walks and PageRankAdjacency matrix of directed graph:

Walk transition matrix:

Walk distribution at time t:

PageRank vector p:

Eigenvector of Eigenvalue 1

Page 36: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Random walks and PageRankPageRank vector p:

Linear algebra issues:W is not symmetric, not similar to symmetric,does not necessarily have n eigenvalues

If no nodes of out-degree 0,Perron-Frobenius Theorem:

Guarantees a unique, positive eigevec p ofeigenvalue 1.

Is there a theoretically interesting spectral theory?

Page 37: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Kleinberg and the singular vectors

Consider eigenvectors of largest eigenvalue of

and

Are left and right singular values of A.

Always exist.

Usually, a more useful theory than eigenvectors, when not symmetric.

(see Strang’s Intro. to Linear Algebra)

Page 38: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Random walks on Undirected Graphs

Trivial PageRank Vector:

Not symmetric, but similiar to symmetrized walk matrix

W and S have same eigvals,

Page 39: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Random walk converges at rate 1/1-n-1

For lazy random walk (stay put with prob ½):

Where is the stable distribution

For symmetric S

Page 40: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Normalized Laplacian [Chung]If consider 1-n-1 should look at

Relationship to cuts:

Page 41: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Cheeger’s Inequality (Jerrum-Sinclair ‘89) (Alon-Milman ‘85, Diaconis-Stroock ‘91)

Page 42: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Cheeger’s Inequality (Jerrum-Sinclair ‘89) (Alon-Milman ‘85, Diaconis-Stroock ‘91)

Can find the cut by looking at

for some t

Page 43: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Can find the cut by looking at

for some t

Only need approximate eigenvector(Mihail ’89)

Guarantee

Lanczos era.

Page 44: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Normalized CutAlternative definition of conductance [Lovasz ’96 (?)]

This way, is a relaxation [see Hagen-Kahng ’92].

Equivalent to Normalized Cut [Shi-Malik ’00]

Page 45: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Image Segmentation (Shi-Malik ‘00)

200 400 600 800 1000 1200

100

200

300

400

500

600

700

800

900

Page 46: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Image Segmentation (Shi-Malik ‘00)

2 4 6 8 10 12 14 16

2

4

6

8

10

12

Page 47: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Image Segmentation (Shi-Malik ‘00)

2 4 6 8 10 12 14 16

2

4

6

8

10

12

Page 48: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Image Segmentation (Shi-Malik ‘00)

2 4 6 8 10 12 14 16

2

4

6

8

10

12

Page 49: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Spectral Image Segmentation (Shi-Malik ‘00)

2 4 6 8 10 12 14 16

2

4

6

8

10

12

edge weight

Page 50: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

The second eigenvector

50 100 150 200 250 300

50

100

150

200

Page 51: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Second Eigenvector’s sparsest cut

50 100 150 200 250 300

50

100

150

200

Page 52: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Third Eigenvector

50 100 150 200 250 300

50

100

150

200

50 100 150 200 250 300

50

100

150

200

Page 53: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Fourth Eigenvector

50 100 150 200 250 300

50

100

150

200

50 100 150 200 250 300

50

100

150

200

Page 54: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Perspective on Spectral Image Segmentation

Ignoring a lot we know about images.

On non-image data, gives good intuition.

Can we fuse with what we know about images?

Generally, can we fuse with other knowledge?

What about better cut algorithms?

Page 55: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Improvement by Miller and Tolliver ’06

50 100 150 200 250 300

50

100

150

200

50 100 150 200 250 300

50

100

150

200

Page 56: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Improvement by Miller and Tolliver ’06

Idea: re-weight (i,j) by

Actually, re-weight by

Prove: as iterate get 2 components

Page 57: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

One approach to fusing: Dirichlet Eigenvalues

Fixing boundary values to zero [Chung-Langlands ’96]

Fixing boundary values to non-zero. [Grady ’06] Dominant mode by solving linear equation: computing electrical flow in resistor network

Page 58: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Analysis of Spectral PartitioningFinite Element Meshes (eigvals right) [S-Teng ’07]

Planted partitions (eigvecs right) [McSherry ‘01]

p q

q p

}}}}

A

BA

B

Prob A-A edge = p B-B edge = p A-B edge = q

q < p

Page 59: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Other planted problemsFinding cn1/2 clique in random graph [Alon-Krivelevich-Sudakov ’98]

Color random sparse k-colorable graph [Alon-Kahale ’97]

Asymmetric block structure (LSI and HITS) [Azar-Fiat-Karlin-McSherry-Saia ’01]

Partitioning with widely varying degrees [Dasgupta-Hopcroft-McSherry ’04]

Page 60: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Planted problem analysis

Small perturbations don’t change eigenvalues too much.

Eigenvectors stable too, if well-separated from others.

Understand eigenvalues of random matrices[Furedi-Komlos ’81, Alon-Krivelevich-Vu ’01, Vu ‘05]

p q

q p

Sampled A as perturbation of

Page 61: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Distribution of eigenvalues of Random Graphs

-10 -5 0 5 10 15 20 250

2000

4000

6000

8000

10000

12000Histogram ofeigvals ofrandom40-by-40adjacencymatrices

Page 62: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

-10 -5 0 5 10 15 20 250

2000

4000

6000

8000

10000

12000

Distribution of eigenvalues of Random Graphs

Predicted curve: Wigner’s Semi-Circle Law

Histogram ofeigvals ofrandom40-by-40adjacencymatrices

Page 63: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

0 500 1000 1500 2000 2500-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

Eigenvalue distributionsEigenvalues of walk matrix of 50-by-50 grid graph

Number greater than 1- proportional to

Page 64: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

0 500 1000 1500 2000 2500-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

Eigenvalue distributions

Number greater than 1- proportional to

All these go to zerowhen take powers

Eigenvalues of walk matrix of 50-by-50 grid graph

Page 65: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Compression of powers of graphs [Coifman, Lafon, Lee, Maggioni, Nadler, Warner, Zucker ’05]

If most eigenvalues of A and W bounded from 1.Most eigenvalues of At very small.Can approximate At by low-rank matrix.

Build wavelets bases on graphs.Solve linear equations and compute eigenvectors.

Make rigorous by taking graph fromdiscretization of manifold

Page 66: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Discretizing Manifold

edge weight

Page 67: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Eigenvalue distributionsEigenvalues of path graph on 10k nodes

0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

Number greater than 1- proportional to

Page 68: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Proof: can choose vertices to collapse so that conductance becomes at least (like adding an expander on those nodes).

New graph has all eigvals at most 1- in abs value.Is rank change, so by Courant-Fischer

Theorem: If bounded degree, number eigenvalues greater than 1- is

Theorem: Eigenvalue distributions

Page 69: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Eigenvalue distributions of planar graphs?

For planar graphs, Colan de Verdiere’s results imply

How big must the gap be?Must other gaps exist?

Page 70: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Computation

Not rational, so only approximate

If exactly an eigenvalue, eigvecs = Null(A – I)

If close to just one eigenvalue i

If i close to i+1 is like i = i+1 vi and vi+1 can rotate with each other

Page 71: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

General Symmetric MatricesLocate any eigval in time

1.Orthogonal similarity transform to tri-diagonalin time by elimination algorithm.

2. Given tri-diagonal matrix, count number eigenvalues in any intervalin time

3. Do binary search to locate eigenvalue

Locate eigenvector: steps on tri-diagonal, time to map back to A

Page 72: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Largest eigenvectors by power methodApply A to random vector r:

In iters, expect x such that

Using Lanczos, expect iters (better polynomial)

Page 73: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Smallest eigenvectors by inverse power methodApply L-1 to random vector r orthogonal to

In iters, expect x such that

Compute in time [STeng04]

if planar, in time [Koutis-Miller 06]

Page 74: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

SparsificationKey to fast computation.

Replace A by sparse B for which

Generalized eigenvalues provide notion of approximation in graphs.

Page 75: Spectral Graph Theory and its  Applications Daniel A. Spielman Dept. of Computer Science

Questions

Cheeger’s inequality for other physical problems?

How to incorporate other data into spectral methods?

Make multilevel coarsening rigorous.

What can we do with boundary conditions?

What about generalized eigenvalue problems?