Manuscript Offprint
arXiv:2611.06024Optimal LCA and Sublinear Estimation for Bipartite Matching in Queries
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Optimal LCA and Sublinear Estimation for Bipartite Matching in Queries
Edith Cohen
Google Research and Tel Aviv University
Mohammad Roghani
Google Research
Abstract
A local computation algorithm (LCA) for matching answers “who is the mate of ?” by inspecting only a small part of the graph, with all answers consistent with one matching. For -vertex graphs of maximum degree , Levi et al. [Algorithmica'17] give a -approximate matching LCA using polylog() queries per invocation, while Yoshida et al. [SIAM J. Comput.'12] estimate the maximum matching size within additive error using queries. Behnezhad, Roghani, and Rubinstein [FOCS'23] proved a lower bound for both tasks, even on bipartite graphs and even when the LCA's matching guarantee is relaxed to additive error. This leaves a gap between linear and quadratic dependence on in the exponent.
We close this gap on bipartite graphs. We give an LCA that answers each mate query with queries for a -approximate matching, and an estimator for the maximum matching size within using queries. On general graphs, the same algorithm gives a half-integral fractional matching and estimates the maximum fractional matching size.
Our approach runs rounds of a deterministic local optimization method in which vertices propose to neighbors and update prices according to incoming loads. We design its updates to admit exact recursive sampling with constant expected branching, obtaining the improved randomized bound without exploring full dependency neighborhoods. To our knowledge, this is the first LCA construction based on exact recursive sampling of the iterates of a deterministic continuous optimization method. We expect this approach to have applications beyond matching.
We study graphs with vertices and maximum degree at most , where may be much larger than . For such graphs, even reading the entire input may be too costly. Our goal is to answer local queries about an almost maximum matching, or to estimate its size, while inspecting only a small part of the graph. The first task is the subject of local computation algorithms (LCAs), introduced by Rubinfeld, Tamir, Vardi, and Xie [52] and Alon, Rubinfeld, Vardi, and Xie [3]. The second is sublinear-time estimation, studied since the work of Parnas and Ron [50] and Nguyen and Onak [46]. Matching has received extensive attention in both settings [6, 8, 9, 11–13, 38, 40, 46, 50, 54, 56], and we review the known bounds below. We also consider the distributed LOCAL and CONGEST models, where vertices communicate with their neighbors in synchronous rounds and complexity is measured by the number of communication rounds.
We study both matchings and their classical fractional relaxation. A fractional matching assigns nonnegative weights to edges such that at every vertex. Its value is , and denotes the maximum possible value. It is half-integral if every weight belongs to . On bipartite graphs, .
The local computation model. The vertices are labeled by , and and a degree bound are known. A degree query at returns . A neighbor query at returns the -th neighbor of , with neighbors listed in a fixed but arbitrary order. An LCA [3, 52] provides query access to a solution without constructing the entire output. For matching, a mate query at a vertex returns its partner or reports that it is unmatched. For fractional matching, an edge query returns the weight assigned to an edge.
Our LCAs do not use preprocessing and do not retain state between invocations. A randomized LCA has access to a random tape shared by all invocations, allowing repeated evaluations to reproduce the same random choices. All answers must be globally consistent: they must agree with one feasible solution, in every query order, including adaptively chosen queries.
We measure an LCA's query complexity by the worst-case number of graph queries used to answer one solution query. A size estimator returns a numerical estimate of or , and its query complexity is the total number of graph queries it makes.
Computation is free when measuring graph-query complexity. We separately bound computational work in the finite-arithmetic model of Section 2.1.
The distributed LOCAL and CONGEST models. In both models [51], each vertex is a processor that communicates with its neighbors in synchronous rounds. The LOCAL model measures information radius and allows messages of unrestricted size; the CONGEST additionally restricts communication bandwidth to bits per edge in each direction per round. After rounds, a vertex's output can depend only on information within its radius- neighborhood. Thus distributed round complexity measures how far information must travel, whereas LCA query complexity measures how much of the input is inspected. An LCA can simulate an -round distributed algorithm by exploring the radius- neighborhood of the queried vertex, using graph queries [50]. In addition to query and round complexity, we separately bound the computational work per local query and the message size per edge per round in our distributed implementation.
Approximation guarantees. The optimal matching can depend on information arbitrarily far from the queried vertex, even on paths. We therefore focus on approximation when seeking bounds independent of .
For the matching itself, we seek a multiplicative guarantee: a -approximate matching has size at least , and analogously at least for fractional matching. To describe earlier results, we also use additive approximation notation: a matching is -approximate if , and more generally -approximate if . Note that since , a multiplicative -approximate guarantee implies an additive guarantee and hence is stronger.
For size estimation, a multiplicative guarantee with a fixed requires distinguishing the empty graph from a graph with a single edge, which requires queries. For query bounds independent of , we therefore seek additive accuracy.
Known algorithms. Sublinear algorithms for estimating matching size in bounded-degree graphs go back to Parnas and Ron [50], who showed how to simulate a distributed algorithm at a single vertex by exploring its neighborhood. For matching, this gives a -estimate with queries. Nguyen and Onak [46] introduced recursive local simulation of randomized greedy algorithms, and Yoshida, Yamamoto, and Ito [56] improved this approach to obtain a -estimate with queries. Applied to the standard bipartite double cover [1, Lemma 7], this estimator also estimates within with the same query bound.
For LCAs, Mansour and Vardi [40] gave an approximation scheme with polylogarithmic query complexity for constant and . Levi, Rubinfeld, and Yodpinyanee [38] adapted the method of [56] to obtain a multiplicative -approximation using polylog() queries per invocation. This remains the best known bound of this form for general-graph matching LCAs. These approximation schemes use the augmenting-path framework of Hopcroft and Karp: in each of phases, they augment along a maximal collection of vertex-disjoint paths of a prescribed length. Finding this collection amounts to computing a maximal independent set in the conflict graph of candidate paths. In the simulations of [38, 56], each phase recursively invokes earlier phases, and the costs compound to give the quadratic dependence on in the degree exponent.
A parallel line of work seeks sublinear algorithms without assuming a small maximum degree. For fixed , Behnezhad [7] gave a -estimate of matching size in time with adjacency-list queries, where is the average degree, and in time with adjacency-matrix queries. A multiplicative -estimate is also possible in time with adjacency-list queries. All three bounds are optimal up to polylogarithmic factors for fixed . Subsequent work improved the approximation ratio in time [9, 10, 12]. Finally, Bhattacharya, Kiss, and Saranurak [13] obtained a -estimate in time using adjacency-matrix queries.
Known lower bounds. For over fifteen years, the only degree-dependent lower bound for matching LCAs was the bound of Parnas and Ron [50], based on hiding useful matching edges among many irrelevant neighbors. This hiding argument alone cannot give a superlinear dependence on . Behnezhad, Roghani, and Rubinstein [9] first broke this barrier, showing that -estimation requires queries for sufficiently small constant . Their construction, with , also yields a lower bound per LCA query.
Open Problem 39 of sublinear.info [48] asked whether poly queries suffice to estimate matching size within additive error . Behnezhad, Roghani, and Rubinstein [8] answered this negatively, proving a lower bound for both estimation and local computation, even on bipartite graphs, whenever and .
For dense graphs, Behnezhad, Roghani, and Rubinstein[11] subsequently proved that, for every fixed , there is a constant such that additive estimation requires adjacency-list queries. This complements the upper bound of [13]. In the bounded-degree regime, the lower bound of [8] left a gap between linear and quadratic dependence on in the degree exponent.
1.1 Our results
Our randomized algorithms close this gap for bipartite matching and its size estimation. On general graphs, they give the same bounds for half-integral fractional matching and estimation of .
Theorem 1.1 (Randomized local computation and estimation, informal). Let have vertices and maximum degree at most , and let .
(a) There is a single randomized LCA with the following guarantees. On bipartite graphs, it supports mate queries to a matching M satisfying
On arbitrary graphs, the same LCA supports edge queries to a half-integral fractional matching f of value at least with probability at least 0.9.
Each mate or edge query uses graph queries. No bipartition or prior knowledge of whether is bipartite is required.
(b) For every , a randomized size estimator returns satisfying with probability at least , using
graph queries. On bipartite graphs, this estimates .
The same bounds hold separately for computational work in the model of Section 2.1. All query and work bounds are worst case. The LCA's feasibility and consistency hold for every realization of the shared randomness and in every query order, including adaptively chosen queries. Only the approximation guarantees are probabilistic.
For constant success probability, our upper bounds match the lower bound of Behnezhad et al. [8], in its applicable regime, up to a constant in the exponent. Thus, in that regime, the query complexity of bipartite matching and its size estimation is .
For general graphs, . Consequently, scaling the estimate in part (b) by gives a -estimate of : with probability at least ,
Whether integral -approximate matchings in general graphs admit an LCA using graph queries per mate query remains the main open question left by our work. The lower bound of Behnezhad et al. [8] applies, while the general-graph algorithms of Levi et al. [38], Yoshida et al. [56] have quadratic dependence on in the degree exponent.
Our construction also gives a deterministic LCA for fractional matching, with a larger query bound.
Theorem 1.2 (Deterministic fractional oracle, informal). Let be as in Theorem 1.1. There is a deterministic LCA whose answers are consistent with one fractional matching satisfying
Each edge query uses at most
graph queries, all within distance of the queried edge.
For every , uniform random vertex sampling combined with this oracle gives an estimate of within , with probability at least , using at most
graph queries in total. Only the vertex sampling in this estimator is randomized.
The same bounds hold separately for computational work in the model of Section 2.1. All query and work bounds are worst case.
The locality and structure of the deterministic updates give the following distributed consequence.
Corollary 1.3 (Deterministic distributed algorithm, informal). Under the same assumptions, a deterministic distributed algorithm computes a fractional matching of value at least in
rounds. Each edge carries bits in each direction per round. The total computational work at a vertex is
All bounds are worst case. This gives the stated round bound in LOCAL for every , and in CONGEST when .
Fractional matching is a special case of fractional packing, which has been studied in distributed computing [36]. The deterministic algorithm of Li et al. [39] gives a -approximate fractional matching in rounds. Simulating it by neighborhood exploration [50] gives a deterministic LCA using graph queries per edge query. Compared with these bounds, our construction improves the dependence on from quadratic to linear, both in the LOCAL round complexity and in the exponent of the LCA query complexity.
1.2 Technical overview and roadmap
We first formulate fractional matching as a saddle-point problem and derive a deterministic optimization method with local updates (Sections 3–5). After rounds, the method defines a nearly maximum fractional matching whose edge weights depend only on radius- neighborhoods. Evaluating the updates in these neighborhoods gives a deterministic LCA using queries and operations per edge query, and a deterministic distributed algorithm using communication rounds.
The key to improving the LCA bound is to sample from the distributions used by the optimizer without computing them explicitly. In Section 6, we construct a recursive sampler that follows the optimization round by round. Producing a sample for a new round uses an expected constant number of calls to the preceding round's sampling procedures. This replaces the recursive exploration of all neighbors by constant expected branching, giving expected queries and operations per sample.
We then use these samples to construct a fractional matching that can be queried consistently with worst-case work per query (Section 7). Rounding gives an integral matching on bipartite graphs and a half-integral fractional matching on general graphs (Section 9). The same sampler also gives our size estimator, without the rounding step (Section 8). The finite-precision implementation and its message-size bound are established in Section B. We next describe each ingredient and the challenges it addresses.
1.2.1 A saddle-point formulation of fractional matching
In Section 3, we express fractional matching as a min-max problem over distributions and prices at the vertices. Every vertex acts both as a proposer, sending mass to its neighbors, and as a receiver, accepting mass from its neighbors. Its proposal distribution describes the mass it sends, while its price is associated with its role as a receiver.
Each vertex distributes one unit of mass among its neighbors and a private dummy, which represents unused mass. We call this probability vector its proposal distribution. The quantities and represent mass sent in opposite directions and need not agree. Each vertex sends at most one unit to its neighbors, but may receive more than one unit. Write
for the incoming load at and the total accepted mass when every vertex can accept at most one unit.
To obtain a feasible fractional matching, divide all incoming assignments at each vertex with by . Every vertex now sends and receives at most one unit. Assign each undirected edge the average of its two accepted directed assignments. The incident weights at each vertex sum to at most one, and the total edge weight is . Conversely, any fractional matching defines proposal distributions by sending its edge weights in both directions and putting unused mass on dummies. The resulting accepted mass is twice the matching's value. Thus .
The cap makes nonsmooth. We introduce a price at each vertex , associated with its incoming load, and use the objective
The second identity follows by minimizing separately at each vertex: an overloaded vertex chooses price +1, and an underloaded vertex chooses price -1. For fixed prices, proposal mass prefers lower-priced neighbors. Maximizing accepted mass is therefore equivalent to maximizing over proposal distributions and minimizing over prices. This is a saddle-point problem, with an objective affine in either set of variables when the other is fixed.
The multi-pass semi-streaming algorithm of Assadi et al. [4] also uses a saddle-point formulation of matching. Their formulation uses a single simplex over all edges, scaled by an estimate of the optimum, so normalization involves the whole graph. Our formulation uses a product of simplices, one for each vertex. Each proposal distribution is normalized separately at its source, which allows the local updates described next. The formulation also does not require an estimate of .
1.2.2 Optimization via local updates
Sections 4–5 develop a deterministic optimization method for nearly maximizing accepted mass. Observe that simply alternating between best proposal distributions and best prices can oscillate the state: proposal mass moves to cheap receivers, making them overloaded and expensive, and then moves away again. We control these changes by penalizing movement away from the current state using a Bregman divergence derived from our regularizer. The regularizer combines negative entropy of the proposal distributions with an entropy-based price term that depends on the incoming loads.
We initialize each nonisolated vertex with price and assign probability to each of its neighbors, putting the remaining probability on its dummy.
Starting from this state, we perform rounds of an extragradient method [45]. Each round first computes a tentative state using the gradient at the current state. It then evaluates the gradient at the tentative state and uses this gradient to form the next state, again starting from the original state. Both stages use penalties measured relative to the state at the start of the round.
The proposal updates have a multiplicative-weights form, with normalization performed separately at each vertex. Prices are updated by explicit formulas using the old prices and the relevant loads. The final output is the average of the tentative proposal distributions over all T rounds.
Our regularizer satisfies area convexity [30, 55], an inequality controlling the interaction between changes in prices and changes in proposal distributions. With the initialization above, the analysis of the two-stage method gives
Since defines a fractional matching of value , taking gives a -approximate fractional matching. Note that the optimization, including the choice of , does not require an estimate of .
The state at each vertex in a new round depends only on the preceding round's states within a constant number of hops. Since the initialization also uses only local information, each final edge weight is determined by a radius- neighborhood.
A deterministic LCA can explore this neighborhood and evaluate the updates, using
graph queries and arithmetic operations per edge query. This gives the deterministic LCA bound in Theorem 1.2. Each optimization round uses a constant number of exchanges between neighboring vertices. Executing these updates gives an -round distributed algorithm. The finite implementation in Section B.1 bounds the message sizes and local computational work, giving the distributed guarantees in Theorem 1.3.
The regularizer is also designed to support the sampling method described next.
1.2.3 Sampling: following the optimization without evaluating it
The deterministic LCA computes explicitly by exploring an entire radius- neighborhood of , containing up to vertices. In Section 6, we show how to draw an exact sample from without computing its probabilities, using only expected graph queries and arithmetic operations.
Our multiplicative-weights updates form a new proposal distribution by reweighting an existing distribution :
By design, the reweighting factors in our update formulas have fixed positive lower and upper bounds. Multiplying them all by a common factor leaves unchanged. We can therefore choose a fixed rescaling that puts every between two constants in , so these weights can serve as acceptance probabilities.
Suppose we have a sampler for and, for any sampled target , an acceptance coin that returns one with probability . Draw and flip this coin. On heads, return ; on tails, repeat with a fresh draw and coin flip. A trial accepts and returns with probability , so the returned sample has law . The acceptance probability is bounded below by a constant, giving a constant expected number of trials. Thus an existing sampler and acceptance coins suffice to construct the new sampler, without evaluating either distribution or its normalizer.
The remaining task is to construct the acceptance coins. Their biases depend on prices and loads, and evaluating these quantities numerically would bring back the recursive exploration of all neighbors. We instead maintain coin procedures for the numerical quantities needed by the updates. For example, a price can be represented by a coin whose probability of heads is . The update formulas can then be expressed as functions of these coin biases.
These constructions use Bernoulli factories. Given independent flips of coins with unknown biases, a factory produces a new coin whose bias is a prescribed function of those biases [28, 29, 34, 43, 44]. We use factories to implement the scalar update formulas on coin representations. A new acceptance or price coin is constructed from available coins and samplers. Each input flip uses fresh randomness and may itself invoke earlier procedures.
The price updates also use incoming loads. At a nonisolated vertex , the incoming proposal masses sum to the load , which may not be equal to one. Normalizing these masses defines the incoming distribution, assigning probability to proposer . We maintain a sampler for this distribution as well.
When changes to , the incoming distribution is reweighted by . Factories construct coins for scaled versions of these ratios from the available samplers and acceptance coins. The same rejection-sampling construction then gives the new incoming sampler. An incoming rejection trial also supplies a coin whose bias is a fixed constant times the ratio of the new load to the old load. Thus the construction gives both samplers and load-ratio coins. Factories combine these load coins with coins for the old state to construct the updated price coins.
Constant expected branching requires a constant number of rejection trials, which is given by the bounded reweighting factors, and a constant expected number of input flips per factory, which follow from our regularizer design and coin representations together with a constant expected number of input flips and additional arithmetic operations. These bounds hold uniformly over vertices and rounds.
At initialization, all the required samplers and coins are directly available. For each new round, one sample or coin flip uses an expected constant number of calls to the preceding round's procedures. Expanding these calls gives expected total work
including graph queries and arithmetic operations. The calls stay within a radius- neighborhood, exploring it only as needed to generate the draw. To sample from the optimizer's final average , we choose a round uniformly from the rounds and sample its tentative distribution at .
1.2.4 From samples to a consistent fractional matching
Section 7 uses samples per vertex to construct a random fractional matching whose edge weights can be queried consistently with worst-case graph queries and arithmetic operations.
The first issue is that the sampler’s work is bounded only in expectation, whereas the final oracle requires a worst-case bound. We address this by imposing a work budget on each sampler invocation, with aborted draws returning the dummy. By Markov’s inequality, a budget of times the bound on expected work makes the abort probability . Let denote the resulting proposal distributions. For every real edge , , with the removed probability mass transferred to the dummy. If is the number of nonisolated vertices, the work budget reduces accepted mass by at most . Since (Theorem 2.4), this loss is .
We next construct a random fractional matching on from samples of . Let each vertex send independent proposals drawn from , ignoring dummy outcomes. Each receiver keeps the proposals with smallest IDs, or all its proposals if or fewer arrive. Regard each kept proposal as a separate edge copy in a multigraph and give it weight . Every vertex has at most kept outgoing copies and kept incoming copies, so these weights always form a fractional matching. Summing the weights of parallel copies gives a random fractional matching on .
We bound the expected loss from discarding proposals at each receiver relative to its accepted mass under . If receiver v has incoming load and receives N proposals, then and
Summing over receivers, the expected fractional value is therefore at least . The earlier work-budget bound gives , and the deterministic optimizer guarantees . With , the three losses—from sampling and the receiver cap, aborted sampler runs, and the optimizer's approximation error—sum to . Thus the resulting random fractional matching has expected value at least .
For consistency in an LCA implementation, give each proposal ID its own independent random seed. Whenever a query needs that proposal, it reruns the same capped invocation with the same seed. The receiver decisions are determined by the proposal IDs, so all queries access one multigraph of kept proposals, regardless of their order.
Finding the proposals received by a vertex requires examining its neighbors and their proposals. Listing all kept copies incident to the vertex also checks which of its outgoing proposals were kept by their receivers. This takes capped sampler invocations. The neighborhood exploration occurs outside the recursive sampler and adds only a polynomial overhead in and . Together with the work budget, this gives the stated worst-case work per local query.
For the rounding in Section 9, we choose to be a power of two, preserving .
1.2.5 Rounding: integral on bipartite graphs, half-integral in general
The kept proposals define a multigraph , with one edge copy per kept proposal. Its maximum degree is at most , and each edge copy has weight . Recall that was chosen as a power of two, so is also a power of two. In Section 9, we adapt the degree-halving methods of Ahmadi et al. [1], Fischer [25] to round this representation with bounded local work. Each step halves the degree bound and doubles the weight of every remaining edge copy.
First consider a bipartite multigraph. At each vertex, pair incident copies in ID order, leaving one unpaired if the degree is odd. These pairings link the copies into paths and even cycles. Keeping the larger of the two alternating classes of copies in each component retains at least half the copies while halving the degree bound. After doubling the remaining weights, each pair contributes the same total weight at its shared endpoint. The halved degree bound ensures that every vertex's total incident weight remains at most one, including vertices with an unpaired copy. Thus this step preserves feasibility without decreasing the total value.
The paths and cycles may be long, so deciding which class to keep cannot require exploring an entire component. This is addressed by deleting sparsely marked copies to break these components into short pieces. A further local rule deletes copies whose sufficiently large neighborhood along the path or cycle contains no mark. This ensures bounded exploration for every choice of marks. We choose the parameters so that the accumulated expected loss from deletions over the halving steps is at most an fraction of the starting value. The remaining copies then form a matching. The extra factor in worst-case work per query is , which is absorbed into our LCA bound.
To handle all graphs with one construction, we apply this rounding to the bipartite double cover of . It has a left and a right copy of each vertex and replaces each edge copy of by two lifted edges, and . Each matched lifted edge contributes weight to its original edge, using the standard double-cover projection [1, Lemma 7]. Each original vertex has two lifts, each incident to at most one matched edge. Thus, after summing contributions from parallel copies, the projected weights are feasible and belong to . The double cover has twice the initial fractional value, and projection divides the rounded value by two, so the relative-loss bound is unchanged.
The two lifts of each edge copy of share the same random mark at every level. Pairings and ties are resolved by ordering lifted copies first by their original IDs, with a side index used only to distinguish the two lifts of the same copy. For bipartite input, the double cover consists of two isomorphic copies of each connected component of . Each original edge ID appears only once in either component copy, so the secondary side indices do not affect the ordering there. The shared marks and corresponding orders therefore give corresponding rounding decisions: each edge copy of has either both lifts in the final matching or neither. Its projected weight is therefore integral. The algorithm gives a matching on bipartite graphs without receiving a bipartition or testing bipartiteness. On general graphs it gives a half-integral fractional matching.
Note that feasibility and consistency hold for every choice of the budget-capped proposal samples and rounding marks. Only the value guarantee is probabilistic. By assigning a sufficiently small constant fraction of the error allowance to each stage, we make the expected deficit from the optimum at most . Markov's inequality then gives a single consistent global output of value at least with probability at least 0.9. On bipartite graphs, and the output is integral, giving the claimed matching guarantee.
1.2.6 Size estimation: sample the accepted mass
The size of the matching can be estimated by a black box use of our LCA by uniformly sampling random vertices and querying their total incident matching weight. Multiplying the average by estimates the value of the LCA's output, which approximates whenever its value guarantee holds. In Section 8 we present an algorithm with a simpler construction, which requires only the budget-capped sampler, with fresh independent randomness in each trial. In particular, it does not require rounding or consistency across queries. The direct approach estimates the expected mass accepted at a uniformly random receiver over the random construction of , using only capped proposal samples from that receiver's neighbors.
The algorithm is very simple. In one trial, choose a uniformly random receiver and generate capped proposals from each of its neighbors. Let be the number of these proposals that land at , and return . The expectation of this quantity, multiplied by , is the expected value of the random fractional matching constructed above, averaging over the proposal samples. Note that the estimator does not need proposal IDs or decisions about which incoming copies are kept.
We return the average of trials. Concentration of independent bounded variables, together with the small expected loss in the fractional construction, gives additive error with probability at least . The total work remains . This estimates on every graph and on bipartite graphs.
The estimator in Theorem 1.2 follows directly: sample vertices uniformly, evaluate their total incident fractional weight using the deterministic oracle, and multiply the average by . Only the choice of sampled vertices is random.
AI assistance. AI tools contributed to the development of the initial proof and subsequent refinements of the results, as detailed in the AI methodology statement at the end of the paper.
1.3 Broader context
Continuous optimization for matching and flows. Closest to our optimization approach, Assadi et al. [4] use a box-simplex formulation and area-convex optimization to obtain a deterministic semi-streaming -approximation for bipartite matching in passes and space. Their space bound improves on the earlier linear-programming approach of Ahn and Guha [2].
Our optimizer builds on area convexity, introduced by Sherman [55] for box-simplex games and approximate undirected multicommodity flow. Subsequent applications include optimal transport [31], mixed packing and covering [14], and dynamic bipartite matching [32]. Cohen et al. [18] relate this approach to relative Lipschitzness, and Jambulapati and Tian [30] simplify the optimization method by removing the high-accuracy inner loop. Our changes to the formulation and regularizer support local updates and exact recursive sampling; Theorems 3.4 and 4.6 discuss these choices.
Sampling and local simulation. Sampling can provide access to an implicitly represented object without constructing it explicitly. Early examples include reachability sketches [16] and sampling methods for finding large dot products [17]. Related ideas accelerate approximate matrix multiplication [20] and sublinear optimization [15].
Sampling has also been used to simulate iterative local algorithms without exploring their full dependency neighborhoods. Kapralov et al. [33] recursively sample a fractional peeling process to estimate matching size from uniform edge samples, and obtain a constant-factor matching LCA using queries. For maximal independent set, Ghaffari [26] develops an efficient local simulation of a randomized marking process, obtaining an LCA with poly() log query complexity.
Our sampler also explores the graph adaptively, choosing subsequent probes based on earlier outcomes. Such adaptivity can be essential for efficiency: Azarmehr et al. [5] show that non-adaptive LCAs require queries even for constant-factor approximations of maximum matching.
Bernoulli factories. Bernoulli factories provide exact sampling from distributions whose parameters are available only through samples. They have been used to sample exponential-weight distributions in mechanism design and entropy-regularized matching [22], to round fractional points while preserving their marginals [47], and to resample particles whose weights cannot be evaluated explicitly [53].
Here we use factories to implement the smooth update formulas of a deterministic local optimization method. The samplers and coins for each round use an expected constant number of calls to those of the preceding round. This gives exact access to the optimizer's distributions with expected work after rounds, without numerically evaluating the iterates or accumulating estimation error through the recursion.
2 Preliminaries
2.1 Query and computation model
The input is a finite simple graph with vertices labeled by , known , and a known integer bounding the maximum degree. A degree query returns ; a neighbor query returns the -th neighbor of in a fixed arbitrary order, for . Each costs one graph query. An algorithm may also sample a uniformly random vertex. The query complexity counts only graph queries. For , the answers are trivial.
Computational work. Numerical computations use finite binary representations, with precision chosen as needed. We charge for the bit operations used in arithmetic, comparisons, and numerical evaluations of elementary functions. Each graph query, random-bit draw, and uniform vertex sample costs one unit of work. Operations on vertex identifiers and the known value have unit machine-word cost. In particular, elementary-function evaluations and coins whose biases are specified by formulas are implemented by finite procedures whose numerical work is charged.
The optimizer and sampler are specified by real-valued formulas. Section B gives finite implementations that preserve the stated guarantees and asymptotic work bounds. All work bounds for the final LCAs and estimators refer to these implementations. The final algorithms terminate within their worst-case query and work budgets on every execution. The uncapped sampler of Section 6 terminates almost surely and has expected query and work bounds.
For the initial sampler analysis in Section 6 and the factory proofs in Section A, we use an auxiliary operation count that charges one unit for each graph query, scalar arithmetic operation, comparison, integer rounding, elementary-function evaluation, and ideal random draw, including a known-bias coin. This is an intermediate measure used in the analysis. The final computational-work bounds use the finite-precision convention above.
Randomness. Randomness is supplied by an oracle. The estimator uses fresh independent randomness. The LCA instead gives each proposal its own random seed, which is reused whenever that proposal is needed (Section 7.3). A seed identifies a stream of independent unbiased bits. A proposal is drawn by a recursive procedure that may visit many vertices. All of its coins, at every vertex it visits and in every recursive call, use fresh bits from the proposal's own stream. The outcome is therefore a deterministic function of its seed, and every query that needs the proposal recomputes the same outcome. Different proposals have independent seeds, and their computations need not agree on the random choices made at vertices they both visit.
Rounding decisions are likewise reproducible: each original proposal copy has an independent seed for its marks across levels, reused by every query. Seeds supply as many bits as needed; we neither bound their length nor charge for their storage or addressing.
2.2 Tools
Theorem 2.1 (König [35]; see also Egerváry [24]). In a bipartite graph the maximum size of a matching equals the minimum size of a vertex cover.
A fractional matching of is a vector on with at every vertex , and the fractional matching number is the largest value . A matching is a fractional matching, so .
Corollary 2.2. Let be bipartite and let be a fractional matching of . Then . Hence .
Proof. Let be a minimum vertex cover, so by Theorem 2.1. Every edge has an endpoint in , so .
The bipartite double cover of a graph has vertex set and, for each edge of , the two edges and . It reduces fractional matching in to matching in a bipartite graph.
Lemma 2.3 (Double cover; cf. [1, Lemma 7] and [19]). For every graph :
(a)
(b) every matching M of induces the half-integral fractional matching
of , of value ;
(c) has vertices and maximum degree at most , and each degree or neighbor query to is answered by one query to .
Proof. (b) At each vertex of , the copy contributes at most and the copy at most .
(a) A fractional matching of gives the fractional matching of with weight on both and , of value ; since is bipartite, Theorem 2.2 gives . Part (b) gives the reverse inequality.
(c) The i-th neighbor of is , where w is the i-th neighbor of u.
Lemma 2.4 (Nonisolated vertices). If has nonisolated vertices and maximum degree at most , then
Proof. The endpoints of a maximal matching form a vertex cover. Every nonisolated vertex has a neighbor in this cover, and every edge meets it. The sum of the degrees of the cover vertices is at most times the matching size, which is at most .
Theorem 2.5 (Bounded differences; McDiarmid [41]). Let be independent and , where changing only changes by at most . If , then for every ,
In particular (Hoeffding's inequality [27]), independent satisfy .
3 Matching as a saddle-point problem
We formulate fractional matching as a min-max problem with two sets of variables: proposal distributions , which maximize an objective , and prices , which minimize it. The objective is affine in either set of variables when the other is fixed. A solution is a saddle point , satisfying
Thus, with prices fixed at , no change to the proposal distributions can increase the objective; with these distributions fixed at , no change to the prices can decrease it.
Variables. For each vertex , let , where is a private dummy target. Every vertex holds two variables:
-
a proposal distribution , a probability vector on : vertex puts mass on each neighbor and the remaining mass on its dummy;
-
a price , associated with the proposal mass that receives.
Terminology wise, we will refer to a draw from a proposal distribution (a neighbor of or the dummy) as a proposal. Note that the coordinates and are distinct, representing proposal mass sent in opposite directions.
Let . Combining the proposal distributions of vertices gives a vector , and combining the prices gives a vector . Their feasible sets are
Thus, is a product of simplices, one for each vertex. We write for the joint feasible set.
Loads and accepted mass. The load of is the total proposal mass it receives,
Each vertex can accept at most one unit, so the total accepted mass is the sum of the loads capped at one,
If is a fractional matching and every vertex assigns mass to each neighbor , with the rest on its dummy, then every load is at most one and , because each edge's weight is counted once from each endpoint. Hence the largest accepted mass is at least . Theorem 3.1 shows that it is exactly .
Prices. Our goal is to maximize the accepted mass . We introduce prices to express this optimization as a saddle-point problem to which we can apply the area-convex method of Sections 4–5 [30, 55]. Section 6 then samples the resulting proposal distributions locally. For a load , the capped load is concave and nonsmooth. The following identity expresses it, up to scaling and an additive constant, as the minimum of affine functions:
The minimizing price is +1 when the vertex is overloaded () and -1 when it is underloaded (); when , every price in is a minimizer.
The objective. Applying (3.2) at every vertex , with load and price , gives
Thus, . Maximizing this quantity over the proposal distributions is equivalent to maximizing the accepted mass, so our target is
The following lemma verifies this value and shows that the minimum and maximum can also be interchanged.
Lemma 3.1 (Saddle-point value). For every graph G:
(a) for every .
(b) for every .
(c) There is with for every , in which each vertex puts all of its mass on a single neighbor or on its dummy.
(d) .
Proof. (a) For each ordered pair with put . Then and . The symmetric weights therefore form a fractional matching of , of total weight . Hence .
(b) Apply (3.2) at each vertex; the coordinates of x separate.
(c) Fix a maximum matching of , so by Theorem 2.3(a). Let put unit mass on if , and on its dummy if is unmatched. Then if is matched and 0 otherwise, so at exactly vertices and . For bipartite one can choose to consist of both copies of each edge of a maximum matching of ; then each matched vertex assigns unit mass to its partner.
(d) Parts (a)–(c) give . Moreover, for every , so .
For the reverse inequality, let be a minimum vertex cover of , and write and . Set for and otherwise. If , all its neighbors belong to , so its proposal mass contributes zero to . Each contributes at most two. Thus, for every ,
Remark 3.2 (The double cover). Each real coordinate corresponds to the edge of the double cover . The proposal distributions enforce the capacities on the proposer side , while the prices represent the capacity constraints on the receiver side .
Remark 3.3 (Optimization over prices). For fixed prices, the term in is constant. Each unit of proposal mass sent to a neighbor v contributes to the objective, whereas mass sent to the dummy contributes zero. Thus, u can maximize its contribution by assigning all its mass to the lowest-priced options, treating the dummy as an option of price 1.
Maximizing independently at each vertex gives a convex, generally nonsmooth function of the prices alone,
To interpret this function, set . These are the nonnegative Lagrange multipliers for the receiver-capacity constraints . If the receiver copy has cover weight , the least feasible weight on the proposer copy is . Hence is the cost of the cheapest fractional vertex cover of with these receiver weights. Minimizing over therefore solves the fractional vertex cover problem on .
Remark 3.4 (Comparison with Assadi et al. [4]). Assadi et al. [4] also formulate bipartite matching as a bilinear saddle-point problem over a box and a simplex, a formulation known as a box-simplex game. Their application was for the semi-streaming model. Their simplex is a single simplex over the edges of plus a dummy edge, scaled by an estimate of that a greedy pass provides, and their coupling matrix is the unsigned incidence matrix, so each edge loads both of its endpoints. That casting does not suit our purpose of local computation. The scale is a global estimate of the very quantity we want and anyhow the normalization of a single simplex is global: in every round, the load at a vertex depends on a normalizing constant summed over all edges. Our formulation allows our steps to normalize separately at each vertex, so one round depends only on a few hops. Moreover, their casting does not directly support our local rounding in Sections 7–9, which requires sampling from a proposal distribution at each vertex. Our casting provides these per-vertex distributions, and Section 6 constructs their local samplers.
4 An area-convex regularizer
We now develop the ingredients of an optimization step that updates a state that comprises prices and proposal distributions . The update directions aim to decrease in the prices and increase it in the proposal distributions. To control the movement from the current state, we use a convex scalar-valued function called a regularizer. Its associated Bregman divergence, defined below, provides the penalty for changing the state. We then derive an explicit formula for the regularized price update. In Section 5, we combine this price update with multiplicative updates of the proposal distributions to obtain the full iterative method.
We choose the regularizer to satisfy two requirements. First, we require area convexity, which controls the interaction between price and distribution updates and allows us to apply the extragradient methods of Jambulapati and Tian [30], Sherman [55]. In Section 5, these give an iteration bound for accepted-mass error . The initialization is chosen so that the potential is proportional to the optimum, which gives this multiplicative guarantee. Second, we require explicit price-update formulas with uniform bounds that support exact simulation from samples in Section 6. We next fix the notation, and then define our regularizer and establish these two properties.
4.1 Optimization notation
We use the standard Euclidean inner products on and . On pairs, the inner product is the sum of those on the two components:
Gradients are taken with respect to these inner products. We write for the vector with every coordinate equal to one. Products and division of vectors are coordinatewise; for example, and . Powers, logarithms and exponentials are also applied coordinatewise.
The load map. The load map sums the proposal mass arriving at each vertex:
As a matrix, has a row for each vertex and a column for each pair , with entry one when and zero otherwise. Its transpose, also called its adjoint, , copies each vertex's price to the coordinates that send mass to it: for , and . Thus,
Let , the indicator of the non-dummy coordinates. Then the objective can be written as
This is a box-simplex game in the sense of Jambulapati and Tian [30], with a product of simplices in place of a single simplex; Theorem 3.4 compares this casting with that of Assadi et al. [4].
Gradients and the optimality gap. The descent-ascent operator stacks the gradient of F in the prices and minus its gradient in the proposal distributions:
The signs encode descent in the prices and ascent in the proposal distributions. Price descent lowers the prices of underloaded vertices and raises those of overloaded vertices, while distribution ascent favors cheaper neighbors.
For and a comparison point in , expanding (4.1) and using adjointness gives
Maximizing over gives the saddle-point gap
This is the sum of the improvement available by changing the proposal distributions alone and the improvement available by changing the prices alone. It is nonnegative and vanishes exactly at a saddle point. The analysis in Section 5 bounds the sum of the inner products in (4.3) over iterations by changes in a potential, which telescope.
4.2 The regularizer
We choose a regularizer . We use the negative entropy
with natural logarithms and the convention . For the prices, use shifted negative binary entropy:
Thus , , and, in the interior,
For , define by
The entropy term leads to multiplicative updates of proposal probabilities: probabilities are reweighted and then normalized at each vertex. The first term couples each price to its incoming load. Its curvature in is larger when the load is larger and as approaches either endpoint of . The choice of also gives the smooth price response derived in Section 4.4.
The update penalty. Let denote the relative interior of : all proposal probabilities are positive, including those of the dummies. For an interior base and , the Bregman divergence generated by is
It measures how far lies above the tangent plane at . For the choices used below, Theorem 4.3 establishes convexity, so , with equality when . For comparison, the regularizer gives the squared-distance penalty used in ordinary gradient descent.
The Bregman divergence generated by H is the relative entropy
where a term with is zero. This is the sum of the per-vertex Kullback-Leibler (KL) divergences; it is nonnegative and vanishes exactly when . Thus, the entropy contribution to is , which measures changes in the proposal distributions relative to their current probabilities. In particular, for ,
where is the Q-component of w.
The update subproblems are built from expressions of the form
where is a scaled descent-ascent vector, such as . The method of Section 5 handles these subproblems with a fixed number of price responses and multiplicative distribution updates. The price response for fixed distribution is derived in Section 4.4.
Differentiation gives
4.3 Area convexity
Area convexity relates the curvature of the regularizer to the bilinear coupling in . The form we will use in the convergence proof is (4.7): it bounds the interaction of two updates by their divergences from a common base.
Definition 4.1 (Area convexity [55]). A continuous convex on is -area convex for if, for all with centroid ,
Lemma 4.2 (Scalar area inequality; cf. [30, Lemma 1] and [31, Lemma 4]). Let for , . Then is convex, and for any three points with centroid ,
Proof. Assume first . Let . In a direction its Hessian gives
because the difference is
So and are convex.
Write , . Since the and sum to zero, the left side of the claimed inequality equals the sum of the Bregman divergences of from the centroid to the three points. Along the segment from the centroid to point , Taylor's formula and the Hessian bound give a divergence of of at least
For , the second derivative and give a divergence of at least . Hence the left side is at least
Up to sign, the oriented area equals (indices mod 3). Since ,
Thus, by Cauchy-Schwarz, the area is at most . As , the claim follows. Continuity extends convexity and the inequality to .
The standard regularizer, which combines a quadratic price term with negative entropy, is area convex [30, Lemma 1]. We extend this property to by proving that its difference from the standard regularizer, with entropy coefficient 8, is convex for . Adding a convex function preserves area convexity.
Lemma 4.3 (Area convexity of ). For , is convex and -area convex for . Moreover, for every interior and all ,
Proof. For every ordered pair with , apply Theorem 4.2 to the points , and add the nonnegative Jensen gaps of the dummy terms . A direct expansion shows that equals, up to sign, the sum over pairs of the oriented areas; the constant parts of cancel. Hence
is convex and -area convex. This part is Jambulapati and Tian [30, Lemma 1] with ; they state it for a single simplex, but the argument is entrywise, and we include it for completeness. The rest of the proof, which handles the term, is new.
Next, put . Then
For the last inequality, use for and symmetry. The upper bound follows by integrating . So the Hessian of is positive semidefinite. Continuity extends this convexity to the boundary. Therefore
is convex. Adding a convex function preserves area convexity by Jensen's inequality, which proves the first claim.
Finally, for an interior base and ,
Together with area convexity, this gives (4.7).
4.4 The price update: a box response
We derive the price update by minimizing (4.5) over prices while holding the candidate proposal distributions fixed. Fix an interior base state , a vector , and candidate distributions . Writing and dropping terms independent of gives the subproblem
We call its minimizing price vector the box response, since . The only -dependent term is , which is constant in , so the response does not depend on for fixed .
The subroutine in Algorithm 1 returns the updated prices. Each stage of Section 5 calls it before and after updating the proposal distributions. The change of variables makes the price optimality condition linear.
Algorithm 1: Box response Resp
Input: Interior base state ; vector ; candidate distributions .
Output: Updated prices .
// loads from (3.1)
return
Lemma 4.4 (Box response). Algorithm 1 returns the unique minimizer of (4.8). The minimizer lies in . Writing and , its optimality condition is
Equivalently, and .
Proof. Up to a term independent of , the objective is
The coordinates separate. Since is strictly increasing from to on , each coordinate has a unique interior minimizer. Its first-order condition, using (4.6), is (4.9). Solving for and applying tanh gives the algorithm.
Uniform bounds. For the sampling implementation in Section 6, we need uniform bounds on the coefficients in Algorithm 1. The next lemma obtains these bounds when the relevant loads are within constant factors of the base load. Theorem 5.9 will verify this condition for every call to Resp.
All price-gradient vectors used below have the form
Here denotes the proposal distributions used to evaluate the gradient; these may differ from both the base distributions and the candidate distributions . At a nonisolated vertex , define
Thus represents the base load by a bounded quantity, while express the other loads relative to it. In the following lemma, we suppress the vertex subscripts on .
Lemma 4.5 (Box coefficients). The coefficients in Algorithm 1 can be written as
If , then
At an isolated vertex, and .
Proof. Multiplying the numerators and denominators in the definitions of and by gives the stated formulas. Since is a convex combination of 1 and , both and lie in . Also,
At an isolated vertex all loads vanish, giving and , which satisfy the same bounds on and .
Remark 4.6 (Why not the standard regularizer). The standard area-convex regularizer for box-simplex games [30, 31, 55] specializes in our setting to . For positive candidate load , its box response is a quotient with denominator , clipped to [30, Algorithm 4]. This response is nonsmooth at the clipping points, and its load denominator can be arbitrarily small or zero. These features prevent a direct application of the smooth exact sampling primitives in Section 6.
Our regularizer replaces by and adds . The choice of gives a smooth price response without clipping, while the added term changes the load denominator to , keeping the formula defined at zero load. Under constant bounds on relative loads, Theorem 4.5 also bounds the response coefficients. The sampler uses a bounded representation of the transformed price to evaluate this response, as described in Section 6.2.
Binary entropy also supports the multiplicative convergence guarantee: with prices initialized near -1, Theorem 5.8 bounds the initial potential by . Theorem 4.3 establishes area convexity for the modified regularizer. The locality of normalization comes separately from our product of vertex simplices, as explained in Theorem 3.4.
5 The optimization method
We present the optimization algorithm that constructs proposal distributions with nearly maximum accepted mass. Algorithm 2 gives the complete procedure, and Algorithm 3 specifies a single round. At round , the state consists of main proposal distributions , auxiliary proposal distributions , and prices . Starting from a fixed initialization, the algorithm updates this state over rounds.
We run the optimizer only on nonisolated vertices. Isolated vertices always return their dummy and have no effect on accepted mass or fractional matching. Thus the state coordinates and potential sums in this section omit isolated vertices; the graph still has its original vertex labels. This restriction requires only a local degree query, not knowledge of the number of nonisolated vertices.
Each round has two stages. A gradient stage computes tentative prices and main proposal distributions. An extragradient stage then evaluates the gradient at that tentative state and uses it to form the next state. Each stage performs a fixed number of price and proposal-distribution updates. Our final output is the average of the tentative proposal distributions over all T rounds.
The regularizer of Section 4 supplies the Bregman penalties used in these updates. Within each stage, we first compute a provisional price response and use it to update the proposal distributions by multiplicative reweighting and normalization. We then compute the price response for the updated distributions. The extragradient stage also updates the auxiliary distributions. Every price response uses the state at the start of the round as its Bregman base. The area-convex analysis controls the interaction between the two stages [30, 55].
The optimization is deterministic given G. After describing the algorithm and stating its convergence guarantee, we establish bounds for the two stages of a round and combine them to prove convergence.
Each round is local in the sense that the updated state at a vertex depends only on the previous-round state within six hops. With our initialization, the state and output proposal distribution at a vertex after rounds are determined by a neighborhood of radius . Therefore, Algorithm 2 already gives a direct local algorithm for its output proposal distributions. Each round consists of a constant number of updates involving neighboring states, so computing the final at a specified vertex requires exploring only a neighborhood of radius . This gives a worst-case deterministic query bound of .
In Section 6, we show that for the more limited task of drawing one exact sample from , without constructing the full state, we can reduce the cost to expected queries. Section 5.4 prepares for Section 6 by bounding changes of the state between consecutive rounds. In Section 6, we use these bounds to sample the proposal distributions recursively across rounds. Generating a sample for one round requires only an expected constant number of samples and coin flips from the preceding round, avoiding exploration of all neighbors.
Algorithm 2: Computing proposal distributions with nearly maximum accepted mass
Input: Graph , degree bound , and number of rounds .
Output: Proposal distributions .
// Initialization for the potential bound in Theorem 5.8 Set the output at each isolated vertex to its dummy on nonisolated vertices foreach nonisolated do for do // Algorithm 3 // average the tentative distributions return
The round routine uses the normalization map . For a positive weight vector , define
Thus, normalization is performed separately at each vertex.
Algorithm 3: Round: one optimization round
Input: Current state .
Output: Next state and tentative proposal distributions .
// fixed base for every price response
Gradient stage
// Theorem 5.5,
// See (4.2)
// provisional price response; Algorithm 1
// update distributions; (5.1)
// price response for ; Algorithm 1
Extragradient stage
// Theorem 5.6, ,
// See (4.2)
// provisional price response; Algorithm 1
// update main distributions; (5.1)
// price response for ; Algorithm 1
// update auxiliary distributions; (5.1)
return
The initialization gives interior prices and positive proposal probabilities. By Theorem 4.4, every price response remains in , and multiplicative reweighting and normalization preserve positive probabilities. Thus all subsequent updates are well defined, with the main and auxiliary distributions remaining in . The target saddle point may lie on the boundary of : the regularizer is finite there, while its steep derivatives keep the finite iterates in the interior.
5.1 Convergence guarantee
The output of Algorithm 2 satisfies the following bound.
Theorem 5.1 (Convergence rate). Let be a graph of maximum degree at most , and let be the output of Algorithm 2 after rounds. With ,
Consequently, setting
gives accepted mass . The proof is in Section 5.3.
The deterministic iteration also gives algorithms for fractional matching by evaluating its updates directly. For , define
As in the proof of Theorem 3.1(a), these weights form a fractional matching, with
Corollary 5.2 (Deterministic LOCAL algorithm). Let be a graph on vertices with maximum degree at most a known , and let . There is a deterministic LOCAL algorithm that computes a fractional matching of value at least in
rounds. Each endpoint of an edge outputs the same edge weight.
Proof. Run Algorithm 2 for rounds and let . By Theorem 5.1,
Each optimization round consists of a constant number of local updates and exchanges between neighbors: loads are incoming sums, proposal distributions are normalized at their source, and price updates are computed at their vertex. The final averaging and (5.2) add only constant locality. Thus each depends on a neighborhood of radius around .
Each vertex gathers the required neighborhood in LOCAL rounds. To obtain finite outputs, the endpoints use the same deterministic procedure to compute a certified rational approximation satisfying
Such approximations can be computed from the explicit update formulas. Decreasing edge weights preserves feasibility, and the total decrease is at most by Theorem 2.4.
Corollary 5.3 (Deterministic fractional-matching LCA). Under the same assumptions, there is a deterministic LCA answering edge queries consistently with one fractional matching of value at least , using
graph queries and computational work per edge query, in the model of Section 2.1. Both bounds are worst case. No preprocessing or persistent memory is required.
Proof. Use the finite implementation in Theorem B.1, with optimization rounds. Its output is a feasible fractional matching of value at least . An edge query evaluates this construction within the radius- neighborhood on which its answer depends. The precision and computational-work bounds in that proposition give graph queries and computational work. All answers use the same initialization, update rules, and numerical rounding rules, so they describe one fractional matching independently of the query order.
For bipartite graphs, the algorithms of Theorems 5.2 and 5.3 can be combined with deterministic rounding in the corresponding model to obtain integral matchings. For example, combining Theorem 5.2 with Ahmadi et al. [1, Theorem 3] gives a deterministic LOCAL algorithm that computes a matching of size at least , splitting the error allowance between optimization and rounding, in rounds.
5.2 Mirror descent and update inequalities
For current proposal distributions , a score vector and , an entropic mirror-descent step is
Thus the update favors smaller scores while penalizing deviation from . It multiplies probabilities by score-dependent factors and normalizes separately at each vertex: this is the multiplicative-weights form of mirror descent. The identity used in the analysis is, for all ,
because plus block constants, which vanish against .
To combine this distribution update with a price update, fix an interior base and a vector and . For each candidate , minimize over the prices using . The remaining regularized objective and its score vector are
Lemma 5.4 (Partial minimization; cf. [30, Lemmas 4-5] and [18]). Both and are convex, on up to block constants, and for , ,
Proof. is a partial minimum of a jointly convex function (Theorem 4.3), hence convex. For fixed the minimized expression is plus an affine function of , so is an infimum of affine functions and is concave. By the envelope theorem and (4.6), up to block constants. Convexity of and of gives . The three-point identity then gives (5.4); continuity covers boundary .
Lemma 5.5 (Gradient update; cf. [30, Definition 4]). Let , , and . For every ,
Proof. Add (5.3) for to (5.4) with ; since , this gives . Stationarity of the box response gives , and the -component of is up to block constants. So . The three-point identity for and finish the proof.
Lemma 5.6 (Extragradient update; cf. [30, Definition 5]). Let and . Set , , and . For every ,
Proof. Apply (5.3) to the first update with comparator and to the second with comparator , and add:
By (5.4) the last term is at most , which is absorbed since . Conclude as in Theorem 5.5.
In the extragradient stage of Algorithm 3, . The term in therefore gives the square-root factors in the two distribution updates.
5.3 Convergence analysis
Our proof adapts the potential argument of Jambulapati and Tian [30, Corollary 1] to the regularizer and the product of vertex simplices Q. We use the update inequalities established in Section 5.2, bound the initial potential for our initialization, and translate the resulting bound into an accepted-mass guarantee.
For each fixed comparison point , we bound the accumulated quantity by changes in a potential. The identity (4.3) then translates this bound into an accepted-mass guarantee. The potential combines divergences for the main and auxiliary states.
For and let .
Lemma 5.7 (Per-round regret; cf. [30, Lemma 2]). For all and all , .
Proof. Write , , . Theorem 5.5 with comparator , and twice Theorem 5.6 with comparator , give
Adding these and gives on the left. The excess on the right is at most by (4.7) and .
Lemma 5.8 (Initial potential). Let be the comparison distributions constructed in Theorem 3.1(c). If has at most positive coordinates among the nonisolated vertices, then .
Proof. Write and within this proof. The comparison loads lie in and sum to . The initial total load satisfies
using Theorem 2.4 and . For the scalar Bregman divergence , direct substitution gives
Thus most coordinates can be compared with -1 cheaply; only the at most positive coordinates pay a logarithmic cost.
Expanding the potential, with sums over nonisolated vertices, gives
The first term is at most : use for negative coordinates and for positive ones. The absolute value of the second term is at most , since , , and the two total loads are at most and .
Finally, assigns mass one to real coordinates; the remaining mass is on dummies. Therefore
For the last step, use for and . Combining the bounds gives .
Proof of Theorem 5.1. Let be as in Theorem 3.1(c). Choose the minimizing price when and otherwise, and put . The number of positive coordinates is at most , so Theorem 5.8 applies. Summing Theorem 5.7 over , using , (4.3), and the fact that is affine in , gives
By Theorem 3.1(b,c), the bracket is at least
Therefore, using and Theorem 5.8,
The lower bound follows from Theorem 3.1(a).
5.4 Properties used by the sampler
We next show that each round changes proposal probabilities and loads by only constant factors. We also express the auxiliary proposal distributions through ratios to the main distributions. Together with Theorem 4.5, these bounds allow the sampler in Section 6 to generate samples for each new round using an expected constant number of samples and coin flips from the preceding round.
We call the quantities negated in the exponential factors of the proposal updates the scores: a score gives a multiplier . For the three proposal updates in Algorithm 3, the scores on a real coordinate are
All three scores vanish on dummy coordinates.
For a vector , define its oscillation by
This is the largest range of coordinate values within a single vertex's block. Adding the same constant to every coordinate in a block leaves the oscillation unchanged. This lets us ignore the additive constants introduced by per-vertex normalization when analyzing updates in logarithmic coordinates.
Define the coordinatewise ratio of the auxiliary to the main proposal distributions by
Lemma 5.9 (Bounded tilts). For all t:
(a) every coordinate of the scores satisfies , hence , and the gradient-stage score lies in ;
(b)
(c) every coordinate of , , and lies in , and so does the corresponding load ratio at every nonisolated vertex.
Proof. (a) All prices appearing in the updates lie in , and their regularizer values lie in . The bounds follow from the score formulas above.
(b) In logarithmic coordinates, normalization adds a constant within each vertex's block. Thus the main update gives
Substituting this into the auxiliary update gives
Oscillation ignores these constants. By (a), , , so
Since , induction gives .
(c) For , each block of contains a nonnegative and a nonpositive coordinate, because both distributions sum to one on that block. Thus every coordinate has absolute value at most .
By (a), (b), and the update formulas, the relevant oscillations satisfy
All are below one, so exponentiating gives the coordinate ratio bounds. Finally, at a nonisolated vertex v,
is a weighted average of coordinate ratios, giving the same bounds for the load ratios.
In every box response of a round, and , all relative to the same base . Thus Theorem 5.9(c) verifies the hypotheses of Theorem 4.5 for every response.
Proposition 5.10 (Reduced auxiliary update). Let . Then and , where
Proof. On one block let , so . The auxiliary update divided by is proportional to . A ratio of two distributions has mean one under the denominator, which fixes the normalization.
Thus the sampler can represent the auxiliary proposal distributions by the ratio to the main proposal distributions , without a separate sampler for .
6 Exact local sampling
We now implement a recursive sampler from the proposal distributions of Section 5. Given a vertex , the sampler returns one exact draw from the averaged distribution , without computing that distribution or the optimization state.
The sampling algorithm follows a simple rule: draw from the previous proposal distribution and correct the draw by rejection sampling. The bounds of Section 5.4 ensure that each trial succeeds with probability at least an absolute constant. The additional ingredient that we need is a way to make the acceptance decision without computing its probability.
To see the idea, consider a bounded reweighting of to obtain at vertex :
where is an absolute constant. If the weights were available numerically, we could sample as follows:
(1) Draw and an independent .
(2) Return if ; otherwise repeat.
A trial accepts and returns with probability , so the accepted draw has law . The acceptance probability is , giving at most trials in expectation. There is no need to compute the normalizer .
Computing the weight exactly is the obstacle: Our update formulas depend on prices and loads, and evaluating even one load can require a recursive evaluation for every neighbor. This can introduce -fold branching, whereas we seek constant expected branching in our recursive sampler.
We replace the acceptance test in step (2) by a procedure that returns one with probability exactly , using fresh flips of previously available coins. Bernoulli factories (Section 6.1) let us construct this acceptance coin with an expected constant number of input flips, without computing its bias.
Our sampler follows the optimization round by round, representing distributions by samplers and numerical quantities by coins. Assume recursively that the preceding round's samplers and coins are available. We implement the scalar update formulas by Bernoulli factories, which construct new coin procedures from the available ones. For the reweighting in (6.1), we combine a draw with the newly constructed acceptance coin, repeating with fresh randomness until acceptance. The resulting sampler for is then available for subsequent updates.
Each input-coin flip may itself invoke earlier coins or samplers. We show below that producing one sample or coin flip for a new round uses an expected constant number of calls to the preceding round's procedures. This yields the constant expected branching that we seek. The total cost is obtained by expanding these calls recursively. Section 6.4 specifies the sampler; Section 6.5 proves its exactness, and Section 6.6 bounds its query cost and arithmetic work.
6.1 Bernoulli factories
A -coin is a procedure returning an independent Bern bit on each call. A Bernoulli factory for a function constructs an -coin using independent flips of input -coins and auxiliary randomness, without knowing the input biases.
The next two lemmas give factory constructions for two classes of functions: fixed elementary formulas and smooth functions of one variable. Under their respective assumptions, each construction uses an expected constant number of input flips and expected constant additional work.¹ The constructions simulate the acceptance decision directly, without estimating the unknown biases of the input coins.
The elementary-formula construction combines the linear Bernoulli factory of Huber [29], the fractional-power factory of Mendo [43], and operations on bounded unbiased random variables. Both proofs are in Section A.
Lemma 6.1 (Elementary-formula factories). Let be a fixed finite formula built from input coordinates and real constants using addition, subtraction, multiplication, division, exponentials, square roots, and fourth roots. Let be a set of valid inputs. Suppose that, for known constants and , every satisfies:
(a) every denominator and every root argument in the formula is at least ;
(b) .
Given independent coins of biases , with , there is an exact -coin that terminates almost surely. Its expected number of input flips and expected additional work are bounded by constants depending only on , uniformly over .
Lemma 6.2 (Smooth one-variable factory; cf. [28, 44]). Fix and a function with four continuous derivatives on (a function). Suppose bounds on these derivatives are known, and and have fixed formulas that can be evaluated in constant work at rational points. Given independent flips of a -coin, there is an exact -coin that terminates almost surely and uses an expected constant number of input flips and expected constant additional work. These constants depend only on and , not on .
The factory constructions simulate the acceptance decision directly, without estimating the unknown biases. Our applications below use a fixed formula with a fixed number of inputs, so the expected number of calls is an absolute constant.
6.2 Coin notation and the box response
This subsection specifies , the coin implementation of the price response Resp from Algorithm 1. We first make explicit how each input and output coin represents its quantity.
Coins and their biases. We write to mean that each call to , called a flip, returns an independent Bern bit. The expression specifies the bias; its numerical value need not be known. In pseudocode, an assignment defines a new coin procedure using the appropriate factory and the indicated input coins.
¹Here and in the initial sampler analysis, work refers to the auxiliary operation count defined in Section 2.1. The finite-precision implementation is analyzed in Section B.
For a bounded quantity , define . Thus represents with a bias in . Other quantities, including load ratios, use the biases specified explicitly below. For the rest of this section, fix . The reweighting factors used below lie in , and all load-ratio coins will have bias times the ratio. These encodings specify the factory formulas: a bounded quantity is replaced by and a load ratio by , where is the corresponding input bias.
Representing the price. By (4.9), the box response updates the transformed price by
with as defined in Algorithm 1. Although , their transformed values need not have a uniform constant bound. We therefore represent by the bounded pair
Since , this pair determines the price.
The box-response interface. Fix a nonisolated vertex and use the load parameters from (4.10), suppressing the vertex subscript. The routine
takes five coin procedures and the known step size . Their types are
The semicolon separates the base-state coins from the load-ratio coins. In particular, a ratio equal to 1 is represented by the known coin .
Let be the corresponding price returned by , with . The routine returns
with respective biases
Here is the bounded representation (6.2) of atanh y.
Defining the output coins. We first rewrite the price update from (4.9) as an update of the bounded pair in (6.2). Since , we have . Applying (6.2) to gives
Substituting the expressions for A and B from Theorem 4.5 writes this update in terms of the load parameters from (4.10):
(6.5)
The elementary-formula factory in Theorem 6.1 constructs with these encoding biases. The smooth one-variable factory in Theorem 6.2 then constructs from . In Section 6.5, we give the two conversion functions and verify the conditions needed to apply both factory lemmas, including the lower bounds on denominators and root arguments and the smoothness of the conversion functions. This proves the following guarantee.
Lemma 6.3 (Box-response coins). For every box response used by the optimizer, supplies the four coin procedures specified above, with their exact biases. Each output flip uses an expected constant number of input-coin flips and expected constant additional work, uniformly over all such responses.
6.3 Samplers for a reweighted distribution
The routine Tilt implements one proposal reweighting. Fix any and weights , and let . Write for a draw from . For nonisolated , draws with probability .
Given these two samplers and acceptance coins , the routine returns
where has bias .
Incoming samples provide load-ratio coins through the identity
Thus one call to followed by a coin flip with bias gives the required load-ratio coin, without evaluating either load.
Construction of Tilt. First define two helper coins. The normalizer coin draws and returns , so its bias is . The coordinate-ratio coin uses Theorem 6.1 with input coins . Its bias is .
The routine returns the following three procedures, each using fresh draws and flips when invoked:
(a) draws and returns if returns one; otherwise it repeats.
(b) draws and returns if returns one; otherwise it repeats.
(c) draws and returns the bit .
The next lemma gives the guarantee for this construction; its proof is in Section 6.5.
Lemma 6.4 (Bounded tilt). For every and weights , Tilt supplies with the specified laws. Each invocation of a returned procedure uses an expected calls to and expected additional work, uniformly over and the queried vertex.
6.4 The recursive sampling round
We now implement one round of the optimizer in Algorithm 3 using from (6.3) and Tilt from (6.6). Given the current samplers and coins, we construct a sampler for the proposal distribution produced by the gradient stage, and the samplers and coins representing the next state.
What a round receives and returns. Write for the following family of procedures:
Their laws are specified below, where and .
| procedure | output law or coin type |
|---|---|
| with probability | |
| with probability | |
One round defines
Only is passed to the next round. The other coins and samplers defined during the round serve its internal computations. All target laws are deterministic functions of ; every invocation uses fresh independent randomness. Incoming samplers and state coins are needed only at nonisolated vertices.
Generating one proposal. To sample from the optimizer's average proposal distribution, we choose a round uniformly and draw from using . For , let
Algorithm 4: Out: one exact proposal
Input: Vertex , degree bound , and accuracy .
Output: A neighbor or dummy with law .
if then return
Choose uniformly from
return Out // invoke the recursive procedure in Algorithm 5
An invocation evaluates only the procedures it calls, recurring to earlier rounds until it reaches the explicit initial procedures below. There is no loop over all vertices or preprocessing of the rounds. Internal rejection trials repeat until acceptance, so the output is one exact neighbor-or-dummy sample. The dummy is an ordinary outcome of the proposal distribution.
Initialization. After a degree query, Out returns a uniformly random neighbor with probability , and returns otherwise. The sampler In returns a uniformly random neighbor. Since , the bias of R is known after one degree query. The initial transformed price is . It gives known biases for , while P has bias . Each initial procedure uses at most two graph queries and constant work.
How the four price responses are used. All four box calls use the interface (6.3) with the base coins . The first response supplies the coin for used to reweight into . The second supplies the tentative-price coin for , used in the extragradient scores. The third supplies the coin for used in the main proposal update. The fourth supplies the price coins carried into ; its coin for is also used in the auxiliary update.
For clarity, the three scores from Section 5.4 are repeated here. On a real coordinate they are
(6.9)
All three scores are zero on dummy coordinates. These formulas specify the biases of the acceptance coins; the scores are not evaluated numerically.
One round. Algorithm 5 gives the recursive definitions. A dash denotes an unused output procedure. Beside each acceptance-coin definition we list the coins whose biases occur in its formula. The known coin represents load ratio 1. The other load ratios are
All definitions are pointwise at the indicated vertex or proposal coordinate.
Algorithm 5: One sampling round: defining (Out , )
Input: The samplers and coins in (6.8).
Output: A sampler Out for , and the next family .
Gradient stage: proposals
// (6.3)
// uses
// (6.6);
Extragradient stage: next main state
Define : draw and return the product of the bit returned by and an independent Bern bit // bias
// uses ,
//
// uses
Extragradient stage: next auxiliary ratio
// Uses , .
Define : draw and return the bit from
// uses
return (Out , )
The extra known-probability flip in puts its bias on the same scale as and . The definitions of refer to their input procedures, which are evaluated on demand in later invocations. No sampled bits are stored as the state.
6.5 Exactness of the recursive sampler
We first justify the two subroutine interfaces, then prove that their composition follows the optimizer exactly.
Box-response coins. The coefficient bounds from Section 5.4 keep the normalization in (6.5) away from zero.
Lemma 6.5 (Bounded normalization). For every box response used by the optimizer,
Proof. By Theorems 4.5 and 5.9, and . Using , Cauchy-Schwarz gives
Conversely, gives
Proof of Theorem 6.3. The normalization represents the price response exactly: . By Theorems 4.5 and 6.5, , the root argument is at least 1/400, and . The output encoding biases lie in , so Theorem 6.1 constructs .
To construct the price coins, use the fixed functions
Applied to , they give and . At and beyond, extend the first function by , respectively, and the second by on both sides. These extensions are smooth. Indeed, writing gives
Both functions approach their endpoint values exponentially fast in . Differentiating with respect to applies , so every positive-order derivative still tends to zero at the endpoints. In particular, the extensions have four continuous derivatives with fixed bounds. Their values and second derivatives have fixed formulas, with the constant branches supplying the endpoint values and derivatives.
Applying either extended function to and encoding the result gives a fixed smooth function of with values in . Thus Theorem 6.2 constructs from . Each factory has constant expected input and additional cost, as does their composition.
Updating proposal samplers. The bounded-tilt routine combines the rejection step with the load-ratio identity (6.7).
Proof of Theorem 6.4. The outgoing sampler is the rejection step in (6.1). Its acceptance probability is , which is also the bias of . Since , the bias of satisfies
The denominator is at least , and the bias has margin at least from both endpoints. Thus Theorem 6.1 applies with constant parameters. An incoming trial accepts with mass
Its conditional law is . Its acceptance probability, also the bias of , is . Both rejection loops therefore use an expected constant number of trials, proving the exactness and cost claims.
One recursive round. It remains to check the acceptance coins and the two state coins .
Lemma 6.6 (Exactness). For every , Algorithm 5 defines with law and a procedure family representing the next optimization state exactly. Every intermediate coin has its stated bias.
Proof. Induct on , starting from the explicit initialization and following the dependency order in the algorithm. All target laws are deterministic functions of , and every invocation uses fresh randomness.
By Theorem 5.9(c), the load ratios and the coordinate ratios lie in . The auxiliary load coin has the stated bias:
Thus Theorem 6.3 supplies the exact price coins for each response.
The root arguments are at least . The score bounds in Theorem 5.9(a) give
These intervals lie in . Consequently Theorem 6.1 constructs the exact weight coins from the listed inputs, and Theorem 6.4 gives the outgoing and incoming samplers and the load-ratio coins.
For the load-state update, and . Thus the denominator has a constant lower bound and the encoding bias lies in . For the auxiliary update, is a constant multiple of in Theorem 5.10, so
Here , and the bias of lies in . The elementary-formula factory therefore supplies both state coins with their exact biases.
6.6 Query cost and arithmetic work
Each output procedure supplied by Boxλ or Tilt, and each remaining formula coin, uses an expected constant number of input calls and expected constant additional work. These costs compound over rounds to a bound exponential in , with an absolute base. This also bounds the number of graph queries. Theorem B.2 gives the finite-arithmetic implementation and establishes the corresponding computational-work bound in the model of Section 2.1.
Lemma 6.7 (Adaptive composition). Suppose a procedure makes an expected at most calls to earlier procedures, at adaptively chosen arguments. If each call has conditional expected cost at most , given the history before it, and the procedure's own expected cost is at most , then its expected cost is at most .
Proof. Let indicate that the -th call is made and let be its cost, zero if the call is not made. Conditional on the history when the call is decided, . The tower property and Tonelli's theorem give .
Proposition 6.8 (Cost of the recursive procedures). There is an absolute constant such that every round- procedure, and every intermediate procedure in that round, terminates almost surely and has total work satisfying
The expectation is uniform over the argument and over the history before a fresh invocation. In particular, the same bound holds for the expected number of graph queries.
Proof. By Theorems 6.1, 6.3 and 6.4, each new procedure makes an expected constant number of input calls and performs expected constant additional work. The dependency order in Algorithm 5 has constant depth within one round. Applying Theorem 6.7 through these dependencies bounds each round's expected cost by a fixed constant times one plus the preceding round's maximum expected cost. Initialization has constant cost, giving the displayed bound after choosing sufficiently large. Fresh independent randomness gives the same bounds conditional on the history before an invocation. Finite expected total work implies almost sure termination.
Theorem 6.9 (Local proposal sampler). For every graph and , Algorithm 4 returns an exact sample from , where
It terminates almost surely and has expected total work at most
The same bound holds for the expected number of graph queries. Independent invocations use independent randomness.
Proof. Choosing a uniform round samples the average distribution exactly by Theorem 6.6. Its accepted-mass bound is Theorem 5.1; its cost follows from Theorem 6.8, absorbing the constant overhead of choosing a round into . Finally, .
7 From samples to a fractional matching
We use the sampler of Section 6 to construct an LCA for a fractional matching, with a worst-case work bound per query. Each invocation of the sampler has a fixed work budget, that is exceeded, the dummy is returned. Each vertex makes such proposals (invocations) and keeps at most incoming ones. Giving weight to every kept proposal is feasible in every graph. We bound the loss from these two steps and give consistent local access to the kept proposals. Estimation and rounding use these guarantees separately.
7.1 Capping the work of a proposal
In the sequel we use the exact finite-arithmetic sampler of Theorem B.2. Increasing the absolute constant in if necessary, this quantity also bounds its expected computational work in the model of Section 2.1. All work budgets below count this computational work.
The expected total-work bound of Theorem 6.9 gives a worst-case work budget directly. For , set
The capped sampler runs for at most units of work. If the sampler has returned by then, we use its output; otherwise we abort and return . All recursive calls share this one budget, including the work inside Bernoulli factories. Maintaining the work counter adds only constant overhead per operation, so the total work is . Write for the capped output law.
Lemma 7.1 (Capping). The capped sampler has a deterministic total-work bound and satisfies
Proof. Couple the capped and uncapped runs using the same randomness. If is the uncapped run's total work, then Theorem 6.9 and Markov's inequality give
Capping only replaces outcomes by the dummy. Thus, for every , the real-coordinate probabilities can only decrease, and their total decrease is at most :
Since is monotone and 1-Lipschitz,
Here isolated vertices send no real mass, and the last inequality is Theorem 2.4. The lower bound follows from Theorem 6.9; the upper bound follows from Theorem 3.1(a).
For the rest of the construction, choose
Then is a power of two, as needed by the later degree-halving procedure. The choice of bounds the loss in accepted mass from aborted draws by , and the work budget satisfies .
7.2 Keeping proposals
Each vertex makes independent capped proposals, identified by for . A real proposal to is a copy of the edge with this ID. Let count the proposals received by . The receiver keeps the proposals with smallest IDs, in lexicographic order. All kept copies form a multigraph on , with
Parallel copies, including proposals in opposite directions, remain distinct. A vertex has at most K kept outgoing and K kept incoming copies, so H has maximum degree at most 2K. Thus the weights
form a fractional matching of , of value . The multigraph is bipartite whenever is bipartite.
Clipping the incoming count at K loses little in expectation. The following estimate isolates that loss.
Lemma 7.2 (Relative clipping). If is a sum of independent Bernoulli variables with mean , for an integer , then
Proof. The upper bound is Jensen's inequality. Suppose first that . Write , , and . Since vanishes unless ,
For the penultimate step, and imply . Subtracting the loss from proves this case. If , independently retain each success with probability . The thinned count has mean and is at most , so the first case gives the required bound.
Corollary 7.3 (Expected value). The fractional matching of kept proposals satisfies
Proof. Each is a sum of independent indicators with mean . Summing Theorem 7.2 and applying Theorem 7.1 gives
By (7.2), and , giving the lower bound. The upper bound follows from feasibility for every realization.
7.3 Consistent local access
Independent seeds fix the proposals, so any query can reconstruct the same kept copies. Give each proposal its own seed as in Section 2.1. Re-evaluating it with the same seed and work budget reproduces the same outcome. These seeds therefore fix one multigraph , regardless of the query order.
Algorithm 6 gives the local routines. Incoming(v) lists the copies kept by v; List(v) also checks which proposals made by v were kept by their receivers. Each list stores the IDs and endpoints of its copies. The routines recompute the entries they need and use no persistent memory.
Algorithm 6: Local access to the proposal multigraph
Input: Fixed parameters and independent proposal seeds .
Procedure Propose(u, j): Run Out with seed for at most units of total sampler work if the sampler has returned an output a then return a return
Procedure Incoming(v): empty list foreach do for do if Propose(u, j) = v then Append the copy of uv with ID to Sort by ID and return its first copies
Procedure List(v): Incoming(v) for do Propose(v, j) if then if the copy with ID belongs to Incoming(w) then Append that copy to Sort by ID and return
Lemma 7.4 (The proposal multigraph). For every graph , has edges and maximum degree at most . Giving each copy weight yields a feasible fractional matching with the expected value in Theorem 7.3. The list of copies incident to a specified vertex, sorted by ID, can be computed consistently using at most
total work, and hence at most that many graph queries.
Proof. The size, degree, and feasibility claims follow from the construction, and Theorem 7.3 gives the expected value.
A call to Incoming evaluates at most proposals and sorts at most that many copies. Its total work is . A call to List makes at most such calls, evaluates another proposals, and sorts at most kept copies. This gives the stated bound. Every decision uses the same IDs and proposal seeds, so all evaluations agree. Since has no loops, an incoming copy and an outgoing copy at a vertex are distinct, and List returns exactly its incident copies in .
8 The size estimator
The estimator samples the incoming contribution of a uniformly random vertex. Recall that the fractional matching of Section 7 has value
One estimation trial chooses a uniform vertex , generates its incoming proposals, and returns the normalized count . Averaging independent trials and multiplying by estimates the expected value of this fractional matching, which is close to by Theorem 7.3.
Write CappedOut for the capped sampler of Section 7.1. Each invocation uses fresh independent randomness, even when a source or receiver is sampled again. The estimator only counts incoming proposals; it needs no proposal IDs, sorting, shared seeds, or rounding.
Algorithm 7: Estimating the fractional matching number
Input: Graph access, , degree bound , and .
Output: An estimate of .
Set as in (7.2)
for do
Choose uniformly from
foreach do
for do
if then
end
// fresh randomness
return
On bipartite graphs, the same output estimates .
Proof of Theorem 1.1(b). For a fixed , the trial has exactly the incoming-count law used in Section 7. Thus Theorem 7.3 gives
The inclusion uses . Because the trials are independent and lie in , Theorem 2.5 yields
Otherwise the sampling error is at most , and the total error is at most , in particular at most . Each trial uses total work. The resulting worst-case bound on both graph queries and arithmetic work is
Remark 8.1 (Estimation from the deterministic oracle). The estimation claim in Theorem 1.2 follows by the same vertex-sampling argument. Use Theorem 5.3 with relative error , and for a uniform vertex compute its incident weight . Then , whose deficit from is at most . Averaging independent vertex samples estimates this value within with probability at least . Evaluating makes at most edge-weight queries; these polynomial factors are absorbed into the stated bound. Only vertex sampling is randomized.
9 Rounding to a consistent local oracle
The proposal multigraph has copies, degree at most , and represents the fractional matching of Section 7. We round its bipartite double cover to a matching and project back to . The resulting output is half-integral on every graph and integral whenever is bipartite. The algorithm requires neither a bipartition nor knowledge of whether is bipartite.
The key is to use the same random marks for the two lifts of each proposal copy. On bipartite inputs, this makes the rounding decisions agree in the two copies of each connected component. The optimization, sampling, and proposal construction all run directly on ; only the rounding uses the double cover.
9.1 Local degree halving
The rounding repeatedly halves a degree bound, doubling the weight represented by each remaining edge. Pairing incident copies reduces each step to choosing alternating edges along paths and even cycles. Random marks cut these components into pieces that can be explored with bounded work.
Set , so has copies and maximum degree at most . Each lifted copy has an ID consisting of its original proposal ID followed by a side index; IDs are ordered lexicographically and retained throughout the rounding. Write and . Fix a loss allowance and set
This choice gives and . Each mark is generated from exactly independent random bits: it is one precisely when all these bits are zero.
One halving step. At each vertex of , sort incident copies by ID and pair consecutive ones, leaving one unpaired if the degree is odd. The link multigraph has the copies of as vertices and these pairs as edges. A copy has at most one link at each endpoint, so has maximum degree two. Along a cycle, links alternate between the two sides of ; every cycle is therefore even.
At level , give each original proposal copy an independent Bern mark, shared by its surviving lifts. Marks are independent across levels and independent of the proposal seeds. Write for the vertices of within distance of a lifted copy . Delete if it is marked, or if and contains no mark. On each surviving component, keep the larger class of its proper 2-coloring; on a tie, keep the class containing the smallest ID. These kept copies form .
Lemma 9.1 (One halving step; cf. [1, 25]). Every surviving component of has at most vertices, and has maximum degree at most . If copies are deleted, then .
Proof. A surviving path or cycle with more than 2R vertices has a vertex whose radius-R ball lies within that component. The ball has at least R vertices and no mark, so the deletion rule would have removed this vertex.
The two copies of a pair cannot both be kept: if both survive, they are adjacent in and have opposite colors. Hence each vertex retains at most copies, since is even for . Choosing the larger color class keeps at least half of all surviving copies, which proves the edge-count bound.
Sharing marks preserves the expected-loss bound: any set of lifted copies contains at least distinct original IDs, and hence at least independent marks.
Lemma 9.2 (Deletion loss). Conditional on , .
Proof. A copy is marked with probability . If its radius- ball has at least vertices, that ball has no mark with probability at most
Thus each copy is deleted with probability at most ; summing proves the claim.
Proposition 9.3 (Local degree halving; cf. [1, 25]). After steps, is a matching and
If a sorted list of copies at a vertex of costs at most total work, a mate query to costs at most total work, for an absolute constant . The same bound therefore holds for graph queries and arithmetic operations. Fixed IDs and marks indexed by original proposal ID and level give consistent answers in every query order.
Proof. The final degree bound is , so is a matching. By Theorems 9.1 and 9.2,
Iterating expectations gives . Since , this is the value bound.
For local evaluation, let return the incident copies in in ID order, at worst-case cost . The two possible neighbors of a copy in are obtained from the lists at its endpoints. Testing deletion uses such list calls. Determining whether a surviving copy is kept explores its component of at most copies and tests their boundary, using list calls in total. This reveals both color classes and their smallest IDs. Generate each encountered copy's mark once and reuse it during this exploration. The tested balls together contain copies, so generating their marks costs additional work. Filtering through these tests preserves ID order and gives
This bound includes comparisons and all other local work. Finally, the fixed seeds define one global sequence ; every evaluation reconstructs its relevant part using the same choices.
9.2 Integral and half-integral outputs
Apply Theorem 9.3 with , and let . The incident lists of are obtained from those of in Theorem 7.4 with constant-factor overhead. We now project to one fractional matching of and show that it is integral on bipartite inputs.
Projection and value. As in Theorem 2.3(b), each matched lift contributes weight 1/2 to its original edge of , with contributions from parallel copies added. At each vertex, its two lifts contribute at most 1/2 each. Thus the resulting weights are feasible, belong to , and satisfy . Conditional on ,
Together with Theorem 7.3, this gives
Integrality on bipartite inputs. If is bipartite, so is , and the double cover of each connected component of consists of two isomorphic copies. Swapping the lifts gives an isomorphism between these copies that preserves original proposal IDs. Within either copy, these IDs are distinct, so the secondary side indices never affect their relative order.
The two copies therefore undergo identical rounding decisions. Indeed, this holds initially and is preserved at every level: incident pairings correspond, shared marks give corresponding deletions, and the larger-class rule and its smallest-ID tie-break choose corresponding color classes. Consequently, contains both lifts of each proposal copy or neither. Its projection is integral and hence is a matching of . This conclusion follows from the input being bipartite; the algorithm never needs to test it.
Local queries. An edge query for uses two mate queries to , at and , and returns half the number of these that are matched to and , respectively. On bipartite inputs, a mate query at uses just the mate of , returning its original vertex or reporting that is unmatched. Both query interfaces access the same projected output.
9.3 Completing the LCA guarantee
We finish Theorem 1.1(a) using the expected-value bound above and then check total work. Write and . Feasibility gives , and
If , the output is already optimal. Otherwise, Markov's inequality applied to the nonnegative deficit gives
Thus the output has the required multiplicative guarantee with probability at least 0.9. On bipartite inputs it is a matching and . Any other fixed success probability below one is obtained by a constant rescaling of the accuracy parameters.
Work per query. Theorems 7.4 and 9.3 bound total work by a constant multiple of
Here are polynomial in , , and . Together with , this gives total work per output query. The two mate queries for an edge weight add only a constant factor. The bound is independent of .
Validity and consistency. Proposal seeds fix , and the marks indexed by original proposal ID and level fix every rounding decision. Each query therefore reconstructs part of the same projected fractional matching, in every query order, including adaptive ones. The proposal work cap and the bounded rounding explorations ensure that every query terminates within the stated budget. Feasibility and consistency hold for every realization of the seeds; only the approximation guarantee is probabilistic. This proves Theorem 1.1(a).
Remark 9.4 (Constants). The absolute constants in the exponent are large and are not optimized. The cap multiplies the expected sampler cost by , and the degree-halving overhead is ; both are absorbed into . The result concerns the dependence of the exponent on .
10 Conclusion and open questions
Our approach combines a rapidly converging local optimizer with exact recursive sampling of its iterates. The optimizer gives deterministic local access to a fractional matching; the sampler reduces the dependence on the degree by replacing neighborhood expansion with constant expected branching. This combination suggests several directions for further work.
Integral matchings in general graphs. Can a randomized mate-query LCA find a -approximate matching in a general graph using queries and arithmetic operations per query, with constant success probability? Our fractional relaxation leaves an obstruction from odd cycles, since can exceed . The recent preprint of OpenAI [49] on almost-linear-time exact matching combines representations of odd components with continuous optimization and flow-based repairs. Whether its treatment of these components can be adapted to an efficiently locally simulatable method is an interesting question.
Graphs of unbounded degree. When the bounded-degree assumption is dropped, Bhattacharya, Kiss, and Saranurak [13] estimate within in queries, and Behnezhad, Roghani, and Rubinstein [11] prove an lower bound. However, the dependence on in the exponent remains wide open. Because [13] simulates McGregor's augmenting-path streaming algorithm [42], its exponent savings is doubly exponentially small in , whereas the lower bound of [11] only forces to vanish roughly as . Can continuous optimization methods avoid this compounding of augmenting-path phases in the unbounded-degree regime as well, and achieve queries?
Other local optimization problems. It would be useful to identify a broader class of optimization methods whose iterates admit exact recursive sampling with constant expected branching. Capacitated allocation, fractional packing, and entropy-regularized transport are natural candidates.
The challenge is to obtain both fast convergence and a representation by samplers and coins that is preserved by the updates, with uniformly bounded simulation cost. Our construction shows how these requirements can guide the choice of formulation, regularizer, and update rules.
Acknowledgments
Edith Cohen was partially supported by the Israel Science Foundation (grant No. 1156/23).
AI methodology. We acknowledge substantive contributions from Astra (OpenAI), Claude (Anthropic), and Gemini (Google). Starting from an earlier unpublished writeup by the second author, these systems contributed the first proof of an additive approximation guarantee. Through many subsequent iterations with the authors, they helped strengthen the guarantees, refine the statements and presentation, and identify connections to related work. This assistance materially influenced the proofs, result statements, exposition, and related-work discussion. The authors take full responsibility for the correctness, originality, and integrity of all content, including the proofs and references.
References
[1] Mohamad Ahmadi, Fabian Kuhn, and Rotem Oshman. Distributed approximate maximum matching in the CONGEST model. In 32nd International Symposium on Distributed Computing (DISC 2018), volume 121 of LIPIcs, pages 6:1–6:17, 2018. URL https://doi.org/10.4230/LIPIcs.DISC.2018.6.
[2] Kook Jin Ahn and Sudipto Guha. Access to data and number of iterations: Dual primal algorithms for maximum matching under resource constraints. ACM Transactions on Parallel Computing, 4(4), 2018. URL https://doi.org/10.1145/3154855. Conference version in SPAA 2015; arXiv:1307.4359.
[3] Noga Alon, Ronitt Rubinfeld, Shai Vardi, and Ning Xie. Space-efficient local computation algorithms. In Proceedings of the 23rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1132–1139, 2012. URL https://doi.org/10.1137/1.9781611973099.89.
[4] Sepehr Assadi, Arun Jambulapati, Yujia Jin, Aaron Sidford, and Kevin Tian. Semi-streaming bipartite matching in fewer passes and optimal space. In Proceedings of the 33rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 627–669, 2022. URL https://doi.org/10.1137/1.9781611977073.29. arXiv:2011.03495.
[5] Amir Azarmehr, Soheil Behnezhad, Alma Ghafari, and Madhu Sudan. Lower bounds for non-adaptive local computation algorithms. In Proceedings of the 66th IEEE Symposium on Foundations of Computer Science (FOCS), pages 1488–1511, 2025. URL https://arxiv.org/abs/2505.00915.
[6] Amir Azarmehr, Soheil Behnezhad, Mohammad Roghani, and Aviad Rubinstein. Tight pair query lower bounds for matching and earth mover's distance. In 66th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2025, Sydney, Australia, December 14-17, 2025, pages 2666–2693. IEEE, 2025. doi: 10.1109/FOCS63196.2025.00138. URL https://doi.org/10.1109/FOCS63196.2025.00138.
[7] Soheil Behnezhad. Time-optimal sublinear algorithms for matching and vertex cover. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 873–884. IEEE, 2022.
[8] Soheil Behnezhad, Mohammad Roghani, and Aviad Rubinstein. Local computation algorithms for maximum matching: New lower bounds. In Proceedings of the 64th IEEE Symposium on Foundations of Computer Science (FOCS), pages 2322–2335, 2023. URL https://doi.org/10.1109/F0CS57990.2023.00143. arXiv:2311.09359.
[9] Soheil Behnezhad, Mohammad Roghani, and Aviad Rubinstein. Sublinear time algorithms and complexity of approximate maximum matching. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, page 267–280, New York, NY, USA, 2023. Association for Computing Machinery.
[10] Soheil Behnezhad, Mohammad Roghani, Aviad Rubinstein, and Amin Saberi. Beating greedy matching in sublinear time. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3900–3945. SIAM, 2023.
[11] Soheil Behnezhad, Mohammad Roghani, and Aviad Rubinstein. Approximating maximum matching requires almost quadratic time. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 444–454, 2024.
[12] Sayan Bhattacharya, Peter Kiss, and Thatchaphol Saranurak. Sublinear algorithms for -approximate matching. In Proceedings of the 55th ACM Symposium on Theory of Computing, STOC 2023, Orlando, Florida, 2023.
[13] Sayan Bhattacharya, Peter Kiss, and Thatchaphol Saranurak. Dynamic -approximate matching size in truly sublinear update time. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, 2023.
[14] Digvijay Boob, Saurabh Sawlani, and Di Wang. Faster width-dependent algorithm for mixed packing and covering LPs. In Advances in Neural Information Processing Systems 32 (NeurIPS), pages 15279–15288, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/791d3a0048b9c200dceca07f99ddd178-Abstract.html.
[15] Kenneth L. Clarkson, Elad Hazan, and David P. Woodruff. Sublinear optimization for machine learning. Journal of the ACM, 59(5):Article 23, 2012. URL https://doi.org/10.1145/2371656.2371658.
[16] Edith Cohen. Size-estimation framework with applications to transitive closure and reachability. Journal of Computer and System Sciences, 55(3):441–453, 1997. doi: 10.1006/jcss.1997.1534. URL https://doi.org/10.1006/jcss.1997.1534.
[17] Edith Cohen and David D. Lewis. Approximating matrix multiplication for pattern recognition tasks. Journal of Algorithms, 30(2):211–252, 1999. doi: 10.1006/jagm.1998.0989. URL https://doi.org/10.1006/jagm.1998.0989.
[18] Michael B. Cohen, Aaron Sidford, and Kevin Tian. Relative Lipschitzness in extragradient methods and a direct recipe for acceleration. In 12th Innovations in Theoretical Computer Science Conference (ITCS 2021), volume 185 of LIPIcs, pages 62:1–62:18, 2021. URL https://doi.org/10.4230/LIPIcs.ITCS.2021.62.
[19] Sameep Dahal and Jukka Suomela. Distributed half-integral matching and beyond. Theoretical Computer Science, 982:114278, 2024. URL https://arxiv.org/abs/2303.05250.
[20] Petros Drineas, Ravi Kannan, and Michael W. Mahoney. Fast Monte Carlo algorithms for matrices I: Approximating matrix multiplication. SIAM Journal on Computing, 36(1):132–157, 2006. doi: 10.1137/S0097539704442684. URL https://doi.org/10.1137/S0097539704442684.
[21] Iain S. Duff, Kamer Kaya, and Bora Uçar. Design, implementation, and analysis of maximum transversal algorithms. ACM Transactions on Mathematical Software, 38(2):13:1–13:31, 2011. doi: 10.1145/2049673.2049677. URL https://doi.org/10.1145/2049673.2049677.
[22] Shaddin Dughmi, Jason D. Hartline, Robert D. Kleinberg, and Rad Niazadeh. Bernoulli factories and black-box reductions in mechanism design. Journal of the ACM, 68(2):10:1–10:30, 2021. doi: 10.1145/3440988. URL https://doi.org/10.1145/3440988.
[23] Jack Edmonds. Paths, trees, and flowers. Canadian Journal of Mathematics, 17:449–467, 1965. doi: 10.4153/CJM-1965-045-4. URL https://doi.org/10.4153/CJM-1965-045-4.
[24] Jenő Egerváry. Mátrixok kombinatorius tulajdonságairól. Matematikai és Fizikai Lapok, 38:16–28, 1931. URL https://real-j.mtak.hu/7307/.
[25] Manuela Fischer. Improved deterministic distributed matching via rounding. In 31st International Symposium on Distributed Computing (DISC 2017), volume 91 of LIPIcs, pages 17:1–17:15, 2017. URL https://doi.org/10.4230/LIPIcs.DISC.2017.17.
[26] Mohsen Ghaffari. Local computation of maximal independent set. In Proceedings of the 63rd IEEE Symposium on Foundations of Computer Science (FOCS), pages 438–449, 2022. URL https://doi.org/10.1109/FOCS54457.2022.00049. arXiv:2210.01104.
[27] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963. URL https://doi.org/10.1080/01621459.1963.10500830.
[28] Olga Holtz, Fedor Nazarov, and Yuval Peres. New coins from old, smoothly. Constructive Approximation, 33:331–363, 2011. URL https://doi.org/10.1007/s00365-010-9108-5.
[29] Mark Huber. Nearly optimal Bernoulli factories for linear functions. Combinatorics, Probability and Computing, 25(4):577–591, 2016. doi: 10.1017/S0963548315000371. URL https://arxiv.org/abs/1308.1562.
[30] Arun Jambulapati and Kevin Tian. Revisiting area convexity: Faster box-simplex games and spectrahedral generalizations. In Advances in Neural Information Processing Systems 36 (NeurIPS), pages 57583–57596, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/b3bec3f5ad96055b7f60c93edc3606c8-Abstract-Conference.html. arXiv:2303.15627.
[31] Arun Jambulapati, Aaron Sidford, and Kevin Tian. A direct iteration parallel algorithm for optimal transport. In Advances in Neural Information Processing Systems 32 (NeurIPS), pages 11359–11370, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/024d2d699e6c1a82c9ba986386f4d824-Abstract.html.
[32] Arun Jambulapati, Yujia Jin, Aaron Sidford, and Kevin Tian. Regularized box-simplex games and dynamic decremental bipartite matching. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of LIPIcs, pages 77:1–77:20, 2022. URL https://doi.org/10.4230/LIPIcs.ICALP.2022.77.
[33] Michael Kapralov, Slobodan Mitrović, Ashkan Norouzi-Fard, and Jakab Tardos. Space efficient approximation to maximum matching size from uniform edge samples. In Proceedings of the 31st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1753–1772, 2020. URL https://doi.org/10.1137/1.9781611975994.107.
[34] Michael S. Keane and George L. O'Brien. A Bernoulli factory. ACM Transactions on Modeling and Computer Simulation, 4(2):213–219, 1994. URL https://doi.org/10.1145/175007.175019.
[35] Dénes Kónig. Graphok és mátrixok. Matematikai és Fizikai Lapok, 38:116–119, 1931. URL https://real-j.mtak.hu/7307/.
[36] Fabian Kuhn, Thomas Moscibroda, and Roger Wattenhofer. Local computation: Lower and upper bounds. Journal of the ACM, 63(2):Article 17, 2016. URL https://doi.org/10.1145/2742012.
[37] Harold W. Kuhn. The Hungarian method for the assignment problem. Naval Research Logistics Quarterly, 2(1–2):83–97, 1955. doi: 10.1002/nav.3800020109. URL https://doi.org/10.1002/nav.3800020109.
[38] Reut Levi, Ronitt Rubinfeld, and Anak Yodpinyanee. Local computation algorithms for graphs of non-constant degrees. Algorithmica, 77(4):971–994, 2017. URL https://doi.org/10.1007/s00453-016-0126-y.
[39] Qian Li, Minghui Ouyang, and Yuyi Wang. A simple distributed algorithm for sparse fractional covering and packing problems. In 35th International Symposium on Algorithms and Computation (ISAAC 2024), LIPIcs, pages 45:1–45:8, 2024. URL https://arxiv.org/abs/2409.16168.
[40] Yishay Mansour and Shai Vardi. A local computation approximation scheme to maximum matching. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2013), volume 8096 of Lecture Notes in Computer Science, pages 260–273. Springer, 2013. URL https://doi.org/10.1007/978-3-642-40328-6_19.
[41] 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. URL https://doi.org/10.1017/CB09781107359949.008.
[42] Andrew McGregor. Finding graph matchings in data streams. In International Workshop on Approximation Algorithms for Combinatorial Optimization, pages 170–181. Springer, 2005.
[43] Luis Mendo. An asymptotically optimal Bernoulli factory for certain functions that can be expressed as power series. Stochastic Processes and their Applications, 129(11):4366–4384, 2019. doi: 10.1016/j.spa.2018.11.017. URL https://arxiv.org/abs/1612.08923.
[44] Serban Nacu and Yuval Peres. Fast simulation of new coins from old. The Annals of Applied Probability, 15(1A):93–115, 2005. URL https://doi.org/10.1214/105051604000000549.
[45] Arkadi Nemirovski. Prox-method with rate of convergence for variational inequalities with Lipschitz continuous monotone operators and smooth convex-concave saddle point problems. SIAM Journal on Optimization, 15(1):229–251, 2004. URL https://doi.org/10.1137/S1052623403425629.
[46] Huy N. Nguyen and Krzysztof Onak. Constant-time approximation algorithms via local improvements. In Proceedings of the 49th IEEE Symposium on Foundations of Computer Science (FOCS), pages 327–336, 2008. URL https://doi.org/10.1109/FOCS.2008.81.
[47] Rad Niazadeh, Renato Paes Leme, and Jon Schneider. Combinatorial Bernoulli factories: Matchings, flows, and other polytopes. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 833–846, 2021. doi: 10.1145/3406325.3451072. URL https://doi.org/10.1145/3406325.3451072.
[48] Krzysztof Onak. Open problem 39: Approximating maximum matching size. Sublinear.info; suggested at the Bertinoro Workshop on Sublinear Algorithms, 2011. URL https://sublinear.info/index.php?title=Open_Problems:39.
[49] OpenAI. Almost-linear-time maximum-cardinality matching in general graphs, 2026. URL https://github.com/openai/math/blob/main/preprints/Almost-Linear-Time-Maximum-Cardinality-Matching-in-Sparse-General-Graphs-September-24-2026/main.pdf. OpenAI Math Release preprint, September 24.
[50] Michal Parnas and Dana Ron. Approximating the minimum vertex cover in sublinear time and a connection to distributed algorithms. Theoretical Computer Science, 381(1-3):183–196, 2007. URL https://doi.org/10.1016/j.tcs.2007.04.040.
[51] David Peleg. Distributed Computing: A Locality-Sensitive Approach. Society for Industrial and Applied Mathematics, 2000. doi: 10.1137/1.9780898719772. URL https://doi.org/10.1137/1.9780898719772.
[52] Ronitt Rubinfeld, Gil Tamir, Shai Vardi, and Ning Xie. Fast local computation algorithms. In Proceedings of Innovations in Computer Science (ICS), pages 223–238. Tsinghua University Press, 2011. URL https://arxiv.org/abs/1104.1377.
[53] Sebastian M. Schmon, Arnaud Doucet, and George Deligiannidis. Bernoulli race particle filters. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, volume 89 of Proceedings of Machine Learning Research, pages 2350–2358. PMLR, 2019. URL https://proceedings.mlr.press/v89/schmon19a.html.
[54] Vihan Shah. Sublinear-time lower bounds for approximating matching size using non-adaptive queries. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 5027–5065. SIAM, 2026.
[55] Jonah Sherman. Area-convexity, regularization, and undirected multicommodity flow. In Proceedings of the 49th Annual ACM Symposium on Theory of Computing (STOC), pages 452–460, 2017. URL https://doi.org/10.1145/3055399.3055501.
[56] Yuichi Yoshida, Masaki Yamamoto, and Hiro Ito. Improved constant-time approximation algorithms for maximum matchings and other optimization problems. SIAM Journal on Computing, 41(4):1074–1093, 2012. URL https://doi.org/10.1137/110828691.
A Bernoulli-factory proofs
This appendix proves the two primitives stated together in Section 6.1, including their arithmetic-work bounds. The extensions used for the price readouts are specified in Section 6.5; they are part of the sampler's preparation, not an additional assumption of these proofs.
A.1 Elementary formulas
We represent each intermediate value by a bounded unbiased random variable, and convert the final representation into a coin. Every sample and every repeated trial below uses fresh independent randomness.
Proof of Theorem 6.1. Linear amplification. For fixed and , the linear factory of Huber [29] converts a -coin into a -coin whenever , using expected input flips. Its additional work is on an execution using input flips in our model: each inner step uses one input flip, one known-parameter geometric draw, and constant arithmetic; each outer step contains an inner step and adds constant work. A geometric draw uses a uniform draw, logarithms, and integer rounding. Thus fixed give constant expected additional work. For , thinning suffices.
Bounded unbiased representations. A procedure represents if it returns independent samples with and for a known constant . If , draw and then a known-bias coin with conditional bias . This is a coin of bias
Linear amplification with multiplier 2 applies because . Complementing its output gives an -coin. One may use slack . This conversion uses constant expected calls and additional work for fixed .
Arithmetic. An input bit represents its bias. Constants, sums, differences, and scalar multiples preserve bounded unbiased representations. If independently represent , their product represents and is bounded by . Every repeated occurrence in a formula uses an independent representation; in particular, a square uses two independent copies. The formula is fixed, so these operations preserve constant expected cost.
Reciprocals. Suppose represents , with . Set and . The variable has mean and absolute value at most , so the conversion above supplies an -coin. In each trial, choose one of two branches uniformly. On the first branch, flip a known -coin and return 1 on heads. On the second, flip an -coin and return 0 on heads. On tails, repeat. A trial accepts with probability , and the returned bit satisfies
Thus represents , is bounded by , and has constant expected cost. A quotient is the product of independent numerator and reciprocal representations.
Roots. For , Mendo [43] gives the following -coin. At iteration , flip a -coin and return 1 on heads; otherwise return 0 with probability , and continue if neither event occurs. The expected number of input flips is , and each iteration has constant additional work. If represents with , convert it to an -coin, apply this procedure, and multiply the returned bit by . The result represents , is bounded by , and has constant expected cost since . We use and 1/4.
Exponentials. If represents with , drawing and then a known-bias coin with conditional bias gives a coin of bias . Draw and let if all independent -coins are heads, including when . Then
Hence represents and is bounded by . It uses at most 2B expected calls to the X-procedure. The Poisson count can be sampled using exponential interarrival times in expected work, which is constant for fixed B.
The final coin. Apply these constructions along the fixed formula . Every intermediate has a known finite support bound. The promised positive lower bounds permit all reciprocal and root steps, and Theorem 6.7 gives constant expected input calls and additional work for each representation. Write and choose a support bound for its representation. Since , positive-mean conversion gives an -coin. A final linear amplification with multiplier and slack produces an exact -coin, because . All constants depend only on the formula and its promised bounds. Finite expected work implies almost sure termination.
A.2 Smooth one-variable functions
The proof uses a mixture of Bernstein polynomials. Choosing the polynomial first makes both the input-flip count and the coefficient-evaluation work easy to bound.
Proof of Theorem 6.2. Put and . Define the degree- Bernstein polynomial
It converges uniformly to . We first bound the change between degrees and at the coefficient level.
When is expressed in degree , its coefficient at index is , where and is hypergeometric: sample positions from positions, of which are marked. Writing , we have
The odd moments vanish because a sample and its complement have the same law. The fourth-moment bound is uniform in , as follows from the fourth central moment of a hypergeometric count. Taylor expansion through order three for and through order one for therefore gives
uniformly in . The constant is controlled by the bounds on the first four derivatives of . Choose a fixed known such that every degree-2 coefficient of has absolute value at most .
Choose a sufficiently large fixed integer , and put
We can ensure and that all coefficients of lie in . Consequently,
have Bernstein coefficients in , and telescoping gives
Sample this mixture. To simulate the selected polynomial of degree , flip the input coin times and let be the number of heads. Return a known-bias coin whose bias is the polynomial's -th Bernstein coefficient. Its unconditional bias is the selected polynomial evaluated at , so the mixture is an exact -coin.
The expected number of input flips is at most
Only one Bernstein coefficient is needed on any invocation. For a degree-2n branch, compute the single hypergeometric expectation above using at most terms. Binomial-coefficient recurrences generate its probabilities in operations, and each term requires a constant-work evaluation of . Thus the additional work on that branch is and has constant expectation as well. Mixture selection has constant expected work because the non-base weights are proportional to . All constants depend only on and , and the construction is uniform over .
B Finite precision
Finite precision suffices for both the deterministic optimizer and the randomized construction. The optimizer tolerates small errors in its updates; for the sampler, we instead implement its exact coin decisions by successively refining numerical bounds. The work cap then gives a finite computation on every invocation.
We count numerical bit operations, while treating graph access, vertex identifiers, and the known graph size in the usual oracle or word model. Charging also for these -bit words introduces an additional polynomial factor in . Independent random bits and uniform vertex samples are supplied by an oracle; we do not charge for storing or addressing random seeds. We may replace the requested accuracy by a dyadic number within a factor of two, so its description has bits.
B.1 The optimizer and bounded messages
Proposition B.1. The deterministic construction can be implemented with finite arithmetic, retaining its fractional-matching guarantee, its radius , and its bound on graph queries and numerical bit operations per edge query. There is also a distributed implementation using rounds and bits per edge per round. The total computational work at each vertex is at most
In particular, this is an -round CONGEST algorithm when and .
The useful error bound is a perturbation of the potential proof, not a comparison between the rounded and exact trajectories. Write for the number of nonisolated vertices and fix a numerical tolerance . Store the transformed price as a rational number, with the mathematical state price defined by . Thus the state remains interior even when its price is very close to an endpoint. Numerical evaluations of need not be exact. All rounding and evaluation rules are fixed and deterministic.
Errors in the update inequalities. Use the notation and MD from Section 5.2 for the exact score and mirror-descent map at the current state. Require each implemented distribution update to have the form
For the second distribution update of the extragradient stage, the base is and the score is , as in Theorem 5.6. Require each implemented price response to satisfy
Here v is the gradient vector prescribed by the algorithm at its current, possibly rounded, state. Errors in evaluating this vector are included in these residuals.
These conditions add at most to the right-hand side of Theorem 5.5, and at most to that of Theorem 5.6. Indeed, a score error contributes at most in each use of the mirror-descent identity, since two distributions have distance at most two per block. Also,
By (B.2), the transformed output differs from the exact box response by at most per coordinate. Consequently, replacing the exact response by this output contributes at most through the proposal gradient and through price stationarity. There is one mirror-descent error in the gradient stage and two in the extragradient stage, giving the asserted constants.
The proof of Theorem 5.7 therefore gives
Keep the initial proposal distributions exact, and initialize within of . For the comparison points in Theorem 5.8, this changes by at most . To see this, differentiate its price-dependent part with respect to one initial transformed price: the derivative is
whose absolute value is at most seven because and . Summing (B.3) exactly as in Section 5.3 now yields
Thus for a sufficiently small absolute , and for a sufficiently large , leave a constant fraction of the error allowance for the final output rounding. We use from Theorem 2.4.
Implementing the residual bounds. Only modest absolute accuracy is needed in messages, even though locally stored probabilities may be very small. Let . The main price update and (B.2) give
Since every load is at most , all transformed prices, including provisional responses, have magnitude . The logarithmic-ratio recurrence in Theorem 5.9 still contracts by , with an additional perturbation. It follows that all update ratios remain between fixed positive constants and every proposal probability is at least .
Evaluate each unnormalized proposal weight to relative error , round it to a positive dyadic number, and normalize the resulting weights exactly. If a weight is changed by a factor , this is precisely a score perturbation ; allocating the error allowance between score evaluation and weight rounding gives (B.1). The normalized rational probabilities have numerators and denominators of bits. Elementary functions on these inputs can be evaluated by convergent series and range reduction in polynomial bit work. In particular, can be evaluated stably as , using .
For communication, round each required scalar , , or to absolute error at most , where
for a sufficiently large absolute . Incoming load errors are at most . The price formula divides by and its numerator uses a transformed price of magnitude . Consequently these message errors, and local rounding on the same mesh, contribute to the residual in (B.2). The preceding Lipschitz bounds give errors in the scores; choosing smaller constant fractions of the tolerances gives (B.1) as well. Each round has only a constant number of neighbor exchanges. Equation (B.5) requires bits. All larger representations and normalizations remain local.
Each round processes scalar entries at vertex , with representations of bits. Each scalar update requires polynomial bit work in this length. Summing over rounds, and including initialization and final output rounding, gives the claimed total computational-work bound per vertex.
A feasible finite output. For the output average, round each transmitted tentative probability downward to the h-grid and put the missing mass on the dummy. The resulting average satisfies on real coordinates and
Its entries have denominator , so its loads and accepted directed assignments can be computed exactly with -bit rational numbers. Round each accepted directed assignment downward to a common dyadic grid of spacing at most , exchange the two directed values, and average them as in (5.2). This gives exact endpoint agreement and preserves feasibility. The final decrease in fractional value is at most . Together with (B.4), this proves the value guarantee in Theorem B.1. The local polynomial bit work is absorbed by the stated LCA bound. For arbitrary smaller , splitting a scalar message across CONGEST rounds gives the bound
B.2 Exact sampling with finite arithmetic
For the randomized construction, we keep the original exact iterates as the target distributions.
Proposition B.2. With the randomness oracle described above, the uncapped sampler has an exact implementation with expected numerical bit work . Capping this work, rather than the number of exact-real operations, retains all the guarantees and asymptotic bounds of Theorem 1.1. Every capped invocation uses finite precision and terminates within its deterministic work budget.
Known numerical biases. A coin with a computable bias does not require computing exactly. Compute certified intervals containing and reveal bits of an independent uniform random number until the two intervals are disjoint. With interval widths , the probability of remaining undecided is , uniformly in . Thus a bias evaluable to error in poly bit operations has an exact coin implementation with poly expected bit work. This observation concerns known numerical coefficients inside a factory; unknown input biases are still accessed only through independent input flips.
The smooth factory. The proof of Theorem 6.2 selects a polynomial of degree with probability . For a degree-2n branch, its only nontrivial coefficient is a scaled difference involving a hypergeometric expectation of . It is enough to approximate this coefficient to error in
bit operations. This avoids the unnecessary cost of forming exact large binomial coefficients.
Here is such an evaluation. For , start at a mode with unnormalized weight one. Generate the other weights outward using adjacent probability ratios, which are at most one in this direction; for example,
There are terms, and the sum of the unnormalized weights is at least one. With fractional bits, rounding these products and sums introduces error. The mixture coefficient scales the difference by , so suffices. Evaluating and at this precision therefore gives (B.6) whenever their evaluation cost is polynomial in the argument length and precision. The known-bias comparison above makes the expected work of this branch poly. Summing over branches gives a constant, since poly.
The conversion functions used in Section 6.5 satisfy this evaluation condition. They are fixed affine rescalings of
extended constantly past . For , their deviations from the endpoint values, and their second derivatives, are bounded by . Thus when one uses the endpoint values and zero derivatives to precision . Otherwise all elementary evaluations have arguments of polynomial size in and the input length.
Elementary formulas. For a finite-arithmetic implementation of Theorem 6.1, one may use the preceding smooth factory in place of its individual nonlinear constructions. Retain its bounded unbiased representations: and for a fixed known bound . A draw of , followed by a coin of bias , supplies a coin of bias . For each reciprocal, root, or exponential operation, extend the desired scalar function smoothly outside its promised interval and encode its output inside a fixed subinterval of . Such an extension can be chosen using fixed polynomial transition functions, with and evaluable in polynomial bit work. The smooth factory gives its encoded output coin, which decodes to another bounded unbiased representation. Addition and multiplication of independent representations work as before. Finally, use a smooth extension of the affine decoding map that agrees with the requested output bias on . The formula and all interval bounds are fixed, so this implementation has constant expected input calls and additional numerical bit work. It changes no output law. This assertion concerns the computable constants and fixed functions in our sampler, not arbitrary real constants in a general factory specification.
Composition and the work cap. The initialization coins have expected poly() numerical bit cost. Applying Theorem 6.7 through the same constant-depth dependencies as in Theorem 6.8 bounds a round- invocation by poly expected bit work, for an absolute . Consequently the exact sampler still has expected work . Use this bound in (7.1), with the same abort probability , counting all numerical work and recursive calls against the budget. The coupling proof of Theorem 7.1 is unchanged: an unfinished proposal becomes the dummy, so real-coordinate probabilities only decrease. Fixed random streams reproduce the same capped outputs on every reevaluation.
The marking probability in (9.1) is a power of two, so each rounding mark uses exactly random bits. This deterministic cost is included in the rounding bound of Theorem 9.3. The estimator uses fresh uniform vertex samples and the same capped proposals. Its integer counts can be accumulated by binary counters, with amortized constant bit work per increment; there are at most increments per trial. Hence both the LCA and estimator retain their stated worst-case numerical work bounds. The uncapped exact sampler can require arbitrarily fine precision on rare executions; no fixed precision bound for that uncapped procedure is claimed or needed.