In this post we will construct a “spectral sparsifier” of a given hypergraph in a way that is similar to how Spielman and Srivastava construct spectral graph sparsifiers. We will assign a probability pe to each hyperedge, we will sample each hyperedge e with probability pe, and we will weigh it by 1/pe if selected. We will then bound the “spectral error” of this construction in terms of the supremum of a Gaussian process using Talagrand’s comparison inequality and finally bound the supremum of the Gaussian process (which will involve matrices) using matrix Chernoff bounds. This is joint work with Nikhil Bansal and Ola Svensson.
1. Hypergraph Sparsifiers
An (undirected) hypergraph H=(V,E) is a collection E of subsets e⊆V, called hyperedges. A graph is the special case in which each set e has cardinality 2. For simplicity we will talk only about r-uniform hypergraphs, that is hypergraphs in which all hyperedges have the same cardinality r (the arguments below would work also in the non-uniform case in which all hyperedges have cardinality at mostr). Hyperedges may have weights.
If S is a subset of vertices, a hyperedge e is cut by S if e has non-empty intersection with both S and V−S. We call cutH(S) the number of hyperedges of H cut by S, or the total weight of such hyperedges if H is a weighted hypergraph.
We can then generalize the notion of Benczur-Karger sparsification, and say that H′ is a cut sparsifier of H with error ϵ if H and H′ have the same vertex set V and
∀S⊆V:1−ϵ≤cutH(S)cutH′(S)≤1+ϵ
Kogan and Krauthgamer show that every r-uniform hypergraph H admits a cut sparsifier of error ϵ with only O(ϵ−2n(r+logn)) weighted hyperedges. They are able to extend the argument of Benczur and Karger to hypergraphs, including arguing that there are few sparse cuts. They assign a probability pe to each hyperedge, sample it with that probability, weighing it 1/pe if selected, and then use a union bound and Chernoff bounds to argue that all cuts are preserved.
Anand Louis has introduced a notion of hypergraph Laplacian in the following way. The Laplacian quadratic form of a hypergraph H is a function QH:RV→R defined as
QH(x)=e∈E∑w(e)a,b∈emax(xa−xb)2
where w(e) is the weight of the hyperedge E, or 1 if the hypergraph is unweighted.
This definition has the motivation that it recovers the Laplacian quadratic form QG(x)=xTLGx in the case of graphs, and that if x is the indicator of a set S then QH(x)=cutH(S). Furthermore, one can define “eigenvalues” and “eigenvectors” of this hypergraph Laplacian and recover a Cheeger inequality and even higher-order Cheeger inequalities.
So it seems interesting to consider the following notion of sparsification: a hypergraph H′ is a spectral sparsifier of H with error ϵ if H and H′ have the same vertex set and
∀x∈RV1−ϵ≤QH(x)QH′(x)≤1+ϵ
where, as before, the convention is that 0/0=1.
Soma and Yoshida studied this question and gave a construction with O(ϵ−2n3logn) hyperedges. In the rest of this post we will discuss the construction by Nikhil Bansal, Ola Svensson and me, which uses O(ϵ−2r3nlogn) hyperedges.
2. Choosing Probabilities
Given a hypergraph H=(V,E), we can construct a multigraph G by taking each hyperedge e of H and then constructing, in G, a clique between the vertices of e. Thus, in G, the edge (a,b) is repeated as many times (possibly, zero times) as the number of hyperedges e of H that contain both a and b. Another way to think about it is that the Laplacian of G is given by
LG=e∈E∑a,b∈e∑La,b
where the inner sum is over the (2r) unordered pairs {a,b}. This graph relates in several interesting ways with H. For example, if S is a subset of vertices and e is a hyperedge that is cut by S, then between r−1 and (2r) of the edges of G derived from e are cut by S. If e is not cut by S, then none of the edges derived from e is cut by S, so we have
∀S⊆V:(r−1)cutH(S)≤cutG(S)≤(2r)cutH(S)
and, with a bit more work, it is possible to prove similar bounds for the Laplacian quadratic forms
∀x∈RV:2rQH(x)≤xTLGx≤(2r)QH(x)
This means that if we sparsify G, say with the Spielman-Srivastava construction, we obtain information about QH, up to multiplicative error O(r). Now suppose that, as we sample edges of G to sparsify it in the Spielman-Srivastava way, we will also pick hyperedges of H (for example we pick e if at least one of its corresponding edges in G is picked), and we weigh them by the inverse of the probability of being selected. Then we may hope that if the Spielman-Srivastava sparsification of G is tuned to achieve error ϵ/r2, the hypergraph that we obtain will have error at most ϵ. Indeed, this is roughly what happens, and we will be able to prove it by showing that the error in the hypergraph sparsification is dominated by the error in the “Gaussian version” of Spielman-Srivastava described in the previous post.
So we are going to assign to each hyperedge e a probability
pe=min⎩⎨⎧1,B⋅a,b∈e∑∣∣LG−1/2La,bL−1/2∣∣⎭⎬⎫
where the factor B will be chosen later to get the construction to work and Ra,b:=∣∣LG−1/2La,bL−1/2∣∣ is the effective resistance of the edge (a,b) of G.
In fact, as before, it will be helpful to have probabilities that are non-positive powers of two, so we will choose pe to be a power of two such that
Another fact that will become useful later (it will save us a factor of the order of r in the number of hyperedges in the construction) is that
a,b∈emaxRa,b≤r2a,b∈e∑Ra,b
3. A Discrete Random Process
Our construction of a hypergraph sparsifier H′ will be to select each e independently with probability pe and, if selected, weigh it by 1/pe. Our goal is to find an upper bound in probability, or even in expectation, on
x∈Rnsup1−QH(x)QH′(x)
Recalling that xTLGx≤2r2QH(x), we will study
x:xTLGx=1sup∣QH(x)−QH′(x)∣
Because if we can show that the above quantity is at most 2ϵ/r2, then, for every x,
∣QH(x)−QH′(x)∣≤r22ϵxTLGx≤ϵQH(x)
as desired.
If we define
Qe(x)=a,b∈EmaxxTLa,bx
then we are interested in the supremum in T={x:xTLGx=1} of
F(x)=QH(x)−QH′(x)=e∑zeQe(x)
where ze is a random variable that is equal to 1/pe−1 with probability pe and is equal to −1 with probability 1−pe.
As before, we will do the construction in rounds. If the smallest probability pe is 2−ℓ, then we will have ℓ rounds. We start with H(0)=H and then, at round k, we take all hyperedges e such that pe≤2k−1−ℓ and, independently for each such hyperedge, we either delete it or we double its weight (with probability 1/2 in each case). The final hypergraph H(ℓ) is distributed like H′. We have the processes
where the random variables re(k) are Rademacher, the weights we(k−1) are either 0 or 2k−1−ℓ/pe, and Ek is the set of edges that are “active” in round k, that is, the set of hyperedges e such that pe≤2k−1−ℓ.
For each hypergraph H(k), we will also consider its associated graph G(k), obtained by replacing each hyperedge with a clique. The Laplacian of G(k) is
LG(k)=e∑we(k)a,b∈e∑La,b
We have the following lemma
Lemma 1For every outcome of the first k−1 rounds such that LG(k−1)⪯2LG, there is a probability at least 1−1/n over the randomness of the k-th round that
*
x:xTLGx=1sup∣F(k)(x)∣≤O(2k−ℓBrlogn)
and that
LG(k)−LG(k−1)⪯O(2k−ℓBlogn)⋅LG
*
This means that we can take B=O(ϵ−2r3logn) and apply the above lemma inductively to argue that we have a high probability that supx∈T∣F(x)∣≤2ϵ/r2, and so we get a hypergraph spectral sparsifier with error ϵ and O(ϵ−2r3nlogn) hyperedges.
To prove the Lemma we will define the Gaussian process
F^(k)(x)=e∈Ek∑we(k−1)a,b∈e∑ge,a,b(k)xTLa,bx
where the ge,a,b(k) are Gaussian. Notice the two differences between F(k) and F^(k): we replaced the Rademacher choices with Gaussian choices, and we replaced
Qe(x)=a,b∈emax(xa−xb)2
with
a,b∈e∑xTLa,bx=a,b∈e∑(xa−xb)2
Furthermore, we are doing a random choice for each pair within each hyperedge instead of just one random choice per hyperedge.
Fact 2The random processes F(k)(x) and −F(k)(x) are O(1)-dominated by F^(x).
To verify the above inequality, assume Qe(x)≥Qe(y), otherwise the argument will be symmetric, and call a′,b′ the maximizer for x and a′′,b′′ the maximizer for y. Then
provided that we choose B at least at absolute constant times logn.
In particular, we can choose B to be an absolute constant times ϵ−2r3logn and have
x:xTLGx=1sup∣F(x)∣≤r22ϵ
which is the same as
∀x:∣QH(x)−QH′(x)∣≤r22ϵ⋅xTLGx≤ϵQH(x)
So, with high probability, H′ is a spectral sparsifier of H with error ϵ, and it has O(Bn)=O(ϵ−2r3nlogn) hyperedges
4. Some Additional Thoughts
The dependence on r is definitely not optimal, particularly because when r is order of n we know from the work of Soma and Yoshida that we can do better. One place where we seem to lose is that, although we know
Qe(x)≤O(r1)a,b∈∑xTLa,bx
we are only able to show that
e∈Ek∑re(k)we(k)Qe(x)
is O(1)-dominated by
e∈Ek∑ge(k)we(k)a,b∈e∑xTLabx
rather than, as we could have hoped, O(1/r)-dominated. The difficulty is that the bound
(Qe(x)−Qe(y))2≤a,b∈e∑(xTLabx−yTLaby)2
is sometimes tight. In order to do better, it seems necessary to do something a bit differently from what we do here.
The effective resistance of an edge (a,b) in a graph G can be written as
x∈RnsupxTLGxxTLa,bx
with the convention that 0/0=0. So it seems reasonable that a good definition of effective resistance for an hyperedge e in a hypergraph H would be
x∈RnsupQH(x)Qe(x)
One can argue that these “effective resistances” add up to O(nr), but perhaps they add up to O(n)? If we sample according to those “effective resitances,” can we apply generic chaining directly to ∑e∈Ekwe(k)ge(k)Qe(x) without having to rely on a Gaussian process on matrices, for which we have Chernoff bounds?