We determine the optimal sample size for constructing value coresets for Max-Cut via uniform vertex sampling. That is, sampling O(ε−2) vertices uniformly at random in n-vertex graphs with edge weights in [0,1] yields a reweighted subgraph whose Max-Cut value is an additive εn2-approximation to that of the original graph, with constant success probability. This improves the previously known O(ε−4) upper bound and matches the known lower bound. The same guarantee holds also for importance sampling, where vertices are sampled proportionally to their weighted degrees, and we further prove a matching lower bound for this sampling method.
Our analysis extends directly to metric Max-Cut, showing that importance sampling of O(ε−2) vertices yields (1±ε)-approximation to the Max-Cut value, and to Max-Cut in graphs with edge weights in [0,1] and average weighted degree dˉ, achieving the same (1±ε)-approximation by either uniform or importance sampling of O(ε−2n/dˉ) vertices. We additionally show how to use this coreset to recover a cut of expected value at least OPT−εn2, by making O(nε−2) additional edge-weight queries. Finally, our result extends to Max-r-Cut, giving an additive εn2-approximation using a sample of O(ε−2log(2r)) vertices.
1 Introduction
The Maximum Cut problem (Max-Cut) is a fundamental optimization problem that asks for a bipartition of a graph's vertices that maximizes the total weight of edges crossing between the two parts. Formally, given an undirected graph G with vertex set V and nonnegative edge weights Auv, let
OPT=MaxCut(G):=S⊆Vmaxu∈S,v∈/S∑Auv.
By convention, Auv=0 when (u,v) is not an edge, and all graphs have no self-loops, which do not affect the value of a cut.
The problem is NP-hard and APX-hard even on unweighted graphs [Kar72, PY91], so a polynomial-time approximation scheme would imply P=NP. For general graphs, a common goal is therefore to design an α-approximation algorithm for 0<α≤1, i.e., one that returns a cut of value at least α OPT. The algorithm of Goemans and Williamson [GW95] achieves approximation ratio ≈0.87856 in expectation. On the hardness side, Håstad [Hås01] proved that achieving a ratio of 16/17+γ is NP-hard for every fixed 0<γ<1/17. The ratio achieved by Goemans and Williamson is optimal assuming the Unique Games Conjecture [KKMO07].
†The Harry Weinrebe Professorial Chair of Computer Science. Work partially supported by the Israel Science Foundation grant #1336/23. Email: robert.krauthgamer@weizmann.ac.il
Dense and metric instances, however, admit (1−ε)-approximations for every 0<ε<1 through additive approximation. For graphs with weights Auv∈[0,1], an additive approximation means finding a cut of value at least OPT−εn2, where throughout n:=∣V∣. We call a graph dense if its total edge weight W:=21∑u,v∈VAuv satisfies W≥ρn2 for a fixed ρ>0. It is well known that OPT≥W/2≥ρn2/2. Hence, additive approximation of ερn2/2 gives a cut of value at least (1−ε)OPT, i.e., achieves (1−ε)-approximation. The first approximation schemes for dense unweighted Max-Cut that run in polynomial time were given by Fernandez de la Vega [Fer96] and independently by Arora, Karger, and Karpinski [AKK99]. The same additive viewpoint applies also to metric Max-Cut, where the weights satisfy the triangle inequality. Fernandez de la Vega and Kenyon [FK01] reduce these instances to dense weighted graphs, such that accurate additive approximation on the resulting dense graph gives a (1−ε)-approximation for the original metric instance.
We focus on fast additive approximation of the Max-Cut value without reporting a cut. That is, for bounded weights Auv∈[0,1], we seek a randomized estimate OPT that satisfies
∣OPT−OPT∣≤εn2,
where throughout, randomized guarantees hold with probability at least 2/3, unless mentioned otherwise.
1.1 Sublinear algorithms for Max-Cut
To obtain the desired additive approximation, it suffices to sample vertices uniformly and examine their induced subgraph. The number of sampled vertices depends only on ε [AFKK03, RV07]. The estimator simply computes Max-Cut on this graph after rescaling all edge weights by a suitable factor. Such a small reweighted graph is a value coreset because its Max-Cut value approximates that of the original graph. With access to each edge weight in constant time and a fixed target success probability, constructing the value coreset takes time poly(1/ε), independent of n. The same algorithm is useful also for processing a graph stream. Assuming the vertex set is known in advance, one can choose the sample before the stream begins and maintain its induced subgraph as updates arrive.
While this sampling algorithm is straightforward, analyzing it is nontrivial because the sampled graph's optimal cut is determined after the sample is realized and need not correspond to any original cut fixed in advance. Several different approaches have led to an O(ε−4) sample bound. 1 Alon, Fernandez de la Vega, Kannan, and Karpinski [AFKK03] use matrix decompositions and linear programming. Rudelson and Vershynin [RV07] use tools from geometric functional analysis, whereas Mathieu and Schudy [MS08] use a greedy construction for unweighted graphs. These last two analyses remove the logarithmic factors, but retain the ε−4 dependence.
This may be viewed as an indication that a smaller sample bound is not likely. For metric Max-Cut, importance sampling proportionally to the weighted degrees gives a (1±ε)-approximate value coreset using O(ε−4) vertices [CJK23].
Currently there is a gap between this O(ε−4) upper bound and the Ω(ε−2) lower bound for uniform sampling proved by Alon, Fernandez de la Vega, Kannan, and Karpinski [AFKK03, technical report version].
These results raise a few questions about the size of value coresets: For graphs with weights in [0,1], what is the optimal sample size for uniform sampling to achieve additive approximation
1The notation O(f) hides logarithmic factors in f.
εn2? For metric Max-Cut, can the O(ε−4) sample bound for importance sampling be improved? In either setting, can a different sampling distribution reduce the sample size?
1.2 Our results
Our main contribution is to close the sampling gap, by showing that sampling O(ε−2) uniformly random vertices yields a value coreset for Max-Cut in a graph with weights in [0,1]. This improves the previous O(ε−4) upper bound [RV07] and matches the known lower bound [AFKK03].
Theorem 1.1 (Uniform sampling for Max-Cut, follows from Theorem 2.1). Consider an n-vertex graph with edge weights Auv∈[0,1]. Sample k vertices X1,…,Xk uniformly with replacement, 2 and let the sampled subgraph on vertex set [k] have edge weights A^ij=(n/k)2AXiXj. Then
Our analysis applies more generally to independent draws from any sampling distribution p∈RV satisfying pv≥d(v)/n2, where d(v) is the weighted degree of v; this includes also importance sampling. The same bound on expected error holds after reweighting the sampled edges as
A^ij=k2pXipXjAXiXj.
Theorem 1.2 (General sampling distributions, follows from Corollary 2.2). Consider an n-vertex undirected graph with edge weights Auv∈[0,1], and let p∈RV be a sampling distribution satisfying pv≥d(v)/n2 for every vertex v, where d(v):=∑uAvu. Then for every ε,δ∈(0,1) and a suitable absolute constant C>0, a reweighted sample of k≥Cε−2δ−2 vertices satisfies
P(∣OPT−OPT∣≤εn2)≥1−δ.
We also prove a matching lower bound of Ω(ε−2) vertices for importance sampling, even for unweighted graphs (Section 4). Together with the known lower bound for uniform sampling [AFKK03], this establishes that the optimal sample complexity is Θ(ε−2) for both sampling methods in graphs with bounded weights.
Extensions. We actually prove a more general form of Theorem 1.2 (see Theorem 2.1), and it has two additional consequences.
The first one is that in graphs with edge weights in [0,1] and average weighted degree dˉ, either uniform or importance sampling of O(ε−2n/dˉ) vertices gives a (1±ε)-approximate value coreset (see Corollary 2.11). This improves over the previous O~(ε−4n/dˉ) bound of Bhaskara, Daruki, and Venkatasubramanian [BDV18], by matching their n/dˉ dependence, improving their ε−4 to ε−2, and removing their logn factor (although they get higher success probability 1−1/n2).
The second consequence is that in metric Max-Cut instances, importance sampling of O(ε−2) vertices gives a (1±ε)-approximate value coreset (see Corollary 2.12). Our direct proof avoids the roundabout analysis through a reduction to dense graphs used in earlier proofs [FK01, CJK23].
2In some prior work the sampling is without replacement [AFKK03, MS08], while other work allows replacement [GGR98]. For sufficiently large n, the difference is negligible; for example, the birthday paradox calculation bounds the probability of a repeated vertex among k uniform draws by (2k)/n.
The value coreset also supports cut recovery, i.e., finding a nearly-optimal cut of the original graph G (see Section 3). For weights in [0,1] and either sampling method, an optimal cut of the reweighted subgraph and the edge weights between the sampled vertices and the other vertices of G define a linear program (LP). An optimal solution of it associates each vertex of G with a probability to lie on one side of the cut, and assigning the vertices independently according to these probabilities gives a cut of expected value at least OPT−εn2.
The LP has n+k variables and 2k constraints, where k=O(ε−2) is the sample size, and constructing it requires O(nε−2) additional queries to the matrix of edge weights.
Earlier work on cut recovery for unweighted graphs by Goldreich, Goldwasser, and Ron [GGR98] constructs a cut achieving additive εn2-approximation using O(ε−7log2(2/ε)+nε−2log(2/ε)) matrix queries. Yaroslavtsev [Yar14] later obtained a cut achieving an additive εn2-approximation in total running time O(nε−2)+2O(ε−2). Neither algorithm uses linear programming, although other algorithms for finding (1−ε)-approximate cuts do [AKK99, FLP16, YZ14].
Finally, our result extends to Max-r-Cut, which asks to partition the vertices into at most r parts so as to maximize the total weight of edges between different parts (see Theorem 5.1). For graphs with edge weights in [0,1] and integer r≥2, either sampling method achieves additive εn2-approximation using O(ε−2log(2r)) sampled vertices. In comparison with the O~(r8ε−4) bound implied by Karpinski and Markó [KM16], we improve the dependence on both r and the accuracy parameter ε.
1.3 Our techniques
Each technical section includes an overview of its proof, and here we only briefly summarize the main ideas. Our proof for Max-Cut in Section 2 expresses the (normalized) weight of cuts in the graph as a quadratic form in a vector p∈RV that represents the cut. We compare the maxima of this quadratic form over two feasible regions: one determined by the sampling distribution (e.g., uniform over V), and the other by the empirical distribution of the sample. We relax the quadratic objective to a family of linear objectives by letting the two vector factors vary independently and optimizing over one with the other fixed. A minimax argument shows that if the linear objectives have nearly the same maximum over the two feasible regions, then so does the quadratic objective.
It therefore remains to bound the difference between the linear maxima uniformly over this family. The difficulty is that the feasible region itself depends on the sample. Our analysis bounds this difference uniformly by drawing on tools from statistical learning theory like symmetrization and contraction.
We extend this approach to Max-r-Cut in Section 5. For a bipartition, choosing one part completely determines the other. But with more than two parts, the vertices not in one part can be divided among the other r−1 parts in many ways, and our analysis must track the parts and their joint interactions. This makes the proof more involved, although its main stages remain the same. We express the two (normalized) optima as evaluations of the same function and then apply symmetrization and contraction to handle the random feasible set.
1.4 Related work
Estimating the optimum. Goldreich, Goldwasser, and Ron [GGR98] gave the first sublinear-time algorithm achieving an additive εn2-approximation for unweighted Max-Cut using O(ε−7log2(2/ε)) matrix queries. Their combinatorial algorithm enumerates partitions of small vertex samples to define candidate cuts, then estimates their values using additional random queries. Their analysis also gives, as a corollary, the first value coreset of size O~(ε−5).
Alon, Fernandez de la Vega, Kannan, and Karpinski [AFKK03] improved the sample bound, showing that the rescaled Max-Cut value of the induced subgraph on O~(ε−4) uniformly sampled vertices gives an additive εn2-approximation. Their analysis combines matrix decomposition into a small number of cut matrices, due to Frieze and Kannan [FK99], with linear programming. Rudelson and Vershynin [RV07] removed the logarithmic factor using tools from geometric functional analysis, showing that O(ε−4) sampled vertices suffice. Mathieu and Schudy [MS08] obtain the same sample bound for unweighted graphs by analyzing a greedy algorithm.
This sampling approach was extended to non-dense graphs by Bhaskara, Daruki, and Venkata-subramanian [BDV18]. They show that degree-based importance sampling in unweighted graphs of average degree dˉ yields a (1±ε)-approximate value coreset with O(nlogn/(dˉε4)) vertices in expectation. Their analysis compares LP approximations of the original and sampled graphs using LP duality and concentration bounds.
For unweighted Max-r-Cut, Goldreich, Goldwasser, and Ron [GGR98] obtained an additive εn2-approximation using O(ε−7log2(2r/ε)) matrix queries. Andersson and Engebretsen [AE02] extended their combinatorial sampling approach to finite-domain CSPs. For Max-r-Cut, they obtain a comparable bound of O(ε−7log(2r)log2(2r/ε)) queries. Karpinski and Markó [KM16] used cut decompositions and LP duality to analyze the rescaled optimum of a uniformly sampled induced subgraph, i.e., a value coreset, and showed that O~(r8ε−4) sampled vertices suffice for the same additive guarantee.
Metric importance sampling. Fernandez de la Vega and Kenyon [FK01] obtained a polynomial-time approximation scheme (PTAS) for metric Max-Cut by reducing it to dense weighted Max-Cut. Their reduction replicates each vertex according to its weighted degree and rescales the edge weights. Chen, Jiang, and Krauthgamer [CJK23] combined this reduction with uniform-sampling bounds to show that importance sampling of O(ε−4) vertices gives a (1±ε)-approximate value coreset, and they also implement this approach in the streaming setting for Euclidean Max-Cut.
Constructing a cut. The first PTASes for dense Max-Cut were obtained independently by Arora, Karger, and Karpinski [AKK99] and Fernandez de la Vega [Fer96]. Fernandez de la Vega uses a small vertex sample to guide the assignment of the remaining vertices, searching exhaustively over assignments within small blocks. Arora, Karger, and Karpinski
enumerate assignments to O(ε−2logn) sampled vertices, use each assignment to construct an LP on the full graph, and round its solution. Fotakis, Lampis, and Paschos [FLP16] extended this approach to unweighted graphs with Ω(n1+σ) edges, for fixed 0<σ≤1, and achieved approximation ratio 1−ε in time 2O(n1−σlogn/ε3).
Mathieu and Schudy [MS08] obtained additive O(εn2)-approximation in expectation for unweighted graphs in faster time O(n2)+2O(ε−2). They greedily extend every partition of a small random seed within a larger sample, then extend the best resulting cut to the full graph. Vertices are processed in random order and placed where they create more crossing edges. Yaroslavtsev [Yar14] obtained the same approximation in faster time O(nε−2)+2O(ε−2), by estimating the greedy gains using samples of already assigned vertices.
Yoshida and Zhou [YZ14] use the Sherali-Adams hierarchy of LP relaxations and show that an optimal solution at level O((ρε2)−1) can be rounded to give a (1−ε)-approximation on unweighted graphs with at least ρn2 edges, for fixed ρ>0. For metric Max-Cut, O(ε−2) levels suffice.
Cut oracles. A cut oracle is an implicit representation (data structure) of a cut of value at least (1−ε)OPT that reports, given a query vertex, its assignment (side) in the cut. For dynamic streams of Euclidean points in [Δ]d, Lammersen, Sidiropoulos, and Sohler [LSS09] combine dimension reduction with the cut oracle of Frahling and Sohler [FS05], to obtain a (1−ε)-approximate cut oracle using exp(poly(ε−1))poly(dlogΔ) space. Menand and Waingarten [MW26] combine a sampled version of the greedy algorithm of Mathieu and Schudy [MS08] with the streaming sampler of Chen, Jiang, and Krauthgamer [CJK23], to obtain such an oracle using the smaller space bound poly(dlogΔ/ε). We do not provide a cut oracle.
2 Sample Complexity for Max-Cut
In this section, we prove our main theorem that sampling O(ε−2) vertices achieves an additive εn2-approximation to the Max-Cut value. We start by setting up the necessary notation and state our main result in Theorem 2.1. We then give an overview of the proof (in Section 2.1), which is followed by the proof itself: We express the two cut values through a common functional (in Section 2.2), then reduce the comparison of these two cut values to a certain difference between two linear maximization problems (in Section 2.3), and then bound the expectation of this difference (in Section 2.4). Finally, we specialize the error bound to uniform and importance sampling (in Section 2.5).
Let V be a vertex set of size n, and let A∈RV×V be a symmetric matrix with zero diagonal and nonnegative edge weights, i.e., Auv≥0 for all u,v∈V. Let d(v):=∑u∈VAvu be the weighted degree of v and let D:=∑v∈Vd(v). Isolated vertices contribute zero to every cut, so we may discard them and assume d(v)>0 for all v∈V.
Fix an integer k≥1 and a positive probability vector p∈RV. Importance sampling allows pv≥λDd(v) for all v∈V, where λ≥1 is a parameter, and uniform sampling uses pv=1/n. Draw X1,…,Xk∈V independently with replacement according to p. If the same vertex is sampled more than once, its copies remain distinct vertices of the output. The sampled graph has vertex set [k], representing (X1,…,Xk). Define its edge weights A and a matrix K∈RV×V by
Let PX∈RV be the empirical distribution of the sample, that is PX(v):=∣{i:Xi=v}∣/k for every v∈V. This matrix K makes it convenient to express and compare the Max-Cut values in the original and sampled graphs, after scaling by a factor of 1/n2. The expressions below differ only in whether they use the sampling distribution p or its empirical distribution PX.
The second identity uses the fact that in the sampled graph, at least one optimal cut keeps all copies of the same vertex together. Lemma 2.4 proves this fact and both identities.
We will use the following quantity to control the sampling error through second moment estimates.
H:=v∈V∑pv(u∈V∑puKuv2)1/2.
A simple calculation (see Lemma 2.10) shows that H≤1 whenever every edge weight Auv lies in [0,1] and the sampling distribution satisfies
pv≥n2d(v),∀v∈V.(2.2)
Theorem 2.1 (Sampling approximates the Max-Cut value). For every positive probability vector p∈RV,
En2MaxCut(A)−MaxCut(A)≤k48H.(2.3)
Corollary 2.2 (High-probability bound). Assume 0≤Auv≤1 for every u,v∈V. Then for every positive sampling distribution satisfying (2.2), including uniform and importance sampling with λ=1,
∀0<ε<1,P(∣MaxCut(A)−MaxCut(A)∣≥εn2)≤εk48.(2.4)
Consequently, to get error probability at most δ∈(0,1), it suffices to take any k≥2304/(δ2ε2).
Proof. Section 2.5 verifies the bound H≤1 for sampling that satisfies (2.2), and then Markov's inequality implies (2.4). Solving for k gives the sample size bound for given δ.
A simple calculation shows that, for importance sampling with parameter λ≥1, an extra factor of λ in the sample size suffices, e.g., k≥20736λε−2 gives error probability at most 1/3.
2.1 Proof overview
Our first step is to view sampling as a change in vertex weights. Given K and a probability vector r∈RV, we define FK(r) as the maximum cut value with respect to K and vertex weights rv, meaning that each edge (u,v) has weight rurvKuv. It will be convenient to allow fractional cuts, where each vertex's weight rv may be split between the two sides, although we show in Section 2.2 that this does not change the optimum value, and in fact
FK(p)=n2MaxCut(A),FK(PX)=n2MaxCut(A).
We then compare in Section 2.3 these two values, and more generally FK(r) and FK(s) for any two probability vectors r,s∈RV. We do this by matching fractional cuts of the two vertex weights r and s. For either q∈{r,s}, a fractional cut is represented by 0≤a≤q and has value a⊤K(q−a). We relax a⊤K(q−a) to a⊤Kc, allowing c∈RV to vary independently of a with 0≤c≤r or 0≤c≤s. For fixed c, maximizing over a gives Mq(c):=max0≤a≤qa⊤Kc, and our analysis compares Mr(c) and Ms(c) for the same c. Let ΔK(r,s) be their largest absolute difference over a suitable region C(r,s) of vectors c, i.e.,
ΔK(r,s):=c∈C(r,s)max∣Mr(c)−Ms(c)∣.
A minimax argument converts the comparison of these maxima into a matching of fractional cuts. For each a∈RV with 0≤a≤r, it produces a matching b∈RV, 0≤b≤s, such that a⊤Kc and b⊤Kc are close for all feasible c at once, meaning that
cmax∣(a−b)⊤Kc∣≤ΔK(r,s).
Using this matching, a simple calculation shows that
∣FK(r)−FK(s)∣≤4ΔK(r,s).
Applying this bound with r=p and s=PX reduces the problem to bounding EXΔK(p,PX), which we address in Section 2.4. The main difficulty is that both the sampling error for a given c and the feasible region for c depend on the sample X. The maximizing vector can therefore adapt to the sample, so a bound for each c fixed in advance does not directly control ΔK(p,PX). Similar difficulties arise in statistical learning when comparing a hypothesis's error on the sample used to choose it with its error under the underlying distribution. We borrow from that domain a standard tool called symmetrization. We draw an independent ghost sample Y1,…,Yk from p, solely for the sake of analysis, and denote its empirical distribution by PY and use it to rewrite ΔK(p,PX) as
We enlarge the feasible region for c to one that is invariant under swaps between Xi and Yi, and then draw k independent random signs σ1,…,σk∈{±1}, where +1 leaves Xi,Yi in place, and -1 exchanges them. Crucially, the enlarged region does not change under these exchanges. Writing [t]+:=max{t,0}, the swaps turn MPX(c)−MPY(c) into
k1i=1∑kσi(⌊(Kc)Xi⌋+−⌈(Kc)Yi⌉+).
This lets us apply Ledoux–Talagrand contraction to reduce to a signed sum linear in c. We can therefore remove the maximum over c by bounding each ∣cv∣ by its worst-case value. A simple second moment calculation then gives
EXΔK(p,PX)≤k12H.
2.2 Reduce both Max-Cut values to one functional
We express the normalized Max-Cut values of the original graph A and the sampled graph A as evaluations of the same functional FK(⋅) at p and PX, respectively.
To define FK, we first describe fractional cuts. Cuts are usually represented by xv∈{0,1}, where vertices v with xv=1 are on one side and those with xv=0 on the other side. Allowing xv∈[0,1] gives a fractional cut, in which a fraction xv of vertex v goes to one side and the remaining fraction 1−xv to the other side. With vertex weights rv≥0, the weight of v placed on one side is av=rvxv, which we call the weighted fraction of v on that side. For simplicity, we will simply refer to av as the fraction of v on that side. The other side receives weight rv−av. Thus a fractional cut has 0≤av≤rv, and an ordinary cut has av∈{0,rv}. The probability vectors p and PX provide the vertex weights for the original and sampled graphs respectively. Using fractional cuts in a vertex-weighted graph lets us express both cut values through the same functional.
Define the feasible fractional cuts by
Z(r):={a∈RV:0≤av≤rv for every v}
and their optimal value by
FK(r):=a∈Z(r)maxa⊤K(r−a).(2.5)
Allowing fractional cuts makes the feasible set convex, which is useful for the comparison in Section 2.3.
Lemma 2.3 (The maximum is attained by a cut). For every nonnegative weight vector r∈RV, there exists a maximizer a∈Z(r) in (2.5) that corresponds to a cut, i.e., av∈{0,rv} for all v∈V.
Proof. Since Kvv=0, the objective a⊤K(r−a) is affine in each variable av (when the other variables are fixed). An affine function on [0,rv] attains its maximum at an endpoint, so we can move av to an endpoint without decreasing the objective. Starting from a maximizer and applying this operation iteratively yields a maximizer that has av∈{0,rv} for every v. □
Lemma 2.4 (The two Max-Cut values). With p, PX, and K defined above,
FK(p)=n2MaxCut(A),FK(PX)=n2MaxCut(A).
Proof. For the first identity, Lemma 2.3 lets us maximize over cuts S⊆V. Since pupvKuv=Auv/n2,
FK(p)=S⊆Vmaxu∈S∑v∈/S∑pupvKuv=n2MaxCut(A).
For the second identity, we first show that all copies of a repeatedly sampled vertex can be moved to the same side without decreasing the cut value. Start with an optimal cut for the sampled subgraph (induced on X1,…,Xk).
For an original vertex v, its sampled copies have no edges between them and have the same edge weights to all other sampled vertices. Holding those other vertices fixed, choose a side maximizing the cut contribution of one copy of v. The same choice maximizes the contribution of every copy. If the two sides tie, choose either side arbitrarily. Put all copies on that side and repeat for each original vertex. These moves cannot decrease the cut value, so the final cut is still optimal and keeps all copies of each vertex together.
Such a cut is described by a set S⊆V. All copies of vertices in S lie on one side, and all remaining copies lie on the other side. For u∈S and v∈/S, there are kPX(u)kPX(v) crossing pairs of copies. Each pair (i,j) with Xi=u and Xj=v contributes to the cut value divided by n2 as follows:
2.3 Compare cut values under two vertex distributions
In this subsection, we bound the difference between FK(r) and FK(s) for two probability vectors r,s on V. In our intended application, we will use r=p and s=PX.
For a nonnegative vector q, let Mq(c) be the maximum of x⊤Kc over x∈Z(q), namely
The equality follows by choosing xv=qv when (Kc)v>0 and xv=0 otherwise.
To compare Mr and Ms, we use a larger domain that contains both Z(r) and Z(s) and is symmetric and convex.
C(r,s):=conv(Z(r)∪−Z(r)∪Z(s)∪−Z(s)).(2.7)
We consider their largest absolute difference, defined by
ΔK(r,s):=c∈C(r,s)max∣Mr(c)−Ms(c)∣.(2.8)
Lemma 2.5 (Comparison of cut values). For every pair of probability vectors r,s∈RV,
∣FK(r)−FK(s)∣≤4ΔK(r,s).(2.9)
Taking r=p and s=PX, this lemma gives ∣FK(PX)−FK(p)∣≤4ΔK(p,PX). It then remains to bound EXΔK(p,PX), which we do in Section 2.4.
To prove Lemma 2.5, we first prove two bounds. One matches fractional cuts under r and s, and the other compares the vertex masses.
Lemma 2.6 (Matching fractional cuts). Let r,s∈RV be probability vectors. For every a∈Z(r), there exists b∈Z(s) such that
c∈C(r,s)max∣(a−b)⊤Kc∣≤ΔK(r,s).(2.10)
Consequently,
c∈C(r,s)max∣(r−s)⊤Kc∣≤2ΔK(r,s).(2.11)
Proof. Fix a∈Z(r). Using C(r,s)=−C(r,s) and applying Sion's minimax theorem [Sio58] to the function (b,c)↦(a−b)⊤Kc, which is affine in each variable, on the compact convex sets Z(s) and C(r,s), we obtain
Since r−a∈Z(r) and b∈Z(s), both lie in C(r,s), and we can apply (2.12) to get
FK(r)−FK(s)≤Δ+2Δ+Δ=4Δ.
Interchanging r and s gives the same bound for FK(s)−FK(r), proving (2.9).
2.4 Bound the sampling error
In this subsection we prove that
EXΔK(p,PX)≤k12H.(2.14)
Together with Lemmas 2.4 and 2.5, this completes the proof of Theorem 2.1. Recall that ΔK(p,PX) is the largest absolute difference between the exact and sample averages
over c∈C(p,PX). The challenge is that this domain depends on the same sample X used in MPX. The proof has two steps, using several tools from statistical learning theory.
Symmetrization. Instead of comparing PX with its expectation p, we compare the empirical distributions PX,PY of two independent samples X,Y. We enlarge the domain of c to a box BX,Y [MP04].
We use symmetrization and Ledoux-Talagrand contraction [LT91] to reduce the problem to bounding the expected maximum of sums of (Kc)Xi with independent random signs (Lemma 2.7).
Second-moment bounds. The signed sums are linear in c, so we bound their maximum over the box one coordinate at a time. We bound the maximum by three sums, weighted by p, PX, and PY. We bound each sum's expectation by H/k using the upper L1 Khintchine bound, obtaining a total of at most 3H/k (Lemma 2.8).
Combining the two estimates gives (2.14). Lemma 2.5 then bounds the expected normalized Max-Cut error by 48H/k.
Step 1. Symmetrization
Lemma 2.7 (Reduction to a signed linear maximum). Let Y1,…,Yk be independent draws according to p, independent of X, with sample-frequency vector PY. Let σ1,…,σk∈{±1} be independent uniform signs, independent of X,Y, and define
Proof. We begin with the symmetrization step using a ghost sample. For every c∈C(p,PX), the independent sample average has mean Mp(c), since
EYMPY(c)=v∑pv[(Kc)v]+=Mp(c).
The box BX,Y is convex and contains each of the four sets defining C(p,PX), so
C(p,PX)⊆BX,Y.(2.16)
With X fixed, C(p,PX) does not depend on Y, the absolute value of an expectation is at most the expectation of the absolute value and the maximum of expectations is at most the expectation of the maximum (Jensen's inequality). Thus
We next take expectation over X and use pairwise exchanges to express the expected maximum in terms of sums with random signs (Rademacher symmetrization). For each fixed sign vector σ∈{±1}k, set
(Xi,Yi):={(Xi,Yi),(Yi,Xi),σi=1,σi=−1.
Each exchange reverses its pair's contribution, so
where the last inequality uses the triangle inequality and symmetry between X and Y. Finally, g:t↦[t]+ is 1-Lipschitz and vanishes at 0. For fixed X,Y, the Ledoux-Talagrand contraction inequality (Lemma A.1; see [LT91]) therefore gives
We have bounded the maximum over all c by three explicit sums. We bound them separately because the weights from PX depend on the signed sums, whereas the weights from PY are independent of them.
Bound the sum weighted by p. Since K is symmetric, we can write H=∑vpvhv, where, for each v∈V,
hv:=(u∑puKvu2)1/2.
For fixed X, the upper L1 Khintchine inequality (Lemma A.2) gives
Eσi∑σiKvXi≤(i∑KvXi2)1/2.
Taking expectation over X and applying Jensen's inequality gives
where the last equality uses EXKvXi2=∑upuKvu2=hv2, since each Xi is drawn according to p. We thus obtain that
EX,σv∑pvi∑σiKvXi≤kv∑pvhv=kH.(2.21)
Bound the sum weighted by PY. We can use the preceding estimate directly for PY, because the sample Y is independent of X and σ. Since EYPY(v)=pv, equation (2.21) gives
Fix ℓ and condition on Xℓ=u. Since Kuu=0, we have ∑iσiKXℓXi=∑i=ℓσiKuXi. The other Xi are independent draws according to p, so applying Khintchine and Jensen again gives
We remove the conditioning on Xℓ=u by the law of total expectation. Summing the resulting bounds over ℓ, dividing by k, and using H=∑upuhu, we obtain
Each of the three unnormalized sums has expected value at most kH. Substituting these bounds into (2.20) and dividing by k gives 3H/k, proving Lemma 2.8.
Putting it together
Theorem 2.9 (Expected error in FK). Let X1,…,Xk be independent draws from p, and let PX be their empirical distribution. Then
EX∣FK(PX)−FK(p)∣≤k48H.(2.24)
Proof. Taking expectations in Lemma 2.5 with r=p and s=PX, and using Lemmas 2.7 and 2.8, gives
The sampling probabilities determine H through the ratios d(v)/pv. We first bound H in terms of these ratios, then apply the bound to importance and uniform sampling.
Lemma 2.10 (Bounding H). Let p∈RV be a positive probability vector, and define K and H as above. If 0≤Auv≤1 for all u,v∈V, then
H2≤n31v∈V∑pvd(v).(2.25)
In particular, if pv≥d(v)/n2 for every v∈V, then H≤1.
Proof. Substituting the definition of K into H cancels the probabilities outside the square roots, giving
H=n21v∈V∑(u∈V∑puAuv2)1/2.(2.26)
Jensen's inequality and Auv2≤Auv give
H2≤n31u,v∈V∑puAuv2≤n31u∈V∑pud(u).
If pv≥d(v)/n2 for all v∈V, then H2≤n−3⋅n⋅n2=1.
Uniform and exact importance sampling both satisfy pv≥d(v)/n2. For exact importance sampling, pv=d(v)/D and D≤n2. For uniform sampling, pv=1/n and d(v)≤n. Thus Lemma 2.10 gives H≤1.
Keeping the dependence on D in Theorem 2.10 gives a relative-error bound in terms of the average weighted degree.
Corollary 2.11 (Relative error from average weighted degree). Assume 0≤Auv≤1 for all u,v∈V. Let dˉ=D/n>0 be the average weighted degree, and write OPT=MaxCut(A). Suppose the positive sampling distribution p satisfies
v∈V∑pvd(v)≤λnD
for some λ≥1. Then
EMaxCut(A)−OPT≤192dkλnOPT.
Proof. We first bound H in terms of the average weighted degree. By Theorem 2.10 and the assumption on p,
H2≤n31v∈V∑pvd(v)≤n2λD=nλdˉ.
A uniformly random cut has expected value D/4, so OPT≥ndˉ/4. Substituting these two bounds into Theorem 2.1 gives
OPTE∣MaxCut(A)−OPT∣≤OPTk48n2H≤192dˉkλn.
Importance sampling with parameter λ satisfies the corollary's assumption, since pv≥d(v)/(λD) gives ∑vd(v)/pv≤λnD. For uniform sampling, ∑vd(v)/pv=nD. By Markov's inequality, for every 0<ε<1, a reweighted sample of k≥5762λn/(dˉε2) vertices gives a (1±ε)-approximation to OPT with probability at least 2/3.
For metric weights, importance sampling gives an error bound relative to the optimal cut value. For λ-approximate importance sampling, the bound below gains a factor of λ.
Corollary 2.12 (Relative error for metric weights). Assume Auv≥0 and Auv≤Auw+Awv for all u,v,w∈V. Use exact importance sampling pv=d(v)/D, and write OPT=MaxCut(A). Then
EMaxCut(A)−OPT≤k1922OPT.
Proof. Theorem 2.1 bounds the expected error by 48n2H/k, so we need to bound n2H using OPT. Apply Cauchy-Schwarz to the sum over v, using ∑vpv=1, then substitute pv=d(v)/D, which gives
The second sum also equals n, by symmetry. A uniformly random cut has expected value D/4, so D≤4OPT. Hence n2H≤42OPT. Substituting this into the theorem's error bound proves the claim.
3 Solution Recovery for Max-Cut
We recover a nearly optimal cut of A from an optimal cut of A and the edges to the sampled vertices. Retain the preceding notation and write CutA(S) for the weight of a cut S⊆V.
The same quantity H that controls the value approximation also controls the expected approximation of the recovered cut. Recall from Lemma 2.10 that H≤1 whenever every edge weight Auv lies in [0,1] and the sampling distribution satisfies (2.2).
Theorem 3.1 (Recovery from edges to the sampled vertices). For every positive probability vector p∈RV and every k≥1, the algorithm below takes an optimal cut of A and the edges to the sampled vertices X1,…,Xk, and returns a cut S⊆V satisfying
E[n2MaxCut(A)−CutA(S)]≤k120H.(3.1)
The expectation is over both sampling and rounding. The algorithm uses at most nk adjacency queries.
The query bound assumes access to the probabilities pv and independent samples from p without further adjacency queries.
Corollary 3.2 (High-probability bound). Assume 0≤Auv≤1 for every u,v∈V. Then for every positive sampling distribution satisfying (2.2), including uniform and importance sampling with λ=1,
∀0<ε<1,P(MaxCut(A)−CutA(S)≥εn2)≤εk120.(3.2)
The probability is over both sampling and rounding. Consequently, to get error probability at most δ∈(0,1), it suffices to take any k≥14400/(δ2ε2).
Proof. Lemma 2.10 gives H≤1 under the stated assumptions. Since MaxCut(A)−CutA(S)≥0, Markov's inequality applied to (3.1) gives (3.2). Solving for k gives the sample size bound for a given δ. □
Under the same bounded-weight assumption, importance sampling with parameter λ≥1 gives H≤λ by Lemma 2.10, so an extra factor of λ in the sample size suffices.
Overview. We first show how an optimal cut a of the sampled graph, together with the edges to the sampled vertices, gives a lower bound on the value of any fractional cut b of the original graph. The matching lemma guarantees a candidate b for which this lower bound is close to the value of a. We find such a candidate by solving a linear program. Finally, we round the resulting fractional cut, preserving its value in expectation, and apply the preceding sampling bounds to obtain the recovery guarantee.
3.1 Recover a fractional cut by a linear program
Write Δ=ΔK(p,PX).
Lemma 3.3 (Comparison using edges to the sampled vertices). Let a∈Z(PX) be an optimal cut of the sampled graph. Then for every b∈Z(p),
Proof. Fix b∈Z(p) and choose a matching fractional cut bX∈Z(PX) using Lemma 2.6. We first bound the two error terms that arise when replacing b by bX and p by PX. Since a,b∈C(p,PX) and K=K⊤, the lemma gives
It remains to bound the first term using edges to the sampled vertices. Since a,bX∈Z(PX), we have −PX≤PX−a−bX≤PX coordinatewise. Thus, by symmetry of K,
Fix an optimal cut a of the sampled graph. We now minimize the error term in (3.3) over b∈Z(p). The matching lemma ensures that this minimum is small, giving the following recovery guarantee.
Lemma 3.4 (Recovery by minimizing the error). Every b∈Z(p) minimizing
k1i=1∑k∣(Ka)Xi−(Kb)Xi∣(3.4)
satisfies
b⊤K(p−b)≥FK(p)−10Δ.(3.5)
Proof. Lemma 2.6, with Z(PX)⊆C(p,PX) and K=K⊤, gives b∈Z(p) such that
At any optimal solution (b,t) of (3.6), ti=∣(Ka)Xi−(Kb)Xi∣ for every i, since a larger ti could be decreased to improve the objective. Therefore, b minimizes (3.4) and satisfies (3.5) by Lemma 3.4.
3.2 Round the fractional cut and count queries
The LP assigns bv of vertex v's weight pv to one side. We round by including v in S independently with probability bv/pv∈[0,1], the fraction of its weight on that side.
Proof of Theorem 3.1. Condition on the sample X and any optimal LP solution b. Independence, Avv=0, Auv=n2pupvKuv, and (3.5) give
This bound holds for every optimal b. Averaging over X and applying (2.14) gives
E[n2MaxCut(A)−CutA(S)]≤10EXΔ≤k120H.
The edges to the sampled vertices determine A and all LP coefficients and can be obtained with at most nk adjacency queries. Discarded isolated vertices can be assigned to either side. □
4 Lower Bound
We prove a matching Ω(ε−2) lower bound for importance sampling with the estimator MaxCut(A) defined by (2.1). The main example is a balanced complete tripartite graph. An imbalance of order k between its sampled parts produces an error of order n2/k, and we show that this happens with constant probability.
For every positive integer n divisible by six, define
Both graphs are simple, unweighted, and regular, so importance sampling uses pv=d(v)/D=1/n. By (2.1), every edge in the sampled graph has weight n2/k2. We use the bipartite graph to cover the finitely many sample sizes k<512.
Theorem 4.1 (Lower bound for importance sampling). Set c=1/5184 and ε0=1/(4⋅5122). For every 0<ε≤ε0, every integer 1≤k≤cε−2, and every positive integer n divisible by six, importance sampling on Gn,k satisfies
P(∣MaxCut(A)−MaxCut(A)∣>εn2)>83.
Thus, for this estimator under importance sampling, a worst-case guarantee of additive error εn2 with probability at least 2/3 requires k=Ω(ε−2).
Proof. We first express the error on the tripartite graph in terms of its sample counts. Lemma 4.2 then gives the required probability bound. We handle k<512 separately using the bipartite graph.
Compute the estimator on the tripartite graph. Suppose first that k≥512, so Gn,k=Tn. Let Nj be the number of samples from part j, and let M be the largest of these counts. Thus
The sampled graph is complete tripartite with part sizes N1,N2,N3, even if a vertex is sampled more than once.
An optimal cut may be chosen to keep each part on one side. Indeed, vertices within a part have no edges between them and have identical neighborhoods. Holding the other parts fixed, we can therefore move all vertices of this part to whichever side gives the larger contribution, without decreasing the cut value. Among cuts that split no part, an optimal cut separates the largest part from the other two, leaving only the edges between the two smallest parts uncut.
An optimal cut of the sampled graph therefore has M(k−M) crossing edges. In the original graph, each part has size n/3, so an optimal cut has (n/3)(2n/3)=2n2/9 crossing edges. Including the sampled edge weights gives
MaxCut(A)=92n2,MaxCut(A)=k2n2M(k−M).(4.1)
To compare these values, let L:=M−k/3≥0 denote the amount by which the largest sample count exceeds k/3, the expected count in each part. Substituting M=k/3+L, we obtain
Identify an event on which the estimator fails. When L≤k/6, the quadratic term in (4.2) is at most half the linear term. Thus an imbalance of order k gives an error of order n2/k. More precisely, on the event
Lemma 4.2 below shows that this event has probability greater than 3/8, completing the case k≥512.
Cover the smaller sample sizes. For 1≤k<512, our graph is Bn. We show that the estimator fails whenever the two parts contribute different numbers of samples.
Let B∼Bin(k,1/2) count the samples from the first part. The sampled graph is complete bipartite with part sizes B and k−B. Since all edges of a bipartite graph can be cut,
MaxCut(A)=4n2,MaxCut(A)=k2n2B(k−B).
The error is therefore determined by the difference between the two sample counts:
The final sample belongs to either part with equal probability, and at most one of these two choices makes the counts equal. Hence P(B=k/2)≤1/2, and the failure probability is at least 1/2>3/8.
The following lemma supplies the probability bound used for the tripartite graph. It shows that, with constant probability, the largest sample count exceeds k/3 by at least a constant times k but is still at most k/2.
Lemma 4.2 (Imbalance among three sample counts). Let (N1,N2,N3) have distribution Multinomial(k;1/3,1/3,1/3), and set M:=maxjNj and L:=M−k/3. For every k≥512,
P(12k<L≤6k)>83.(4.4)
Proof. We first bound the probability that L>k/12 from below, then subtract the probability that L>k/6. For both bounds, it is convenient to use the sum of squared deviations of the sample counts from their mean:
R:=j=1∑3(Nj−k/3)2.
The advantage of R is that we can compute its first two moments by counting pairs of samples that lie in the same part.
Bound R in terms of L. For this comparison, label the parts so that N1=M=k/3+L. Its term in R is L2, so R≥L2. For the upper bound, using N2+N3=k−M and expanding gives
R=6L2−2(M−N2)(M−N3)≤6L2,
since both factors in the product are nonnegative.
Compute the first two moments. For 1≤a<b≤k, let Iab indicate whether samples a and b lie in the same part. Part j contains (2Nj) such pairs, so ∑j(2Nj)=∑a<bIab. Using Nj2=Nj+2(2Nj) and ∑jNj=k, we can write
R=j=1∑3Nj2−3k2=k+2a<b∑Iab−3k2.
Each indicator has mean 1/3 and variance 2/9. Distinct indicators are pairwise independent. For disjoint pairs, this follows from independence of the samples. For pairs sharing one sample, both indicators equal 1 exactly when all three samples lie in the same part, so
P(Iab=Iac=1)=3(31)3=91=P(Iab=1)P(Iac=1).
We can therefore compute both the mean and variance of R:
Bound the probability of the required imbalance. Since R≤6L2, the event R>k/24 implies L>k/12. To bound its probability from below, we split the expectation of R at k/24. The outcomes with R≤k/24 contribute at most k/24, and Cauchy–Schwarz bounds the remaining contribution:
In this section, we extend the sampling bound of Section 2 to Max-r-Cut, showing that sampling O(ε−2log(2r)) vertices achieves an additive εn2-approximation to the Max-r-Cut value. We start by setting up the necessary notation and state our main result in Theorem 5.1. We then give an overview of the proof (in Section 5.1), which is followed by the proof itself: We express the two cut values through a common functional (in Section 5.2), then reduce the comparison of these two cut values to the difference between two linear maximization problems (in Section 5.3), and then bound the expectation of this difference (in Section 5.4).
Let A∈RV×V be a symmetric matrix with zero diagonal and nonnegative edge weights, i.e., Auv≥0 for all u,v∈V. Isolated vertices contribute zero to every cut, so we may discard them and assume d(v)>0 for every v∈V. Fix an integer r≥2. An r-way cut of V is a tuple (S1,…,Sr) of pairwise disjoint subsets whose union is V. For a symmetric matrix B with rows and columns indexed by V, the value of this cut is
1≤j<ℓ≤r∑u∈Sj∑v∈Sℓ∑Buv.
The r-way Max-Cut value MaxCutr(B) is the maximum of this value over all r-way cuts of V.
Draw X1,…,Xk∈V independently with replacement according to p, where k≥1 is an integer and p∈RV is a positive probability vector. Importance sampling allows pv≥λDd(v) for all v∈V, where λ≥1 is a parameter, and uniform sampling uses pv=1/n.
If the same vertex is sampled more than once, its copies remain distinct vertices of the output. The sampled graph has vertex set [k], representing X1,…,Xk. Define its edge weights A and a matrix K∈RV×V by
Let PX∈RV be the empirical distribution of the sample, that is PX(v):=∣{i:Xi=v}∣/k for every v∈V. This matrix K makes it convenient to express and compare the r-way Max-Cut values in the original and sampled graphs, after scaling by a factor of 1/n2. The expressions below differ only in whether they use the sampling distribution p or its empirical distribution PX.
The second identity uses the fact that in the sampled graph, at least one optimal cut keeps all copies of the same vertex together. Lemma 5.4 proves this fact and both identities.
We will use the following quantity to control the sampling error through second moment estimates.
H:=v∈V∑pv(u∈V∑puKuv2)1/2.
A simple calculation (see Lemma 2.10) shows that H≤1 whenever every edge weight Auv lies in [0,1] and the sampling distribution satisfies
pv≥n2d(v),∀v∈V.(5.2)
Theorem 5.1 (Sampling approximates the r-way Max-Cut value). For every positive probability vector p∈RV,
Applying Markov's inequality gives the following high-probability guarantee.
Corollary 5.2 (High-probability bound). Assume 0≤Auv≤1 for every u,v∈V. Then for every positive sampling distribution satisfying (5.2), including uniform and importance sampling with λ=1,
Consequently, to get error probability at most δ∈(0,1), it suffices to take any
k≥δ2ε24608log(2r).(5.5)
The probability bound holds for each fixed r≥2.
Proof. Section 2.5 verifies the bound H≤1 for sampling that satisfies (5.2), and then Markov's inequality implies (5.4). Solving for k gives the sample size bound for given δ. □
A simple calculation shows that, for importance sampling with parameter λ≥1, an extra factor of λ in the sample size suffices, e.g., k≥41472λε−2log(2r) gives error probability at most 1/3.
5.1 Proof overview
The proof follows the same three stages as for Max-Cut: express both optima through a common functional, compare fractional cuts by minimax, and bound the resulting sampling error. The main change is that each vertex's weight is now divided among r parts. We use vector contraction to handle these assignments and Massart's finite-class lemma to bound the maximum over the parts, introducing a factor of log(2r) in the error.
Our first step is to view sampling as a change in vertex weights. Given K and a probability vector q∈RV, we define FK,r(q) as the maximum r-way cut value with respect to K and vertex weights qv, meaning that each edge (u,v) has weight quqvKuv. It will be convenient to allow fractional cuts, where each vertex's weight qv may be split among the r parts, although we show in Section 5.2 that this does not change the optimum value, and in fact
We then compare in Section 5.3 these two values, and more generally FK,r(q) and FK,r(s) for any two probability vectors q,s∈RV. We do this by matching fractional cuts of the two vertex weights q and s. For either t∈{q,s}, a fractional cut is represented by a=(a1,…,ar)∈(RV)r with aj≥0 and ∑jaj=t, and has value 21∑j=ℓ(aj)⊤Kaℓ. We relax the doubled cut value ∑j=ℓ(aj)⊤Kaℓ to ∑j=ℓ(aj)⊤Kcℓ, allowing c∈(RV)r to vary independently of a with cj≥0 and either ∑jcj=q or ∑jcj=s. For fixed c, maximizing over a gives Mt,r(c):=maxa1,…,ar≥0∑j=ℓ(aj)⊤Kcℓ, and our analysis compares Mq,r(c) and Ms,r(c) for the same c. Let ΔK,r(q,s) be their largest absolute difference over a suitable region Cr(q,s) of vectors c, i.e.,
ΔK,r(q,s):=c∈Cr(q,s)max∣Mq,r(c)−Ms,r(c)∣.
A minimax argument converts the comparison of these maxima into a matching of fractional cuts. For each a∈(RV)r with aj≥0 and ∑jaj=q, it produces a matching b∈(RV)r, bj≥0, ∑jbj=s, such that ∑j=ℓ(aj)⊤Kcℓ and ∑j=ℓ(bj)⊤Kcℓ are close for all feasible c at once, meaning that
c∈Cr(q,s)maxj=ℓ∑(aj−bj)⊤Kcℓ≤ΔK,r(q,s).
Using this matching, a simple calculation shows that
∣FK,r(q)−FK,r(s)∣≤ΔK,r(q,s).
Applying this bound with q=p and s=PX reduces the problem to bounding EXΔK,r(p,PX), which we address in Section 5.4. The main difficulty is that both the sampling error for a given c and the feasible region for c depend on the sample X. The maximizing vector can therefore adapt to the sample, so a bound for each c fixed in advance does not directly control ΔK,r(p,PX). Similar difficulties arise in statistical learning when comparing a hypothesis's error on the sample used to choose it with its error under the underlying distribution. We borrow from that domain a standard tool called symmetrization. We draw an independent ghost sample Y1,…,Yk from p, solely for the sake of analysis, and denote its empirical distribution by PY and use it to rewrite ΔK,r(p,PX) as
We enlarge the feasible region for c to one that is invariant under swaps between Xi and Yi, and then draw k independent random signs τ1,…,τk∈{±1}, where +1 leaves Xi,Yi in place, and −1 exchanges them. Crucially, the enlarged region does not change under these exchanges. Writing gc(v):=max1≤j≤r∑ℓ=j(Kcℓ)v, the swaps turn MPX,r(c)−MPY,r(c) into
k1i=1∑kτi(gc(Xi)−gc(Yi)).
This lets us apply Maurer's vector contraction inequality to reduce to a signed sum linear in c. We can therefore remove the maximum over c by bounding each ∑j∣cvj∣ by its worst-case value. A simple second moment calculation then gives the required bound, with Massart's finite-class lemma contributing a factor of log(2r) to control the maximum over the r parts:
EXΔK,r(p,PX)≤482Hklog(2r).
5.2 Reduce both r-way Max-Cut values to one functional
We express the normalized r-way Max-Cut values of the original graph A and the sampled graph A as evaluations of the same functional FK,r(⋅) at p and PX, respectively.
To define FK,r, we first describe fractional cuts. Cuts are usually represented by xvj∈{0,1}, where vertices v with xvj=1 are in part j, and ∑j=1rxvj=1 for every v. Allowing xvj∈[0,1] gives a fractional cut, in which a fraction xvj of vertex v goes to part j, and these fractions still sum to one. With vertex weights qv≥0, the weight of v placed in part j is avj=qvxvj, which we call the weighted fraction of v in that part. For simplicity, we will simply refer to avj as the fraction of v in that part. Thus a fractional cut has avj≥0 and ∑javj=qv, and an ordinary cut has avj∈{0,qv}. The probability vectors p and PX provide the vertex weights for the original and sampled graphs respectively. Using fractional cuts in a vertex-weighted graph lets us express both cut values through the same functional.
Define the feasible fractional cuts by
Zr(q):={a=(a1,…,ar)∈(RV)r:avj≥0,j=1∑ravj=qv for every v∈V}(5.6)
The tuple a=(a1,…,ar) collects the weighted fractions. Here and below, sums over vertices range over V, and part indices j,ℓ range from 1 to r. The contribution between parts j and ℓ is ∑u,vaujKuvavℓ=(aj)⊤Kaℓ. The sum ∑j=ℓ is over ordered pairs of distinct parts, so symmetry of K gives the second equality, with 1/2 removing double counting. Allowing fractional cuts makes the feasible set convex, which is useful for the comparison in Section 5.3.
Lemma 5.3 (The maximum is attained by a cut). For every nonnegative weight vector q∈RV, there exists a maximizer a∈Zr(q) in (5.7) that corresponds to a cut, i.e., avj∈{0,qv} for all v∈V and 1≤j≤r.
Proof. Since Kvv=0, the objective ∑j<ℓ(aj)⊤Kaℓ is affine in each vertex's assignment (av1,…,avr) (when the other assignments are fixed). An affine function on the simplex {z∈Rr:zj≥0,∑j=1rzj=qv} attains its maximum at a vertex, so we can move (av1,…,avr) to a vertex without decreasing the objective. At such a vertex, one coordinate equals qv and the others equal zero. Starting from a maximizer and applying this operation iteratively yields a maximizer that has avj∈{0,qv} for every v,j.
Lemma 5.4 (The two r-way Max-Cut values). With p, PX, and K defined above,
For the second identity, we first show that all copies of a repeatedly sampled vertex can be moved to the same part without decreasing the cut value. Start with an optimal cut for the sampled subgraph (induced on X1,…,Xk).
For an original vertex v, its sampled copies have no edges between them and have the same edge weights to all other sampled vertices. Holding those other vertices fixed, choose a part maximizing the cut contribution of one copy of v. The same choice maximizes the contribution of every copy. If several parts tie, choose any of them arbitrarily. Put all copies in that part and repeat for each original vertex. These moves cannot decrease the cut value, so the final cut is still optimal and keeps all copies of each vertex together.
Such a cut is described by a partition V=S1∪˙⋯∪˙Sr. All copies of vertices in Sj lie in part j. For u∈Sj and v∈Sℓ with j<ℓ, there are kPX(u)kPX(v) crossing pairs of copies. Each pair (i,i′) with Xi=u and Xi′=v contributes to the cut value divided by n2 as follows:
5.3 Compare cut values under two vertex distributions
In this subsection, we bound the difference between FK,r(q) and FK,r(s) for two probability vectors q,s on V. In our intended application, we will use q=p and s=PX.
For a nonnegative vector q and a tuple c∈(RV)r, let Mq,r(c) be the maximum of ∑j=ℓ(xj)⊤Kcℓ over x∈Zr(q), namely
Conversely, every b∈Zr(s) has a matching a∈Zr(q) satisfying the same bound.
Proof. Fix a∈Zr(q). Using Cr(q,s)=−Cr(q,s) and applying Sion's minimax theorem [Sio58] to the function (b,c)↦∑j=ℓ(aj−bj)⊤Kcℓ, which is affine in each variable, on the compact convex sets Zr(s) and Cr(q,s), we obtain
Since a∈Zr(q) and b∈Zr(s), both lie in Cr(q,s), and we can apply (5.14) to get
FK,r(q)−FK,r(s)≤21Δ+21Δ=Δ.
Interchanging q and s gives the same bound for FK,r(s)−FK,r(q), proving (5.13).
5.4 Bound the sampling error
In this subsection we prove that
EXΔK,r(p,PX)≤482Hklog(2r).(5.16)
Together with Lemmas 5.4 and 5.5, this completes the proof of Theorem 5.1. Recall that ΔK,r(p,PX) is the largest absolute difference between the exact and sample averages
over c∈Cr(p,PX). The challenge is that this domain depends on the same sample X used in MPX,r. The proof has two steps, using several tools from statistical learning theory.
Symmetrization. Instead of comparing PX with its expectation p, we compare the empirical distributions PX,PY of two independent samples X,Y. We enlarge the domain of c to a region BX,Y(r).
We use symmetrization and Maurer's vector contraction inequality [Mau16] to reduce the problem to bounding the expected maximum of sums of (Kcj)Xi with random signs (Lemma 5.7).
Second-moment bounds. The signed sums are linear in c, so we bound their maximum over the region one vertex at a time. We bound the maximum by three sums, weighted by p, PX, and PY. We bound each sum's expectation by 22Hlog(2r)/k using the upper L1 Khintchine bound, Massart's finite-class lemma, and Jensen's inequality, obtaining a total of at most 62Hlog(2r)/k (Lemma 5.8).
Combining the two estimates gives (5.16). Lemma 5.5 then bounds the expected normalized r-way Max-Cut error by 482Hlog(2r)/k.
Step 1. Symmetrization
Lemma 5.7 (Reduction to a signed linear maximum). Let Y1,…,Yk be independent draws according to p, independent of X, with sample-frequency vector PY. Let σij∈{±1}, for 1≤i≤k and 0≤j≤r, be independent uniform signs, independent of X,Y, and define
Proof. We begin with the symmetrization step using a ghost sample. For every c∈Cr(p,PX), the independent sample average has mean Mp,r(c), since
EYMPY,r(c)=v∑pvgc(v)=Mp,r(c).
The region BX,Y(r) is convex and contains each of the four sets defining Cr(p,PX), so
Cr(p,PX)⊆BX,Y(r).(5.20)
With X fixed, Cr(p,PX) does not depend on Y, the absolute value of an expectation is at most the expectation of the absolute value and the maximum of expectations is at most the expectation of the maximum (Jensen's inequality). Thus
We next take expectation over X and use pairwise exchanges to express the expected maximum in terms of sums with random signs (Rademacher symmetrization). Let τ1,…,τk∈{±1} be independent uniform signs, independent of X,Y,σ. For each fixed sign vector τ∈{±1}k, set
(Xi,Yi):={(Xi,Yi),(Yi,Xi),τi=1,τi=−1.
Each exchange reverses its pair's contribution, so
gc(Xi)−gc(Yi)=τi(gc(Xi)−gc(Yi)).
The exchanges preserve the joint distribution of the samples. They also preserve PX+PY, and thus BX,Y(r)=BX,Y(r).
Together with the preceding bound, these identities give
The last inequality uses the triangle inequality and symmetry between X and Y.
Finally, ϕ:(z0,z1,…,zr)↦z0−min1≤j≤rzj is 2-Lipschitz with respect to the Euclidean norm and vanishes at 0. For fixed X,Y, write gc(v)=ϕ(fc(v)), where
fc(v):=(ℓ=1∑r(Kcℓ)v,(Kc1)v,…,(Kcr)v).
The region BX,Y(r) is compact and contains zero. Since fc depends linearly on c, the tuples (fc(X1),…,fc(Xk)) also form a compact set containing zero. The absolute-value form of Maurer's vector contraction inequality (Lemma A.3; see [Mau16, Corollary 1]) therefore gives
We have bounded the maximum over all c by three explicit sums. We bound them separately because the weights from PX depend on the signed sums, whereas the weights from PY are independent of them.
Bound the sum weighted by p. Since K is symmetric, we can write H=∑vpvhv, where, for each v∈V,
hv:=(u∑puKvu2)1/2.
For fixed X, the upper L1 Khintchine inequality (Lemma A.2) gives
Eσi∑σi0KvXi≤(i∑KvXi2)1/2.
The triangle inequality and Massart's finite-class lemma (Lemma A.4) therefore give
Bound the sum weighted by PY. We can use the preceding estimate directly for PY, because the sample Y is independent of X and σ. Since EYPY(v)=pv, equation (5.27) gives
We remove the conditioning on Xℓ=u by the law of total expectation. Summing the resulting bounds over ℓ, dividing by k, and using H=∑upuhu, we obtain
Each of the three unnormalized sums has expected value at most 2H2klog(2r). Substituting these bounds into (5.25) and dividing by k gives 62Hlog(2r)/k, proving Lemma 5.8.
Putting it together
Corollary 5.9 (Expected error in FK,r). Let X1,…,Xk be independent draws from p, and let PX be their empirical distribution. Then
EX∣FK,r(PX)−FK,r(p)∣≤482Hklog(2r).(5.30)
Proof. Taking expectations in Lemma 5.5 with q=p and s=PX, and using Lemmas 5.7 and 5.8, gives
Proof of Theorem 5.1. Lemma 5.4 identifies the normalized cut-value error with ∣FK,r(PX)−FK,r(p)∣. Applying Corollary 5.9 proves the theorem.
A Technical lemmas
A.1 Ledoux-Talagrand contraction
We use the following standard form of the Ledoux–Talagrand contraction in Lemma 2.7; see [LT91].
Lemma A.1 (Absolute-value Rademacher contraction). Let T⊆Rk be nonempty and compact, and let g:R→R be 1-Lipschitz with g(0)=0. If σ1,…,σk are independent uniform signs, then
We use the following form of the upper L1 Khintchine inequality in Lemma 2.8; see [Ver18].
Lemma A.2 (Upper L1 Khintchine inequality). Let k≥1 be an integer, let a1,…,ak∈R, and let σ1,…,σk∈{±1} be independent uniform signs. Then
Eσi=1∑kσiai≤(i=1∑kai2)1/2.
Proof. This L1 bound follows immediately from E∣Z∣≤(EZ2)1/2, applied to Z=∑iσiai, since independence and zero means give EZ2=∑iai2.
A.3 Vector contraction
We use the following absolute-value consequence of Maurer's vector contraction inequality in Lemma 5.7; see [Mau16, Corollary 1].
Lemma A.3 (Absolute-value consequence of Maurer's inequality). Let T⊆(Rm)k be compact with 0∈T, and write t=(t1,…,tk), where ti=(ti1,…,tim)∈Rm. Let ϕ:Rm→R be L0-Lipschitz in Euclidean norm, with ϕ(0)=0. If τi and σiℓ, for 1≤i≤k and 1≤ℓ≤m, are independent uniform signs, then
For each sign vector τ, the maximum of the signed sum and the maximum of its negative are both nonnegative. Indeed, 0∈T and ϕ(0)=0, so choosing t=0 gives zero for both sums. Their sum is therefore at least the maximum absolute value. Since τ and −τ have the same distribution, the two maxima have equal expectations, so
To apply Lemma A.3 to the function gc, recall that gc(v)=ϕ(fc(v)), where
fc(v)=(ℓ=1∑r(Kcℓ)v,(Kc1)v,…,(Kcr)v).
Coordinate 0 stores the sum of all part contributions, while coordinate j stores the contribution (Kcj)v of part j. Keeping the sum as a separate coordinate gives the Lipschitz constant 2 above, independent of r.
Apply the lemma with m=r+1, indexing the coordinates and their independent signs by 0,…,r. For each sample index i, its linear signed sum is
Thus each part contribution receives the sign σi0 from the sum coordinate and the sign σij from its own coordinate. Substituting this identity and L0=2 into Lemma A.3 gives (5.22), with factor 22L0=4.
A.4 Massart's finite-class lemma
We use the following form of Massart's finite-class lemma in Lemma 5.8; see [MRT18, Theorem 3.7].
Lemma A.4 (Absolute-value consequence of Massart's lemma). Let m,r≥1 be integers, let aij∈R, and let σij∈{±1}, for 1≤i≤m and 1≤j≤r, be independent uniform signs. Then
Proof. Set T:={±bj:1≤j≤r}, where bj∈Rmr has coordinates indexed by pairs (i,ℓ), with bijj=aij and biℓj=0 for ℓ=j. Applying [MRT18, Theorem 3.7] to T, after canceling its factor 1/(mr), gives
We used ChatGPT as a writing assistant to improve the writing and clarity of the paper, and Perplexity to help identify relevant literature we might have missed. The results and proof ideas were developed by the authors, who checked all AI-assisted content and are responsible for the paper's accuracy and originality.
References
[AE02] Gunnar Andersson and Lars Engebretsen. Property testers for dense constraint satisfaction programs on finite domains. Random Structures & Algorithms, 21(1):14–32, 2002. doi:10.1002/rsa.10041.
[AFKK03] Noga Alon, W. Fernandez de la Vega, Ravi Kannan, and Marek Karpinski. Random sampling and approximation of MAX-CSPs. Journal of Computer and System Sciences, 67(2):212–243, 2003. Also as ECCC Technical Report TR01-100. doi:10.1016/S0022-0000(03)00008-4.
[AKK99] Sanjeev Arora, David Karger, and Marek Karpinski. Polynomial time approximation schemes for dense instances of NP-hard problems. Journal of Computer and System Sciences, 58(1):193-210, 1999. doi:10.1006/jcss.1998.1605.
[BDV18] Aditya Bhaskara, Samira Daruki, and Suresh Venkatasubramanian. Sublinear algorithms for MAXCUT and correlation clustering. In 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018), volume 107 of Leibniz International Proceedings in Informatics, pages 16:1–16:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.ICALP.2018.16.
[CJK23] Xiaoyu Chen, Shaofeng H.-C. Jiang, and Robert Krauthgamer. Streaming Euclidean Max-Cut: Dimension vs data reduction. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 170–182, 2023. doi:10.1145/3564246.3585170.
[Fer96] W. Fernandez de la Vega. MAX-CUT has a randomized approximation scheme in dense graphs. Random Structures & Algorithms, 8(3):187–198, 1996. doi:10.1002/(SICI)1098-2418(199605)8:3<187::AID-RSA3>3.0.CO;2-U.
[FK99] Alan Frieze and Ravi Kannan. Quick approximation to matrices and applications. Combinatorica, 19(2):175–220, 1999. doi:10.1007/s004930050052.
[FK01] W. Fernandez de la Vega and Claire Kenyon. A randomized approximation scheme for metric MAX-CUT. Journal of Computer and System Sciences, 63(4):531–541, 2001. doi:10.1006/jcss.2001.1772.
[FLP16] Dimitris Fotakis, Michael Lampis, and Vangelis Th. Paschos. Sub-exponential approximation schemes for CSPs: From dense to almost sparse. In 33rd Symposium on Theoretical Aspects of Computer Science (STACS 2016), volume 47 of Leibniz International Proceedings in Informatics, pages 37:1–37:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.STACS.2016.37.
[FS05] Gereon Frahling and Christian Sohler. Coresets in dynamic geometric data streams. In Proceedings of the 37th Annual ACM Symposium on Theory of Computing (STOC), pages 209–217, 2005. doi:10.1145/1060590.1060622.
[GGR98] Oded Goldreich, Shafi Goldwasser, and Dana Ron. Property testing and its connection to learning and approximation. Journal of the ACM, 45(4):653–750, 1998. doi:10.1145/285055.285060.
[GW95] Michel X. Goemans and David P. Williamson. Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. Journal of the ACM, 42(6):1115–1145, 1995. doi:10.1145/227683.227684.
[Hås01] Johan Håstad. Some optimal inapproximability results. Journal of the ACM, 48(4):798–859, 2001. doi:10.1145/502090.502098.
[Kar72] Richard M. Karp. Reducibility among combinatorial problems. In Complexity of Computer Computations, pages 85–103. Plenum Press, 1972. doi:10.1007/978-1-4684-2001-2_9.
[KKMO07] Subhash Khot, Guy Kindler, Elchanan Mossel, and Ryan O'Donnell. Optimal inapproximability results for MAX-CUT and other 2-variable CSPs? SIAM Journal on Computing, 37(1):319–357, 2007. doi:10.1137/S0097539705447372.
[KM16] Marek Karpinski and Roland Markó. Limits of CSP problems and efficient parameter testing. arXiv:1406.3514, version 2 (4 August 2016), 2016. URL: https://arxiv.org/abs/1406.3514v2.
[LSS09] Christiane Lammersen, Anastasios Sidiropoulos, and Christian Sohler. Streaming embeddings with slack. In Algorithms and Data Structures, 11th International Symposium (WADS), volume 5664 of Lecture Notes in Computer Science, pages 483–494. Springer, 2009. doi:10.1007/978-3-642-03367-4_42.
[LT91] Michel Ledoux and Michel Talagrand. Probability in Banach Spaces: Isoperimetry and Processes. Springer, 1991. doi:10.1007/978-3-642-20212-4.
[Mau16] Andreas Maurer. A vector-contraction inequality for Rademacher complexities. In Algorithmic Learning Theory (ALT 2016), pages 3–17. Springer, 2016. doi:10.1007/978-3-319-46379-7_1.
[MP04] Shahar Mendelson and Petra Philips. On the importance of small coordinate projections. Journal of Machine Learning Research, 5:219–238, 2004. URL: https://jmlr.org/papers/v5/mendelson04a.html.
[MRT18] Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of Machine Learning. MIT Press, second edition, 2018. URL: https://cs.nyu.edu/~mohri/mlbook/.
[MS08] Claire Mathieu and Warren Schudy. Yet another algorithm for dense Max Cut: Go greedy. In Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 176–182, 2008. URL: https://dl.acm.org/citation.cfm?id=1347082.1347102.
[MW26] Nicolas Menand and Erik Waingarten. Streaming and massively parallel algorithms for Euclidean Max-Cut. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3101–3161, 2026. doi:10.1137/1.9781611978971.115.
[PY91] Christos H. Papadimitriou and Mihalis Yannakakis. Optimization, approximation, and complexity classes. Journal of Computer and System Sciences, 43(3):425–440, 1991. doi:10.1016/0022-0000(91)90023-X.
[RV07] Mark Rudelson and Roman Vershynin. Sampling from large matrices: An approach through geometric functional analysis. Journal of the ACM, 54(4), 2007. Article 21, pages 1–19. doi:10.1145/1255443.1255449.
[Ver18] Roman Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018. doi:10.1017/9781108231596.
[Yar14] Grigory Yaroslavtsev. Going for speed: Sublinear algorithms for dense r-CSPs, 2014. arXiv:1407.7887. URL: https://arxiv.org/abs/1407.7887.
[YZ14] Yuichi Yoshida and Yuan Zhou. Approximation schemes via Sherali–Adams hierarchy for dense constraint satisfaction problems and assignment problems. In Proceedings of the 5th Conference on Innovations in Theoretical Computer Science (ITCS), pages 423–438. Association for Computing Machinery, 2014. doi:10.1145/2554797.2554836.