Manuscript Offprint
arXiv:2610.40369Half-Optimal Induced Matchings in Random Graphs: Online and Low-Degree Algorithms
Abstract
For many optimization problems on random graphs, most prominently the largest independent set problem, natural algorithms reach only half the optimum, and such factor-two gaps are known to be sharp within broad algorithmic classes. We prove such a gap for finding large induced matchings in Erdős–Rényi random graphs. In the worst case, requiring a matching to be induced turns a polynomial-time solvable problem into an NP-hard one; our results reveal an average-case counterpart.
In with , the largest induced matching has size with high probability, where . A simple online greedy algorithm finds an induced matching of size , while no online algorithm, even with adaptive inspection order and unbounded computation, finds one of size except with probability . In the sparse regime , low-degree polynomial algorithms exhibit the same sharp threshold.
Our guarantees rest on a maximality principle: with high probability, every maximal induced matching is half-optimal. Greedy outputs a maximal induced matching and our low-degree algorithm a near-maximal one. We bypass the delicate coupling arguments classically used to analyze greedy since Karp. For low-degree hardness, we adapt Wein's overlap gap argument, with forbidden structures that track overlaps between endpoint sets rather than edge sets, since a new edge may join two previously used endpoints and thus encounter no fresh randomness. For online hardness, we give a new and significantly simpler argument that avoids the correlated instances of prior OGP-based proofs: at a suitable stopping time, all pairs involving uninspected vertices remain unrevealed, so a direct first-moment bound suffices.
*Email: adhawan2@illinois.edu. Partially supported by the NSF RTG grant DMS-1937241.
Email: kizildag@illinois.edu.
Email: nmaitra@illinois.edu.
Email: cheng.mao@math.gatech.edu. Partially supported by NSF CAREER Award 2338062.
Email: timothy.wee@gatech.edu.
Contents
1 Introduction 1
1.1 Overview of contributions 4
1.2 Proof techniques 5
1.3 Prior work 7
1.4 Organization 8
2 Models and results 9
2.1 Online achievability 9
2.2 Online barrier 9
2.3 Low-degree achievability 10
2.4 Low-degree barrier 11
3 Sharp bounds for online algorithms 12
3.1 Achievability by the greedy algorithm 12
3.2 Impossibility above the computational threshold 14
4 Low-degree achievability: proof of Theorem 2.6 16
4.1 Proof of Proposition 4.1: a local algorithm for induced matchings 18
4.2 Proof of Proposition 4.2: from local to low-degree 20
5 Low-degree hardness: proof of Theorem 2.7 22
5.1 Forbidden structures 22
5.2 Stability of low-degree polynomials 26
5.3 Endpoints outside a fixed set 27
5.4 Seed fixing 28
5.5 Algorithmic hardness of low-degree polynomials 28
This line of work has recently been extended to problems with global constraints. Perkins and Wang [PW24] established a factor-two gap for local and low-degree algorithms that find balanced independent sets in sparse random bipartite graphs, even though the unconstrained maximum independent set problem on bipartite graphs is solvable in polynomial time. Their work is motivated by statistical-mechanics heuristics suggesting that global constraints can induce glassy behavior and computational barriers in otherwise tractable problems [MP87, Méz10]. These developments raise a fundamental question: how do algorithmic gaps depend on the structure required of a solution? Induced matchings provide a natural setting in which to address this question beyond independent sets.
Given a graph, an induced matching (also known as a strong matching) is a collection of vertex-disjoint edges whose endpoints span no other edges. In this paper, we study the algorithmic problem of finding large induced matchings in Erdős–Rényi random graphs. Throughout, the size of a matching is its number of edges. Let be an Erdős–Rényi random graph with vertex set , in which each unordered pair of vertices forms an edge independently with probability . Set
Our main results concern the regime , where is fixed and is sufficiently large. In particular, they cover the sparse and dense regimes as well as the intermediate range .
For a broad range of densities , the size of the largest induced matching is known to first order. Cooley, Draganić, Kang, and Sudakov proved that for every there is a such that, whp, this size lies between and , uniformly for all [CDKS21, Theorem 1.1]. In particular, the optimum is whp when in this range. For constant , sharper estimates including lower-order terms were established earlier [EMMG94, Cla01].
Induced matchings are the simplest induced packings with nontrivial components, and thus a basic instance of the problem of finding large induced subgraphs with prescribed structure. Their algorithmic study, however, presents distinct challenges: an algorithm must select both the endpoints and their pairing, while ensuring that distinct pairs remain mutually isolated. The standard reduction to independent sets does not resolve these difficulties. Although induced matchings correspond to independent sets in the square of the line graph (see below), this transformation produces a random graph with strong dependencies. Sharp algorithmic results for independent sets therefore do not directly determine the algorithmic limits for induced matchings, which leads to the question motivating this work:
How large an induced matching can natural classes of algorithms find?
We investigate this question in two frameworks: online algorithms and low-degree polynomials. An online algorithm inspects the vertices one at a time and, upon inspecting a vertex, learns its adjacencies to previously inspected vertices. It may then add an edge joining the current vertex to an earlier one, provided that the accepted edges still form an induced matching. Each vertex may be inspected at most once, accepted edges are irrevocable, and the inspection order may be adaptive. In particular, an inspected vertex may remain available until the algorithm pairs it with a later vertex. Thus, the restriction concerns access to the graph and the timing of decisions; computation and memory are otherwise unrestricted. This model also shows why the reduction to independent sets does not preserve online structure: inspecting a single vertex of G reveals an entire collection of candidate edges, corresponding to vertices of the square of the line graph, among which the algorithm may choose after seeing all newly revealed adjacencies. Online algorithms have been the focus of a growing body of recent work in the algorithmic theory of random graphs [GKW25, GRS26, DKM25, DDK 26].
In contrast to the online setting, a low-degree polynomial (LDP) algorithm has access to the entire adjacency matrix. It assigns a real-valued score to each potential edge, where each score is a polynomial of bounded total degree in the adjacency indicators. A prescribed rounding procedure then converts these scores into an induced matching. Following the low-degree optimization framework of [Wei21], we impose a normalization on the second moment of the score vector and a bound on the rounding error. Randomization is allowed through polynomial coefficients that depend on a seed independent of the graph. Here, the algorithmic restriction concerns the algebraic complexity of the scores, as measured by their total degree. The online and low-degree frameworks therefore capture fundamentally different algorithmic constraints.
Our results show that, in both frameworks, algorithms find half-optimal induced matchings and can do no better. In particular, a simple online greedy algorithm finds an induced matching of size at least whp throughout the range , where is sufficiently large. Moreover, this guarantee is optimal within the online model, even with adaptive inspection order and unrestricted computation. For sparse random graphs , a constant-degree polynomial finds an induced matching of size approximately in the double limit followed by . We complement this construction with a matching low-degree hardness bound that gives an explicit trade-off between polynomial degree and success probability. Taken together, our results reveal factor-two computational gaps for induced matchings, extending the half-optimality phenomenon to a new optimization problem and providing further evidence of its prevalence across algorithmic frameworks.
Our arguments introduce new tools for this problem, notably (i) a maximality principle for establishing algorithmic guarantees, and (ii) a direct proof of sharp lower bounds for online algorithms that avoids the construction of correlated instances used in prior work [GKW25, GRS26, DKM25, DDK 26].
Comparison with independent sets We now give a heuristic explanation for the hardness of finding near-maximum induced matchings, based on the typical structure of independent sets in locally sparse graphs.
An induced matching of size m is equivalently a pair of disjoint independent sets I and J, each of size m, such that is a perfect matching. Since the largest induced matching in has size whp, a near-maximum induced matching consists of two independent sets of size about L whose union, of size about 2L, is comparable to the independence number . It is therefore natural to ask whether a typical independent set can serve as one of the two sides.
The structure of typical independent sets in sparse graphs is well understood. Davies, Jenssen, Perkins, and Roberts [DJPR18] showed that, in an -vertex triangle-free graph of maximum degree , the average size of an independent set is at least . Their argument, which builds on an approach introduced by Shearer [She95] and further developed by Alon [Alo96], in fact yields more: a typical independent set has size at least , and most vertices outside have at least neighbors in . These conclusions transfer to when . In this regime, all degrees are whp, and deleting the vertices that lie in triangles yields a triangle-free induced subgraph on vertices. Thus a typical independent set in has size about , precisely the size of one side of a near-maximum induced matching, and a typical vertex outside it has about neighbors in it.
Now let I be a typical independent set of size L in . For I to be one side of an induced matching of size L, there must be a set J of L vertices such that
(i) every vertex of J has exactly one neighbor in I,
(ii) distinct vertices of J have distinct neighbors in I, and
(iii) J is an independent set.
We show heuristically that conditions (i) and (iii) are already incompatible. Treating the number of neighbors in of a vertex as a Poisson() random variable with , the set of vertices with exactly one neighbor in has size about
Condition (i) therefore forces to consist of nearly all of . On the other hand, is defined only through the edges between and , so the edges within are, heuristically, unexposed. Thus behaves like a random graph on vertices with edge probability , and hence with average degree about . The independence number of such a graph is , far below the size required by condition (iii).
Consequently, a typical independent set of size L is very unlikely to be one side of a near-maximum induced matching. This suggests that near-maximum induced matchings are built from atypical independent sets, which natural algorithms are not expected to find.
Hard problems hidden inside easy problems Our choice of the induced matching problem is motivated by the phenomenon of hidden hardness: a problem may be efficiently solvable, while finding a solution subject to an additional constraint is computationally hard. Maximum matchings can be found in polynomial time [Edm65], but imposing the inducedness condition makes the problem NP-hard [Cam89]. Our results give an average-case counterpart: in random graphs, natural classes of algorithms fail to find induced matchings of more than half the maximum size. A similar phenomenon occurs for large balanced independent sets in random bipartite graphs and multipartite hypergraphs (see [PW24, DW26] for the sparse case and [DKM25, DDK 26] for the dense case). There, finding a large independent set is easy, since one may simply take one of the parts, but imposing balancedness induces algorithmic phase transitions for natural classes of algorithms. Hidden hardness has also been observed, in both worst-case and average-case forms, in several other settings:
-
The partition function of the ferromagnetic Ising model with a consistent external field can be approximated efficiently at all temperatures and on all graphs by the randomized algorithm of Jerrum and Sinclair [JS93]. In contrast, Carlson, Davies, Kolla, and Perkins [CDKP22] showed that fixing the magnetization makes approximating the resulting partition function computationally hard in certain regimes, giving rise to computational thresholds.
-
For constraint satisfaction problems (CSPs), Bulatov and Marx [BM10] classified exactly which constraint languages remain polynomial-time solvable under global cardinality constraints; in particular, such constraints can turn tractable CSPs into NP-complete ones.
-
A densest subgraph of a graph can be found in polynomial time [Gol84, Law01], whereas finding a densest subgraph under a constraint on its number of vertices is NP-hard [KS09].
Our results on induced matchings add to this growing list of easy problems with hard constrained variants. Given how varied these settings are, it is natural to ask whether hidden hardness is universal in some sense: when an easy problem becomes hard under an additional constraint, can one say something general about the source or nature of that hardness?
1.1 Overview of contributions
We now informally summarize our main contributions. Below, whp refers to , with probabilities taken over the graph and any internal randomness of the algorithm.
Online algorithms Our first results concern online algorithms, which inspect the graph sequentially and make irrevocable decisions about which edges to accept, over a broad range of densities; see Section 2 for the formal model. We establish a guarantee for a simple greedy algorithm and a matching impossibility bound for all online algorithms.
Theorem 1.1 (Informal, see Theorems 2.1 and 2.3). For every and , there exists such that the following holds uniformly for . A simple online greedy algorithm finds an induced matching of size at least whp. Conversely, every online algorithm in our model finds an induced matching of size at least with probability .
Importantly, this result imposes no restriction on running time and holds for randomized algorithms and arbitrary inspection orders. The term in our impossibility result is , which is optimal up to the constant in the exponent: the online algorithm that inspects a fixed set of vertices and accepts every edge it encounters succeeds whenever these vertices induce a perfect matching, which happens with probability . The greedy algorithm maintains an induced matching M and an independent buffer B of inspected, unmatched vertices with no neighbors among the endpoints of M. Upon inspecting a vertex v, it discards v if v has a neighbor among these endpoints. Otherwise, if v has no neighbor in B, it adds v to B; if it does have a neighbor in B, it picks any such neighbor u, accepts the edge uv and includes it in the current induced matching, and removes from B all neighbors of v, including u.
Low-degree bounds in sparse graphs We next turn to low-degree polynomial (LDP) algorithms in sparse random graphs . Set .
Theorem 1.2 (Informal, see Theorems 2.6 and 2.7). For every and sufficiently large , a constant-degree polynomial produces an induced matching of size at least whp. Conversely, for , no randomized degree-D polynomial satisfying our normalization and rounding conditions produces an induced matching of size at least with probability at least , where depend on , , and the fixed normalization bound.
Our formal result gives an explicit trade-off between the degree and the success probability that is ruled out, including the dependence on the normalization and rounding error. Our construction works with the square of the line graph of G, whose independent sets are precisely the induced matchings of G. We show that, after truncating large neighborhoods, a local algorithm on this graph can be approximately simulated by constant-degree polynomials; see Section 4.
Remark 1.3. Our low-degree results concern sparse random graphs, while our online results cover a broader range of densities. A similar distinction arises for independent sets. Although low-degree hardness bounds are known for dense graphs [Wei21, Section 1.3], whether low-degree polynomials can match the online greedy guarantee remains open. In fact, for , polynomials of degree are conjectured to fail to find independent sets of size , even though online greedy finds ones of size ; see [HSW24]. In the intermediate regime , we are not aware of any low-degree results, either achievability or hardness.
1.2 Proof techniques
In this section, we highlight the key technical ideas underlying our results.
Online achievability A central concept in our work is maximality: an induced matching is maximal if no further edge can be added while preserving the induced matching property. Since the greedy algorithm returns a maximal induced matching by its very construction, it suffices to show that every maximal induced matching is large.
To this end, fix a candidate matching with endpoint set , and let be the set of vertices outside with no neighbor in . Conditional on spanning an induced matching, maximality is equivalent to being edgeless. For a candidate of size , the random variable is binomial with mean . Concentration of , together with the requirement that be edgeless, makes maximality sufficiently unlikely. A first-moment bound over all candidates then rules out such small maximal induced matchings whp, which establishes the desired guarantee for greedy.
This approach avoids the involved coupling arguments used in prior analyses of greedy algorithms (see, e.g., [Kar76, GKW25, DKM25, DDK 26]): rather than tracking the dynamics of the algorithm, we show that every maximal induced matching is large. We expect this to be useful for analyzing greedy algorithms in other settings, since such algorithms by construction output maximal structures.
Online lower bound Unlike prior work [GKW25, GRS26, DKM25, DDK 26], our proof of the lower bound for online algorithms does not construct temporally evolving families of correlated instances. Instead, we work directly with a single exposure of the graph. Let denote the probability that an online algorithm finds an induced matching of size , and set and . Let be the matching accepted after inspections, and define , the first time the matching reaches size . Since the algorithm adds at most one edge per inspection, whenever .
Condition on the full history on the event , and let be the set of endpoints of . On the success event, the algorithm must accept at least further edges. Each of these edges has a newly inspected endpoint, and of these endpoints form a set of vertices that are still uninspected at time . Since the final matching is induced and decisions are irrevocable, can be chosen to be an independent set with no edges to . This forbids a total of pairs.
For each fixed candidate X, all of these pairs are unrevealed at time , so their edge indicators remain conditionally independent Bernoulli(p) variables. A first-moment bound over all choices of X therefore gives
For sufficiently large , our choice of parameters makes the right-hand side at most . Since this estimate holds uniformly over the conditioning, the same upper bound applies to .
Low-degree achievability Turning to , we now outline the proof of our low-degree achievability result. Given a graph , let be its line graph: its vertices are the edges of , and two distinct vertices are adjacent if the corresponding edges share an endpoint in . We consider the square of the line graph, , in which two distinct vertices are adjacent if their distance in is at most two. Equivalently, two edges of are adjacent in if they share an endpoint or if some edge of joins an endpoint of one to an endpoint of the other; we call such edges conflicting. Thus, induced matchings in correspond precisely to independent sets in .
We use this observation to build a local algorithm and simulate it by a constant-degree polynomial. Specifically, we fix a sufficiently large integer and assign each potential edge an independent uniform color in , independently of . These colors induce a vertex coloring of . We delete every vertex of that has a neighbor of the same color, and denote the set of deleted vertices by . Each color class is then an independent set in . We run greedy in color rounds: in round , we accept every remaining vertex (in the square of the line graph) of color that has no neighbor accepted in an earlier round. Since vertices accepted in the same round share a color, they are not adjacent; hence the output is an independent set in , and thus an induced matching in .
Moreover, is maximal in . Extend to a maximal independent set of . Every vertex outside already has a neighbor in , so every added vertex belongs to . Consequently, . Choosing sufficiently large makes small whp, so our lower bound on the size of every maximal induced matching yields the desired half-optimal guarantee for .
This algorithm is local: determining whether a vertex is accepted requires recursively examining decisions only at neighbors of smaller colors. Such dependency chains have length at most Q - 1, so each decision depends only on a neighborhood of bounded radius. We then fix a sufficiently large constant and construct polynomials of degree at most K that agree with the local rule whenever the relevant neighborhood contains at most K edges. Tail bounds on neighborhood sizes control the rounding loss, while moment estimates give the required second-moment normalization. Finally, an averaging argument fixes the colors, yielding a deterministic polynomial whose degree is independent of n. Full details appear in Section 4.
Low-degree lower bound Our low-degree lower bound is based on a variant of the asymmetric overlap gap property (OGP), which rules out certain tuples of solutions, called forbidden tuples. We show that a sufficiently successful low-degree algorithm would produce such a tuple, a contradiction. An asymmetric OGP argument also underlies the optimal low-degree hardness result for the maximum independent set problem in sparse random graphs [Wei21]. A fundamental difference is that our forbidden tuples track overlaps between endpoint sets rather than between the matching edge sets themselves.
Specifically, recall and set . Suppose a low-degree algorithm finds an induced matching of size at least with sufficiently high probability. Consider a sequence of correlated graphs obtained by resampling one edge indicator at a time. A forbidden tuple consists of matchings , where each is an induced matching in some , such that
• for all , and
- for all , where denotes the endpoint set of .
Thus, each successive matching is large but introduces only a prescribed, small number of new endpoints. For a suitable and all sufficiently large fixed , a first-moment argument shows that, except with probability , no such tuple exists along the path; see Proposition 5.3. Tracking new endpoints, rather than new edges, is crucial. The earlier induced-matching events constrain only adjacency indicators within their endpoint sets, so indicators involving a new endpoint remain independent of these events. By contrast, a newly selected matching edge may join two previously used endpoints, so counting new edges alone does not determine how many fresh adjacency constraints the next matching imposes.
Using Boolean Fourier analysis as in [Wei21], together with our normalization and rounding conditions, we obtain an event on which consecutive successful outputs (on and ) differ in at most edges. Thus, the number of endpoints outside any fixed vertex set changes by at most per step. Once every adjacency indicator has been resampled after the last matching was selected, the resulting graph is independent of the matchings selected so far. A first-moment bound then ensures that, whp, any large output has more than endpoints outside the union of their endpoint sets. Consequently, the first time this count is at least , it is at most , and hence lies in the forbidden interval ; this output becomes the next matching in the forbidden tuple. Our degree and success-probability assumptions ensure that all required events hold simultaneously with positive probability, which yields the contradiction.
Declaration of AI use GPT-5.5 and 5.6 were used when developing the proofs. See the AI methodology statement at the end of the paper for a detailed account.
Note. AI use in this paper took place exclusively before NM joined the Association for Human Mathematics (AHM).
1.3 Prior work
In this section, we discuss related work.
Induced matchings Finding a maximum induced matching is NP-hard in general [Cam89]. For fixed , the size of the largest induced matching in was studied by El Maftouhi and Márquez Gordones [EMMG94], who showed that whp lies in an interval of bounded length. Clark [Cla01] later narrowed this down to two values, establishing two-point concentration. El Maftouhi [EM95] also studied maximal induced matchings in for constant , proving that whp every such matching has size at least . For the broader range of densities , Cooley, Draganić, Kang, and Sudakov [CDKS21] determined the size of the largest induced matching up to an arbitrarily small relative error, with the constant depending on the desired accuracy. These works provide the statistical threshold that serves as our benchmark.
Several works have studied algorithms for induced matchings in random regular graphs. By analyzing a random greedy algorithm, Duckworth, Wormald, and Zito [DWZ02] obtained constructive lower bounds on the size of the largest induced matching in random cubic graphs. Beis, Duckworth, and Zito [BDZ05, BDZ08] studied the more general setting of k-separated matchings in random d-regular graphs with fixed , where corresponds to ordinary matchings and to induced matchings, and obtained constructive lower bounds by analyzing greedy algorithms, together with first-moment upper bounds. These works analyze greedy dynamics using the differential equation method. By contrast, our analysis of greedy requires no tracking of its dynamics: it relies only on the maximality of its output.
Algorithmic gaps for independent sets Closely related to our work is the largest independent set problem in random graphs. For , the optimum is asymptotically in the double limit followed by [Fri90, FL92], while the best known polynomial-time algorithms achieve only half this leading-order size, [LW07]. Using the overlap geometry of pairs of large independent sets, Gamarnik and Sudan [GS14, GS17] ruled out local algorithms on random d-regular graphs above the asymptotic threshold . Rahman and Virág [RV17] improved this to the optimal threshold for both random regular and sparse Erdős–Rényi graphs by considering the overlap geometry of many large independent sets, an approach based on the multi-overlap gap property. Matching low-degree lower bounds were later obtained by Wein [Wei21] (see also the earlier work of Gamarnik, Jagannath, and Wein [GJW20]); our low-degree proof builds on this framework.
These results do not apply directly to , whose distribution differs from both the Erdős–Rényi and random regular models. In particular, the edges of inherit strong dependencies from G, so the reduction to independent sets does not transfer these hardness bounds to induced matchings.
Online algorithms for random graphs For the largest independent set problem in Erdős–Rényi random graphs, Gamarnik, Kizildag, and Warnke [GKW25] established sharp half-optimality bounds for online algorithms over a broad range of edge densities. Their model permits adaptive vertex exposure analogous to ours. Their proofs combine stopping-time arguments with temporally evolving interpolation paths. Related sharp thresholds have been obtained for balanced independent sets in dense bipartite graphs [DKM25], for independent sets and balanced independent sets in dense hypergraphs [DDK+26], and for common induced subgraphs of two independent random graphs [GRS26]. These works develop overlap-geometry arguments adapted to the online model.
Query complexity A complementary line of work allows unrestricted computation but restricts the total number of adjacency queries. In this framework, Feige, Gamarnik, Neeman, Rácz, and Tetali [FGN 20] showed that on one can construct, whp, an independent set of size for some using only queries. They also proved that for every fixed and every fixed number of rounds, there exists such that any algorithm making at most queries over these rounds fails whp to find an independent set of size . Follow-up work by Csóka and Pongrácz [CP26] strengthened the multi-round bounds and extended the analysis to finding dense subgraphs. These models impose a global query budget but allow the final output to be chosen after all queries are made. By contrast, our online framework imposes no query budget on the inspected part of the graph but requires irrevocable decisions.
1.4 Organization
Section 2 presents our main results about online and low-degree algorithms. Section 3 proves the sharp bounds for online algorithms, including the guarantee for the greedy algorithm and the matching impossibility result. Sections 4 and 5 prove the low-degree achievability and hardness results respectively.
2 Models and results
2.1 Online achievability
We begin with a natural greedy algorithm for finding a large induced matching, which belongs to a class of online algorithms to be introduced in Section 2.2. Fix an arbitrary ordering of the vertices. The Greedy algorithm proceeds in rounds : in round , vertex is inspected and its adjacencies to vertices are revealed. Let denote the induced matching after round , where is the subgraph of induced by the first vertices. We also maintain a buffer , consisting of the vertices in with no neighbors in ; by construction, is an independent set. Initially, . In round , the algorithm proceeds as follows:
• If vertex has no neighbors in , set and .
- If vertex has no neighbors in but has a neighbor in , choose an arbitrary , and set and .
• Otherwise (i.e., if has a neighbor in ), set and .
The output is the matching ; a formal description is given in Algorithm 3.1. The following theorem shows that, whp, Greedy finds an induced matching of size at least roughly half the maximum.
Theorem 2.1. Fix and , and let be given by (1). There is a constant such that, for all sufficiently large and all , the output of Greedy satisfies
The proof is deferred to Section 3.1. The output of Greedy is maximal: no edge can be added to while preserving the induced matching property. In fact, Proposition 3.1 shows that, whp, every maximal induced matching is at least half-optimal, which immediately implies Theorem 2.1. This observation lets us avoid the more involved coupling and stopping-time arguments typically used to analyze greedy algorithms on random graphs (see, e.g., [GM75, DKM25, DDK 26, GKW25]).
2.2 Online barrier
We now consider a broad class of online algorithms and show that, for every fixed , no algorithm in this class finds an induced matching of size larger than , except with vanishing probability. Since Greedy belongs to this class, the guarantee in Theorem 2.1 is optimal.
Definition 2.2 (Online algorithm). An online algorithm maintains, after each round , a set of inspected vertices and an induced matching . Initially, . In round , the algorithm either terminates or proceeds as follows:
-
The algorithm selects a vertex and inspects it, revealing its adjacencies to the vertices in . Set .
-
The algorithm may accept one edge , where is a neighbor of , and set . This update is allowed only if is an induced matching. If no edge is accepted, set .
Accepted edges cannot be removed. If the algorithm has not terminated earlier, it terminates after round n. Its output is the induced matching held upon termination.
Algorithms in this class are online in the following sense. First, new adjacency information is revealed only in Step 1 of each round. Second, every choice—including the inspection order, whether and which edge to accept, and when to terminate—is a measurable function of all previous choices and revealed adjacencies, together with auxiliary randomness independent of the graph. There is no restriction on the algorithm's memory or computation. The following result establishes the half-optimality barrier for this class.
Theorem 2.3. Fix and . There is a constant such that, for all sufficiently large , all , and every algorithm as in Definition 2.2,
The proof is given in Section 3.2. Together, Theorems 2.1 and 2.3 show that is the optimal size attainable by online algorithms, and that Greedy attains it.
2.3 Low-degree achievability
We now turn to low-degree polynomial algorithms for sparse random graphs , beginning with achievability. Throughout, we first choose sufficiently large and then let with fixed. Let
We identify a graph G on with its vector of edge indicators
A polynomial of degree at most D refers to a map
such that each coordinate is a polynomial of degree at most in the input variables . We say that is a random polynomial of degree at most if its coefficients depend on a random seed , sampled independently of , and if it has degree at most for every fixed . Fixing the seed gives a deterministic polynomial. We suppress the notation when clear from the context.
We now specify the procedure used to map a polynomial f on G to an induced matching.
Definition 2.4. Let be a graph on , and let be a polynomial. We say that two distinct edges of conflict if they share an endpoint or an edge of joins an endpoint of one to an endpoint of the other (equivalently, if they are adjacent in the square of the line graph of ). Let
,
For , the output induced matching is
In the above definition, is a tolerance parameter for the rounding error, A is the candidate edge set, is the subset surviving conflict pruning, and B is the set of edges about which f is unsure.
Next, we define a performance metric for a random polynomial.
Definition 2.5. Let , , , be parameters. We say that a random polynomial is a -optimizer for the induced matching problem in if the following are satisfied for , jointly over and the independent seed:
•
•
In other words, a -optimizer yields an induced matching with at least edges with probability at least , over both the graph and the random seed; in addition, the expected squared norm of is limited by , allowing us to control how much the polynomial output changes when the graph changes, as needed for the hardness arguments later. We remark that Definitions 2.4 and 2.5 are analogous to the corresponding definitions for independent sets in [Wei21].
In the sparse regime, it is more convenient to work with the threshold . Note that for fixed , the relation to the previous threshold in the online setting is
Our main positive result shows that there is a constant-degree polynomial that finds an induced matching with at least edges whp.
Theorem 2.6. For every and every sufficiently large fixed d, there exists an integer and constants and such that, for all sufficiently large n, there is a deterministic polynomial of degree at most D that is a
for the induced matching problem in . In particular, this low-degree algorithm outputs an induced matching with at least edges with probability .
As alluded to in Section 1.2, we construct a local algorithm based on finding independent sets in the conflict graph and approximate its decisions by a constant-degree polynomial. The details of the algorithm and its proof are given in Section 4.
2.4 Low-degree barrier
We now give the corresponding hardness result for low-degree polynomial algorithms in the sparse graph setting. We continue to use the notation and definitions introduced in Section 2.3.
Theorem 2.7. For every and every sufficiently large fixed , there are constants and for which the following holds for all sufficiently large . Let , , , and satisfy
and let . Then there does not exist a random polynomial of degree at most-D that is a -optimizer for the induced matching problem in .
The proof builds upon the overlap gap property approach in [Wei21] and is given in Section 5. We note that the optimizer in Theorem 2.6 is within the parameter range of Theorem 2.7 for sufficiently large . Indeed, the constants and in Theorem 2.6 are fixed in , and is eventually smaller than any fixed inverse power of . For these fixed values of and , the bound on in Theorem 2.7 becomes . Together, the two theorems establish a sharp half-optimality threshold for low-degree optimization: constant degree suffices to approach , while the hardness result rules out going above the leading constant , even for degrees growing with , at the specified success probabilities.
3 Sharp bounds for online algorithms
In this section, we prove our main results on online algorithms. In Section 3.1, we prove the achievability result, Theorem 2.1, and in Section 3.2, we prove the impossibility result, Theorem 2.3. Throughout, we use the parameters from (1):
3.1 Achievability by the greedy algorithm
In this subsection, we prove Theorem 2.1. The Greedy algorithm is formally described below.
Algorithm 3.1 Greedy algorithm for building an induced matching in
1: ,
2: for do
3: Inspect vertex and reveal its adjacencies to vertices .
4: if and then
5: , .
6: else if and then
7: Let be arbitrary.
8: , .
9: else
10: , .
11: end if
12: end for
13: return .
It is easy to verify that is a maximal induced matching. Indeed, an edge can be added to while keeping it induced only if and neither nor has a neighbor in , that is, only if ; but is an independent set. Theorem 2.1 therefore follows from the next proposition, which shows that, with high probability, every maximal induced matching of is half-optimal.
Proposition 3.1. Fix and , and let and be as in (1). There exists such that, for all sufficiently large and uniformly over ,
In particular, with high probability every maximal induced matching has at least edges.
Proof. Let . The case is trivial, since the empty matching is maximal only if has no edges, which occurs with probability . Fix and a set with . Let be the random set of vertices with no neighbors in . Let denote the event that is a perfect matching, and let denote the event that is an independent set. Since an induced matching with vertex set is maximal if and only if is independent, we have
We bound each factor separately. First, since admits perfect matchings,
Next, depends only on the pairs inside , only on the pairs between and , and given only on the pairs inside . Hence
Since and , we have
where the last step uses , which holds throughout the range of under consideration. By the Chernoff bound,
Since and for sufficiently large, it follows that
Combining (3), (4), (5), and the above, we obtain
Using , , and , it follows that the expected number of maximal induced matchings of size is at most
where in the last step we used , , and the inequality with . Since is increasing in for , and for sufficiently large, Markov's inequality gives
where the last step uses , which holds for sufficiently large. Since , we have for sufficiently large, and hence
Finally, since and , we have . Taking a union bound over the at most possible values of , we conclude that, for sufficiently large,
completing the proof.
3.2 Impossibility above the computational threshold
In this subsection, we prove Theorem 2.3; that is, we show that every online algorithm in the sense of Definition 2.2 constructs an induced matching of size at least with probability at most . To this end, we define
For simplicity, we ignore floors and ceilings and treat , r, and s as integers.
Let be an online algorithm in the sense of Definition 2.2. By a standard averaging argument (see [GKW25, Section 4.1]), we may assume that is deterministic, i.e., that the only randomness comes from the input graph and not from the algorithm's internal randomness. Let denote the induced matching constructed after the first vertices have been exposed, with if the algorithm has terminated by round ; in particular, . Let be the first time at which this matching has size at least :
with the convention that . Since every edge accepted in round contains the vertex exposed in round , at most one edge is accepted per round; in particular, whenever . The following lemma bounds the probability that the algorithm accepts further edges after time .
Lemma 3.2. For every with ,
Proof. Let , so that on the event . We claim that if further edges are accepted, then there is a set of vertices, none of which has been exposed by time , such that (i) is an independent set, and (ii) no edge joins a vertex of to a vertex of . Indeed, let be edges accepted after time , and for each let be the endpoint of exposed in the round in which is accepted. By Definition 2.2, this round is later than , so is unexposed at time . Let ; these vertices are distinct, since are pairwise disjoint. Since accepted edges are never removed, the final output contains . Thus must be independent, as otherwise would not be an induced matching. Furthermore, if for some and , then would not be an induced matching.
Now condition on the information revealed by time . Since is deterministic, this information determines whether , as well as and the set of unexposed vertices. The pairs within the set of unexposed vertices, and between this set and , have not been revealed, so their edge indicators are independent of this information. Hence, for any fixed set of unexposed vertices, properties (i) and (ii) hold with conditional probability . Taking a union bound over the at most choices of , and then averaging over the information revealed by time on the event , completes the proof.
We are now ready to prove Theorem 2.3. Since , and since together with implies that at least edges are accepted after time , Lemma 3.2 gives
(8)
where the sums range over those with .
Before bounding (8), we record an inequality that will be used below. Note that
Since the function is increasing on and , for sufficiently large in terms of we have
We now bound (8). Using , we obtain
(10)
By (6), we have and . Hence, using (9) and , we get
where the last step uses and , and holds for sufficiently large in terms of and . Plugging this into (10), and recalling that , we conclude that
which completes the proof of Theorem 2.3.
4 Low-degree achievability: proof of Theorem 2.6
The purpose of this section is to prove Theorem 2.6, our positive result in the sparse regime.
We begin by describing the algorithm. Recall that for a graph G, the line graph Line(G) is the graph whose vertices are the edges of G, in which two vertices are adjacent whenever the corresponding edges of G share an endpoint. For a graph G, define its conflict graph by
The induced matchings of G are precisely the independent sets of .
For an edge e of G and an integer , define the closed ball of radius r about e in Line(G) by
We view as the subgraph of G consisting of these edges and their endpoints, rooted at the edge e.
Theorem 2.6 follows from two propositions. The first shows that a local rule, Algorithm 4.1, produces an induced matching of size at least , where we recall that . The second shows that a low-degree polynomial reproduces the decisions of this rule up to an error of at most .
Throughout, and a sufficiently large are fixed deterministic parameters, chosen before sampling and held fixed as . We take . A random -coloring assigns to each potential edge an independent uniform color in , independently of . In other words, we color every potential edge first; once is sampled, the colors of absent edges are simply ignored.
Algorithm 4.1 Local induced matching
Require: A graph G on [n] and an integer
1: Form on vertex set .
2: Independently assign each potential edge a uniform color .
3: Set and .
4: for do
5: .
6: end for
7: return , interpreted as an induced matching in G.
Proposition 4.1. For every and every sufficiently large fixed , there is an integer with the following properties. Let denote the colors in Algorithm 4.1, which are independent uniform elements of , sampled independently of . The output is always an induced matching, and whether a present edge belongs to is determined by the colored ball with . Moreover, for some and all sufficiently large ,
Next, we show that the output of this local algorithm can be approximately reproduced by a low-degree polynomial. An -edge-local rule is an isomorphism-invariant -valued function of a marked ball . Here the marks are i.i.d. with a fixed law on a finite nonempty space , independent of . The rule gives decisions that depend only on and its marks, that is, , with whenever . Set .
In the next proposition, we use the sets A, , and B associated with a polynomial f of the edge indicators, as in Definition 2.4.
Proposition 4.2. Fix , an integer , and . Suppose is an -edge-local rule such that is an induced matching for every graph and every mark realization . Then there exist an integer and constants , depending only on and , such that, for all sufficiently large , there is a family of polynomials of degree at most satisfying
Moreover, with and the sets as in Definition 2.4,
The coefficient seed is precisely . In fact, each coordinate is integer-valued whenever is a graph, so for every and .
With these propositions in hand, we are ready to prove Theorem 2.6.
Proof of Theorem 2.6. Use Proposition 4.1 to choose , let , and let , so that . Since the algorithm assigns colors to all potential edges independently of , the color vector can serve as the coefficient seed in Proposition 4.2; only the colors of present edges affect . We apply Proposition 4.2 with
These choices fix the degree independently of . For a sufficiently small fixed , outside an event of probability at most , the conclusions of both propositions hold and the rounding test succeeds. Consequently, recalling the set from Definition 2.4, we have
Set
By (13), this choice ensures that for every . Thus the seed-fixing argument of Lemma 5.7 reduces to averaging the failure probability: since its average over the finite color seed is at most , some seed satisfies the same bound. Fixing this seed proves the theorem with .
4.1 Proof of Proposition 4.1: a local algorithm for induced matchings
We first establish a neighborhood estimate, which will also be used in the proof of Proposition 4.2. Write for the graph input coordinates.
Lemma 4.3. Fix and an integer . For every fixed integer ,
Moreover, for every , there exist a fixed integer and a constant such that, for all sufficiently large ,
Proof. Conditional on , the breadth-first exploration of from the two endpoints of , up to depth , is stochastically dominated by a branching process with two initial individuals and independent offspring distributions. These offspring distributions have uniformly bounded moments of every fixed order, and hence so does the total number of individuals in the first generations. Every edge of joins two vertices reached by this exploration, so , which proves (15).
Let . Applying Markov's inequality to conditional on for each potential edge , and using (15) with , we obtain for a constant . Choose so that this is at most .
To show that concentrates, we express it through a bounded local statistic. For a vertex , let denote the number of edges incident to with , and observe that
The quantity is determined by the ball of radius about in . Moreover, : if some edge incident to satisfies , then, since , the ball contains every edge incident to , so has degree at most .
It therefore suffices to show that both and concentrate. We apply [Wei21, Corollary 3.5] to the sum of the bounded local functionals , and a standard Chernoff bound to . Except with probability , both quantities differ from their means by at most . Since , it follows that .
Recall that the set in Algorithm 4.1 consists of the edges of that have a neighbor of the same color in .
Lemma 4.4. For fixed and , there is an integer such that, for every , some , and all sufficiently large ,
Proof. Apply Lemma 4.3 with and to obtain a cutoff such that, except with probability , the set
satisfies . Moreover, since , the Chernoff bound gives except with probability . Let
and condition on a graph G in H.
Let . Each has at most neighbors in , since , and each of them shares the color of with probability . Hence
Conditional on , the quantity is a function of the independent colors ; colors of absent edges do not affect it. Changing the color of a single edge can change the membership in only of edges in , and hence changes only through edges in . If this set is nonempty, then for any in it,
and since . Thus changing a single color changes by at most . McDiarmid's inequality [McD89] over the at most independent colors therefore gives
On , outside this event we have . Since for a suitable , the lemma follows.
We are now ready to prove Proposition 4.1. We first show that, for every , the output is an induced matching determined by a bounded-radius ball, and that it is close to a maximal one. We then choose Q.
We begin by showing that the algorithm is local. The coloring is proper on : if two adjacent vertices of share a color, both lie in . In round , the algorithm accepts only vertices of color outside , which form an independent set in , and only those with no neighbor accepted in an earlier round. Hence is an independent set in , that is, an induced matching in .
To decide whether , it suffices to know whether and whether some neighbor of in with lies in . For example, if and , then precisely when has a color-1 neighbor in , or a color-2 neighbor in that has no color-1 neighbor in . Unfolding this recursion, each step strictly decreases the color, so the resulting chains have length at most , and checking membership in along a chain requires one further step. Hence whether is determined by the colored ball of radius about in . Each step in corresponds to at most two steps in Line( ), and allowing two further steps to locate the edges witnessing conflict adjacencies, we conclude that whether is determined by the colored ball .
Next, we show that the output is almost maximal. Every vertex of not in was rejected because it had a neighbor selected in an earlier round. Hence is a maximal independent set in . Extend to a maximal independent set of . Since every vertex of already has a neighbor in , every added vertex lies in , so
In other words, although need not be maximal, it is within of a maximal induced matching of .
It remains to choose so that is large and is small. Since , we have . For sufficiently large in terms of , the proof of Proposition 3.1, applied with in place of and with , shows that every maximal induced matching satisfies
for all sufficiently large , except with probability at most . Next, Lemma 4.4 with gives such that, for , we have except with probability . Fixing such a , we conclude that, except with probability for a suitable ,
completing the proof.
4.2 Proof of Proposition 4.2: from local to low-degree
Let s be the cutoff given by Lemma 4.3 with and the given .
We first construct a polynomial that reproduces exactly at edges with small neighborhoods. A rule of bounded radius does not by itself give a polynomial of bounded degree, since the ball may contain many edges. Instead, we use the rule to define the coefficients of a polynomial of bounded degree that agrees with whenever the relevant ball is small. For a potential edge , let be the family of sets of potential edges satisfying
where denotes the graph distance in the line graph of the graph ([n], F). For , we evaluate on the graph ([n], F), whose ball of radius about is itself, and define recursively
That is, we first set , then define for the sets with a sharing an endpoint with , and so on in order of increasing .
For , set
Each has degree at most . Every monomial contains , and since is -valued, the recursion (17) produces integer coefficients. Hence, on graph inputs ,
In particular, absent edges never belong to A, and since every score is an integer, the uncertain set B is always empty.
On a graph input , the monomial indexed by survives precisely when , in which case every path from in Line is also a path in Line, so . Now suppose that and . Then itself belongs to , since shortest paths from to edges of the ball stay inside the ball. Applying (17) with , we obtain
Next, we show that most selected edges survive rounding. Let be the set of edges for which has more than edges. If , then (20) holds at and at every neighbor of in , because
Let . If , then by (20), so . Conversely, if , then , so . In either case, no neighbor of in lies in : otherwise, since (20) also holds at , we would have , contradicting the assumption that is an induced matching. Hence every lies in , and
By Lemma 4.3 with , we have except with probability , which proves (14).
Finally, we bound the norm of uniformly in the seed. By induction on , the recursion (17) gives for a constant depending only on , since each has at most subsets.
Let if , and otherwise. Since every surviving monomial corresponds to a subset of of size at most , there are at most of them, so
The moment bound (15), with and , gives, uniformly in the seed,
The factor comes from the variable present in every monomial; it keeps the total squared norm of the coordinates of order . This proves (13).
5 Low-degree hardness: proof of Theorem 2.7
In this section, we prove Theorem 2.7. Throughout, is fixed and .
5.1 Forbidden structures
We now state and prove the forbidden structure result outlined in Section 1.2. We first give a high-probability upper bound on the maximum induced matching size, based on [CDKS21], which allows us to restrict attention to induced matchings with at most edges.
Lemma 5.1. Fix . If the fixed constant is sufficiently large, then there is such that, for all sufficiently large ,
Proof. For an integer , let denote the number of induced matchings with exactly edges in . By [CDKS21, Section 2, Claim 1, p. 269],
Indeed, the factors choose and pair the 2r endpoints, require the r matching edges to be present, and require every other pair of endpoints to be absent.
Put and . If , the event in the lemma is empty, so we may assume . Applying (23) together with , , and gives
Writing , the expression in parentheses equals
This expression is decreasing in , and, taking first and then sufficiently large, it is at most uniformly for . Any induced matching with more than edges contains an induced matching with exactly edges. Thus Markov's inequality gives
where .
We now define the sequence of correlated random graphs used to construct the forbidden structure.
Definition 5.2. Given , fix an arbitrary ordering of the set of potential edges. Choose and mutually independent random variables with law Bernoulli , independent of . For , obtain from by replacing the indicator of the potential edge
by , and retaining every other coordinate. We call the graphs a length-T interpolation path.
Note that every has law . Moreover, in any consecutive steps, every edge indicator is resampled exactly once, so is independent of for every .
The next result gives the forbidden structure that drives the hardness proof.
Proposition 5.3. Fix , an exponent , and an integer . Consider an interpolation path as in Definition 5.2, where . If the fixed constant is sufficiently large, then there is such that, for all sufficiently large , with probability at least , there do not exist satisfying the following properties:
(i) for each , there exists such that is an induced matching in ;
(ii) for all ;
(iii) for all .
Proof. Throughout this proof, implicit constants in may depend on and , and the constants in may also depend on .
By Lemma 5.1 and a union bound over the interpolation path, with probability no contains an induced matching with more than edges. It therefore suffices to rule out forbidden structures that additionally satisfy
(iv) for all .
We use a first moment argument. Let be the number of tuples satisfying (i)–(iv). We show that , after which Markov's inequality completes the proof.
For , define . Write and . Properties (ii), (iii), and (iv) restrict and , and we always assume these constraints below. Write
where the times are as in (i) and need not be in increasing order. Let be the family of ordered tuples of matchings on with the prescribed values of and . Then
(25)
where we have bounded the number of admissible sequences and by . It remains to bound uniformly over .
For a tuple S, let
We have the decomposition
(26)
Here the sums in the first line are nested: the first runs over matchings of size , and, for , the -th runs over matchings of size with exactly endpoints outside . In the second line, each supremum is over all admissible earlier matchings with . We first bound the sum over , and then bound each conditional sum uniformly over all such earlier matchings.
Since , applying (23) and (24) with gives
(27)
We now bound the remaining factors in (26). Fix and admissible matchings with , and condition on . Let
denote the set of old endpoints, and note that .
We first choose the endpoints of . The new endpoints, those outside , can be chosen in at most
ways. The remaining endpoints of lie in , and there are at most
ways to choose them. Once the endpoints are fixed, it remains to choose the edges of , which are of two types: (1) edges with at least one endpoint in , and (2) edges with both endpoints in . For an upper bound, we may also count choices that do not form a matching.
We first account for edges of type (1). Let be the set of all pairs of endpoints that meet . Then
For distinct potential edges , the sequences are independent. The event constrains specified entries of these sequences edge by edge, so they remain independent after conditioning. Every pair in has an endpoint outside , so imposes no constraint on its sequence. Thus the indicators are still independent Bernoulli variables.
Let be the number of edges of that meet , so that . Summing over the choices of these edges, and requiring them to be present and all other pairs in to be absent, we claim that the resulting contribution is at most
To justify this estimate, note that for and ,
Using and , and summing over the possible values of , we obtain
Moreover, uniformly for , we have , while (28) gives
Together with (30), this proves (29).
It remains to account for edges of type (2), whose endpoints both lie in . Let
For , the constraints in can only require to be absent. Hence the indicator is either forced to be zero by or is a fresh Bernoulli( ) variable independent of ; in either case, its conditional probability of being present is at most . For , we use the trivial upper bound 1. Since, for any , the indicators are conditionally independent given ,
(31)
There are at most ways to choose the edges of that lie in . Every other edge of of type (2) has conditional presence probability at most , and there are at most such edges. Ignoring the remaining absence constraints and applying (30), the total contribution of edges of type (2) is at most
Altogether, summing over matchings with and , we obtain
(33)
This bound is uniform over all admissible earlier matchings , and all and terms above are uniform over the admissible and over .
Applying (27) and (33) to (26) bounds , and substituting into (25) gives
(34)
We have . Moreover, since and ,
Summing over the K - 1 values gives
Since and , we have , so the right-hand side is at most . Thus the coefficient of in (34), excluding the terms, is less than -1. Taking sufficiently large to absorb the uniform terms, and then sufficiently large to absorb the terms and the factor , we obtain , since . This completes the proof.
5.2 Stability of low-degree polynomials
In this subsection, we give a stability result for low-degree polynomials along the interpolation path from Definition 5.2. It states that, with sufficiently large probability, no single step of the interpolation path causes a large jump in the output of a low-degree polynomial.
Throughout this subsection, we identify a graph G on [n] with its edge indicator vector in , with coordinates ordered as in Definition 5.2. We begin by defining what it means for a single resampling step to create a large jump.
Definition 5.4. Let be a deterministic polynomial of degree at most , let , and put
A pair of graphs on is -bad for if and differ in at most one potential edge and
An interpolation step is -bad if the pair is -bad.
Proposition 5.5 (Essentially [Wei21, Proposition 2.6]). Let and , and suppose . Let be an interpolation path as in Definition 5.2 with . If is a deterministic polynomial of degree at most with , then
Proposition 5.5 follows from [Wei21, Proposition 2.6] applied with , , and . Although Wein states the result for output coordinates, the same proof applies to output coordinates, since the estimates in [Wei21, Lemmas 2.7–2.8, equations (6)–(7)] hold for any number of output coordinates, with the same constants.
5.3 Endpoints outside a fixed set
For any fixed set W of size , with high probability every large induced matching has many endpoints outside W. In the hardness proof, W will consist of the endpoints of previously selected matchings, and we will apply this bound after all potential edges have been resampled along the interpolation path.
Lemma 5.6. Fix , , and . Let be a fixed set with , and let . If the fixed constant is sufficiently large, then there is such that, for all sufficiently large ,
uniformly over all such sets W.
Consequently, if is a sigma-field independent of and is -measurable with almost surely, then the same bound holds conditionally on , almost surely.
Proof. We use a first moment argument. Let be the number of induced matchings satisfying the conditions in the event above. We show that , after which Markov's inequality completes the proof.
Write and , where and range over
with and integers. Then
where the first two factors choose the endpoints, the third bounds the number of pairings, and the last two require exactly the matching edges to be present among these endpoints.
To bound the sum, we use
so the logarithms of these factors are . The factor has logarithm at most , while the probability that all other pairs of endpoints are absent has logarithm . Combining these estimates gives
Since , taking sufficiently large and then sufficiently large makes the coefficient of negative. Since , this gives the desired bound on . Every estimate used only through the bound , which proves the uniform and conditional statements.
5.4 Seed fixing
The following lemma is used in both the hardness and achievability arguments. It reduces a polynomial with a random coefficient seed to a deterministic polynomial, while controlling its normalization and failure probability.
Lemma 5.7 (Essentially [Wei21, Lemma 2.11]). Suppose is a random polynomial of degree at most whose coefficient seed is independent of , and suppose it is a -optimizer for the induced matching problem in . Then for any , there exists a deterministic seed for which is a deterministic
of degree at most D.
Proof. Set
By Tonelli's theorem and the optimizer assumptions, and . If , put . Markov's inequality and a union bound give
Choose outside this event. Then , and its failure probability is at most ; if , the trivial bound gives the stated minimum.
If , nonnegativity and imply that for almost every seed, whereas Markov's inequality gives . These two sets intersect, so we may choose in their intersection. In either case, fixing the seed preserves the degree bound and the tolerance .
5.5 Algorithmic hardness of low-degree polynomials
We are now ready to prove Theorem 2.7. We first dispose of the case . In this case, take any fixed and put
Then , so Lemma 5.1, applied with in place of , shows that has an induced matching of the target size with probability at most . On the other hand, an optimizer in the theorem's range would succeed with probability at least , because . These bounds are incompatible for large .
Assume henceforth that , and suppose, for contradiction, that a random polynomial as in the theorem exists, where the constants are those given by Lemma 5.8 below. Choose an integer , and set
For fixed , we have for all sufficiently large , so we apply Proposition 5.3 with exponent , and take large enough for this proposition and for Lemmas 5.1 and 5.6. Since and , we have for all sufficiently large . Lemma 5.7, with , therefore gives a deterministic polynomial of degree at most satisfying
We have : since the failure probability in (35) is less than one, the rounded output is nonempty with positive probability, and a nonempty output contains an edge with . Also, for all sufficiently large , since is fixed. Thus Proposition 5.5 applies.
Henceforth fix this . Let be an interpolation path as in Definition 5.2, and let
We first describe the contradiction at a high level. The goal is to build sets from the outputs and show that they form the forbidden structure of Proposition 5.3. Proposition 5.5 provides an event of non-negligible probability on which the output of changes little when any single edge is resampled. On this event, the induced matchings change only gradually along the interpolation path; in particular, their endpoint sets cannot acquire many new vertices in a single step. On the other hand, Lemma 5.6 shows that, after all edges have been refreshed, a large induced matching is unlikely to be supported almost entirely on a fixed set of old endpoints of size . Thus the outputs along the path are eventually forced to introduce many new endpoints. Combining these two facts, we extract matchings satisfying properties (i)–(iii) of Proposition 5.3, which yields the desired contradiction. We first set up the selection rule and the relevant events, and then carry out this plan in Lemmas 5.8–5.10.
Let
If is an almost surely finite integer-valued stopping time for , then is independent of and has law , because the next steps replace every coordinate once by fresh variables.
Following the proof of [Wei21, Theorem 1.3], set and . Given and for some , let
and define
In particular, if the threshold is not reached. Since is -measurable and is adapted, is a stopping time, and inductively . Put , and define
This set is -measurable and always has at most vertices.
We consider the following four events:
for every ;
: no interpolation step is -bad for (see Definition 5.4);
: for every , every induced matching in with satisfies
: the conclusion of Proposition 5.3 holds, that is, no sets along this interpolation path satisfy properties (i)–(iii) of the proposition.
We begin by arguing that all the above events occur simultaneously with positive probability.
Lemma 5.8. There exist constants , depending only on , , and , such that the following holds. If and , then, for all sufficiently large ,
Proof. By Proposition 5.5 with , there is a constant such that
By (35), Lemma 5.1, and a union bound over ,
For each , the graph is independent of and has law , while is -measurable with at most vertices. We may therefore apply Lemma 5.6 conditionally on , with and . A union bound over gives . Finally, Proposition 5.3 gives .
Combining these bounds, there is a fixed such that
For large n, we have . Choose . Since ,
for all sufficiently large . Moreover, choosing so small that , the assumption gives
for all sufficiently large n. Consequently, exceeds , and the lemma follows.
Next, we show that is small for each under the event .
Lemma 5.9. On the event , for every ,
for all sufficiently large n.
Proof. By , so the failure case in Definition 2.4 does not occur at any time . Fix , and for , write for the sets in Definition 2.4 evaluated at . Apart from possibly the coordinate resampled at time , each falls into one of the following two cases:
(a) one of and is at least 1 and the other is at most 1/2;
(b) for some .
In particular, an edge that remains a candidate but is removed because of a conflict is counted in (b). Since the failure case does not occur, for each . Hence at least
coordinates fall into case (a), and each of them contributes at least 1/4 to . Therefore,
On the other hand, by , Definition 5.4, and (35),
Combining these inequalities gives
where the middle inequality uses the choices of and , and the last holds for all sufficiently large , since .
Next, we argue that, on the event , we can construct sets satisfying properties (i)–(iii), contradicting Proposition 5.3.
Lemma 5.10. On the event , for all sufficiently large , the sets produced by the selection rule satisfy properties (i)–(iii) of Proposition 5.3.
Proof. We show by induction on that , and that, for ,
The case is immediate, since . Suppose and that the previous steps have produced and . By ,
so . Since , the induced matching has between and edges by . By , applied at step with ,
On the other hand, , so no endpoint of lies outside . Thus the threshold is reached in , and . By the definition of ,
Moreover, and . Using the strict inequality above together with Lemma 5.9,
which proves (39) and completes the induction.
Since , the bound (39) is property (iii). Moreover, by , each is an induced matching in with at least edges, where , which gives properties (i) and (ii).
We can now complete the proof of Theorem 2.7. By Lemma 5.8, for all sufficiently large n, the events occur simultaneously with positive probability. On this intersection, Lemma 5.10 shows that satisfy properties (i)–(iii) of Proposition 5.3, contradicting . This completes the proof.
AI methodology statement
The authors formulated the problem, identified the factor-two gap, and developed the setup of the online and low-degree polynomial algorithms. They then proved lower bounds for online algorithms and low-degree polynomials, along with an achievability result for online algorithms in a range of densities p.
The authors then started querying OpenAI's ChatGPT-5.5 initially to extend the online algorithmic guarantee to a broader range of densities p. While constructing the proofs for the achievability and the barrier for online algorithms following existing techniques [GKW25], the authors used LLMs also to explore simpler analyses of online algorithms through an interactive process in Codex. This resulted in the proof of the online achievability through maximality and the direct proof of the online barrier without using the overlap gap property, both of which are simpler than the existing techniques [GKW25, DKM25, DDK 26] as well as the original proof ideas the authors came up with.
As for the low-degree polynomial algorithms, the authors conceived the proof idea of finding independent sets in the square of the line graph of G using constant-degree polynomials. Under the authors' guidance, ChatGPT-5.6 then formalized this idea via the edge coloring approach. The authors then developed the approach to obtain the eventual proof.
The authors redeveloped all AI-generated content and wrote the entire manuscript. They take full responsibility for the final content.
References
[ACO08] Dimitris Achlioptas and Amin Coja-Oghlan. Algorithmic barriers from phase transitions. In 2008 49th Annual IEEE Symposium on Foundations of Computer Science, pages 793–802. IEEE, 2008.
[Alo96] Noga Alon. Independence numbers of locally sparse graphs and a Ramsey type problem. Random Structures & Algorithms, 9(3):271–278, 1996.
[BDZ05] Mihalis Beis, William Duckworth, and Michele Zito. Large k-separated matchings of random regular graphs. In Vladimir Estivill-Castro, editor, Computer Science 2005: Twenty-Eighth Australasian Computer Science Conference (ACSC 2005), volume 38 of Conferences in Research and Practice in Information Technology, pages 175–181. Australian Computer Society, 2005.
[BDZ08] Mihalis Beis, William Duckworth, and Michele Zito. Packing vertices and edges in random regular graphs. Random Structures & Algorithms, 32(1):20–37, 2008.
[BM10] Andrei A. Bulatov and Dániel Marx. The complexity of global cardinality constraints. Logical Methods in Computer Science, 6(4):1–27, 2010. Article 4.
[Cam89] Kathie Cameron. Induced matchings. Discrete Applied Mathematics, 24(1-3):97–102, 1989.
[CDKP22] Charlie Carlson, Ewan Davies, Alexandra Kolla, and Will Perkins. Computational thresholds for the fixed-magnetization Ising model. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 1459–1472, 2022.
[CDKS21] Oliver Cooley, Nemanja Draganić, Mihyun Kang, and Benny Sudakov. Large induced matchings in random graphs. SIAM Journal on Discrete Mathematics, 35(1):267–280, 2021.
[Cla01] Lane Clark. The strong matching number of a random graph. Australasian Journal of Combinatorics, 24:47–57, 2001.
[COE15] Amin Coja-Oghlan and Charilaos Efthymiou. On independent sets in random graphs. Random Structures & Algorithms, 47(3):436–486, 2015.
[CP26] Endre Csóka and András Pongrácz. Finding cliques and dense subgraphs using edge queries. Discrete Mathematics, 349(10):115226, 2026.
[DDK 26] Abhishek Dhawan, Nhi U. Dinh, Eren C. Kızildag, Neeladri Maitra, and Bayram A. Şahin. Algorithmic phase transition for large independent sets in dense hypergraphs. arXiv preprint arXiv:2605.05618, 2026.
[DJPR18] Ewan Davies, Matthew Jenssen, Will Perkins, and Barnaby Roberts. On the average size of independent sets in triangle-free graphs. Proceedings of the American Mathematical Society, 146(1):111–124, 2018.
[DKM25] Abhishek Dhawan, Eren C. Kızildag, and Neeladri Maitra. Sharp online hardness for large balanced independent sets. arXiv preprint arXiv:2508.20785, 2025.
[DW26] Abhishek Dhawan and Yuzhou Wang. The low-degree hardness of finding large independent sets in sparse random hypergraphs. SIAM Journal on Discrete Mathematics, 40(1):374–419, 2026.
[DWZ02] W. Duckworth, N. C. Wormald, and M. Zito. Maximum induced matchings of random cubic graphs. Journal of Computational and Applied Mathematics, 142(1):39–50, 2002.
[Edm65] Jack Edmonds. Paths, trees, and flowers. Canadian Journal of Mathematics, 17:449–467, 1965.
[EM95] A. El Maftouhi. The minimum size of a maximal strong matching in a random graph. Australasian Journal of Combinatorics, 12:77–80, 1995.
[EMMG94] A. El Maftouhi and L. Márquez Gordones. The maximum order of a strong matching in a random graph. Australasian Journal of Combinatorics, 10:97–104, 1994.
[FGN 20] Uriel Feige, David Gamarnik, Joe Neeman, Miklós Z. Rácz, and Prasad Tetali. Finding cliques using few probes. Random Structures & Algorithms, 56(1):142–153, 2020.
[FL92] Alan M. Frieze and T. Luczak. On the independence and chromatic numbers of random regular graphs. Journal of Combinatorial Theory, Series B, 54(1):123–132, 1992.
[Fri90] Alan M Frieze. On the independence number of random graphs. Discrete Mathematics, 81(2):171–175, 1990.
[Fri14] Alan Frieze. Random structures and algorithms. In Proceedings of the International Congress of Mathematicians—Seoul 2014. Vol. 1, pages 311–340. Kyung Moon Sa, Seoul, 2014.
[GJW20] David Gamarnik, Aukosh Jagannath, and Alexander S Wein. Low-degree hardness of random optimization problems. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 131–140. IEEE, 2020.
[GKW25] David Gamarnik, Eren C. Kızılıdağ, and Lutz Warnke. Optimal hardness of online algorithms for large independent sets. arXiv:2504.11450, 2025. Revised 30 January 2026.
[GM75] Geoffrey R. Grimmett and Colin J. H. McDiarmid. On colouring random graphs. Mathematical Proceedings of the Cambridge Philosophical Society, 77(2):313–324, 1975.
[Gol84] Andrew V. Goldberg. Finding a maximum density subgraph. Technical Report UCB/CSD-84-171, EECS Department, University of California, Berkeley, 1984.
[GRS26] David Gamarnik, Miklós Z. Rácz, and Gabe Schoenbach. Optimal hardness of online algorithms for large common induced subgraphs. In Steve Hanneke and Tor Lattimore, editors, Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 2537–2560. PMLR, 29 June–3 July 2026.
[GS14] David Gamarnik and Madhu Sudan. Limits of local algorithms over sparse random graphs. In Proceedings of the 5th conference on Innovations in theoretical computer science, pages 369–376, 2014.
[GS17] David Gamarnik and Madhu Sudan. Limits of local algorithms over sparse random graphs. The Annals of Probability, 45(4):2353–2376, 2017.
[HSW24] Sam Hopkins, Tselil Schramm, and Alex Wein. Problem list. In Problem List of the AIM Workshop Low-degree polynomial methods in average-case complexity (organizers Sam Hopkins, Tselil Schramm, and Alex Wein), 2024.
[JS93] Mark Jerrum and Alistair Sinclair. Polynomial-time approximation algorithms for the Ising model. SIAM Journal on Computing, 22(5):1087–1116, 1993.
[Kar76] Richard M. Karp. The probabilistic analysis of some combinatorial search algorithms. In Joseph F. Traub, editor, Algorithms and Complexity: New Directions and Recent Results, pages 1–19. Academic Press, New York, 1976.
[KS09] Samir Khuller and Barna Saha. On finding dense subgraphs. In Automata, Languages and Programming (ICALP 2009), volume 5555 of Lecture Notes in Computer Science, pages 597–608. Springer, 2009.
[Law01] Eugene L. Lawler. Combinatorial optimization: networks and matroids. Dover Publications, 2001.
[LW07] Joseph Lauer and Nicholas Wormald. Large independent sets in regular graphs of large girth. Journal of Combinatorial Theory, Series B, 97(6):999–1009, 2007.
[McD89] Colin McDiarmid. On the method of bounded differences. In J. Siemons, editor, Surveys in Combinatorics, 1989, volume 141 of London Mathematical Society Lecture Note Series, pages 148–188. Cambridge University Press, 1989.
[Méz10] Marc Mézard. Glassy phases: a possible origin of computational hardness. Invited talk, APS March Meeting, Bulletin of the American Physical Society, 55(2), 2010. Abstract A6.00004.
[MP87] Marc Mézard and Giorgio Parisi. Mean-field theory of randomly frustrated systems with finite connectivity. Europhysics Letters, 3(10):1067, 1987.
[PW24] Will Perkins and Yuzhou Wang. On the hardness of finding balanced independent sets in random bipartite graphs. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2376–2397. SIAM, 2024.
[RV17] Mustazee Rahman and Bálint Virág. Local algorithms for independent sets are half-optimal. The Annals of Probability, 45(3):1543–1577, 2017.
[She95] James B. Shearer. On the independence number of sparse graphs. Random Structures & Algorithms, 7(3):269–271, 1995.
[Wei21] Alexander S. Wein. Optimal low-degree hardness of maximum independent set. Mathematical Statistics and Learning, 4(3/4):221–251, 2021.