How Many Darts to Hit a Maximum?

The sample-complexity theory of randomized low-rank rounding — a rounding margin, a spherical cap, and a variance ratio, none of which grow with the graph
Ria Stevens, Fangshuo Liao, Barbara Su, Thanasis Hadjidimoulas, Jianqiang Li, Anastasios Kyrillidis — OptimaLab
Department of Computer Science, Rice University
July 2026

1. The problem, and the wall

This series is about one optimization problem. Take a matrix \(\mathbf{Q} \in \mathbb{C}^{n\times n}\) (Hermitian, positive semidefinite) and maximize the quadratic form \[ \max_{\mathbf{z}\in\mathcal{A}_K^n} \mathbf{z}^\dagger \mathbf{Q} \mathbf{z}, \qquad \mathcal{A}_K = \{1, \omega, \omega^2, \dots, \omega^{K-1}\}, \omega = e^{2\pi \imath /K}, \] where every coordinate of \(\mathbf{z}\) must be one of the \(K\)-th roots of unity. For \(K=3\) this encodes Max-3-Cut: color the \(n\) vertices of a graph with 3 colors so as to cut as many edges as possible. In Blog 1 and Blog 2 we exploited the structural fact that when \(\mathbf{Q} = \mathbf{V}\mathbf{V}^\dagger\) has rank \(r\), the problem stops being a search over \(K^n\) colorings: the global maximizer provably lives in a candidate set of size \(O(rn^{2r-1})\), enumerable by walking the cells of a hyperplane arrangement. Exact, deterministic, embarrassingly parallel.

But polynomial is not the same as cheap. At rank \(r=2\) the candidate set is \(O(n^3)\): for a million-node graph that is \(10^{18}\) candidates — enumeration is dead on arrival, even with 15 GPUs. Meanwhile Blog 3 found something suspicious in experiments: sampling a few random candidates got within a whisker of the exhaustive optimum, and the number of samples needed did not budge as \(n\) grew.

That empirical mystery deserved a theory. This post is the theory: three theorems that explain why throwing darts works, and exactly how many darts you need.

The randomized algorithm is almost embarrassing to state. The candidate set of the exact algorithm is indexed by directions on a sphere: every unit vector \(\mathbf{c} \in \mathbb{C}^r\) gets rounded into a coloring \(\mathbf{z}(\mathbf{c})\) — coordinate \(i\) receives the root of unity nearest in phase to \(\langle \mathbf{v}_i, \mathbf{c}\rangle\) (with \(\mathbf{v}_i\) the \(i\)-th row of \(\mathbf{V}\)). So instead of enumerating all the cells of the arrangement:

The entire analysis question: how much probability mass do the good cells carry? If near-optimal cells occupy a decent fraction of the sphere, few darts suffice. If they shrink as \(n\) grows, sampling is doomed at scale. No off-the-shelf bound answers this — the cells are defined by the data. That is what the paper proves, and the answer is: the mass of the good region is controlled by quantities that do not involve \(n\) at all.

🎯 The whole story at rank 1: rotate, round, score
φ = 0.60
f(φ)/OPT = — gold fraction = — darts: —
Left: at rank 1 a "direction" is a single phase \(\varphi\) on a circle. Each dot is one coordinate of the problem (a phasor at angle \(\theta_i + \varphi\)); its color is the root of unity it rounds to (background wedges = the \(K=3\) rounding sectors, dashed rays = decision boundaries). Dragging \(\varphi\) rotates all phasors together; the coloring only changes when some phasor crosses a boundary. Right: the objective \(f(\varphi)\) is therefore a staircase: constant on each of the \(nK\) cells, jumping at boundaries. Gold cells achieve the optimum — and there are always \(K\) copies of them, because relabeling the colors cyclically shifts \(\varphi\) by \(2\pi/K\) without changing the cut. A uniform dart hits gold with probability exactly the gold fraction — which is the margin \(\eta\) of Theorem 1. Throw the darts and check.

2. Rank one: the margin theorem

Start where the geometry is a circle. At rank 1, \(f(\varphi)\) is a staircase over \([0, 2\pi)\) (you just played with it above). The dart hits the exact optimum whenever it lands in an optimal cell. So the only question is: how wide are the optimal cells?

The paper's answer introduces a single instance parameter. At an optimal direction \(\varphi^\star\), look at how far every phasor sits from its nearest decision boundary; the rounding margin \(\eta \in (0,1]\) is that closest distance, normalized so that \(\eta = 1\) means "every phasor is dead-center in its sector." It plays exactly the role a condition number plays in numerical analysis: it is not an assumption, it is a name for the difficulty of your instance. Well-separated optimum → big margin → wide gold cells. Optimum that barely wins → thin margin → you'll need more darts.

Theorem 1 — exact recovery at rank 1

Let \(\mathbf{Q}_1 = \mathbf{V}\mathbf{V}^\dagger\) be rank-1 PSD, and draw \(\varphi \sim \mathrm{Unif}[0, 2\pi)\). Under general position, with \(\eta\) the rounding margin of the optimum: \[ \Pr\big[ f(\varphi) = \mathrm{OPT}_1 \big] \geq \eta . \] Consequently \(S \geq \log(1/\delta)/\eta\) i.i.d. draws recover the exact rank-1 optimum with probability at least \(1 - \delta\).

Why it's true, in four moves

(1) \(f\) is piecewise constant with \(nK\) cells — so "hit the optimum" means "land in an optimal cell." (2) A hidden symmetry multiplies your target: shifting \(\varphi\) by \(2\pi/K\) increments every coordinate's root by one — a global relabel of the colors — which leaves \(\mathbf{z}^\dagger\mathbf{Q}\mathbf{z}\) unchanged. So the optimal cell has \(K\) rotated copies, all optimal, all disjoint. (3) The margin \(\eta\) forces each copy to have width at least \(2\pi\eta/K\): the cell around \(\varphi^\star\) extends until the first phasor hits a boundary, and every phasor is at least \(\eta \pi/K\) away on each side. (4) Add up: \(K\) disjoint arcs, each of width \(\geq 2\pi\eta/K\), on a circle of circumference \(2\pi\) — total mass \(\geq \eta\).

3. Rank \(r\): a cap on the sphere

At rank \(r \geq 2\) the dartboard is the complex unit sphere \(\mathbb{S}_{\mathbb{C}}^{r}\) (real dimension \(2r\)), the cells are patches cut by \(O(n)\) hyperplanes, and there is no hope of tracking individual cells. The paper takes a different route, and this is where the classical tools come out. The result first:

Theorem 2 — the Beta tail (no assumptions)

Let \(K \geq 2\), \(r \geq 2\), \(\mathbf{V}\) of full column rank. For any \(\varepsilon \in (0,1)\), a single uniform draw \(\mathbf{c} \sim \mathrm{Unif}(\mathbb{S}_{\mathbb{C}}^{r})\) satisfies \[ \Pr\Big[ f(\mathbf{c}) \geq \cos^2(\pi/K)(1-\varepsilon) \mathrm{OPT}_r \Big] \geq \varepsilon^{r-1}, \] and \(S \geq \log(1/\delta)/\varepsilon^{r-1}\) draws reach that threshold with probability \(\geq 1-\delta\).

Read the statement twice, because two things about it are remarkable. n appears nowhere — not in the success probability, not in the sample count. The graph can have a thousand nodes or a million; the dart budget is the same. And it holds unconditionally: no incoherence, no eigengap, no randomness of the instance — the probability is only over your own darts. The price is the factor \(\cos^2(\pi/K)\) (\(=1/4\) at \(K=3\)) and the exponent \(r-1\), which makes the bound sharpest at small rank — exactly the regime the whole series lives in.

The proof is a three-step pincer. It never looks at cells at all; it reduces everything to a single scalar random variable — the alignment between your dart and one special direction.

Step 1 — Rounding never loses more than a cosine

When coordinate \(i\) rounds to the nearest root of unity, the phase error is at most \(\pi/K\) (half a sector). Summing over coordinates, the rounded coloring retains a \(\cos(\pi/K)\) fraction of the "analog" signal \(N(\mathbf{c}) := \|\mathbf{V}\mathbf{c}\|_1\): \[ f(\mathbf{c}) \geq \cos^2(\pi/K) N(\mathbf{c})^2 . \] This is deterministic — true for every dart. It converts a question about the discrete \(f\) into a question about the continuous, convex \(N\).

Step 2 — Hahn–Banach builds the ruler

\(N\) is a norm-like function on \(\mathbb{C}^r\); let \(M = \max_{\|\mathbf{c}\|_2 = 1} N(\mathbf{c})\) be its peak on the sphere, achieved at \(\mathbf{c}^\star\). Two classical facts sandwich everything:

the "analog" ball N(c) ≤ M c★ (the peak) a |a†c| ≤ N(c) everywhere, = M at the touch point a linear ruler that never over-measures the signal
The Hahn–Banach move. The convex body is the region where the analog signal \(N\) is at most its peak \(M\); the pink line is the supporting hyperplane at the maximizer \(\mathbf{c}^\star\). Its normal \(\mathbf{a}\) defines a linear lower bound on \(N\) that is tight at the top — replacing an awkward maximum of \(n\) absolute values by a single inner product.

Step 3 — The alignment is a Beta variable, and caps have exact mass

Now everything hinges on the scalar \(X = |\mathbf{u}^\dagger \mathbf{c}|^2\), the squared alignment between your uniform dart \(\mathbf{c}\) and the fixed direction \(\mathbf{u} = \mathbf{a}/\|\mathbf{a}\|_2\). On the complex \(r\)-sphere this has a beautiful exact law: \[ X \sim \mathrm{Beta}(1, r-1) \qquad\Longrightarrow\qquad \Pr[X \geq 1-\varepsilon] = \varepsilon^{r-1} . \] No inequality, no hidden constant — the probability that a random direction lands in the \((1-\varepsilon)\)-alignment cap is exactly \(\varepsilon^{r-1}\). On that event, chain the three facts: \[ f(\mathbf{c}) \geq \cos^2(\pi/K) N(\mathbf{c})^2 \geq \cos^2(\pi/K)|\mathbf{a}^\dagger\mathbf{c}|^2 \geq \cos^2(\pi/K)(1-\varepsilon)M^2 \geq \cos^2(\pi/K)(1-\varepsilon)\mathrm{OPT}_r . \blacksquare \]

Tool #1 — The Hahn–Banach support functional

What it does: replaces a complicated convex function (here \(N(\mathbf{c}) = \sum_i |\langle \mathbf{v}_i, \mathbf{c}\rangle|\), a sum of \(n\) moduli) by a single linear functional that never exceeds it and is exact at the maximizer. Why you care: linear functionals of uniform sphere vectors have known laws; sums of \(n\) moduli do not. One theorem deletes the \(n\)-body problem. It is the same move that powers dual certificates in compressed sensing.

Tool #2 — Beta laws on the complex sphere

What it does: for \(\mathbf{c}\) uniform on \(\mathbb{S}_\mathbb{C}^{r}\) and any fixed unit \(\mathbf{u}\), the alignment \(|\mathbf{u}^\dagger\mathbf{c}|^2\) is exactly \(\mathrm{Beta}(1, r-1)\) — so cap probabilities are polynomials, not integrals. The subtlety worth remembering: the real sphere gives \(\mathrm{Beta}(\tfrac12, \tfrac{2r-1}{2})\) instead; working over \(\mathbb{C}\) is what makes the tail a clean \(\varepsilon^{r-1}\). The exponent \(r-1\) is the honest price of dimension: caps of fixed relative size shrink exponentially in \(r\). Small rank isn't a limitation of the analysis — it's where the geometry wants you.

🧮 The dart calculator: ε, r, δ — and no n
r = 2 ε = 0.30
Left: the alignment cap on the sphere — the set of darts \((1-\varepsilon)\)-aligned with the Hahn–Banach direction; its exact measure is \(\varepsilon^{r-1}\). Right: success probability of best-of-\(S\) sampling, \(1 - (1-\varepsilon^{r-1})^S\); the dashed line marks the theorem's budget \(S = \lceil \log(1/\delta)/\varepsilon^{r-1} \rceil\). Play with the sliders: the budget moves with \(\varepsilon\) and explodes with \(r\) — but no slider for \(n\) exists, because \(n\) does not enter. That is the theorem.

4. Paley–Zygmund: a polynomial-in-\(r\) route

Theorem 2's \(\varepsilon^{r-1}\) is exact but exponential in \(r\). Can the \(r\)-dependence be tamed? The paper's third result says yes — polynomially — if you (a) accept a threshold weakened by a factor \(1/r\), and (b) let one gentle structural parameter of the instance enter: the incoherence \(\mu\) of the eigenvectors.

Theorem 3 — the Paley–Zygmund tail (incoherent instances)

Let \(K \geq 2\), \(r \geq 2\), under general position and \(\mu\)-incoherence. For any \(\varepsilon \in (0,1)\): \[ \Pr\Big[ f(\mathbf{c}) \geq \tfrac{\cos^2(\pi/K)}{r}(1-\varepsilon)\mathrm{OPT}_r \Big] \geq \frac{\varepsilon^2}{1 + V_0}, \qquad V_0 \leq \frac{c r^6 \mu^4}{\cos^8(\pi/K)}, \] so \(S \geq O\big(\log(1/\delta) \mu^4 r^6 \big/ (\varepsilon^2 \cos^8(\pi/K))\big)\) samples suffice — polynomial in \(r\), and again free of \(n\).

The engine is an inequality from 1932 that deserves more fame. Paley–Zygmund is Chebyshev's inequality run in reverse: a non-negative random variable cannot hide all of its mass below a fraction of its mean unless its variance is large relative to its squared mean: \[ \Pr\big[ f > (1-\varepsilon)\mathbb{E}f \big] \geq \frac{\varepsilon^2}{1 + \mathrm{Var}(f)/(\mathbb{E}f)^2}. \] So the whole game becomes: control the ratio \(V_0 = \mathrm{Var}(f)/(\mathbb{E}f)^2\). And here is the punchline that makes the result \(n\)-free — a cancellation:

The variance ratio is scale-free in n

Both the mean and the standard deviation of \(f\) grow like \(\Lambda n\) (where \(\Lambda\) is the total eigenvalue mass of \(\mathbf{Q}\)). The numerator and denominator of \(V_0\) each carry the factor \((\Lambda n)^2\) — so it cancels. What remains after the dust settles is only geometry: \(V_0 \lesssim r^6\mu^4/\cos^8(\pi/K)\). The graph's size entered the mean and the fluctuations identically, and the ratio forgot it.

The two supporting pillars, briefly. The mean is large by the paper's expectation bound — \(\mathbb{E}[f] \geq \tfrac{\cos^2(\pi/K)}{r}\mathrm{OPT}_r\) (that is where the \(1/r\) in the threshold comes from: rounding wastes a Cauchy–Schwarz factor \(r\) in expectation, which the Beta route of Theorem 2 avoids). The variance is small by a covariance count: \(\mathrm{Var}(f) \leq n^2\Lambda^2\). And to compare \(\mathbb{E}f\) with \(\mathrm{OPT}_r\) at the same scale, incoherence enters exactly once: if the top eigenvector's mass is spread over many coordinates (\(\mu\) small), rounding that eigenvector alone already certifies \(\mathrm{OPT}_r \gtrsim \cos^2(\pi/K)\Lambda n / (r^2\mu^2)\) — pinning \(\mathrm{OPT}_r\) to the \(\Lambda n\) scale so the cancellation can fire.

coherent (spiky): μ large one coordinate hogs the eigenvector — rounding it certifies little incoherent (spread): μ ≈ 1 mass spread over n coordinates — rounding the eigenvector already achieves the Λn scale
What incoherence buys. \(\mu\)-incoherence bounds how concentrated the top eigenvectors can be. It is the one structural hypothesis of Theorem 3 — and it enters only to certify that \(\mathrm{OPT}_r\) lives at the same \(\Lambda n\) scale as \(\mathbb{E}[f]\), so the size of the graph cancels in the Paley–Zygmund ratio.
Tool #3 — Paley–Zygmund (anti-concentration for free)

A one-line inequality that converts "the mean is big and the variance is controlled" into "a random draw is good with constant probability." No independence structure, no boundedness, no dimension. Whenever you can compute two moments of a complicated random objective, you already have a sampling guarantee.

Tool #4 — Incoherence, used honestly

The workhorse hypothesis of matrix completion and randomized linear algebra, in a new role: not to make sampling uniformizable, but to pin the combinatorial optimum to the analog scale \(\Lambda n\). Note the discipline: it is the only assumption, it is measurable on any instance (compute the eigenvectors, read off \(\mu\)), and its possible \(n\)-dependence is stated rather than hidden.

5. The menu: three guarantees, one algorithm

All three theorems analyze the same loop — draw, round, keep the best. They differ in what they promise and what they charge. This is the honest menu:

GuaranteeThreshold reachedPer-dart successDarts neededAssumptions
Thm 1 (rank 1) exact \(\mathrm{OPT}_1\) \(\eta\) \(\log(1/\delta)/\eta\) general position
Thm 2 (Beta cap) \(\cos^2(\pi/K)(1-\varepsilon)\mathrm{OPT}_r\) \(\varepsilon^{r-1}\) (exact) \(\log(1/\delta)/\varepsilon^{r-1}\) none
Thm 3 (Paley–Zygmund) \(\tfrac{\cos^2(\pi/K)}{r}(1-\varepsilon)\mathrm{OPT}_r\) \(\varepsilon^2/(1+ c r^6\mu^4/\cos^8(\pi/K))\) \(O\big(\tfrac{\log(1/\delta)\mu^4 r^6}{\varepsilon^2\cos^8(\pi/K)}\big)\) general position + \(\mu\)-incoherence

Small rank and high accuracy → Theorem 2 (exact exponent, clean threshold, zero assumptions). Larger rank on a spread-out instance → Theorem 3 (polynomial in \(r\)). Rank one → Theorem 1 hands you the exact optimum outright. In every row, the sample count is a function of accuracy, rank, and instance geometry — never of \(n\). The enumeration explosion \(O(n^{2r-1})\) has been traded for a fixed dart budget plus cheap per-dart linear algebra.

6. Does reality agree?

Theory predicts the dart budget is flat in \(n\). The paper's experiments (Max-3-Cut, \(K=3\), \(r=2\); random 5-regular, Erdős–Rényi, and toroidal graphs) sweep \(n\) from \(10^3\) to \(10^6\) and \(S\) up to \(10^6\):

Best-of-S curves across three graph families: curves for n spanning three orders of magnitude overlap and plateau at the same S
The knee does not move. Best-of-\(S\) value (normalized to the best found at the largest budget) versus \(S\), one curve per graph size — panels: 5-regular, Erdős–Rényi, toroidal. Curves for sizes spanning three orders of magnitude overlap; the budget to reach 99.9% of the plateau is flat at \(S=10\) on toroidal graphs and even decreases with \(n\) on Erdős–Rényi (median from \(\sim 10^5\) at \(n=10^3\) to \(10^4\) at \(n=10^5\)). Exactly the \(n\)-free behavior the tails predict.
Best-of-S as a fraction of the true rank-r optimum; a single draw already attains 0.87-0.98
One dart is already good. On instances small enough to enumerate exhaustively (\(n \leq 100\)), best-of-\(S\) is measured against the true \(\mathrm{OPT}_r\). A single draw attains, in expectation, 0.87–0.98 of \(\mathrm{OPT}_r\) (mean over \(2\times10^5\) draws) — about \(7\times\) the guaranteed floor \(\cos^2(\pi/3)/2 = 0.125\) — and best-of-\(S\) reaches 0.98 / 0.99 / 0.996 at \(S = 10\) / \(10^2\) / \(10^3\). The theory's floor is honest but conservative: it worst-cases the rounding over all coordinates at once, while the sphere's mass concentrates on near-optimal cells.

One more empirical footnote the theory made possible: the analyzed sampler (uniform on the sphere) was tested head-to-head against the sampler our earlier deployed code used (null vectors of random row subsets — see Blog 3). Same cut quality to within 0.15% up to \(n = 10^6\) — but the null-vector draw rejects roughly 40% of its samples as degenerate, while the uniform-sphere draw rejects none. The version that is easier to analyze turned out to be the version that is cheaper to run. Theory and engineering agreeing on the same design is a good sign you've found the right abstraction.

7. What we still don't know

8. The toolbox, recapped

If you remember four things from this post, make them the four tools — they are older than this problem and will outlive it:

  1. Hahn–Banach support functionals — trade an \(n\)-term convex function for one linear functional, tight where it matters.
  2. Beta laws on the complex sphere — alignment with a fixed direction has an exact polynomial cap measure: \(\Pr[X \geq 1-\varepsilon] = \varepsilon^{r-1}\).
  3. Paley–Zygmund — two moments of a nonnegative variable = a sampling guarantee. Reverse Chebyshev, criminally underused.
  4. Incoherence, honestly scoped — one measurable hypothesis, used once, to pin the combinatorial optimum to the analog scale.
The deeper lesson of the series so far: structure pays twice. Low rank first turned an exponential search into a polynomial enumeration (Blogs 1–2); now the same structure makes blind random sampling provably sufficient — with a dart budget that never heard of \(n\).