TExcelTAD
Home › Spectral Graph Theory & Modern Graph Algorithms › Higher-Order Cheeger and When Spectral Partitioning Fails

Higher-Order Cheeger and When Spectral Partitioning Fails

Cheeger's inequality explains the Fiedler vector: ν2\nu_2 is small exactly when there is one sparse cut. k-way spectral clustering uses kk eigenvectors, and for a decade it worked in practice without a matching theorem. In 2012 Lee, Oveis Gharan and Trevisan proved one: νk\nu_k is small exactly when the graph has kk disjoint sparse sets. This lesson states that theorem and its relatives, proves the easy side, and then turns to the other half of the story: graphs on which spectral partitioning provably returns bad answers.

kk-way expansion

Throughout this lesson, as in the paper of Lee, Oveis Gharan and Trevisan, the conductance of a single set is ϕ(S)=w(∂S)vol⁡(S)\phi(S) = \frac{w(\partial S)}{\operatorname{vol}(S)} (no minimum: the sets of interest are the small side). The kk-way expansion is

ρG(k)=min⁡S1,…,Sk disjoint, nonempty max⁡1≤i≤kϕ(Si).\rho_G(k) = \min_{S_1, \ldots, S_k \text{ disjoint, nonempty}} \ \max_{1 \le i \le k} \phi(S_i) .

ρG(2)=ϕ(G)\rho_G(2) = \phi(G) (take a set and its complement; conversely, of two disjoint sets the one with smaller volume has at most half the total), and ρG(k)=0\rho_G(k) = 0 exactly when GG has at least kk connected components, just as νk=0\nu_k = 0 exactly then.

Theorem (higher-order Cheeger inequality; Lee, Oveis Gharan and Trevisan, 2012; journal version 2014). For every graph and every k≥2k \ge 2, with νk\nu_k the kk-th smallest eigenvalue of the normalized Laplacian,

νk2≤ρG(k)≤O(k2)νk.\frac{\nu_k}{2} \le \rho_G(k) \le O(k^2)\sqrt{\nu_k} .

Moreover ρG(k)≤O(ν2klog⁡k)\rho_G(k) \le O(\sqrt{\nu_{2k}\log k}), and for graphs excluding a fixed minor (planar graphs, for instance) the factor improves to O(ν2k)O(\sqrt{\nu_{2k}}). The proof of the hard side is constructive: embed the vertices with the bottom kk eigenvectors (as in spectral clustering), partition the embedding by random geometric partitioning into kk pieces whose "mass" is spread out, then run a Cheeger-style sweep inside each piece. Independently, Louis, Raghavendra, Tetali and Vempala (2012) proved closely related bounds that lose only a factor O(log⁡k)O(\sqrt{\log k}) when one asks for somewhat fewer than kk sparse sets.

Proof of the easy side. Let S1,…,SkS_1, \ldots, S_k be disjoint with ϕ(Si)≤ρ\phi(S_i) \le \rho for all ii. The kk vectors D1/21SiD^{1/2}\mathbf{1}_{S_i} have disjoint supports, so they span a kk-dimensional space. For x=∑iai1Six = \sum_i a_i\mathbf{1}_{S_i}, an edge inside some SiS_i contributes nothing to xTLxx^{\mathsf{T}} L x; an edge between SiS_i and SjS_j contributes (ai−aj)2≤2ai2+2aj2(a_i - a_j)^2 \le 2a_i^2 + 2a_j^2, and an edge from SiS_i to the rest contributes ai2a_i^2. So xTLx≤2∑iai2 w(∂Si)x^{\mathsf{T}} L x \le 2\sum_i a_i^2\, w(\partial S_i), while xTDx=∑iai2vol⁡(Si)x^{\mathsf{T}} D x = \sum_i a_i^2\operatorname{vol}(S_i). The ratio is at most 2max⁡iϕ(Si)≤2ρ2\max_i \phi(S_i) \le 2\rho, and Courant-Fischer over this kk-dimensional space gives νk≤2ρ\nu_k \le 2\rho. □\square

Improved Cheeger (Kwok, Lau, Lee, Oveis Gharan and Trevisan, 2013). For every k≥2k \ge 2, ϕ(G)≤O(k)ν2νk\phi(G) \le O(k)\frac{\nu_2}{\sqrt{\nu_k}}, and the plain sweep cut of the Fiedler vector achieves it. When some higher eigenvalue νk\nu_k is large (the graph has no kk sparse pieces), the square-root loss of Cheeger's inequality disappears: the sweep is within a factor O(k/νk)O(k/\sqrt{\nu_k}) of ν2/2≤ϕ(G)\nu_2/2 \le \phi(G). This explains why the sweep often does far better than 2ν2\sqrt{2\nu_2} in practice.

The program plants three communities and computes νk\nu_k and the conductances of the planted sets, checking νk/2≤max⁡iϕ(Si)\nu_k/2 \le \max_i \phi(S_i) for k=2,3k = 2, 3 (with the first two or all three communities) and showing the jump at ν4\nu_4.

python · try it yourself
import random
import numpy as np

r = random.Random(12)
sizes = [20, 20, 20]
truth = np.repeat(np.arange(3), sizes)
n = len(truth)
W = np.zeros((n, n))
for u in range(n):
    for v in range(u + 1, n):
        if r.random() < (0.4 if truth[u] == truth[v] else 0.02):
            W[u, v] = W[v, u] = 1
d = W.sum(axis=1)
s = 1 / np.sqrt(d)
nu = np.linalg.eigvalsh(np.eye(n) - s[:, None] * W * s[None, :])
print("nu_1 .. nu_5:", np.round(nu[:5], 4) + 0.0)

def phi(mask):
    return float(W[mask][:, ~mask].sum() / d[mask].sum())

parts = [truth == j for j in range(3)]
for k in (2, 3):
    worst = max(phi(p) for p in parts[:k])
    print(f"k = {k}: nu_k / 2 = {nu[k - 1] / 2:.4f} <= max phi(S_i) = {worst:.4f}")
print(f"k = 4: nu_4 / 2 = {nu[3] / 2:.4f}, so any 4 disjoint sets include one with phi >= {nu[3] / 2:.4f}")
nu_1 .. nu_5: [0.     0.0808 0.1082 0.5279 0.5589]
k = 2: nu_k / 2 = 0.0404 <= max phi(S_i) = 0.0843
k = 3: nu_k / 2 = 0.0541 <= max phi(S_i) = 0.0843
k = 4: nu_4 / 2 = 0.2640, so any 4 disjoint sets include one with phi >= 0.2640

Three small eigenvalues, then a jump: by the easy side, every family of 4 disjoint sets has a member with conductance at least ν4/2\nu_4/2, so there is no fourth community to find.

Failure 1: spectral bisection on the "cockroach"

Spectral bisection splits the vertices at the median of the Fiedler vector, forcing two equal halves. Guattery and Miller (1998) built graphs on which it is far from optimal. The "cockroach" with parameter kk has two paths of 2k2k vertices, top u1,…,u2ku_1, \ldots, u_{2k} and bottom v1,…,v2kv_1, \ldots, v_{2k}, and rungs uiviu_iv_i only for i>ki > k: two long antennae attached to a ladder. Cutting the two path edges between positions kk and k+1k + 1 separates the antennae from the ladder with 2 edges, a perfect bisection. The Fiedler vector instead is antisymmetric between top and bottom, and its median split cuts all kk rungs.

python · try it yourself
import numpy as np

def cockroach(k):
    n = 4 * k                                      # top path 0..2k-1, bottom path 2k..4k-1
    edges = [(i, i + 1) for i in range(2 * k - 1)] + [(2 * k + i, 2 * k + i + 1) for i in range(2 * k - 1)]
    edges += [(i, 2 * k + i) for i in range(k, 2 * k)]   # rungs on the second half only
    return n, edges

print("  k    n   lambda_2   spectral bisection cut   best bisection cut")
for k in [5, 10, 20]:
    n, edges = cockroach(k)
    L = np.zeros((n, n))
    for u, v in edges:
        L[u, u] += 1; L[v, v] += 1; L[u, v] -= 1; L[v, u] -= 1
    vals, vecs = np.linalg.eigh(L)
    half = set(np.argsort(vecs[:, 1], kind="stable")[: n // 2].tolist())   # median split
    cut = sum((u in half) != (v in half) for u, v in edges)
    antennae = set(range(k)) | set(range(2 * k, 3 * k))
    best = sum((u in antennae) != (v in antennae) for u, v in edges)
    print(f"{k:3}  {n:3}   {float(vals[1]):.5f}   {cut:22}   {best:18}")
  k    n   lambda_2   spectral bisection cut   best bisection cut
  5   20   0.07128                        5                    2
 10   40   0.02086                       10                    2
 20   80   0.00566                       20                    2

The spectral cut grows linearly with nn while the optimum stays at 2. Note what this does and does not contradict: Cheeger's inequality is about conductance with free set sizes, and the median constraint is extra. Guattery and Miller showed families on which every bisection rule based on the Fiedler vector fails, but on bounded-degree planar graphs spectral bisection is provably good: Spielman and Teng (1996) proved λ2=O(1/n)\lambda_2 = O(1/n) there, so a sweep finds cuts of ratio w(∂S)/∣S∣=O(1/n)w(\partial S)/\lvert S \rvert = O(1/\sqrt n), and applying it recursively yields bisections of size O(n)O(\sqrt n), matching the Lipton-Tarjan planar separator theorem.

Failure 2: whiskers and localized eigenvectors

Real networks often have small sets hanging off a large well-connected core by a single edge ("whiskers"). Such a set has tiny conductance, and the bottom eigenvectors localize on it. Spectral methods then dutifully return the whisker: correct for the objective, useless as a community. Leskovec, Lang, Dasgupta and Mahoney (2009) found that in large social and information networks the lowest-conductance sets are almost always such small whiskers, while larger sets have markedly worse conductance.

The program attaches a path of 6 vertices to a graph with two planted communities of 30.

python · try it yourself
import random
import numpy as np

r = random.Random(9)
n0 = 60
edges = [(u, v) for u in range(n0) for v in range(u + 1, n0)
         if r.random() < (0.3 if (u < 30) == (v < 30) else 0.03)]
edges += [(n0 - 1 + i, n0 + i) for i in range(6)]          # a whisker: path 59-60-...-65
n = n0 + 6
A = np.zeros((n, n))
for u, v in edges:
    A[u, v] = A[v, u] = 1
d = A.sum(axis=1)
s = 1 / np.sqrt(d)
vals, vecs = np.linalg.eigh(np.eye(n) - s[:, None] * A * s[None, :])
print("nu_2, nu_3, nu_4:", np.round(vals[1:4], 4) + 0.0)
for j in (1, 2):
    x = vecs[:, j] * s
    weight_on_whisker = float((d[n0:] * x[n0:] ** 2).sum() / (d * x ** 2).sum())
    print(f"eigenvector {j + 1}: share of its D-weighted mass on the 6 whisker vertices = {weight_on_whisker:.3f}")
cut_c = sum((u < 30) != (v < 30) for u, v in edges if u < n0 and v < n0)
vol_c = min(d[:30].sum(), d[30:].sum())
print(f"phi(whisker) = {1 / d[n0:].sum():.4f},  phi(planted community) = {cut_c / vol_c:.4f}")
nu_2, nu_3, nu_4: [0.0324 0.1849 0.2755]
eigenvector 2: share of its D-weighted mass on the 6 whisker vertices = 0.979
eigenvector 3: share of its D-weighted mass on the 6 whisker vertices = 0.038
phi(whisker) = 0.0909,  phi(planted community) = 0.1241

The whisker has the lower conductance, so the Fiedler vector concentrates on it; the community structure only appears in the next eigenvector. Practical spectral clustering therefore removes low-degree "dangling" pieces first, regularizes the graph (adding a small constant τ/n\tau/n to every entry of AA; Amini, Chen, Bickel and Levina, 2013), or uses several eigenvectors and inspects them.

Failure 3: no clusters at all

The algorithm always outputs a partition, even when there is nothing to find. A path or a grid has a small ν2\nu_2 and a Fiedler vector that cleanly splits it in the middle, but no "community" exists; a random regular graph has a large ν2\nu_2, and the sweep returns a set of conductance near ν2/2\nu_2/2, which is the honest answer "no sparse cut". The eigenvalues themselves are the diagnostic: look at ν2,…,νk+1\nu_2, \ldots, \nu_{k+1} and the gap after νk\nu_k before believing kk clusters.

Test yourself

What does the higher-order Cheeger inequality relate?

  1. ν2\nu_2 and the diameter
  2. νk\nu_k and ρG(k)\rho_G(k), the best possible maximum conductance of kk disjoint sets: νk2≤ρG(k)≤O(k2)νk\frac{\nu_k}{2} \le \rho_G(k) \le O(k^2)\sqrt{\nu_k}
  3. νn\nu_n and bipartiteness
  4. λk\lambda_k of the adjacency matrix and the chromatic number

How is the easy side νk≤2ρG(k)\nu_k \le 2\rho_G(k) proved?

  1. By a sweep cut
  2. By Courant-Fischer on the kk-dimensional span of the indicator vectors of kk disjoint sparse sets
  3. By the expander mixing lemma
  4. By Markov's inequality

On the Guattery-Miller cockroach graph, what goes wrong with spectral bisection?

  1. The Fiedler vector is not defined
  2. The median split of the Fiedler vector cuts about n/4n/4 rungs although a bisection with 2 edges exists
  3. It finds the optimum but slowly
  4. It produces unbalanced parts

Why can the Fiedler vector of a real network be uninformative about communities?

  1. Real networks are bipartite
  2. Small whiskers attached by one edge have lower conductance than any community, so the low eigenvectors localize on them
  3. Eigenvectors cannot be computed for large graphs
  4. Real networks have no edges between communities