Manuscript Offprint
arXiv:2611.03367Stochastic Matching with Polynomial Degree
Abstract
We study the stochastic matching problem, where a graph is known in advance, but each edge survives independently with probability . The goal is to select a subgraph of small maximum degree before seeing the surviving edges, while preserving a fraction of the expected maximum matching size. This problem has received significant attention due to its numerous applications in kidney exchange, labor markets, and online dating.
In this paper, we show there is always a subgraph achieving a -approximation while having a maximum degree of at most
This resolves a major conjecture of the literature, first stated by [BDH, STOC'20], that poly() degrees suffice. The best previous bound was by [ABGR, STOC'25].
The key to this result is a lemma of independent interest that any distribution over the matchings of a stochastic graph can be transformed to another distribution which matches each vertex with exactly the same probability, but exhibits extremely low total pairwise correlation.
*Supported in part by NSF CAREER Award CCF 2442812, a Sloan Fellowship, and a Google Research Award.
1 Introduction
The stochastic matching problem, introduced by Blum et al. [Blum15], is a model for finding large matchings when edge availability is uncertain and must be learned through expensive queries. The problem is motivated by applications in kidney exchange, online labor markets, and online dating. These applications, together with the rich mathematical structure underlying its simple formulation, have led to a flurry of results over the last decade [Blum15, AKL16, AKL17, BR18, AB19, BFHR19, BDFHR19, GKS19, BDH20, BD20, BBD22, FGH22, ABGR25, DS25].
Formally, let be a known graph and let be an (unknown) random subgraph of retaining every edge independently with probability . An algorithm selects a subgraph , queries its edges, and returns a maximum matching in . Writing for maximum matching size, the goal is to choose (without knowing the realization ) such that
While simply taking (i.e., querying all edges) clearly satisfies (1), the goal is to keep the maximum degree of , which corresponds to the number of queries per vertex, small.
Previous results. The earlier works [Blum15, AKL16, AKL17, BFHR19, AB19] focused on improving the approximation, initially from close to and later to , while keeping the maximum degree dependent only on . The first work to show a -approximation is achievable with degree was that of Behnezhad, Derakhshan, and Hajiaghayi [BDH20] who achieved so by
They further conjectured that the same algorithm should achieve which has remained a major open problem since. Partial progress was made by [ABGR25] who obtained
which is for fixed , but far from .
Main result. In this paper, we prove that the conjecture of [BDH20] is true.
Result 1 (Formally as Theorem 1). For parameters , every graph has a subgraph satisfying (1) while having maximum degree
A few remarks:
-
To prove Result 1, we analyze the sample-and-union algorithm of [BFHR19] (formalized as Algorithm 1) which is also the algorithm analyzed and conjectured to work by [BDH20].
-
In Section A we present a lower bound of , which shows that the -dependency of Result 1 is optimal.
-
The upper bound of Result 1 could be further improved to using a slightly different algorithm and a more intricate analysis (still based on Lemma 3.1). The main body of this paper presents the slightly weaker bound of Result 1 for readability and clarity of presentation. We discuss the needed modifications for the improvement in Section B.
denote its probability of belonging to the selected maximum matching of a random realization. For a threshold , an edge is called crucial if , and noncrucial otherwise.
Crucial edges are easy to preserve: since , every vertex has at most crucial edges, so we can afford to include all of them in . On the other hand, there may be arbitrarily many noncrucial edges, but the hope is that they can be used interchangeably: since each is rarely used by the optimum, preserving sufficiently many alternatives should suffice.
The challenge is that both types of edges can contribute substantially to the optimum, and we must preserve their contributions simultaneously. A simple example is a large clique with a private leaf attached to each vertex, as illustrated on the right. When , roughly half the clique vertices can be matched to their leaves, while the remaining vertices can be matched inside. Thus, both types of edges contribute substantially, even though each individual clique edge has a very small selection probability.

The independence approach. A key insight of Behnezhad, Derakhshan, and Hajiaghayi [BDH20] was that we can first commit to a matching of realized crucial edges, and only then reveal the realization of the noncrucial edges, provided that the crucial matching is chosen with sufficient independence.
To see why independence matters, consider a noncrucial edge , and suppose that each of its endpoints is matched by with probability . For us to be able to use , both endpoints must remain unmatched by . If their matching events were independent, this would happen with probability . However, these events could be perfectly negatively correlated: for example, exactly one of and might always be matched by . In this case, both vertices are individually unmatched with probability , yet the probability that they are simultaneously unmatched is zero, meaning that we can never use the edge .
Unfortunately, full independence is impossible: whenever a vertex is matched, at least one of its neighbors must also be matched. The approach of [BDH20] was therefore to construct a crucial matching in which sufficiently distant vertices are matched independently. They accomplished this using a distributed LOCAL algorithm whose output at a vertex depends only on randomness within a neighborhood of radius , where denotes the maximum degree of the crucial graph. Consequently, the matching status of a vertex can be dependent on that of as many as other vertices. This quasipolynomial dependence on is ultimately responsible for the quasipolynomial dependence on in their result.
The subsequent work of Azarmehr, Behnezhad, Ghafari, and Rubinfeld [ABGR25] substantially improved this approach using local computation algorithms (LCAs). By carefully bounding both the in-queries and out-queries, they obtained an expected correlated-set size of only . This improvement was sufficient to obtain a degree bound polynomial in for every fixed .
Nevertheless, the exponent of this polynomial still depends on .
Our key lemma: bounding total covariance. We take a different approach. Rather than requiring a vertex to be independent of almost every other vertex, we bound the total strength of the correlations between all pairs of vertices.
Our key lemma shows that every matching distribution can be transformed into another matching distribution that preserves the probability of matching each vertex exactly, while having extremely small total covariance.
Lemma 3.1 (Informal statement). Let be any randomized matching of a stochastic graph with independent edge realizations. There exists another randomized matching on the same stochastic graph such that, writing and for the indicators that is matched by and , respectively, for every vertex , and
In particular, the total covariance is bounded by a constant times the expected number of matched vertices, with no dependence on the maximum degree of the graph. This does not mean that each vertex is correlated with only constantly many others: a vertex may be weakly correlated with many vertices, but the sum of the magnitudes of these correlations is small.
An illustrative example. What makes the lemma particularly surprising is that it preserves every vertex's matching probability exactly. In fact, there are examples where these marginals uniquely determine the matching algorithm. To appreciate the strength of this statement, consider a path on vertices , where every edge survives independently with probability . Let be the greedy algorithm that processes edges from left to right, selecting each surviving edge if the left endpoint is unmatched.
Left-to-right greedy matching

It could be confirmed that the greedy left-to-right algorithm is the only algorithm that achieves these exact marginals. For example, must be in the matching whenever realized to ensure gets matched with probability . And must be in the matching whenever is realized and is not to make sure the marginal contribution of is satisfied. This means that to preserve the marginals, the proof of Lemma 3.1 cannot modify this matching at all (at least in this example). Instead, we have to show that the total covariance remains remarkable small, despite the apparent propagation of dependencies along this long path.
Proof idea for the key lemma. The proof is based on a surprisingly simple optimization rule: assign each vertex a randomly perturbed weight
where is a deterministic offset and the perturbation is chosen independently for each vertex. We then choose a matching maximizing the total weight of its covered vertices.
There are two main ingredients in the analysis.
First, we show that the offsets can be chosen to preserve the prescribed vertex marginals. This is far from obvious a priori. Why should maximizing a linear function of randomly perturbed vertex weights be capable of reproducing an arbitrary feasible vector of vertex-matching probabilities? We prove this using a potential-function argument. If a vertex is matched less frequently than desired, we increase its offset; if it is matched too frequently, we decrease it. The challenge is that changing the weight of a vertex could drastically affect the marginals on other vertices. Nonetheless, we show that these updates make progress toward the target marginals by decreasing a suitable potential function. This produces matching distributions whose marginals can be made arbitrarily close to the desired ones. Finally, by taking a limit of these distributions, rather than a limit of the offsets themselves, we obtain the target marginals exactly.
Second, we exploit the stability of the vertex-weighted matching objective. The key observation is that changing the weight of a single vertex, together with any subset of its incident edges, changes the optimal covered set at at most two vertices. This stability property is particularly powerful because all the randomness can be grouped into independent blocks, one for each vertex. Resampling any single block then changes the coverage-indicator vector in at most two coordinates. We analyze the resulting vector of coverage indicators using a martingale. The small effect of resampling one block translates into a bound on the martingale differences, which in turn bounds the total pairwise covariance.
3 Key lemma: bounding total covariance
In this section, we prove the key lemma used in the paper.
Lemma 3.1. Let be a random subgraph of a finite graph , with independent edge indicators; their probabilities need not be equal. For every randomized matching algorithm , there is another randomized matching algorithm with the following property. Write
Then for every vertex , and
We note that while the lemma preserves vertex marginals, it may not necessarily match edges with the same probability. We write to the target matching probability of .
Proof outline. To prove Lemma 3.1, we assign a carefully randomized (and possibly negative) weight to each vertex and let be the matching that maximizes the total weight of covered vertices. In Section 3.2 prove that maximizing the vertex weights has the desired bound on the total pairwise covariance of all vertices. The harder part of the proof is to show there exists an assignment of weights such that the marginals are satisfied; we prove this in Section 3.3 using a combinatorial potential-based argument.
3.1 Stability of vertex weighted matchings
First, we show that the matching that maximizes vertex weights is stable. This observation and its proof are rather standard in the literature of matching. We present the proof anyway for completeness.
We say a weight vector is generic if distinct vertex subsets have distinct weight sums. Note that for generic , every matching maximizing has the same covered set. We denote this set by . The optimization is over all matchings, including the empty matching; it has no additional cardinality constraint. Weights may be negative.
Lemma 3.2 (Stability of the optimal covered set). Let be generic. Deleting a vertex from either leaves the optimal covered set unchanged or changes it by the symmetric difference for some . A change is possible only if is covered in .
More generally, suppose and differ only in edges incident to and in the weight of , and both weight vectors are generic. Then
If the sets differ, at least one of them contains i.
Proof. Let be an optimal matching in and an optimal matching in . Regard both as matchings on , with isolated in the second instance. Their symmetric difference has maximum degree two, and thus decomposes into alternating paths and even cycles.
Consider a component not containing . Switching the edges of this component in is feasible in , and switching it in is feasible in . If the difference between the two covered-weight sums on this component is , the two optimality inequalities give and . Thus . Genericity implies that the two covered sets on this component agree.
If a component contains , it is a path with endpoint : the matching has no edge at . Every internal vertex is covered by both matchings, and only the two endpoints can change coverage. Thus the covered sets either agree or differ exactly at and the other endpoint. If is uncovered by , there is no such component, and the sets agree everywhere.
For the second part, delete from both instances. This leaves the same graph and the same generic weights. Let be its unique optimal covered set. Each original covered set is either or for some . Any two sets of these forms differ at at most two vertices. If neither original set contains , both equal .
3.2 Independent perturbations give the covariance bound
Let be deterministically fixed, and let be chosen independently for each vertex and also of . In choose the (unique) matching maximizing the sum of covered-vertex weights . Let be the indicator that vertex is matched.
We assign each edge of arbitrarily to one of its endpoints. Each edge has a realization bit: a Bernoulli indicator equal to one when that edge is present. Let contain and the realization bits of all edges assigned to . Every bit belongs to exactly one block. Thus the blocks are independent and together determine . Note that the coordinates of may not be independent. Resample independently, leaving the other blocks fixed, and write for the resulting vector. Only the weight of and some edges incident to change. By Lemma 3.2,
The last inequality holds because the two instances have identical distributions.
Let and define the vector-valued martingale differences
Note that since resamples the new independently from . This means
Inequalities (3) and (4) give
Now from the definition note that
From which, we get that
The crucial observation here is that for , we have . To see this, suppose w.l.o.g. that and note that
Combining the above, we get that . Consequently,
(7)
3.3 Satisfying vertex marginals by weight updates
In this section, we show that we could set the deterministic offsets such that the resulting random matching of that maximizes the covered vertex weights for independent perturbations satisfies the marginals of the matching . Namely, let be the coverage vector of with target marginals , and let be the coverage vector of with vertex marginals . We prove in this section that there exists such that for all .
We do so by iteratively updating the offsets. The update has a simple interpretation. If , increase the reward for covering ; if , decrease it. The challenge is that changing this reward can also change other vertices' coverage probabilities. To analyze this, we define a potential function.
Lemma 3.3 (Calibration by single-vertex updates). Let . Start with . Whenever for some vertex , make the update
leaving all other offsets unchanged. Fix a deterministic rule for choosing a violating vertex. After at most updates, the process stops at a deterministic vector satisfying
Proof. We analyze a change to one coordinate while keeping all other offsets fixed, and then bound the total number of changes.
The potential. For a feasible matching and fixed perturbations, define its score by
Define the expected optimal score and the potential by
On every realized graph, is a feasible competitor for . Since has mean zero and is independent of ,
Also
because at zero offsets every covered vertex contributes at most one.
How one vertex's coverage probability responds. Let agree with except that , where is any real number. Condition on the realized graph and on all perturbations except . If some matching covers , define
where both maxima range over matchings in this fixed realized graph. The empty matching makes the second class nonempty. Every matching in the first class receives the same contribution from ; the definition of removes that contribution. Thus neither nor depends on or , and both remain unchanged when is updated.
The best score in the first class is ; the best score in the second is . Therefore, except on a probability-zero tie, the optimal matching covers exactly when
The update changes this threshold by . Since is uniform on an interval of length two, the conditional coverage probability changes by at most . If no matching covers , that probability is zero under both offsets. Averaging over the conditioning gives
Comparing the old and new optimal scores. Use the same realized graph and the same perturbations to choose and . The matching is feasible under the old weights, so optimality of gives . The score of the fixed matching , according to the new weights , only differs from that of by exactly iff is matched by . Therefore,
Here is one if the particular vertex is covered by and zero otherwise. Thus the score difference is or zero: only 's weight changed. Combining the two score comparisons yields
Taking expectations, and subtracting the change in the target term of the potential, gives
Note that the inequality holds for either sign of .
Every inaccurate coordinate gives a definite decrease. Choose as in (8). By (14) and (12),
Thus every performed update decreases the potential by more than . The potential starts at most and is always nonnegative by (11), so the process must stop within updates. When the process terminates, no coordinate violates the desired accuracy.
Getting exact marginals. At first, it may seem that applying Lemma 3.3 and letting , , and taking the limit would achieve exact marginals. However, note that Lemma 3.3 only gives which diverges as .
The trick is to take the limit of distributions, and not the weights. We apply Lemma 3.3 along any sequence . For each , use the fixed deterministic offsets on a fresh realized graph with independent perturbations. The random object is a joint distribution over a finite space since the graph is finite and the set of matchings is also finite. It therefore has a convergent subsequence. Its limit has the original graph-realization distribution, is supported on feasible matchings, and has coverage marginals exactly by (9). Define to sample from the limiting conditional law of the matching given , using a private independent seed, and write and . Thus for every vertex .
4 Proof of the main theorem using Lemma 3.1
In this section we prove that the sample-and-union algorithm achieves a -approximation with degree . The proof is more or less an adaptation of the arguments of [BDH20, ABGR25] to the total covariance upper bound of Lemma 3.1.
Theorem 1. For every graph , , and , the output of Algorithm 1 achieves a -approximation with maximum degree .
Algorithm 1: Sample-and-Union Algorithm
Input: Graph , survival probability , number of samples .
Output: A subgraph with maximum degree at most .
1 .
2 for do
3 Sample independently.
4 Let be a maximum matching of .
5 .
6 return .
Remark 4.1. Algorithm 1, for maximum degree , also could be shown to achieve a -approximation using a slightly more complicated analysis. The factor could further be removed from this bound by switching to a different algorithm. See Section B.
4.1 Notation and elementary tools
Notation. All graphs in the main argument are finite, undirected, and simple. All logarithms are natural. Constants hidden in asymptotic notation are absolute. For a matching , let be its covered vertices. Write for the maximum cardinality of a matching in and for the matching chosen by the fixed rule. A subscript denotes independent edge survival with probability . Intersections of graphs refer to their edge sets on the common vertex set.
For a nonnegative edge vector , use
The vector is a fractional matching if for every vertex. Let be the edges of with both endpoints in . All sums of covariances indexed by are over ordered pairs and include the diagonal.
Tools. We now mention some elementary tools we use to turn a fractional assignment into an integral matching.
Lemma 4.2 (A positive-part bound). For and ,
Consequently, if has finite variance and , then
Proof. The first inequality is immediate for . For it is equivalent to . Apply it with and , and take expectations.
Theorem 2 (Matching polytope; Edmonds [Edmonds65]). A nonnegative edge vector on a finite loopless graph is a convex combination of incidence vectors of matchings if and only if
In particular, these inequalities imply .
The following consequence charges the rounding loss to the sum of squared edge weights.
Lemma 4.3 (Rounding with a quadratic loss). For every fractional matching y in a finite simple graph K,
Proof. Set . Since , the vector is nonnegative and satisfies all vertex constraints. For an odd set of size , put . There are at most edges within , so Cauchy-Schwarz gives
The expression on the right is nondecreasing on . Consequently,
Singleton sets have no internal edges. Thus satisfies every constraint of Theorem 2, which gives .
Lemma 4.4 (Repairing vertex loads). For any nonnegative edge vector , put . Then is a fractional matching on the same support and
An edge of weight one whose endpoints both have load one retains weight one.
Proof. For every vertex , each incident denominator is at least , so . Assign each reduction to an endpoint with larger load. A vertex with load at most one receives no positive reduction. A vertex with load receives at most . Summing these bounds proves the loss inequality. The last assertion follows directly from the denominator.
Proof. Write
Choose , to be a sufficiently small absolute constant times , and set
In particular, and . Let be the set of crucial edges, the set of noncrucial edges, and write , , and .
4.2 The analysis
The crucial matching . The first step of the proof is an integral matching that we construct on the realized crucial edges using Lemma 3.1, which guarantees small total pairwise covariance. To do so, we have to specify the target coverage probabilities achievable by a feasible algorithm. Our coverage target is . Note that this coverage target is feasible: independently realize noncrucial edges and add them to , take the maximum matching (using the same algorithm as in the sample and union algorithm) on the resulting graph and then keep the matching with probability .
Let and . We have
The first inequality holds because and . The bound on the covariance holds because letting , Lemma 3.1 implies and since subtracting constants from random variables does not change their covariance. Also note that for any vertex ,
which implies the following bound that we use
A fractional assignment. Having the (integral) matching on the realized crucial edges, we “complement” it by assigning fractional values to the non-crucial edges that are realized and in addition belong to . In particular, for an edge let
be the fraction of the matchings of Algorithm 1 that include , which importantly is only supported on . Next, we consider the following assignment of values that is only supported on :
Here is the indicator that non-crucial edge is realized, which note is independent of (and thus the pair ) since is constructed using private randomness on the non-crucial edges.
Every crucial edge is missed by with probability at most , so . For a noncrucial edge , we have
(By definition of )
(By independence)
(Since and )
(By definition of covariance, .)
Summing over all noncrucial edges, we get
(Since and )
(Since )
Put together with our earlier bound for crucial edges, we get
From the fractional assignment to a fractional matching. It has to be noted that the fractional assignment x above is not necessarily a fractional matching because the re-scaling could potentially increase the vertex loads above 1. We now show that this could be avoided.
Let
For this calculation, also put whenever . The random vectors , , and are mutually independent, so and . We use the identity
where the second sum is over ordered pairs.
Individual variances. For every , let . Note that are independent Bernoulli random variables with , and . Therefore,
(Since and )
Now, recalling that , we have
(20)
where we used and for the last equality and the bound above on for the last inequality.
Pairwise covariances. Consider distinct edges . No simulated matching contains both edges. Independence between different simulations therefore gives
Also, since and are distinct edges, their test-edge indicators are independent, and hence . By the definition of covariance,
Note that we never assume and are independent. Their dependence is precisely what the covariance term captures.
Summing over vertices. Combining the individual-variance and pairwise-covariance bounds, rearranging the sums, and adding the nonnegative terms with u = w, we obtain
The first sum is at most 2Q by (18). For the coefficient of each covariance, we have
using , , and .
Therefore, recalling , we conclude that
The last equality uses , , , and : the first two terms are , and the third is .
Controlling the vertex loads. Recall that is the total fractional weight assigned to edges incident to . We first show that the expected total overload is small.
Consider a vertex covered by . Since is a matching, at most one crucial edge incident to receives positive weight, and that weight is one. Moreover, every noncrucial edge incident to has weight zero, since . Thus , so such a vertex has no overload.
Now consider a vertex not covered by . In this case, and no crucial edge incident to receives positive weight. Therefore,
Consequently, for every vertex v, we have
Here the inequality follows from .
To bound the expectation of the last expression, recall that and . Hence,
where the last inequality uses and . In particular, the threshold is strictly larger than the mean of .
Recall from Lemma 4.2 that for any random variable and any ,
Applying this inequality with and , we obtain
(By Lemma 4.2)
(Since )
(Since and )
Summing over all vertices and using , we conclude that
Thus, although may violate the fractional matching constraints , the total expected amount by which these constraints are violated is small.
We now repair these violations by defining . By Lemma 4.4, the resulting vector is a fractional matching, and the total weight lost during the repair is at most
Taking expectations and combining this with (19), we obtain
Finally, note that every edge in has weight one in . Its two endpoints have total load exactly one, since no other crucial edge can be incident to them and all their noncrucial edges have weight zero. Thus the repair does not change these weights: for every . Moreover, since noncrucial edges have positive weight only when both endpoints are uncovered by , their support remains vertex-disjoint from after the repair.
Rounding. We have shown that is a fractional matching with . Our final step is to show that the support of contains an integral matching of almost the same size.
Recall from Lemma 4.3 that for any fractional matching in a simple graph ,
Thus, it suffices to show that the sum of squared weights of the noncrucial edges is small.
We first bound for every noncrucial edge . Recall that we already established
where the last inequality uses from (15).
By the definition of , we have
(Since )
(By independence of , , and )
(Since )
(Since and )
Since for every edge, we also have . Summing the above inequality over all noncrucial edges gives
We bound these two sums separately. For the first sum, since by (16), we have
For the second sum, we additionally use for every noncrucial edge:
The last inequality follows from the definition in (16), since the sum over noncrucial edges contains only a subset of the pairs appearing in .
Combining these two bounds, we obtain
where the first equality follows from by (15) and the second equality follows from by (16). We can now apply Lemma 4.3. Let denote the restriction of to noncrucial edges. Since is a fractional matching, is also a fractional matching. Therefore, the noncrucial support contains an integral matching satisfying
Recall that the positive crucial entries of are exactly the edges of , each with weight one. Moreover, every noncrucial edge with positive weight has both endpoints uncovered by . Hence and are vertex-disjoint, and their union is a matching in .
Consequently,
Taking expectations and using our bounds on the repaired fractional matching and the squared weights, we conclude that
Recall that . Choosing to be a sufficiently small constant times therefore gives
Finally, by (15),
Since is the union of matchings, every output satisfies . Moreover, averaging over the randomness of shows that there exists a fixed subgraph with the same expected approximation guarantee. This completes the proof.
Acknowledgments
The author thanks Sepehr Assadi, Amir Azarmehr, Avrim Blum, Mahsa Derakhshan, Alireza Farhadi, Alma Ghafari, MohammadTaghi Hajiaghayi, Nima Reyhani, Ronitt Rubinfeld, and Hamed Saleh for many helpful discussions about the stochastic matching problems over the years.
AI Statement: Discussions with ChatGPT Astra were helpful for this project. In particular, a proof of Lemma 3.1 was first completed by ChatGPT after providing relevant context and intuitions. The original proof relied on intricate and hard-to-understand continuous techniques. The author discovered the simpler combinatorial proof that is presented in this paper. The author assumes full responsibility for the correctness of the entire paper and its content.
References
[AB19] Sepehr Assadi and Aaron Bernstein. Towards a Unified Theory of Sparsification for Matching Problems. In 2nd Symposium on Simplicity in Algorithms (SOSA), pages 11:1–11:20, 2019. doi:10.4230/OASIcs.SOSA.2019.11.
[AKL16] Sepehr Assadi, Sanjeev Khanna, and Yang Li. The Stochastic Matching Problem with (Very) Few Queries. In Proceedings of the 2016 ACM Conference on Economics and Computation (EC), pages 43–60, 2016. doi:10.1145/2940716.2940769.
[AKL17] Sepehr Assadi, Sanjeev Khanna, and Yang Li. The Stochastic Matching Problem: Beating Half with a Non-Adaptive Algorithm. In Proceedings of the 2017 ACM Conference on Economics and Computation (EC), pages 99–116, 2017. doi:10.1145/3033274.3085146.
[ABGR25] Amir Azarmehr, Soheil Behnezhad, Alma Ghafari, and Ronitt Rubinfeld. Stochastic Matching via In-n-Out Local Computation Algorithms. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC), pages 1055–1066, 2025. doi:10.1145/3717823.3718279.
[BBD22] Soheil Behnezhad, Avrim Blum, and Mahsa Derakhshan. Stochastic Vertex Cover with Few Queries. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1808–1846, 2022. doi:10.1137/1.9781611977073.73.
[BD20] Soheil Behnezhad and Mahsa Derakhshan. Stochastic Weighted Matching: (1 – ε)-Approximation. In 61st IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 1392–1403, 2020. doi:10.1109/FOCS46700.2020.00131.
[BDFHR19] Soheil Behnezhad, Mahsa Derakhshan, Alireza Farhadi, MohammadTaghi Hajiaghayi, and Nima Reyhani. Stochastic Matching on Uniformly Sparse Graphs. In Algorithmic Game Theory (SAGT), volume 11801 of Lecture Notes in Computer Science, pages 357–373, 2019. doi:10.1007/978-3-030-30473-7_24.
[BDH20] Soheil Behnezhad, Mahsa Derakhshan, and MohammadTaghi Hajiaghayi. Stochastic Matching with Few Queries: (1 – ε)-Approximation. In Proceedings of the 52nd Annual ACM Symposium on Theory of Computing (STOC), pages 1111–1124, 2020. doi:10.1145/3357713.3384340.
[BFHR19] Soheil Behnezhad, Alireza Farhadi, MohammadTaghi Hajiaghayi, and Nima Reyhani. Stochastic Matching with Few Queries: New Algorithms and Tools. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2855–2874, 2019. doi:10.1137/1.9781611975482.177.
[BR18] Soheil Behnezhad and Nima Reyhani. Almost Optimal Stochastic Weighted Matching with Few Queries. In Proceedings of the 2018 ACM Conference on Economics and Computation (EC), pages 235–249, 2018. doi:10.1145/3219166.3219226.
[Blum15] Avrim Blum, John P. Dickerson, Nika Haghtalab, Ariel D. Procaccia, Tuomas Sandholm, and Ankit Sharma. Ignorance is Almost Bliss: Near-Optimal Stochastic Matching With Few Queries. In Proceedings of the Sixteenth ACM Conference on Economics and Computation (EC), pages 325–342, 2015. doi:10.1145/2764468.2764479.
[vB+26] Jan van den Brand, Inge Li Görtz, Chirag Pabbaraju, Debmalya Panigrahi, Clifford Stein, Miltiadis Stouras, Ola Svensson, and Ali Vakilian. An Optimal Algorithm for Stochastic Vertex Cover. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC), pages 1548–1557, 2026. doi:10.1145/3798129.3800863.
[DDH23] Mahsa Derakhshan, Naveen Durvasula, and Nika Haghtalab. Stochastic Minimum Vertex Cover in General Graphs: A 3/2-Approximation. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 242–253, 2023. doi:10.1145/3564246.3585230.
[DF23] Mahsa Derakhshan and Alireza Farhadi. Beating -Approximation for Weighted Stochastic Matching. In Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1931–1961, 2023. doi:10.1137/1.9781611977554.ch74.
[DS25] Mahsa Derakhshan and Mohammad Saneian. Query Efficient Weighted Stochastic Matching. In 52nd International Colloquium on Automata, Languages, and Programming (ICALP), volume 334 of LIPIcs, pages 67:1–67:20, 2025. doi:10.4230/LIPIcs.ICALP.2025.67.
[DSX25] Mahsa Derakhshan, Mohammad Saneian, and Zhiyang Xun. Query Complexity of Stochastic Minimum Vertex Cover. In 16th Innovations in Theoretical Computer Science Conference (ITCS), volume 325 of LIPIcs, pages 41:1–41:12, 2025. doi:10.4230/LIPIcs.ITCS.2025.41.
[DKP23] Shaddin Dughmi, Yusuf Hakan Kalayci, and Neel Patel. On Sparsification of Stochastic Packing Problems. In 50th International Colloquium on Automata, Languages, and Programming (ICALP), volume 261 of LIPIcs, pages 51:1–51:17, 2023. doi:10.4230/LIPIcs.ICALP.2023.51.
[DKL26] Shaddin Dughmi, Yusuf Hakan Kalayci, and Xinyu Liu. Near-Optimal Sparsifiers for Stochastic Knapsack and Assignment Problems. In 17th Innovations in Theoretical Computer Science Conference (ITCS), volume 362 of LIPIcs, pages 51:1–51:22, 2026. doi:10.4230/LIPIcs.ITCS.2026.51.
[Edmonds65] Jack Edmonds. Maximum Matching and a Polyhedron with 0,1-Vertices. Journal of Research of the National Bureau of Standards—B, 69B(1-2):125–130, 1965. doi:10.6028/jres.069B.013.
[FGH22] Alireza Farhadi, Jacob Gilbert, and MohammadTaghi Hajiaghayi. Generalized Stochastic Matching. In Proceedings of the AAAI Conference on Artificial Intelligence, 36(9):10008–10015, 2022. doi:10.1609/aaai.v36i9.21239.
[GKS19] Buddhima Gamlath, Sagar Kale, and Ola Svensson. Beating Greedy for Stochastic Bipartite Matching. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2841–2854, 2019. doi:10.1137/1.9781611975482.176.
[GKPS06] Rajiv Gandhi, Samir Khuller, Srinivasan Parthasarathy, and Aravind Srinivasan. Dependent Rounding and its Applications to Approximation Algorithms. Journal of the ACM, 53(3):324–360, 2006. Author manuscript.
[YM18] Yutaro Yamaguchi and Takanori Maehara. Stochastic Packing Integer Programs with Few Queries. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 293–310, 2018. doi:10.1137/1.9781611975031.21.
A A Lower Bound of
In this section, we show that the dependence on in Result 1 is optimal. In fact, even on bipartite graphs, every sparsifier achieving a -approximation must have maximum degree .
Theorem 3. For every and sufficiently small , there exists a bipartite graph such that every subgraph satisfying must have maximum degree . The same lower bound holds for randomized sparsifiers whose outputs obey the degree bound and are independent of the test realization.
Proof. Fix and . Let be the largest integer satisfying , and define . By maximality of and since , we have .
The construction. Consider a complete bipartite graph with vertices on each side, which we call the core vertices. Attach private leaves to each core vertex, as illustrated below. Each private leaf is adjacent only to its corresponding core vertex. Let denote the resulting bipartite graph.

Call a core vertex good if at least one of its private edges survives, and bad otherwise. Each core vertex is independently bad with probability . Good vertices can be matched to private leaves, while bad vertices must rely on edges between core vertices. The full graph contains enough core edges to match almost all bad vertices, but a bounded-degree sparsifier may not.
The expected optimum in . Let and denote the sets of bad core vertices on the two sides. For every realization, there is a maximum matching that matches all good vertices to private leaves and then takes a maximum matching between the bad vertices. Indeed, replacing an edge incident to a good vertex by a surviving private edge never decreases the matching size, and an edge between two good vertices can be replaced by two private edges.
Consequently, the optimum is . Since and are independent random variables, their expected minimum is .
Moreover, conditioned on , the edges between these sets survive independently with probability . For fixed and , this random bipartite graph contains a matching of expected size . Indeed, greedily match vertices on the smaller side while at least unmatched vertices remain on the other side. Each attempt fails with probability at most , so the expected number of unmatched vertices is at most .
Taking expectations, we conclude that
The limitation of bounded-degree sparsifiers. Now consider any subgraph with maximum degree at most . We give all private edges for free, which can only increase its expected matching size.
Consider a core vertex with core neighbors in . The probability that is bad is . Conditioned on this event, each of its core neighbors independently fails to provide a usable edge with probability : either the neighbor is good, or the edge does not survive.
Thus, the probability that is bad and has no surviving edge to another bad vertex is at least . Such a vertex cannot be matched, even after giving all private edges for free. Therefore, the expected number of isolated bad core vertices is at least . Since every matching edge between bad vertices covers two such vertices, we obtain
Concluding the lower bound. Suppose achieves a -approximation. Combining (23) and (24), and letting , gives . Since , this implies , and therefore .
Finally, since , we have . Consequently,
The argument also applies to randomized sparsifiers: condition on any output , apply (24), and then average over the randomness of .
B Improving the Polynomial Degree Bound
In this section, we briefly explain how the bound of Result 1 can be improved to . The improvement uses the same covariance lemma, but requires a slightly different sparsification algorithm and a more refined analysis.
A modified sparsification algorithm. Recall that . Set , and let
As before, let and .
Unlike sample and union, we include all crucial edges directly in . Since , this contributes degree at most .
For noncrucial edges, we use dependent rounding [GKPS06]. More precisely, we round the fractional values to indicators with , ensuring that the selected noncrucial degree at each vertex is at most . For general graphs, this can be achieved by orienting the edges arbitrarily and applying bipartite dependent rounding to the two-copy graph. The rounding also ensures nonpositive pairwise covariance between distinct incident edges within each of the two oriented groups. We return . Thus every output satisfies
This construction uses the exact marginals ; no efficient exact computation of them is claimed.
Changes to the analysis. There are two main improvements over the proof of Result 1.
First, we use a stronger consequence of the same martingale argument behind Lemma 3.1. The auxiliary crucial matching can be chosen so that, writing , for every family of -Lipschitz functions , we have
This follows by the same independent-block exposure argument: resampling one block changes U in at most two coordinates, and therefore changes each by at most 2L. Martingale orthogonality gives the bound, which is preserved when passing to the limiting matching distribution with exact marginals.
Second, rather than bounding the overload of every vertex using the uniform slack , we separate vertices with from those with . The former have constant slack, while there are only vertices of the latter type. Together with (25), this allows us to control the total repair loss using a total variance bound of order , instead of .
More concretely, define the noncrucial fractional frequencies by and use the same fractional assignment as in the main proof, with all crucial edges available. The dependent-rounding properties give
Writing for the corresponding auxiliary loads, the refined variance calculation gives
Using (25) during repair, and then applying the same quadratic-rounding lemma, the resulting relative loss is bounded by
With the parameter choices above, this is less than .
This proves the improved approximation. The essential difference is that the stronger covariance estimate and refined overload analysis permit a larger noncrucial threshold, while dependent rounding removes the log factor needed by sample and union to retain crucial edges.