Manuscript Offprint
arXiv:2611.03468The Optimizer's Windfall: Bounding Hindsight Gain under Random Restrictions
Abstract
Suppose an optimization problem is subjected to a random restriction on each variable independently, and is re-optimized after the restrictions are revealed. For multilinear objectives, every fixed solution is unbiased after appropriate rescaling, but choosing a solution after seeing the restriction introduces an upward bias. We bound this excess, called the hindsight gain, over products of arbitrary compact local domains in Euclidean unit balls.
For interactions among distinct variables, and independent random weights being applied to each variable , we show that the gain is at most , where is the sum of squares of all interaction coefficients, , and . This bound requires only second moments. For uniform restriction, where each variable is retained with the same probability , we further sharpen the bound to , and show that this dependence is tight for every fixed and . Our proof applies a deterministic comparison principle that bounds the difference of two optimal values through a single support direction of their feasible sets. We then combine tensor projection with vector contraction to obtain the second-moment bound, and sharpen it for uniform restriction by repeated thinning and exact factorial-moment calculations.
These bounds lead to several applications. (i) For every fixed arity and alphabet size , we show that sampling variables and solving the induced subproblem suffices to estimate a dense Max-rCSP optimum within , and this sampling exponent is optimal. (ii) The same approach estimates MaxCut and the distance to bipartiteness within using nonadaptive queries and examined vertices, both optimal in their respective models. (iii) We answer a question of Yufei Zhao: vertex percolation at rate preserves the max-cut fraction whenever , and this condition is sharp. (iv) For bounded -local quantum Hamiltonians with fixed local dimension , uniformly sampled particles suffice to estimate the ground-state energy within , improving the previous bound.
Contents
1 Introduction 3 1.1 The Model: Multilinear Interactions ..... 3 1.2 Results: Bounds on the Hindsight Gain ..... 4 1.3 Applications ..... 5 1.4 Technical Overview ..... 9 1.5 Related Work ..... 11
2 Preliminaries 12
3 General Hindsight Gain 14 3.1 A Coordinate Representation for the Proof ..... 14 3.2 A Comparison Principle ..... 15 3.3 Fluctuations of the Support Function ..... 16 3.4 The General Bound ..... 17
4 Uniform Hindsight Gain 19 4.1 Iterated Thinning ..... 19 4.2 Sharpness ..... 21
5 Application I: Max-rCSPs, MaxCut, and Bipartiteness 22 5.1 Encoding Max-rCSPs ..... 22 5.2 Sampling-Sensitive Variance Bounds ..... 23 5.3 The Estimator ..... 25 5.4 MaxCut and the Distance to Bipartiteness ..... 26
6 Application II: Max-Cut under Vertex Percolation 26
7 Application III: Sampling Quantum Ground-State Energies 28 7.1 Sampling Product-State Energies ..... 29 7.2 From Product States to the Ground-State Energy ..... 30
8 Conclusion 32
A Lower Bounds 33
References 37
The excess comes from the event that exactly two vertices survive: the surviving edge is then cut, although no cut of cuts all three edges.
More generally, let be a random objective with pointwise mean . We call the nonnegative quantity
the hindsight gain. This notion appears in many contexts. In decision analysis, it is the selection bias of the maximum of a random field [SW06]. In information theory it is the Bayesian regret of a greedy policy under the mean objective [RZ16]. In stochastic programming it is known as the expected value of perfect information: the difference between the “wait-and-see” and the “here-and-now” optimum [AW70, BL11]. It is also the optimistic bias of sample average approximation, which decreases as the sample grows [MMW99]. For binary quadratic programs with random coefficients, the wait-and-see value has been bounded using only the marginal distributions of the coefficients [NST18]. In sampling-based estimation it is the bias of the sample-and-solve estimator, and bounding it is the main step in showing that a random restriction preserves an optimum.
In this paper we bound the hindsight gain for homogeneous multilinear optimization over arbitrary compact local domains, for every fixed degree and uniform retention rate , and derive several algorithmic and combinatorial consequences.
1.1 The Model: Multilinear Interactions
We consider an optimization problem with variables, where variable chooses a vector from a nonempty compact subset of the Euclidean unit ball in . The set specifies the allowed states; it need not be convex or equal to the whole unit ball. Write . The dimension may depend on the instance, and variables with different dimensions can be accommodated by padding their vectors with zeros.
Fix an integer . For each -element set , let be an interaction that is linear in each argument separately. Missing interactions are considered to be zero. With , we write the objective and its optimum as
Thus every interaction involves exactly distinct variables. For example, when , each interaction is given by a matrix and . For general , the coefficients of form an -way array.
Next, we consider a random noise being applied to the variables. Let , where each is an independent nonnegative random weight with finite second moments. These weights multiply interaction by the product of its variable weights. The weighted objective and its optimum become
We use the same notation for deterministic nonnegative weights; in particular, . If we further put and , we can define the hindsight gain by
For every fixed assignment , independence gives . Thus the hindsight gain is nonnegative: it measures the expected benefit of choosing an assignment after observing the weights, compared with optimizing the mean objective.
This model includes several important special cases. It covers every Max-rCSP over finite alphabets: consists of the coordinate unit vectors representing its labels, and has the payoff table as its coefficients (Section 5). MaxCut is a two-label example with r = 2. The model also includes continuous vector-spin objectives and the negative of the minimum product-state energy of an r-local quantum Hamiltonian, using real coordinate vectors of single-particle density matrices (Section 7).
Why multilinear interactions. We require every interaction to be multilinear in its involved variables so that independent weights give for every fixed assignment , and hence a nonnegative hindsight gain. This assumption also makes the objective affine in each variable separately, allowing us to replace each local domain by its convex hull without changing any weighted or restricted optimum; we rely on these two properties in proving the general bound in Theorem 1 and Theorem 2.
1.2 Results: Bounds on the Hindsight Gain
Our main results in this paper bound the hindsight gain for multilinear objectives of fixed degree. We first give a general bound that applies to arbitrary independent nonnegative weights.
Theorem 1 (Independent weights). Let be a collection of r-variable multilinear interactions in the model of Section 1.1, and let be independent nonnegative random variables with finite second moments. Then
where , , . Here is the Frobenius norm of the coefficient array of .
The bound depends only on the coefficient norm, the degree, and two moment parameters. It is independent of the vector dimension and of the cardinalities or covering numbers of the local feasible sets. In particular, interactions of any fixed degree require only second moments of the weights. This theorem also covers importance sampling, where a retained variable is reweighted by the reciprocal of its inclusion probability. A finer estimate (Theorem 8) weights each variance by the sum of squared coefficients of the interactions involving that variable.
As mentioned at the beginning, a common paradigm is to restrict an optimization problem to a random subset of its variables, solve the restricted problem, and rescale. This corresponds to applying Theorem 1 to Bernoulli weights , which retain each variable independently with probability . We write for the optimum restricted to . Then Theorem 1 gives
For uniform retention, take for every , so , and write for the resulting random set. Homogeneity gives , so
In this case, Theorem 1 gives . Let denote the expected sample size. At the coefficient scale , the resulting normalized bias satisfies
Relative to the natural objective scale , this bound still grows with when is fixed. In our next theorem, we remove this dependence and prove a sharper bound of on the relative bias.
Theorem 2 (Uniform retention). For every there is a constant such that, for every collection in the model of Section 1.1 and every ,
One may take .
Equivalently, the normalized bias is at most . When , this is : the bound on the bias relative to the natural objective scale depends only on the expected sample size . This allows us to sample a small random subset of variables and still estimate the optimum of a dense multilinear objective within a small additive error, as we illustrate in Section 1.3.
1.3 Applications
In this section we describe several applications of the hindsight-gain bounds. We first summarize the consequences in Table 1, and then give more details for each application.
Sampling dense Max-rCSPs. Our first application is to determine how many variables we need to sample to estimate the optimum of a dense constraint satisfaction problem. A Max-rCSP has variables , a finite alphabet for each variable , and one payoff table for each -element set . For , we let be the maximum of over assignments on , and write . For payoffs in , our goal is to estimate within from the instance induced by a small random subset of variables.
For this sampling problem, Alon, Fernandez de la Vega, Kannan, and Karpinski [AFKK03] proved an bound for Boolean Max-rCSPs. Subsequently, Mathieu and Schudy [MS08]
| Application | Previous bounds | This work |
|---|---|---|
| Max-rCSPs | [MS08] | |
| MaxCut and bipartiteness (vertex samples) | [MS08, RV07] | |
| MaxCut and bipartiteness (nonadaptive edge queries) | [AFKK03, GMRS22, MS08] | |
| Max-cut fraction under vertex percolation | [GS25] | (sharp) |
| Product-state energy | [Ber23] | |
| Quantum ground-state energy | [Ber23] |
Table 1: Sample and edge-query bounds for additive error ( for graph estimation), with constant success probability, fixed arity , constant-size alphabets, and a fixed single-particle state space. The percolation row instead compares sufficient conditions for preserving the max-cut fraction.
obtained for MaxCut and state that their result extends to dense Max-rCSPs; Rudelson and Vershynin [RV07] obtained the same exponent for Boolean Max-2CSPs.
For fixed arity and constant-size alphabets, we reduce the sample size to by combining Theorem 2 with a sampling-sensitive variance bound, improving the previous bounds. Furthermore, we show that this sample bound is tight in its dependence on for every , even for Boolean alphabets. We state the sampling guarantee in the following theorem; the matching lower bound is proved in Corollary A.5.
Theorem 3 (Sampling dense Max-rCSPs). For every fixed and fixed bound on the alphabet sizes, there is a constant such that the following holds. Let be a Max-rCSP on variables with alphabets satisfying this bound and payoffs in , and let . If retains each variable independently with probability , then, with probability at least ,
To apply our framework, we use one-hot encoding to turn each payoff table into a multilinear interaction. After subtracting the mean of each table, the relevant coefficient norm is the centered energy , defined as the Euclidean norm of all centered table entries (Section 5.1). Our energy-sensitive estimate (Theorem 10) also records the actual table norms, which can substantially reduce the alphabet dependence.
MaxCut and the distance to bipartiteness. We next consider estimating the maximum cut of a graph and its distance to bipartiteness. We write and for the numbers of edges and vertices of , and for the distance to bipartiteness, that is, the minimum number of edges whose deletion makes bipartite. Our goal is to estimate or within for an -vertex graph .
To measure the cost of estimation, we work in the adjacency-matrix model, where an algorithm may ask whether a pair of vertices is an edge. It examines a vertex if the vertex appears in one of its edge queries, and it is nonadaptive if it fixes all its queries before seeing any answer. Reading the subgraph induced by sampled vertices therefore costs nonadaptive edge queries.
We first compare the number of sampled vertices. Rudelson and Vershynin [RV07] and Mathieu and Schudy [MS08] obtained an vertex-sampling bound for MaxCut. By also estimating the edge count, we obtain the same sampling bound for the distance to bipartiteness.
If we instead count individual edge queries, the best previous bound that we are aware of is , obtained from the sampling results of [AFKK03, MS08] as explained in [GMRS22, Appendix A]; earlier, Goldreich, Goldwasser, and Ron [GGR98] estimated with edge queries. For the related but weaker testing task, Ghosh, Mishra, Raychaudhury, and Sen [GMRS22] obtained queries for the tolerant testing problem of distinguishing from .
By applying Theorem 2 to the adjacency-matrix model, we obtain a nonadaptive algorithm that estimates both quantities within , examining only vertices and making edge queries. Moreover, we prove that both bounds are optimal: the nonadaptive query complexity is , and the number of examined vertices is , even when adaptive queries are allowed. We summarize these guarantees in the following theorem.
Theorem 4 (MaxCut and bipartiteness). Let .
(a) There is a nonadaptive algorithm that, given an -vertex graph , examines randomly chosen vertices and queries only pairs among them. With probability at least , it outputs estimates of and of that are both accurate within . It makes edge queries.
(b) There are absolute constants such that the following holds for and . Every nonadaptive algorithm that estimates , or , within with probability at least on every -vertex graph makes at least queries. Every algorithm with the same guarantee, adaptive or not, examines at least vertices in the worst case.
For adaptive algorithms, our lower bound on examined vertices also implies that queries are necessary.
Max-cut under vertex percolation. We next ask when vertex sampling preserves the fraction of edges in a maximum cut. At the 2019 Oberwolfach workshop Combinatorics, Probability and Computing [KRS19], Yufei Zhao asked the following question: when does one-half vertex percolation of a graph , which keeps each vertex independently with probability , preserve the max-cut fraction of graph ? Zhao observed that the answer is affirmative when is sufficiently dense, for example when for some constant , and he asked whether the same holds for every sequence of graphs with . For , the previous sufficient condition (that is, in the exponent ) is recorded in the survey of Gishboliner and Shapira [GS25, p. 10].
By applying Theorem 2 to MaxCut, we are able to answer this question completely in the affirmative, even for arbitrary retention probabilities.
Theorem 5 (Max-cut under vertex percolation). Let be graphs with , let , and let . If , then with probability tending to one the random induced subgraph has at least one edge, and
A preprint [GMRS21] claimed an estimator for that examines vertices and makes queries. It has since been withdrawn; according to the withdrawal notice, the proof of the main claim is incomplete.
Conversely, for every constant there are graphs with and probabilities with for which this conclusion fails.
Taking answers Zhao's question. The same argument also shows that for every graph of average degree , uniform vertex sampling at rate estimates the max-cut within a factor after rescaling by , with constant probability; this complements the core-sets of Bhaskara, Daruki, and Venkatasubramanian [BDV18] (Remark 6.3).
Sampling quantum ground-state energies. In our final application, we ask how many particles we need to sample to estimate the ground-state energy of a quantum Hamiltonian. This application uses the continuous local domains allowed by our model.
The ground-state energy of a quantum Hamiltonian is its minimum eigenvalue, the lowest energy of the corresponding many-particle system. Consider an -local Hamiltonian
on particles with a fixed single-particle state space, where each Hermitian term acts on the particles in , and . There is at most one term per subset, and missing interactions are represented by zero terms. We write and . Our goal is to estimate within from the sampled Hamiltonian , allowing arbitrary entanglement. We also consider the minimum product-state energy, where we restrict the state to a tensor product of single-particle states.
For this sampling problem, Bergamaschi [Ber23, Theorem 11] proved that sampled particles suffice. The same sample bound for the minimum product-state energy is implicit in Sections 7 and C.3 of his full version.
We improve these bounds to samples for the minimum product-state energy and samples for the full ground-state energy. To do so, we first apply Theorem 2 to the continuous space of single-particle density matrices. We then use Bergamaschi's product-state approximation theorem [Ber23, Theorem 3], building on Brandão and Harrow [BH13], to transfer the estimate to the full ground-state energy. We summarize the resulting guarantee in the following theorem.
Theorem 6 (Sampling quantum ground-state energies). For every fixed integer and fixed single-particle state space, there is a constant such that the following holds. Let be an -local Hamiltonian as above, and let . Put and choose uniformly among its -element subsets. Then, with probability at least 0.99,
In obtaining this guarantee, we absorb the sampling error from terms involving fewer than particles into the bound. Our estimator uses nonadaptive queries, each returning the classical description of a local interaction; its computation on the sampled Hamiltonian may take exponential time in .
Finally, we show that the sample dependence for product-state energy is optimal, even for diagonal Hamiltonians on qubits (Corollary A.6). The same reduction gives an sampling lower bound for ground-state energy; we do not claim that the upper bound is optimal.
1.4 Technical Overview
We now explain the main ideas behind the bounds on the hindsight gain. We begin with why a direct uniform-convergence argument loses too much, and then describe the comparison argument that avoids this loss.
Uniform convergence is too lossy. A natural first attempt bounds the gain by
This can lose a polynomial factor even for MaxCut. Take and . With high probability, a cut one of whose sides consists of retained vertices keeps more crossing edges than its expectation. Yet the hindsight gain is only . The optimum is much more stable than the uniform deviation. Our argument compares the two optima directly.
Step 1: a fixed objective over a random convex body. Using exact convexification and the substitution , we obtain
This transforms the problem from a random objective into a fixed multilinear objective over a random feasible body. Its support function, the largest linear score in a given direction, is . This expression is linear in the independent weights. After this step, we turn its fluctuations into a comparison of maxima of .
Step 2: a support direction for the difference of two maxima. Let maximize on . The deterministic comparison lemma in Section 3.2 constructs a point and a direction such that
It chooses by maximizing an auxiliary polynomial on ; the first-order optimality condition makes a support point in the required direction. Consequently,
This comparison uses neither convexity nor a curvature bound for the objective.
Step 3: projection and vector contraction. We now bound the support-function fluctuation in (6). We write the comparison direction as , separating the fixed interaction coefficients in from the products of coordinates of and in , with (Section 3.1). To control the fluctuation uniformly over normalized arrays, we define
Symmetrization and Maurer's vector-contraction inequality [Mau16] control its mean, while the Efron-Stein inequality controls its variance. Together, these give .
It remains to control the size of . Since each interaction involves distinct variables, we can project away entries with repeated variable indices without changing . Independence then lets us factor the relevant expectations, so only second moments of the weights appear. We obtain a bound on the projected norm such that
We now combine the size and fluctuation bounds by Cauchy–Schwarz:
This proves Theorem 1; we give the detailed estimates in Sections 3.3 and 3.4.
Step 4: iteration with exact factorial moments. We next sharpen the bound for uniform retention by repeatedly halving the sampled instance. To track the change in the rescaled optimum, we set . Write for the interactions retained on . Halving the random instance on lets us express the increment through the bound from Steps 1–3. Here we keep a little more information from the projected norm estimate: on an instance with active variables, it retains the factor , where counts ordered tuples of distinct variables. Consequently,
The last inequality follows from Cauchy–Schwarz and the exact identities and . We then sum over dyadic scales down to . The resulting geometric series is dominated by its last term, so multiplying by gives the desired factor. For , a single step instead retains the factor . Together, these arguments prove Theorem 2 for all sampling rates.
Applications. We finish with the main ideas behind the sampling guarantees and the corresponding lower bounds. For Max-rCSPs, we use one-hot encoding and center each table to express the bias in terms of . To control the variance as well, we apply the Efron–Stein inequality, charging a variable only for interactions whose other variables were sampled. We then expand the squared charge and group pairs of constraints by their overlap size. After normalization, this gives fluctuations of order , matching the bias for expected sample size . The graph applications follow by specializing to .
To establish the graph lower bound, we compare with a planted model in which edges across a hidden random bipartition are slightly more likely. Every pair is an edge with probability under both models, so the distinguishing information lies in dependencies among the query answers. We express the -divergence for a fixed query graph as a weighted count of its nonempty even subgraphs, with weight for edges and . A spectral cycle count bounds this divergence, keeping it small for fewer than queries. We then use a random relabeling argument [GT03] to obtain an lower bound on examined vertices, even with adaptive queries. Finally, by padding graph constraints with variables whose labels do not affect their payoffs, the sampling lower bound can be extended to every fixed arity.
For the quantum application, we use the fact that product-state energies are multilinear in the single-particle density matrices, whose real coordinate vectors form compact subsets of the unit ball. Our argument therefore applies directly to these continuous domains. Coupling Bernoulli and fixed-size samples gives error for product-state energies. To pass to full ground-state energies, we then apply the known product-state approximation theorem. Its additional error of yields the sample bound of particles.
1.5 Related Work
Value of information and optimization bias. Our hindsight gain is the expected value of perfect information in stochastic programming [AW70, BL11]. Huang, Vertinsky, and Ziemba [HVZ77] give sharp bounds for simple-recourse problems. The same bias appears in sample average approximation [MMW99], and its reduction through smoothing is studied in [DL22]. Natarajan, Shi, and Toh [NST18] bound expected binary quadratic optima given marginal coefficient distributions. Our model instead specifies the joint law through independent variable weights.
Selection bias and sequential adaptivity. The optimizer's curse [SW06] and information-theoretic bounds for adaptive data analysis [RZ16] concern optimism after selecting noisy estimates. For a sampled maximizer, this optimism equals our optimal-value bias plus its expected regret under the mean objective. In stochastic knapsack, Dean, Goemans, and Vondrák [DGV08] compare sequential adaptive and nonadaptive policies multiplicatively. Here the entire restriction is revealed before optimization, and the comparison is additive. Information relaxations of stochastic dynamic programs [BSS10] also use perfect-information benchmarks, with penalties for decisions that use future information.
Dense optimization and testing. The closest sampling bounds are those of Alon, Fernandez de la Vega, Kannan, and Karpinski [AFKK03], Rudelson and Vershynin [RV07], and Mathieu and Schudy [MS08], discussed in Section 1.3. In our terminology, [MS08, Theorem 1.4] gives rescaled hindsight gain for a uniform sample of q vertices; Theorem 2 gives for a Bernoulli sample of expected size q. Graph and CSP limits relate sampling to testability and convergence of cut and energy parameters [BCL 08, BCL 12, KM14]. Subsampling of LP and SDP relaxations [BHHS11] provides precedents for continuous domains; our theorem handles compact local sets directly through the Frobenius norm of the interaction coefficients. Core-sets extend MaxCut sampling beyond dense graphs [BDV18]. Ordinary and tolerant bipartiteness testing [AK02, BT04, GMRS22] ask for weaker distinctions than full additive estimation.
For growing arity or alphabet size, other parameter dependencies become important. Barak, Hardt, Holenstein, and Steurer [BHHS11] obtain polylogarithmic alphabet dependence for fixed arity. Bernasconi, Castiglioni, Celli, Farina, and Malavolta [BCC ] give a sample bound polynomial in the arity and polylogarithmic in the alphabet size. Our bounds optimize the accuracy dependence for fixed arity and alphabet; the explicit factor is not intended to be optimal when these parameters grow.
Statistical physics and quantum Hamiltonians. Jain, Koehler, and Mossel [JKM18] prove polynomial vertex sample complexity for free energies of Ising models and higher-order Markov random fields. Jain, Koehler, and Risteski [JKR19] give sharp bounds on mean-field approximation error. Brandão and Harrow [BH13] establish product-state approximations to quantum ground-state energies; Bergamaschi [Ber23] extends these guarantees and proves vertex-sampling results. Section 7 combines our sharper product-state sampling bound with his approximation theorem to estimate the full ground-state energy.
Empirical and random processes. Pairwise empirical optimization also appears in the U-process analysis of ranking [CLV08], where the decision is a prediction rule rather than a separate choice at each vertex. General chaos-process bounds, such as the quadratic bounds of [KMR14], control a supremum that can be polynomially larger than our gain. Our comparison principle reduces the optimal-value difference to a process controlled by vector contraction [LT91, Mau16].
Organization. Section 2 introduces the notation and structural properties. Sections 3 and 4 prove the general and uniform bounds on the hindsight gain. The following sections give the applications. Section 5 discusses Max-rCSPs, MaxCut, and bipartiteness; Sections 6 and 7 give the percolation and quantum applications. The lower bounds appear in Appendix A.
2 Preliminaries
We recall the model of Section 1.1. Let be integers and fix an integer . Consider a collection of variables . Each variable chooses a vector , where is a nonempty compact subset of the Euclidean unit ball. Note that need not be convex.
Write . For each , let be a multilinear function, meaning linear in each argument separately, and write . For , the objective is
Thus each interaction involves exactly distinct variables. Missing interactions are considered zero.
All vector norms and inner products are Euclidean. Constants denoted by depend only on ; a subscript or permits dependence on the local dimension or alphabet size as well.
Coefficients. For , write the interaction in coordinates as
For the collection , define
so that each interaction is counted once. These norms are unchanged by orthonormal changes of coordinates for the variables.
Optimal values. Write . For nonnegative weights , define the weighted objective and its optimum by
The full and restricted optima are the special cases
where is the all-ones vector and is the indicator vector of . Thus keeps only interactions entirely contained in and is zero when .
Hindsight gain. Let be independent nonnegative weights with finite second moments and means , and write and . Define the hindsight gain by
This measures the expected benefit of choosing an assignment after observing the weights, compared with choosing an assignment that maximizes the mean objective.
Note that independence gives , so for every fixed . In other words, the random objective is an unbiased estimate of the mean objective. Evaluating the random objective at a maximizer of the mean objective yields . Hence we always have .
Integrability. The weighted optimum is continuous in , by joint continuity of and compactness of . Thus is measurable. Moreover, Cauchy–Schwarz applied to the interaction coefficients gives . Squaring it and using independence of the weights yields
Hence independent weights with finite second moments give a square-integrable weighted optimum, so the expectation defining the hindsight gain is finite.
Convexification. To compare weighted optima, we move the weights from the objective into a convex feasible set without changing the optimal value. Scaling each vector by incorporates the weight of every interaction, so . For put
Here denotes the convex hull of . The set is a nonempty compact convex subset of . The following lemma lets us use it while keeping arbitrary compact local sets in the model.
Lemma 2.1 (Exact convexification). For every ,
Proof. The objective is affine in each vector variable separately. Given , choose independent, finitely supported -valued random vectors with . Since every interaction uses distinct variables, , so some realization in attains at least this value. Thus maximizing over gives the same value as maximizing over , since . Every can be written as with , and . Conversely, every such gives a point , proving (10).
Support functions. To compare the feasible sets obtained above, we will use their support functions. For a compact set , its support function is the largest linear score in direction . It is positively homogeneous and satisfies . Since on , each is 1-Lipschitz and . Maximizing independently over the variables gives
3 General Hindsight Gain
In this section, we prove Theorem 1, which bounds the hindsight gain under independent random weights. We first compare maxima of polynomials over two convex bodies through a single support direction, then use a vector-contraction inequality to control the fluctuations of the random body's support function. The comparison direction is a linear image of an array of coordinate products. By removing repeated variable indices before estimating its norm, we will need only second moments of the weights.
We use the following notation throughout this section:
3.1 A Coordinate Representation for the Proof
To prepare for the comparison argument, we collect the vectors into and represent the homogeneous polynomial by a symmetric -linear form. Let be a uniformly random permutation of . For , define
where the sum is over -element subsets of . This average is symmetric in its arguments, and . For each fixed permutation, the form inside the average has the same coefficients as , placed in distinct positions. Averaging cannot increase the Euclidean norm of the coefficient array, so
This representation is used only in the proof; the interactions themselves need no symmetry. We abbreviate repeated arguments by , and write for a general symmetric form.
We use tensor notation to keep track of coordinate products. For vectors , the tensor product is the array whose entries are products of their coordinates. We give the full array space its Euclidean inner product, so that
Write for a repeated product. To separate the interaction coefficients from these products, we reshape the coefficients of into a matrix , with the first coordinate as its row index:
Let consist of the rows belonging to variable , so . For any matrix , write and for its operator and Frobenius norms; in particular, . The norm bound above and the same averaging argument for the rows give
To see the second inequality, consider an interaction containing : a uniformly random permutation places that variable in the first argument with probability . We then apply convexity of the squared Frobenius norm to the corresponding rows.
One more feature of this representation will let us work with only second moments. Every coordinate of has a variable index and an internal coordinate index . Let be the coordinate projection that keeps entries of only when their variable indices are pairwise distinct. Because the interactions use distinct variables, the other columns of are zero, and hence
This identity lets us remove repeated variable indices before estimating the norm of the comparison direction.
3.2 A Comparison Principle
Our next step is to bound the difference of two maxima by a difference of support functions in one direction. The following deterministic lemma does this without a sign or convexity assumption on the objective.
Lemma 3.1 (Comparison principle). Let be a symmetric -linear form on a Euclidean space , and let be its linear representation (14). Let be nonempty and compact, and let be nonempty, compact, and convex. If maximizes over , then there is such that, with
we have
The zeroth tensor power in (17) is the scalar 1.
Proof. We choose the reference point by maximizing the auxiliary polynomial
Symmetry of and differentiation give . Since the segment from to any lies in , the first-order necessary condition at this maximum yields
Hence . To connect this support direction to the difference of objective values, we use the telescoping identity supplied by multilinearity:
Since y maximizes the objective on Z, we can now conclude that
as claimed.
Only the reference body needs to be convex. We use the auxiliary polynomial to make z a support point in exactly the direction that represents the difference of objective values; Figure 1 illustrates this choice.

Figure 1: Comparison through linear scores in direction , drawn for and positive differences. Here maximizes on , the auxiliary maximizer of supports , and supports . The orange interval lies inside the blue interval . Since , the difference of optima is at most the orange interval.
3.3 Fluctuations of the Support Function
The comparison lemma reduces our task to controlling a difference of support functions. We now estimate its fluctuations under the random weights.
By (11),
The comparison direction lies in the image of , so we first control this difference on the linear image of a unit ball. Define
where . The maximum is continuous in and is nonnegative, since is feasible. The bound
also shows that it is square-integrable under the finite-second-moment assumption. To bound its mean, we use the following vector-contraction inequality.
Theorem 7 (Maurer [Mau16, Theorem 3, preprint]). Let be countable, and let and satisfy for all . For independent Rademacher sequences and ,
Lemma 3.2 (Fluctuation bound). The quantities in (20) satisfy , , and hence .
Proof. We first bound the mean. Write , and let be an independent copy of . Symmetrization gives
where the last equality uses independence and symmetry of the differences. Conditional on , put . On a countable dense subset of the unit ball, apply Theorem 7 with and ; its hypothesis follows from the 1-Lipschitz property of . Continuity allows us to take the supremum over the entire ball. If is a vector of independent signs in , we obtain
The last line follows from independence of the signs and the Cauchy–Schwarz inequality. Averaging over the two weight vectors and using proves .
For the variance, we examine the effect of changing one weight. Since on the unit ball, replacing by an independent copy changes by at most . The Efron-Stein inequality [BLM13] therefore gives
Combining the two estimates proves the last assertion.
3.4 The General Bound
We now combine the comparison principle with the fluctuation bound. The remaining step is to control the size of the projected comparison direction using only second moments.
Theorem 8 (Refined bound). In the model of Section 1.1, put , the sum of squared coefficients of the interactions involving variable . Then
Proof. Nonnegativity follows from unbiasedness, as shown in Section 2. For the upper bound, we fix a realization of the weights and apply Lemma 3.1 to the form in (12), with and . Since , Lemma 2.1 identifies these maxima with the weighted optima. Let , , and be the points and tensor supplied by the comparison lemma. Using (16), (19), and positive homogeneity, we separate the size of the direction from the fluctuation:
To use our fluctuation bound, we need a second-moment estimate for the projected norm. We obtain it by bounding each term before taking expectations. Since and ,
(23)
Thus . Each is an explicit measurable function of the weights, so no measurable selection of or is needed. Independence of the distinct weights in every summand gives
Minkowski's inequality combines these estimates into a bound for the sum:
We now substitute into (22) and take expectations. The Cauchy-Schwarz inequality and Lemma 3.2 then prove (21), using from (15).
The projection in (23) is essential: it leaves products of second moments of distinct weights, even though the optimizing points may depend on all the weights. No higher moment of an individual weight appears.
Theorem 1 (Independent weights). Let be a collection of -variable multilinear interactions in the model of Section 1.1, and let be independent nonnegative random variables with finite second moments. Then
where , , . Here is the Frobenius norm of the coefficient array of .
Proof. To recover the bound in the introduction, we simplify (21) using and .
Finally, we specialize the weights to Bernoulli variables to obtain the nonuniform restriction bound stated in the introduction.
Corollary 3.3 (Nonuniform retention). If retains variable independently with probability , then
Proof. Apply Theorem 1 with , so that and .
4 Uniform Hindsight Gain
Our aim in this section is to prove Theorem 2. A direct application of Theorem 1 to Bernoulli weights gives an upper bound proportional to ; in this section we obtain the stronger factor by restricting the instance in stages, retaining each remaining variable independently with probability at least 1/2 at each stage. The distinct-index projection in the proof of Theorem 8 is essential here: it gives a falling factorial of the number of active variables, whose expectation has the exact scaling needed for the iteration.
4.1 Iterated Thinning
We begin by recalling the restricted optimum: for ,
with value zero when . Let retain when and replace it by zero otherwise. Since retains each variable independently with probability , we have
The expectation identity holds because each interaction survives with probability .
For , an -thinning of a set retains its elements independently with probability . If we first sample and then, conditionally on , thin at rate , the result has the law of . For nonnegative integers , write for the falling factorial, with and when . It counts ordered -tuples of distinct elements from an -element set.
We first bound the gain from thinning a fixed set. Keeping the falling factorial in the projected-radius estimate from Section 3 will let us average over a random starting set in the next step.
Corollary 4.1 (Thinning a fixed set). If and is an -thinning of a set , then
Proof. We apply the argument of Theorem 8 to the restricted interactions and the weights . The random weighted optimum is , and the mean-weight optimum is . Since the weights and their means vanish outside , only the tuples of distinct indices in contribute to the explicit sum in (23), giving
To turn this radius estimate into a bound on the gain, we combine the Cauchy–Schwarz and Minkowski inequalities with Lemma 3.2:
For , each square root in the sum is at most . Combining this with from (15) proves (26). At both sides vanish.
To track the gain across successive restrictions, we normalize the expected optimum by its natural scaling factor. For , define the compensated optimum
Thus and . We now bound the change in this quantity after one further thinning.
Lemma 4.2 (One thinning step). For ,
Proof. We couple the two sampling rates by taking to be a -thinning of and, conditionally on , taking to be an -thinning of . Then has the same law as . Applying (26) with , conditionally on , gives
To average this bound over , we need to control the product on the right. Its two factors need not be independent, so we use the Cauchy–Schwarz inequality:
The first expectation counts ordered -tuples of distinct retained variables, so it equals . Each interaction involves distinct variables, and hence
Consequently,
We substitute this estimate into the expectation of the conditional bound and divide by to prove the lemma.
In particular, is nonincreasing. The key point for our iteration is that the factor does not depend on the degree: the projected comparison direction contributes , the restricted coefficient norm contributes , and the compensation contributes . The factorial-moment calculation is exact even when .
Theorem 2 (Uniform retention). For every there is a constant such that, for every collection in the model of Section 1.1 and every ,
One may take
Proof. The lower bound follows by restricting an optimizer of the full instance. For the upper bound, we sum the one-step estimate along dyadic scales. Let be the integer with , and set for and .
The ratios lie in and their product is , so and . Writing , we telescope Lemma 4.2 to obtain
where the last step uses and , so suffices. Since , this constant is at most . Finally, multiplying by returns us to the unnormalized gain and proves the theorem.
4.2 Sharpness
We now show that scalar instances attain the dependence on the retention rate and on the number of variables. In other words, the upper bound in Theorem 2 is tight up to a constant factor that depends only on the degree. One group of variables adapts to a balanced sum that becomes unbalanced after restriction; the remaining groups supply the other r-2 factors of the objective.
Proposition 4.3 (Sharpness). For every there is such that, for every fixed and all sufficiently large , there is a collection of -variable interactions with scalar variables , with each equal to or , satisfying
Proof. Let , and partition variables into groups of size . Any remaining variables have and no interactions. To allow adaptation only in the first group, we take on and on the other groups. Choose signs on with , and define by the objective
where an empty product equals one. Each monomial uses one variable from each group and defines one interaction with coefficient 1 or -1. There are such interactions, so
The full objective vanishes because its second factor is zero, so . To see what changes under restriction, put and . Maximizing over the retained variables in and using independence across groups gives
It remains to lower-bound , which we do by comparing its second and fourth moments. Let , and take large enough that . Since ,
Hölder's inequality turns these moment estimates into the bound we need:
Therefore the gain is at least
To express this gain at the scale in the proposition, note that for , , and hence
The claim follows, for example, with .
5 Application I: Max-rCSPs, MaxCut, and Bipartiteness
A Max-rCSP assigns a label to each variable and collects a payoff from every constraint on variables. In this application, we use our uniform-retention theorem (Theorem 2) to estimate its optimum from the constraints among a small random sample of variables, and then specialize to MaxCut and the distance to bipartiteness.
Given a set that retains each variable independently with probability , we estimate the optimum by the rescaled sampled optimum . For payoffs in , fixed , and a fixed bound on the alphabet sizes, we will show that an expected sample size of suffices for additive error with probability at least 2/3. This is the guarantee of Theorem 3. For graphs, the same estimator, together with an estimate of the number of edges, gives part (a) of Theorem 4.
Our proof bounds the bias and the fluctuations of the estimator separately. In Section 5.1, we write a Max-rCSP as a multilinear objective, so that Theorem 2 bounds the bias in terms of a centered norm of the payoff tables. In Section 5.2, we bound the variance of the sampled optimum by an Efron-Stein argument. We combine the two bounds in Section 5.3 and treat graphs in Section 5.4. To count queries, we assume that a table query specifies an -element set and returns ; a variable is examined if it belongs to a queried set.
5.1 Encoding Max-rCSPs
We first fix notation for Max-rCSPs and the quantities that control the bias and the fluctuations of the estimator. Fix an integer . Let be nonempty finite alphabets, and for each let be a payoff table; an absent constraint is the zero table. Every table is indexed by distinct variables. For and , define
with when , and write . Thus is the optimum of the mean objective, in which each constraint is weighted by the probability that all its variables are retained; for uniform retention it equals . Let be the average of over its table, put , and define the centered energy
The hindsight gain is unchanged when each table is centered (see the proof of Theorem 9), so the centered energy will play the role of . When for nonnegative weights , write
; these range bounds will control the fluctuations in Section 5.2. If every alphabet has size at most , then
Indeed, a uniformly random table entry in has variance at most , and the table has at most entries. For MaxCut, , , and on graph edges. Each nonzero table has mean and centered energy 1, so when is the adjacency matrix of .
With this notation, Theorems 1 and 2 give the following bounds on the hindsight gain of a Max-rCSP.
Theorem 9 (Hindsight gain for Max-rCSPs). For each fixed there is a constant , independent of the alphabets, such that the following holds. If contains each variable independently with probability , then
For uniform retention with probability ,
Proof. We first remove the table averages, which do not change the gain, and then encode the centered instance in our model.
Centering. For every , . The corresponding identity for and independence of the variable indicators show that the hindsight gain is unchanged when every table is replaced by . We may therefore assume that all tables have mean zero.
One-hot encoding. Relabel each alphabet as , take , and let consist of the corresponding coordinate unit vectors. For , define
The coefficients outside the alphabet coordinates are zero. On unit vectors representing an assignment , this interaction equals . Thus for every ,
The last equality uses the centering performed above. By the first identity, the vector program has the same weighted and restricted optima as the Max-rCSP, and Theorems 1 and 2 give the two bounds.
5.2 Sampling-Sensitive Variance Bounds
Theorem 9 controls the bias of the estimator, and it remains to control its fluctuations. Adding or removing one variable affects only the interactions whose other variables were all sampled, so we charge the variable only for these interactions rather than for its full degree. The resulting variance bound is on the same scale as the squared bias. Since we apply it to several quantities, we state it for any set function with this bounded-difference property.
Lemma 5.1 (Sampling-sensitive variance). Let for , let , and suppose satisfies
Then, for every ,
For the sharper bound
also holds.
Proof. The statement is immediate if , so assume . Write and
Thus is the total weight of the interactions at whose other variables are all sampled. By (32), replacing by an independent copy changes by at most . Since is independent of these two indicators and , the Efron-Stein inequality [BLM13] gives
The equality follows by expanding over pairs : a pair with appears for each of the choices of , and the other variables of are all sampled with probability . The last sum is over ordered pairs. For each fixed , there are possible with . The inequality therefore yields
Putting , using and , and summing the binomial expansion proves (33). For , the right-hand side of (35) is , which equals (34).
Before applying the lemma, we check condition (32) for the functions we need. It holds for whenever : an optimal assignment on extends without loss, while restricting an optimal assignment on loses at most the sum of the newly present payoffs. It also holds when , by using arbitrary extensions and restrictions for the two inequalities. For graphs it holds, with and the adjacency matrix, for the number of edges, the maximum cut, and the distance to bipartiteness. For the last quantity, deleting a vertex cannot increase the distance, and deleting all its incident edges together with an optimal deletion set for the remaining graph makes the enlarged graph bipartite.
5.3 The Estimator
We now combine the bias and variance bounds into an accuracy guarantee. For , we use the following estimator.
Estimator . Put and sample . If , output 0. Otherwise read the tables with and output .
The sample is chosen before any table is read, so the estimator is nonadaptive, and the cutoff at 4q ensures that it reads tables.
Theorem 10 (Energy-sensitive estimator). For every fixed there is a constant such that the following holds. Let and . With probability at least 5/6, the estimator samples at most 4q variables and satisfies
Proof. Let and . We bound the bias and the fluctuations of separately and then account for the cutoff. By (31), the bias satisfies
For the fluctuations, since satisfies (32), Lemma 5.1 and give
Chebyshev’s inequality bounds by with probability at least 11/12. It remains to account for the cutoff. The sample size is a sum of independent indicators with mean , so the Chernoff bound gives . On the event the estimator outputs , so a union bound proves the claim, with an adjusted .
Corollary 5.2 (Bounded alphabets). For every fixed there is a constant such that the following holds for every . If all alphabets have size at most and all payoffs lie in , take
With probability at least 5/6, samples at most 4q variables and satisfies . It reads payoff tables.
Proof. If , the estimator is exact. Otherwise take . Then and, by (29), . The error in Theorem 10 is at most , which is at most after increasing .
This proves Theorem 3. The dependence on the accuracy cannot be improved for any fixed and alphabet size at least two, since Corollary A.5 gives a matching lower bound on the number of examined variables. When the tables are sparse, Theorem 10 can give a better alphabet dependence than Corollary 5.2. For example, in a pairwise Unique Games instance over labels, each nonzero table is a permutation matrix with squared centered energy , so sampled variables suffice, compared with from Corollary 5.2.
Remark 5.3 (Constraints of smaller arity). The same sample bound holds when there is a payoff table with values in on each nonempty subset of at most variables. If , the estimator is exact. Otherwise, apply Corollary 5.2 to the -variable tables. The remaining tables change the original optimum by at most and, on the event , change the sampled optimum by at most . Their total contribution to the rescaled error is at most , which is absorbed in the stated error after adjusting the sample-size constant.
5.4 MaxCut and the Distance to Bipartiteness
We now specialize to graphs. For MaxCut, the estimator reads the subgraph induced by the sample and rescales its maximum cut. Since , estimating the number of edges from the same sample also gives an estimate of the distance to bipartiteness.
Corollary 5.4 (Graph estimator). There is an absolute constant such that the following holds for every . Let be a graph on vertices, let and , and sample . If , output 0; otherwise query all pairs inside and output and . Then, with probability at least , both outputs are within of and , respectively. The algorithm is nonadaptive, examines at most vertices, and makes fewer than queries.
Proof. If , both outputs are exact, so assume . Let , and let be the adjacency matrix of , so that for MaxCut. By Theorem 10 with , with probability at least we have and for an absolute constant . To estimate , we also need the number of edges. It satisfies (32) as well, so , whose mean is , has variance at most by Lemma 5.1; by Chebyshev's inequality, it is within of with probability at least . On both events, and differ by at most . Taking proves the accuracy claims with probability at least . Finally, the algorithm makes at most queries.
Corollary 5.4 proves Theorem 4(a). Apart from sampling , the running time is , by exhaustive search over cuts. The matching lower bounds on examined vertices and nonadaptive queries are proved in Appendix A.
6 Application II: Max-Cut under Vertex Percolation
Vertex percolation at rate keeps each vertex of a graph independently with probability . Zhao [KRS19] asked whether, for , it preserves the max-cut fraction of every sequence of graphs whose ratio of edges to vertices tends to infinity. In this application, we use our bound on the hindsight gain for MaxCut to answer this question for every retention rate.
Let be a graph with vertices and edges, put , and let . We compare the max-cut fraction of the sample with . We will show that, when , the two fractions differ by with probability at least (Theorem 11). Letting tend to zero slowly then answers Zhao's question (Corollary 6.1), and the complete graph shows that the condition cannot be weakened (Proposition 6.2).
The max-cut fraction of H is a ratio of two random quantities, so we control the numerator and the denominator separately. The case r = 2 of Theorem 9 bounds the mean of , and the graph bound (34) controls the fluctuations of both and . Along the way we also obtain a multiplicative estimate for the rescaled max-cut, which we use in Remark 6.3.
Theorem 11 (Quantitative vertex percolation). There is an absolute constant such that the following holds. Let be a graph with vertices and edges, let , and let and satisfy . Then, with probability at least , the graph satisfies ,
Proof. Let and . We first compare their means with and , then show that both are concentrated, and finally bound the two ratios.
Means. Each edge survives with probability , so . For the numerator, (31) with gives
where is the constant in (31) for r = 2.
Fluctuations. Both and satisfy the hypothesis of Lemma 5.1 with the adjacency matrix of , so and
By Chebyshev's inequality and a union bound, with probability at least we have for . Put , the deviation relative to , so that
To control the ratio, we first show that this relative fluctuation is small enough to keep the denominator away from zero. Since , we have , and hence , as . Therefore .
Conclusion. On the event above, . With we have , so by (36),
Similarly, since , we have . Both bounds are at most .
We now pass to sequences of graphs.
Corollary 6.1 (Zhao's question). Let be graphs with , let , and let satisfy . Then, with probability tending to one, has an edge and
where is the constant of Theorem 11. In particular, for and , the max-cut fraction is preserved with probability tending to one.
Proof. To make both the failure probability and the error bound tend to zero, apply Theorem 11 with . This tends to zero, and it lies in and satisfies as soon as . The error bound becomes .
Conversely, the density condition cannot be weakened, as the complete graph shows.
Proposition 6.2 (Sharpness of the density condition). For every there are graphs with and probabilities with such that, with probability bounded away from zero, has at most one edge, whereas . In particular, the max-cut fraction of is not preserved with probability tending to one.
Proof. Let , so that , and let for . Then converges in distribution to a Poisson variable with mean , so . On this event either has no edge or consists of a single edge, whose max-cut fraction is 1, whereas .
Corollary 6.1 and Proposition 6.2 together prove Theorem 5.
Remark 6.3 (Uniform core-sets for MaxCut). The second estimate of Theorem 11 is a multiplicative guarantee for the rescaled sampled max-cut. For a graph of average degree , sample each vertex with probability for a suitable absolute constant . Taking in Theorem 11, we obtain with probability at least 2/3, and the expected number of sampled vertices is . For this is , the same polynomial dependence on as the core-sets of Bhaskara, Daruki, and Venkatasubramanian [BDV18], which is optimal under the exponential time hypothesis. Their core-sets use degree-biased sampling and succeed with high probability, whereas our guarantee uses uniform sampling and holds with constant probability.
Remark 6.4 (One-half percolation). For , the case of Zhao's question, the bounded differences inequality [McD89] gives exponential tails in place of Chebyshev's inequality, and hence a bound that holds with high probability. Let and . Changing the membership of a single vertex changes and by at most , and . The bounded differences inequality with deviation , together with a union bound, therefore shows that with probability at least both quantities are within of their means. If is so large that , then . Combining these bounds with (36) at , exactly as in the proof of Theorem 11, gives
7 Application III: Sampling Quantum Ground-State Energies
A local quantum Hamiltonian describes a many-particle system through interactions involving a bounded number of particles. Its ground-state energy is its minimum eigenvalue: the lowest energy attainable by any state, including entangled states. In this application, we use our uniform-retention theorem (Theorem 2) to estimate this energy from the interactions among a small random sample of particles.
We begin with interactions indexed by r-element sets, and allow terms of smaller arity at the end of the proof:
where each is Hermitian and acts on the particles in , each of local dimension . Identity operators on the remaining particles are implicit, and zero interactions are allowed. For , let and .
Given a uniformly random set of particles, we estimate by the rescaled sampled energy . For fixed and , and , we will show that sampled particles suffice for additive error with probability at least 0.99, taking the whole instance if the required sample size exceeds . This is the guarantee of Theorem 6.
Our proof proceeds in two steps. We first restrict to pure product states, which are tensor products of single-particle unit vectors. Their energy is multilinear in the corresponding rank-one density matrices, allowing us to obtain an sample bound from our uniform-retention theorem. We then use a product-state approximation theorem to pass to the full ground-state energy. To carry out the first step, we define the minimum product-state energy by
The factors in each tensor product are ordered by their particle labels. Since all interactions here are indexed by -element sets, both energies are zero when . Restricting the state space to product states gives .
7.1 Sampling Product-State Energies
We first express the product-state objective in real coordinates. Fix an orthonormal basis of the real vector space of Hermitian matrices, with inner product . We represent by the real vector . These vectors form a compact set , and
Thus the feasible sets fit our model with ; convexity is not required. To turn energy minimization into maximization, we negate the interactions: for , define
Then , so . The coefficient norm needed for our sampling bound satisfies
Here is the Frobenius norm of its local matrix, without the implicit identity factors, so . The middle equality follows because the tensor products of the form an orthonormal basis for the Hermitian operators on particles.
Lemma 7.1 (Sampling product-state energies). For every fixed there is a constant such that, for every integer and a uniformly random -element set , with probability at least 0.99,
In particular, sampled particles suffice for additive error , taking the whole instance if this number exceeds .
Proof. The case is immediate. Put and first use a Bernoulli sample , for which our uniform-retention theorem controls the bias directly. By Theorem 2 and (38),
To control fluctuations, we bound how much adding one particle can change the optimum. For every product state, each summand in (37) lies in . Restricting an optimal product state from to , and extending an optimal product state from by an arbitrary state at , give
This is (32) with , so we can apply Lemma 5.1 with . Since ,
Combining this variance bound with Chebyshev's inequality and (40), we obtain
with probability at least 1 - 1/200, after adjusting .
It remains to pass from Bernoulli sampling to a fixed-size sample. We couple the two samples using a uniformly random permutation of and an independent . Let and be its first and first elements, respectively. Then has the law of and is uniform among the -element subsets. With probability at least , . Because the sets are nested, we can pass from one to the other by adding or removing one particle at a time. On this event, (41) therefore gives
Multiplying by and combining with (42) by a union bound proves the lemma.
7.2 From Product States to the Ground-State Energy
To transfer our sampling estimate to the ground-state energy, we need to bound the error from restricting to product states. We use Bergamaschi's product-state approximation theorem [Ber23, Theorem 3], which builds on Brandão and Harrow [BH13]. For a Hamiltonian on s particles of local dimension d, with m nonzero interactions indexed by r-element subsets and of norm at most one,
where the last inequality uses . No regularity assumption on the interaction hypergraph is required. This is important for us, since we apply the bound both to , which is arbitrary, and to the sampled Hamiltonian .
We now restate the ground-state guarantee, allowing at most one interaction of norm at most one on each nonempty subset of at most r particles, with retaining all terms supported in S.
Theorem 6 (Sampling quantum ground-state energies). For every fixed integer and fixed single-particle state space, there is a constant such that the following holds. Let be an -local Hamiltonian as above, and let . Put and choose uniformly among its -element subsets. Then, with probability at least 0.99,
Proof of Theorem 6. If , the estimate is exact. Otherwise, we compare the normalized energies and through the corresponding product-state energies. By (43) and , the normalized gaps and both lie in . Their difference therefore has absolute value at most . Combining this with Lemma 7.1, we obtain with probability at least 0.99 that
since . Multiplying by and choosing the constant in the sample size at least proves the assertion for interactions indexed by -element sets.
If also contains terms on fewer than particles, we extend the sums defining and to all with . We treat these additional terms as a perturbation: write , where consists of its -particle terms. With at most one term of norm at most one on each nonempty subset, we have
The variational characterization of the minimum eigenvalue bounds the effect of this perturbation: , and similarly for the sample. Hence the additional error in the rescaled estimate is at most
We can absorb this error into by adjusting the constant, which proves the stated r-local result.
The same perturbation argument applies to product-state minima, so their sampling estimate also permits interactions of smaller arity. Our product-state estimate needs sampled particles, and our ground-state estimate needs ; both are additive guarantees on the scale . For fixed and sufficiently large , the dependence of the product-state sample bound is optimal by Corollary A.6, even for diagonal qubit Hamiltonians. That corollary also gives an lower bound for ground-state energy. The exponent 3 in our ground-state upper bound is inherited from (43), and we do not claim it is optimal.
To implement the ground-state estimator, we query the interactions within the sampled set. If a query returns the classical description of a local interaction, this uses nonadaptive queries. Computing the minimum eigenvalue of the sampled Hamiltonian may take time exponential in q.
8 Conclusion
Random restrictions change both the available variables and the solution chosen after they are observed. In this paper, we isolate the value of this second effect, the hindsight gain, by comparing optimal values through a support direction. For homogeneous multilinear objectives, this gain is controlled by the Frobenius norm of the interaction coefficients and second moments of the weights. Under uniform retention, we iterate the comparison across scales and give an inverse-square-root dependence on the expected sample size. These bounds yield optimal accuracy dependence for sampling dense Max-rCSPs, sharp graph estimation bounds, preservation of max-cut fractions under vertex percolation, and a cubic sampling bound for quantum ground-state energies.
We conclude with several open questions.
Adaptive queries. The adaptive query complexity of estimating mc(G) or within lies between and (Appendix A). An adaptive upper bound of would mean that the optimum can be estimated without reading the full subgraph induced by the examined vertices, since every algorithm must examine of them. Whether such adaptive algorithms exist remains open.
Nonuniform retention. The refined estimate (Theorem 8) allows arbitrary inclusion probabilities and keeps track of the coefficient mass incident to each variable, but our sharp uniform estimate needs a common thinning rate. We ask whether, for independent Bernoulli weights with means , one always has
For equal probabilities this is the scale of Theorem 2. A bound that also retains the coefficient masses incident to individual variables could guide the choice of probabilities under a sampling budget.
Arity, alphabet size, and entanglement. The sample dependence for Max-rCSPs is optimal for any fixed arity and alphabet, but the joint dependence on these parameters remains to be determined. In particular, can optimal accuracy dependence coexist with the polynomial arity and polylogarithmic alphabet dependence of [BCC+26]? For quantum ground-state energies, the bound comes from the product-state approximation error. Whether the ground-state sampling exponent can match the exponent 2 for product-state energies is open.
A Lower Bounds
In this appendix we prove Theorem 4(b). We first show that nonadaptive algorithms need queries (Theorem 12), by the usual two-distribution argument: we construct two input distributions whose values of , and of mc, are separated by about with high probability, while the answers to any fixed set of fewer than queries have nearly the same law under both. We then deduce, by a random relabeling argument, that every algorithm must examine vertices (Corollary A.4). Finally, we transfer this bound to Max-rCSPs and local Hamiltonians (Corollaries A.5 and A.6).
Theorem 12 (Nonadaptive queries). There are absolute constants such that for every and every the following holds. Let be a randomized nonadaptive algorithm that makes at most adjacency queries and, for every -vertex graph , outputs with probability at least a number within of (respectively, of ). Then .
The two input distributions. Let . Let be the Erdős–Rényi distribution . To sample from , draw independent uniform labels for , and then include each pair independently with probability
Pairs with different labels are thus slightly more likely to be edges than pairs with equal labels; this typically lowers and raises mc by about (Lemma A.1). Averaged over the labels, however, every pair is an edge with probability exactly , so a single query has the same distribution under and ; the hidden bipartition reveals itself only through correlations between the answers to queries that form cycles.
Lemma A.1 (Separation). For , with probability at least 0.99 a graph drawn from satisfies
and with probability at least 0.99 a graph drawn from satisfies
Proof. All deviation bounds below are applications of Hoeffding's inequality to binomial variables on at most trials, with deviation ; each fails with probability at most .
Under , . For a fixed cut , the number of cut edges is binomial on trials with mean at most . A union bound over the cuts shows that with probability at least . Hence .
Under , let . Since , Chebyshev's inequality gives with probability at least . On this event the numbers of equal-label and different-label pairs are
Conditionally on , the number of equal-label edges is binomial with success probability , and deleting these edges leaves a bipartite graph. Hence . Likewise, the planted cut contains at least edges. Since and for , the lemma follows.
Indistinguishability. We have shown that the two input distributions typically have different optimum values. We now show that a small fixed set of queries cannot reliably distinguish them. For this we compare the laws of the answers through their -divergence, which controls the total variation distance and can be computed exactly for our two distributions.
Fix a set of distinct pairs, viewed as the edge set of a simple query graph on . Encode the answers by if and otherwise, and let be the law of under . A set is even if every vertex has even degree in the graph .
Lemma A.2 ( -divergence). .
Proof. Under the answers are independent uniform signs, and under , conditionally on , . Hence the likelihood ratio is , and . Let be an independent copy of . Integrating each independent uniform sign , we obtain
where are independent uniform signs. Expanding the product, the term indexed by equals , whose expectation is if is even and 0 otherwise.
The preceding identity reduces the divergence bound to counting even subgraphs of the query graph. We next bound this count in terms of the number of queried pairs.
Lemma A.3 (Counting even subgraphs). A simple graph with edges has no nonempty even subgraph with fewer than three edges, and at most even subgraphs with exactly edges for every .
Proof. Every nonempty even edge set is an edge-disjoint union of cycles (Veblen's theorem), and in a simple graph every cycle has length at least three. Let be the adjacency matrix, with eigenvalues , so that . Each cycle of length corresponds to closed walks of length , so the number of such cycles is at most
Fix one ordered decomposition into cycles for each even set with edges; this assignment is injective. The lengths form a composition of , of which there are , and for each composition there are at most sequences of cycles. Hence there are at most even sets with edges.
Proof of Theorem 12. Suppose, for a contradiction, that , and let be any set of at most distinct pairs; repeated queries can be discarded. By Lemmas A.2 and A.3,
and therefore . A randomized nonadaptive algorithm uses random bits that are independent of the input; its query set is a function of , and its output is a function of and . Hence the total variation distance between the laws of its output under and under is at most .
Now suppose that Alg estimates , let , and note that because . Consider the event that the output exceeds . Under , with probability at least the output is accurate and (Lemma A.1), in which case the output is at least because . Under , with probability at least the output is at most . The probabilities of the event under and thus differ by at least , a contradiction. Hence . The argument for mc is the same, with the threshold .
Examined vertices. The lower bound on examined vertices holds for all algorithms, adaptive or not. Its proof is the canonical-tester argument of Goldreich and Trevisan [GT03], which uses only that mc and are invariant under relabeling the vertices. The idea is to simulate an algorithm that examines vertices by a nonadaptive one that reads the subgraph induced by random vertices, and then to apply Theorem 12 to the simulation.
Corollary A.4 (Examined vertices). There are absolute constants such that for every and every , every algorithm, adaptive or not, that estimates (respectively, ) within with probability at least on every -vertex graph examines at least vertices in the worst case.
Proof. Let Alg be such an algorithm, and let be the maximum, over -vertex inputs and outcomes of its random bits, of the number of distinct vertices in its queries. The simulation Alg' chooses a uniformly random sequence of distinct vertices, queries all pairs among them, and then runs Alg, mapping the th distinct vertex name used by Alg to and answering each query of Alg from the subgraph induced by .
To verify that this simulation preserves the estimation guarantee, we compare it with running the original algorithm on a uniformly relabeled graph. Let be a uniformly random permutation of , independent of the random bits of Alg, and run Alg on the relabeled graph . Condition on the random bits of Alg. The th distinct name is determined by the history so far, and hence by the vertices of ; so is uniformly distributed among the remaining vertices, as is in Alg'. The run of Alg inside Alg' therefore has the same law as the run of Alg on . Since , the algorithm Alg' estimates within with probability at least on every graph. It is nonadaptive and makes queries, so Theorem 12 gives , where is the constant of that theorem. Hence .
Theorem 12 and Corollary A.4 together prove Theorem 4(b). For adaptive algorithms the query graph depends on the answers, and conditioning on it biases them, so Lemma A.2 does not apply. Since queries examine at most vertices, Corollary A.4 shows that adaptive algorithms need queries, so the adaptive query complexity lies between and .
Max-rCSPs and local Hamiltonians. To extend the bound on examined vertices beyond graphs, we first pad graph constraints with dummy variables to reach every arity, and then write Boolean Max-rCSPs as diagonal Hamiltonians. In both encodings, a query to the new instance is answered by at most one query to the old one. As in Section 5, a variable of a Max-rCSP is examined if it belongs to a queried set.
Corollary A.5 (Examined variables). Fix . For all sufficiently small and all , every algorithm that estimates the optimum of every Boolean Max-rCSP on variables with payoffs in within with probability at least examines variables in the worst case.
Proof. For this is Corollary A.4. For , take an -vertex graph and add disjoint groups of dummy variables. For each pair and each choice of one variable from each dummy group, assign the payoff to the resulting -set; all other tables are zero. The dummy labels do not affect any payoff. There are variables, and the optimum is exactly .
An oracle query to any table can be answered with at most one query to the corresponding pair of . Consequently, an estimator with error gives, after division by , a graph estimator with error , while examining no more original graph vertices than the number of variables examined by the CSP algorithm. Apply Corollary A.4 with accuracy . If is not divisible by , use and add the remaining isolated variables; the same argument changes only constants depending on .
Corollary A.6 (Examined particles). Fix integers . For all sufficiently small and all , every algorithm that estimates the minimum product-state energy, or the ground-state energy, of every -local Hamiltonian on particles of local dimension , with at most one term of norm at most one per subset, within with probability at least 2/3 examines particles in the worst case. A particle is examined if it belongs to a queried local interaction.
Proof. Let be a Boolean Max-CSP with payoffs in , and fix a surjection . For , define a diagonal local interaction by
Each has operator norm at most one. Since is diagonal in the computational basis, is its smallest diagonal entry. The entry at a basis vector with is the negative of the payoff of the Boolean assignment , and every Boolean assignment arises in this way because is surjective. Thus . A minimizing basis vector is a product state, so as well. These identities also hold for every restriction. A query to is simulated by one query to and examines the same variables. Negating either energy estimate therefore gives a CSP optimum estimate with the same error and success probability. Apply Corollary A.5.
AI Disclosure
Generative AI tools, especially GPT 5.6, GPT 6 and Opus 5.5, assisted with many parts of the mathematical development and exposition. These tools were also used for writing the early-stage manuscript of this paper. Despite this assistance, the authors put significant effort into verifying the results and making the text accessible to human readers, and retain full responsibility for the final text and results.
References
[AFKK03] Noga Alon, Wenceslas 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. doi:10.1016/S0022-0000(03)00008-4.
[AK02] Noga Alon and Michael Krivelevich. Testing k-colorability. SIAM Journal on Discrete Mathematics, 15(2):211–227, 2002.
[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.
[AW70] M. Avriel and A. C. Williams. The value of information and stochastic programming. Operations Research, 18(5):947–954, 1970.
[BCC+26] Martino Bernasconi, Matteo Castiglioni, Andrea Celli, Gabriele Farina, and Giulio Malavolta. A subsampling theorem for constraint satisfaction problems with large arity, 2026. arXiv:2608.00203.
[BCL+08] Christian Borgs, Jennifer T. Chayes, László Lovász, Vera T. Sós, and Katalin Vesztergombi. Convergent sequences of dense graphs I: Subgraph frequencies, metric properties and testing. Advances in Mathematics, 219(6):1801–1851, 2008. doi: 10.1016/j.aim.2008.07.008.
[BCL+12] Christian Borgs, Jennifer T. Chayes, László Lovász, Vera T. Sós, and Katalin Vesztergombi. Convergent sequences of dense graphs II. Multiway cuts and statistical physics. Annals of Mathematics, 176(1):151–219, 2012. doi:10.4007/annals.2012.176.1.2.
[BDV18] Aditya Bhaskara, Samira Daruki, and Suresh Venkatasubramanian. Sublinear algorithms for MAXCUT and correlation clustering. In Proceedings of the 45th International Colloquium on Automata, Languages, and Programming (ICALP), volume 107 of Leibniz International Proceedings in Informatics (LIPIcs), pages 16:1–16:14, 2018. arXiv:1802.06992, doi:10.4230/LIPIcs.ICALP.2018.16.
[Ber23] Thiago Bergamaschi. Improved product-state approximation algorithms for quantum local Hamiltonians. In Proceedings of the 50th International Colloquium on Automata, Languages, and Programming (ICALP), volume 261 of Leibniz International Proceedings in Informatics (LIPIcs), pages 20:1–20:18, 2023. Full version: arXiv:2210.08680. doi: 10.4230/LIPIcs.ICALP.2023.20.
[BH13] Fernando G. S. L. Brandão and Aram W. Harrow. Product-state approximations to quantum ground states. In Proceedings of the 45th Annual ACM Symposium on Theory of Computing (STOC), pages 871–880, 2013. arXiv:1310.0017.
[BHHS11] Boaz Barak, Moritz Hardt, Thomas Holenstein, and David Steurer. Subsampling mathematical relaxations and average-case complexity. In Proceedings of the 22nd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 512–531, 2011. arXiv:0911.5526, doi:10.1137/1.9781611973082.41.
[BL11] John R. Birge and François Louveaux. Introduction to Stochastic Programming. Springer, 2nd edition, 2011.
[BLM13] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013.
[BSS10] David B. Brown, James E. Smith, and Peng Sun. Information relaxations and duality in stochastic dynamic programs. Operations Research, 58(4, Part 1):785–801, 2010.
[BT04] Andrej Bogdanov and Luca Trevisan. Lower bounds for testing bipartiteness in dense graphs. In Proceedings of the 19th IEEE Conference on Computational Complexity (CCC), pages 75–81, 2004.
[CLV08] Stéphan Clémençon, Gábor Lugosi, and Nicolas Vayatis. Ranking and empirical minimization of U-statistics. The Annals of Statistics, 36(2):844–874, 2008.
[DGV08] Brian C. Dean, Michel X. Goemans, and Jan Vondrák. Approximating the stochastic knapsack problem: The benefit of adaptivity. Mathematics of Operations Research, 33(4):945–964, 2008.
[DL22] Darinka Dentcheva and Yang Lin. Bias reduction in sample-based optimization. SIAM Journal on Optimization, 32(1):130–151, 2022.
[Fer96] Wenceslas Fernandez de la Vega. MAX-CUT has a randomized approximation scheme in dense graphs. Random Structures & Algorithms, 8(3):187–198, 1996.
[FK99] Alan Frieze and Ravi Kannan. Quick approximation to matrices and applications. Combinatorica, 19(2):175–220, 1999.
[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.
[GMRS21] Arijit Ghosh, Gopinath Mishra, Rahul Raychaudhury, and Sayantan Sen. A faster algorithm for Max Cut in dense graphs, 2021. Withdrawn in version 2; according to the withdrawal comment, the proof of the main claim is incomplete. arXiv:2110.04574.
[GMRS22] Arijit Ghosh, Gopinath Mishra, Rahul Raychaudhury, and Sayantan Sen. Tolerant bipartiteness testing in dense graphs. In Proceedings of the 49th International Colloquium on Automata, Languages, and Programming (ICALP), volume 229 of Leibniz International Proceedings in Informatics (LIPIcs), pages 69:1–69:19, 2022. arXiv:2204.12397, doi:10.4230/LIPIcs.ICALP.2022.69.
[GS25] Lior Gishboliner and Asaf Shapira. Polynomial property testing. Computer Science Review, 58:100806, 2025. doi:10.1016/j.cosrev.2025.100806.
[GT03] Oded Goldreich and Luca Trevisan. Three theorems regarding testing graph properties. Random Structures & Algorithms, 23(1):23–57, 2003. doi:10.1002/rsa.10078.
[HVZ77] C. C. Huang, I. Vertinsky, and W. T. Ziemba. Sharp bounds on the value of perfect information. Operations Research, 25(1):128–139, 1977.
[JKM18] Vishesh Jain, Frederic Koehler, and Elchanan Mossel. The vertex sample complexity of free energy is polynomial. In Proceedings of the 31st Conference on Learning Theory (COLT), volume 75 of Proceedings of Machine Learning Research, pages 1395–1419, 2018.
[JKR19] Vishesh Jain, Frederic Koehler, and Andrej Risteski. Mean-field approximation, convex hierarchies, and the optimality of correlation rounding: A unified perspective. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 1226–1236, 2019. arXiv:1808.07226.
[KM14] Marek Karpinski and Roland Markó. Limits of CSP problems and efficient parameter testing, 2014. arXiv:1406.3514.
[KMR14] Felix Krahmer, Shahar Mendelson, and Holger Rauhut. Suprema of chaos processes and the restricted isometry property. Communications on Pure and Applied Mathematics, 67(11):1877–1904, 2014.
[KRS19] Michael Krivelevich, Oliver Riordan, and Angelika Steger. Combinatorics, Probability and Computing. Oberwolfach Reports, 16(2):1113–1189, 2019. Organizers. Report No. 19/2019, Problem Session, Problem (2), p. 1180. doi:10.4171/OWR/2019/19.
[LT91] Michel Ledoux and Michel Talagrand. Probability in Banach Spaces: Isoperimetry and Processes. Springer, 1991.
[Mau16] Andreas Maurer. A vector-contraction inequality for Rademacher complexities. In Algorithmic Learning Theory (ALT 2016), volume 9925 of Lecture Notes in Computer Science, pages 3–17. Springer, 2016. arXiv:1605.00251, doi:10.1007/978-3-319-46379-7_1.
[McD89] Colin McDiarmid. On the method of bounded differences. In Surveys in Combinatorics, 1989, volume 141 of London Mathematical Society Lecture Note Series, pages 148–188. Cambridge University Press, 1989.
[MMW99] Wai-Kei Mak, David P. Morton, and R. Kevin Wood. Monte Carlo bounding techniques for determining solution quality in stochastic programs. Operations Research Letters, 24(1-2):47–56, 1999.
[MS08] Claire Mathieu and Warren Schudy. Yet another algorithm for dense max cut: Go greedy. In Proceedings of the 19th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 176–182, 2008.
[NST18] Karthik Natarajan, Dongjian Shi, and Kim-Chuan Toh. Bounds for random binary quadratic programs. SIAM Journal on Optimization, 28(1):671–692, 2018.
[RV07] Mark Rudelson and Roman Vershynin. Sampling from large matrices: An approach through geometric functional analysis. Journal of the ACM, 54(4):Article 21, 2007.
[RZ16] Daniel Russo and James Zou. Controlling bias in adaptive data analysis using information theory. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 51 of Proceedings of Machine Learning Research, pages 1232–1240, 2016.
[SW06] James E. Smith and Robert L. Winkler. The optimizer's curse: Skepticism and postdecision surprise in decision analysis. Management Science, 52(3):311–322, 2006.