alphaFeedback

WorksComputer Science

Optimal Sample Complexity for Max-Cut

AI contributions
  • ChatGPT
  • Perplexity
View details

Abstract

We determine the optimal sample size for constructing value coresets for Max-Cut via uniform vertex sampling. That is, sampling O(ε−2)O(\varepsilon^{-2}) vertices uniformly at random in nn-vertex graphs with edge weights in [0,1][0,1] yields a reweighted subgraph whose Max-Cut value is an additive εn2\varepsilon n^2-approximation to that of the original graph, with constant success probability. This improves the previously known O(ε−4)O(\varepsilon^{-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)O(\varepsilon^{-2}) vertices yields (1±ε)(1\pm\varepsilon)-approximation to the Max-Cut value, and to Max-Cut in graphs with edge weights in [0,1][0,1] and average weighted degree dˉ\bar d, achieving the same (1±ε)(1\pm\varepsilon)-approximation by either uniform or importance sampling of O(ε−2n/dˉ)O(\varepsilon^{-2}n/\bar d) vertices. We additionally show how to use this coreset to recover a cut of expected value at least OPT−εn2OPT-\varepsilon n^2, by making O(nε−2)O(n\varepsilon^{-2}) additional edge-weight queries. Finally, our result extends to Max-rr-Cut, giving an additive εn2\varepsilon n^2-approximation using a sample of O(ε−2log⁡(2r))O(\varepsilon^{-2}\log(2r)) vertices.

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 GG with vertex set VV and nonnegative edge weights AuvA_{uv}, let

OPT⁡=MaxCut⁡(G):=max⁡S⊆V∑u∈S,v∉SAuv.\operatorname{OPT}=\operatorname{MaxCut}(G):=\max_{S\subseteq V}\sum_{u\in S,v\notin S} A_{uv}.

By convention, Auv=0A_{uv}=0 when (u,v)(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 [14, 24], so a polynomial-time approximation scheme would imply P = NP. For general graphs, a common goal is therefore to design an α\alpha-approximation algorithm for 0<α≤10<\alpha\leq1, i.e., one that returns a cut of value at least αOPT⁡\alpha\operatorname{OPT}. The algorithm of Goemans and Williamson [12] achieves approximation ratio ≈0.87856\approx0.87856 in expectation. On the hardness side, Håstad [13] proved that achieving a ratio of 16/17+γ16/17+\gamma is NP-hard for every fixed 0<γ<1/170<\gamma<1/17. The ratio achieved by Goemans and Williamson is optimal assuming the Unique Games Conjecture [15].

Dense and metric instances, however, admit (1−ε)(1-\varepsilon)-approximations for every 0<ε<10 < \varepsilon< 1 through additive approximation. For graphs with weights Auv∈[0,1]A_{uv} \in[0,1], an additive approximation means finding a cut of value at least OPT−εn2\mathrm{OPT} - \varepsilon n^2, where throughout n:=∣V∣n := |V|. We call a graph dense if its total edge weight W:=12∑u,v∈VAuvW := \frac{1}{2}\sum_{u,v\in V} A_{uv} satisfies W≥ρn2W \ge\rho n^2 for a fixed ρ>0\rho> 0. It is well known that OPT≥W/2≥ρn2/2\mathrm{OPT} \ge W/2 \ge\rho n^2/2. Hence, additive approximation of ερn2/2\varepsilon\rho n^2/2 gives a cut of value at least (1−ε)OPT(1-\varepsilon)\mathrm{OPT}, i.e., achieves (1−ε)(1-\varepsilon)-approximation. The first approximation schemes for dense unweighted Max-Cut that run in polynomial time were given by Fernandez de la Vega [6] and independently by Arora, Karger, and Karpinski [3]. The same additive viewpoint applies also to metric Max-Cut, where the weights satisfy the triangle inequality. Fernandez de la Vega and Kenyon [8] reduce these instances to dense weighted graphs, such that accurate additive approximation on the resulting dense graph gives a (1−ε)(1-\varepsilon)-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]A_{uv} \in[0,1], we seek a randomized estimate OPT^\widehat{\mathrm{OPT}} that satisfies

∣OPT^−OPT∣≤εn2,\left|\widehat{\mathrm{OPT}}-\mathrm{OPT}\right| \le\varepsilon n^2,

where throughout, randomized guarantees hold with probability at least 2/32/3, unless mentioned otherwise.

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 ε\varepsilon [2, 25]. 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/ε)\operatorname{poly}(1/\varepsilon), independent of nn. 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)\widetilde{O}(\varepsilon^{-4}) sample bound.3 Alon, Fernandez de la Vega, Kannan, and Karpinski [2] use matrix decompositions and linear programming. Rudelson and Vershynin [25] use tools from geometric functional analysis, whereas Mathieu and Schudy [22] use a greedy construction for unweighted graphs. These last two analyses remove the logarithmic factors, but retain the ε−4\varepsilon^{-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±ε)(1\pm\varepsilon)-approximate value coreset using O(ε−4)O(\varepsilon^{-4}) vertices [5].

Currently there is a gap between this O(ε−4)O(\varepsilon^{-4}) upper bound and the Ω(ε−2)\Omega(\varepsilon^{-2}) lower bound for uniform sampling proved by Alon, Fernandez de la Vega, Kannan, and Karpinski [2 technical report version].

These results raise a few questions about the size of value coresets: For graphs with weights in [0,1][0,1], what is the optimal sample size for uniform sampling to achieve additive approximation εn2\varepsilon n^2? For metric Max-Cut, can the O(ε−4)O(\varepsilon^{-4}) sample bound for importance sampling be improved? In either setting, can a different sampling distribution reduce the sample size?

Our results

Our main contribution is to close the sampling gap, by showing that sampling O(ε−2)O(\varepsilon^{-2}) uniformly random vertices yields a value coreset for Max-Cut in a graph with weights in [0,1][0,1]. This improves the previous O(ε−4)O(\varepsilon^{-4}) upper bound [25] and matches the known lower bound [2].

Theorem 1.1 (Uniform sampling for Max-Cut, follows from Theorem 2.1). Consider an nn-vertex graph with edge weights Auv∈[0,1]A_{uv} \in[0,1]. Sample kk vertices X1,…,XkX_1,\ldots,X_k uniformly with replacement,4 and let the sampled subgraph on vertex set [k][k] have edge weights A^ij=(n/k)2AXiXj\widehat{A}_{ij} = (n/k)^2 A_{X_iX_j}. Then

E∣OPT^−OPT∣=O(n2k),\mathbb{E}\lvert\widehat{\mathrm{OPT}}-\mathrm{OPT}\rvert= O\left(\frac{n^2}{\sqrt{k}}\right),

where OPT:=MaxCut⁡(A)\mathrm{OPT} := \operatorname{MaxCut}(A), OPT^:=MaxCut⁡(A^)\widehat{\mathrm{OPT}} := \operatorname{MaxCut}(\widehat{A}).

Our analysis applies more generally to independent draws from any sampling distribution p∈RVp \in\mathbb{R}^{V} satisfying pv≥d(v)/n2p_v \ge d(v)/n^2, where d(v)d(v) is the weighted degree of vv; this includes also importance sampling. The same bound on expected error holds after reweighting the sampled edges as

A^ij=AXiXjk2pXipXj.\widehat{A}_{ij} = \frac{A_{X_iX_j}}{k^2p_{X_i}p_{X_j}}.

Theorem 1.2 (General sampling distributions, follows from Corollary 2.2). Consider an nn-vertex undirected graph with edge weights Auv∈[0,1]A_{uv} \in[0,1], and let p∈RVp \in\mathbb{R}^{V} be a sampling distribution satisfying pv≥d(v)/n2p_v \ge d(v)/n^2 for every vertex vv, where d(v):=∑uAvud(v) := \sum_u A_{vu}. Then for every ε,δ∈(0,1)\varepsilon,\delta\in(0,1) and a suitable absolute constant C>0C > 0, a reweighted sample of k≥Cε−2δ−2k \ge C\varepsilon^{-2}\delta^{-2} vertices satisfies

P(∣OPT^−OPT∣≤εn2)≥1−δ.\mathbb{P}\left(\left\lvert\widehat{\mathrm{OPT}}-\mathrm{OPT}\right\rvert\le\varepsilon n^2\right) \ge1-\delta.

We also prove a matching lower bound of Ω(ε−2)\Omega(\varepsilon^{-2}) vertices for importance sampling, even for unweighted graphs (§ 5). Together with the known lower bound for uniform sampling [2], this establishes that the optimal sample complexity is Θ(ε−2)\Theta(\varepsilon^{-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][0,1] and average weighted degree dˉ\bar{d}, either uniform or importance sampling of O(ε−2n/dˉ)O(\varepsilon^{-2}n/\bar{d}) vertices gives a (1±ε)(1\pm\varepsilon)-approximate value coreset (see Corollary 2.11). This improves over the previous O~(ε−4n/dˉ)\widetilde{O}(\varepsilon^{-4}n/\bar{d}) bound of Bhaskara, Daruki, and Venkatasubramanian [4], by matching their n/dˉn/\bar{d} dependence, improving their ε−4\varepsilon^{-4} to ε−2\varepsilon^{-2}, and removing their log⁡n\log n factor (although they get higher success probability 1−1/n21-1/n^2).

The second consequence is that in metric Max-Cut instances, importance sampling of O(ε−2)O(\varepsilon^{-2}) vertices gives a (1±ε)(1\pm\varepsilon)-approximate value coreset (see Corollary 2.12). Our direct proof avoids the roundabout analysis through a reduction to dense graphs used in earlier proofs [8, 5].

The value coreset also supports cut recovery, i.e., finding a nearly-optimal cut of the original graph GG (see § 4). For weights in [0,1][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 GG define a linear program (LP). An optimal solution of it associates each vertex of GG 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\mathrm{OPT}-\varepsilon n^2.

The LP has n+kn+k variables and 2k2k constraints, where k=O(ε−2)k=O(\varepsilon^{-2}) is the sample size, and constructing it requires O(nε−2)O(n\varepsilon^{-2}) additional queries to the matrix of edge weights.

Earlier work on cut recovery for unweighted graphs by Goldreich, Goldwasser, and Ron [11] constructs a cut achieving additive εn2\varepsilon n^2-approximation using O(ε−7log⁡2(2/ε)+nε−2log⁡(2/ε))O(\varepsilon^{-7}\log^2(2/\varepsilon)+n\varepsilon^{-2}\log(2/\varepsilon)) matrix queries. Yaroslavtsev [28] later obtained a cut achieving an additive εn2\varepsilon n^2-approximation in total running time O(nε−2)+2O(ε−2)O(n\varepsilon^{-2})+2^{O(\varepsilon^{-2})}. Neither algorithm uses linear programming, although other algorithms for finding (1−ε)(1-\varepsilon)-approximate cuts do [3, 9, 29].

Finally, our result extends to Max-rr-Cut, which asks to partition the vertices into at most rr 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][0,1] and integer r≥2r\ge2, either sampling method achieves additive εn2\varepsilon n^2-approximation using O(ε−2log⁡(2r))O(\varepsilon^{-2}\log(2r)) sampled vertices. In comparison with the O~(r8ε−4)\widetilde{O}(r^8\varepsilon^{-4}) bound implied by Karpinski and Markó [16], we improve the dependence on both rr and the accuracy parameter ε\varepsilon.

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 § 2 expresses the (normalized) weight of cuts in the graph as a quadratic form in a vector p∈RVp\in\mathbb{R}^{V} 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 VV), 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-rr-Cut in § 6. 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−1r-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.

Related work

Estimating the optimum. Goldreich, Goldwasser, and Ron [11] gave the first sublinear-time algorithm achieving an additive εn2\varepsilon n^2-approximation for unweighted Max-Cut using O(ε−7log⁡2(2/ε))O(\varepsilon^{-7}\log^2(2/\varepsilon)) 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)\widetilde{O}(\varepsilon^{-5}).

Alon, Fernandez de la Vega, Kannan, and Karpinski [2] improved the sample bound, showing that the rescaled Max-Cut value of the induced subgraph on O~(ε−4)\widetilde{O}(\varepsilon^{-4}) uniformly sampled vertices gives an additive εn2\varepsilon n^2-approximation. Their analysis combines matrix decomposition into a small number of cut matrices, due to Frieze and Kannan [7], with linear programming. Rudelson and Vershynin [25] removed the logarithmic factor using tools from geometric functional analysis, showing that O(ε−4)O(\varepsilon^{-4}) sampled vertices suffice. Mathieu and Schudy [22] obtain the same sample bound for unweighted graphs by analyzing a greedy algorithm.

References

  1. [1]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.DOI
  2. [2]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.DOI
  3. [3]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.DOI
  4. [4]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.DOI
  5. [5]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.DOI
  6. [6]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.doi.org/10.1002/(sici)1098-2418(199605)8:3<187::aid-rsa3>3.0.co;2-u
  7. [7]Alan Frieze and Ravi Kannan. Quick approximation to matrices and applications. Combinatorica, 19(2):175–220, 1999. doi:10.1007/s004930050052.DOI
  8. [8]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.DOI
  9. [9]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.DOI
  10. [10]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.DOI
  11. [11]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.DOI
  12. [12]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.DOI
  13. [13]Johan Håstad. Some optimal inapproximability results. Journal of the ACM, 48(4):798–859, 2001. doi:10.1145/502090.502098.
  14. [14]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.DOI
  15. [15]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.DOI
  16. [16]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.
  17. [17]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.DOI
  18. [18]Michel Ledoux and Michel Talagrand. Probability in Banach Spaces: Isoperimetry and Processes. Springer, 1991. doi:10.1007/978-3-642-20212-4.DOI
  19. [19]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.DOI
  20. [20]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.
  21. [21]Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of Machine Learning. MIT Press, second edition, 2018. URL: https://cs.nyu.edu/~mohri/mlbook/.DOI
  22. [22]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.
  23. [23]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.DOI
  24. [24]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.DOI
  25. [25]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.DOI
  26. [26]Maurice Sion. On general minimax theorems. Pacific Journal of Mathematics, 8(1):171–176, 1958. URL: https://msp.org/pjm/1958/8-1/p14.xhtml.DOI
  27. [27]Roman Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018. doi:10.1017/9781108231596.DOI
  28. [28]Grigory Yaroslavtsev. Going for speed: Sublinear algorithms for dense r-CSPs, 2014. arXiv:1407.7887. URL: https://arxiv.org/abs/1407.7887.
  29. [29]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.DOI

Paper details

vlnc:W_s7efk9cd
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 9

downloads · 3

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

ChatGPT, Perplexity · View statement →

Looking for related papers…
Contents