Manuscript Offprint
arXiv:2610.40941Hypergraph cycle enumeration for efficient inference of planted k-XOR with smooth trade-off
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Arman Babakhani, Enrico Fontana, Junhyung Lyle Kim, Shouvanik Chakrabarti, and Ruslan Shaydulin
Global Technology Applied Research, JPMorganChase, New York, NY 10017, USA
We introduce hypergraph cycle enumeration (HCE), a simple spectral framework for detecting and recovering planted signals in noisy hypergraph inference problems. We study HCE on one representative problem from this class, namely planted noisy k-XOR, also known as sparse Learning Parity with Noise (LPN). Both theoretically and empirically, HCE achieves comparable recovery behavior to Kikuchi method, matching Kikuchi hierarchy. We identify parameter regimes where HCE outperforms Kikuchi method, showing that neither algorithm is universally better. We also show a subquadratic quantum speedup for HCE by replacing one of the algorithm's steps with a quantum walk. Our classical and quantum algorithms do not refute the quartic quantum speedup of quantum Kikuchi method, which remains valid for the practically relevant regime of large size and high noise strength.
I. INTRODUCTION
Many problems in high-dimensional statistics and average-case complexity ask the same basic question: when is a weak, noisy signal hidden in random data detectable, and when can it be recovered efficiently? In many settings there is a striking separation between what is possible with unlimited computation and what is possible with known polynomial-time algorithms. Understanding such informational-computational gaps has become a central goal in the study of random inference problems. [1, 2]
A particularly clean setting in which these questions arise is that of noisy parity measurements, such as Learning Parity with Noise (LPN) [3]. In the setting, suppose an unknown vector is observed only through a set with each revealing a parity of a set of coordinates, and each measurement being corrupted by noise . Natural questions are how many such measurements are needed to identify the hidden vector, and how many are needed for an efficient algorithm? In some natural regimes, this task appears to be computationally difficult, and is indeed a canonical model for the algorithmic limits of extracting a planted discrete signal from sparse, noisy, high-order data. [4, 5]
Here we examine the planted noisy -XOR problem, which is also known as sparse LPN, since we require the observations to be Hamming weight . [4, 6] This problem is closely related to tensor PCA [7–9] and to the refutation of random sparse CSPs [10–13]. It is more conveniently framed in terms of signed vectors with entries in instead of vectors in . A -XOR instance consists of clauses , , where each support has size and each label . Given an assignment , the clause is satisfied when . In the planted noisy model there is a hidden such that
where the supports are i.i.d. uniform -subsets of and the noise variables are independent with . The detection task is to decide whether the data has a planted solution, i.e., to distinguish null case from planted case with some . The recovery task is to reconstruct . The noiseless case is solved by Gaussian elimination whenever . Information-theoretically, weak recovery (non-trivial correlation with ) is possible already at clauses for any constant , while exact recovery requires every variable to appear in at least one clause, necessitating clauses [14]. No polynomial-time algorithm is known below for even , and this threshold is conjectured optimal for efficient algorithms [10, 13, 15]. The noisy case is conjectured to exhibit a sharp statistical-computational gap [10, 13, 15, 16].
Historically this and related problems have been approached with methods such as tensor unfolding [9] and the sum-of-squares (SoS) hierarchy [1, 8, 17]. We review these algorithms in Section III. The dominant family of algorithms in the computational threshold regime is the Kikuchi hierarchy [14, 16, 18]: spectral methods indexed by a degree parameter that trade runtime for a sample complexity that decreases smoothly with . This smooth trade-off is precisely the property that makes the Kikuchi and SoS hierarchies interesting, since it interpolates between the polynomial-time and the information-theoretic thresholds.
This work started as an attempt to answer the following question: can Gaussian elimination produce a 2-XOR from which the planted solution of the original k-XOR problem can be extracted in the noisy case?
The algorithm we propose is inspired by Gaussian elimination. More formally, we introduce a practical hypergraph-cycle-enumeration hierarchy for planted noisy -XOR that retains the smooth trade-off of Kikuchi-type methods, while reducing recovery at every level to spectral estimation on an matrix. Our contributions can be summarized as follows:
-
We introduce hypergraph cycle enumeration (HCE), a hierarchical algorithmic approach to planted noisy -XOR (Section IV). On level , HCE aggregates sets of clauses, each giving a weak parity signal, into an recovery matrix. Crucially, unlike Kikuchi, whose level- operator acts on a lifted space of dimension , HCE keeps the spectral problem in the original variable space, with matrix size independent of .
-
We provide detection and recovery guarantees based respectively on collecting size- even covers, and using size- sets of clauses with symmetric difference of size 2 to generate a dense matrix, the principal component of which aligns with the solution. For both detection and recovery, the parameter traces a similar threshold curve as in the Kikuchi and SoS hierarchies: increasing combines more clauses at higher computational cost. Specifically, HCE succeeds at the same threshold number of clauses per variable, . Thus, the HCE hierarchy exhibits a smooth trade-off, joining SoS, Kikuchi and the gadget-based methods reviewed in Section III as hierarchies with this property.
-
We compare the complexity of HCE to the best competitor, the Kikuchi method. At matched even levels and , their stated runtime bounds have the same leading exponent with the improved HCE probing rule, while HCE uses a smaller matrix representation. We run experiments for (Section VI) using the original all-pairs probe, showing that HCE matches Kikuchi recovery overlap at equal level while using substantially less memory and runtime, especially in the ultra-sparse regimes (e.g., at , , level 6, HCE completes in s versus h per instance for Kikuchi, a speed-up; Appendix G). Thus HCE presents a practical advantage, being able to solve some instances beyond the capability of Kikuchi, and the advantage is largest in the hardest (sparsest) regime.
Note: for recovery, we use smooth trade-off in the soft-asymptotic sense common in work on the Kikuchi hierarchy, where thresholds are compared after suppressing logarithmic factors [16]. Our detection result (Theorem 3) is stronger: it has no logarithmic loss. We conjecture that a normalized or suitably trimmed HCE recovery operator removes the logarithmic slack, uniformly over a non-trivial range of growing levels ; proving this remains open.
Figure 1 summarizes where each method is preferable. At the level- threshold reduces to an -independent condition with decreasing in (Section V), so the plane splits into nested regions indexed by the minimum usable level. Easy instances with large and are already solved at ; for weaker signals deeper levels are needed, and HCE remains preferable in the ultra-sparse regime , whereas Kikuchi overtakes it at larger densities, where the cost of enumerating -clause products outweighs the benefit of HCE's smaller matrix (Section VI).
A. Kikuchi method
The Kikuchi hierarchy [16, 18, 19] is the benchmark spectral method for planted noisy -XOR, and the main baseline for HCE. For even and a level , the symmetric level- Kikuchi matrix is indexed by -subsets of variables,
so each clause links two -sets that differ exactly by its support. Its top eigenvector correlates with the planted signal once , at cost ; increasing gives the smooth trade-off discussed in the introduction. Odd requires an unbalanced lifting [16].
HCE is similar in spirit: both methods multiply clause labels along chains of symmetric differences, so that planted signs cancel. The difference is where the spectral step takes place. Kikuchi works on a -dimensional lifted space, whereas HCE compresses all such chains onto an matrix. The two hierarchies follow the same threshold curve (Section IV A), so we compare them at matched level in Table I and Section VI. In the numerical experiments, is stored sparsely, solved by Lanczos and decoded by a voting matrix. HCE uses the meet-in-the-middle construction of Section VC and the post-processing of Appendix H (details in Appendix I).

FIG. 1: Where HCE is faster than Kikuchi for fixed large and . Each curve marks the recovery threshold at level ; deeper levels allow recovery at smaller or . Above the solid curve, level 2 suffices (easy to recover); the gray region is beyond the levels shown. At the lowest level that permits recovery, green or yellow indicate that HCE or Kikuchi is faster, respectively. HCE generally wins when shallow levels suffice or is small. Kikuchi is faster when low requires deeper levels and large makes HCE's clause enumeration costly. The figure is schematic and illustrates the finite-size behavior in Section VI, not the asymptotic scaling in Table I.
B. Hypergraph Even covers and witnesses
Throughout, and denotes the complete -uniform hypergraph, with the number of possible clauses. The instance hypergraph is with , and we parameterize the clause density by
For a set of clauses we write for the symmetric difference (equivalently, the sum of indicator vectors) of their supports, and for the product of their labels. A full notation table is given in Appendix A.
Because we work with hypergraphs, the word “cycle” is ambiguous; we fix the following standard notion, which is the correct analogue for linear algebra.
Definition 1 (Even cover / hypergraph cycle). A proper even -cover is a set of distinct hyperedges such that every vertex is contained in an even number of them, i.e. . We write for the set of proper even -covers contained in and .
Since for any sets of size , a level can only carry even covers or -witnesses (defined below) when is even; we call such levels admissible. For odd and odd this parity obstruction forces and makes the recovery matrix of Section IV B vanish identically. Proper even covers need , and we write for the smallest level carrying one: for even and for odd .
An estimator achieves weak recovery if , almost-exact recovery if this overlap tends to one, and exact recovery if . The recovery theorem below is a weak-recovery statement.
Definition 2 (Witness). For , an -witness of level in the recovery model is an index set with . We write for the set of such index sets, , and (which by symmetry does not depend on ).
In simple terms, a witness is an even cover “with two loose ends”. HCE, as will be introduced below, is an algorithm that traces these “loose ends” in order to detect if there is a planted instances, and if so, recover it. Throughout this work, we reserve for the HCE level and for the Kikuchi level; the two are distinct parameters and are only approximately equal by coincidence at small (Section IV A).
III. RELATED WORK
We first discuss general algorithms for planted inference and random-CSP refutation.
a. Sum of squares. The sum-of-squares (SoS) hierarchy is a common benchmark for planted inference and random-CSP refutation. In tensor PCA, low-degree SoS relaxations and spectral algorithms derived from their moment matrices attain the conjectured polynomial-time recovery scale [7, 8, 17]. For random k-XOR, the spectral/SoS method of Raghavendra et al. [13] gives strong-refutation certificates, while Kothari et al. [15] prove complementary SoS degree lower bounds. Kikuchi was introduced as a simpler spectral hierarchy attaining the same degree/runtime-signal trade-off as SoS [16], and Kikuchi matrices also underlie SoS certificates for random CSPs [18]. The normalized analysis of Schmidhuber and Hastings [14] makes this trade-off log-free for planted noisy k-XOR detection and weak recovery while retaining degree- SoS refutation certificates. HCE is a low-degree spectral statistic in this lineage, but is not itself an SoS relaxation.
b. Tensor unfolding and spectral baselines. A simpler and historically important approach is tensor unfolding (matricization): represent the observations as a sparse order- tensor supported on the observed clauses with values , so that , and partition the modes into two groups of size to obtain a matrix whose leading singular vectors estimate tensor powers of the signal [7–9]. Spectral separation occurs at , matching the polynomial-time threshold for constant-degree methods; for odd one uses an unbalanced unfolding, and related square constructions give the corresponding spectral relaxations. This baseline is simple and efficient but provides no smooth sample-time trade-off, and it treats the data as noisy tensor entries without exploiting the algebraic cancellation structure of XOR constraints, exactly the structure that HCE uses.
c. Trace methods, even covers and low-degree polynomials. The matrix is closely related to the -th step of the trace method for refuting random CSPs [10, 13], whose spectral antecedents go back to Goerdt and Krivelevich [12] and Friedman et al. [20], and to the “square” spectral construction of Hopkins et al. [8] for tensor PCA. The witness counts of Appendix E are an explicit version of the -cycle counts of Allen et al. [10] and Raghavendra et al. [13]; even-cover counting also underlies the hypergraph Moore bound [19] and Feige-type refutation [11, 18]. Closest to our work, Schmidhuber and Hastings [14] show that the Kikuchi hierarchy is sharp for random -XOR, without polylogarithmic losses. Accordingly, our novelty claim is not a new statistical regime, a proved equivalence with one Kikuchi slice, or uniform runtime superiority; it is the exact final-boundary compression, its cycle interpretation, the spectral endpoint at every level, the explicit witness-count constants, and the empirical memory frontier.
We now discuss algorithms that are directly related to or share ideas with our approach.
d. Classical speedup by finding short cycles. [6] Gupta et al. gave a classical detection algorithm for planted -XOR that runs in roughly the square root of the time of the Kikuchi power method when is a large constant, reducing the quartic quantum speedup of Schmidhuber et al. [4] to a quadratic one in that regime [6]. Like HCE, their algorithm finds even covers by meet-in-the-middle: a closed walk in the Kikuchi graph yields an even cover, and by the birthday paradox two short random walks from a common start soon meet. HCE instead finds every cover of a given size rather than a random sample. This lets us compute the mean and variance of exactly and obtain the explicit constant of Theorem 3, whereas their condition keeps the logarithmic factor of the Kikuchi method. Their result covers detection only, while HCE also gives recovery.
e. Sub-hypergraph enumeration. [5, 21] Where Gupta et al. sample covers at random from the Kikuchi matrix, Li [21] and Mao [5] sample from a subset of covers with a specific shape. Li proved a smooth trade-off between running time and signal strength, with no logarithmic loss, for Gaussian tensor PCA, and Mao adapted the method to planted noisy -XOR. Both sum products of labels over rings of small gadgets glued end to end for detection, and over open chains of gadgets between two variables and for recovery. A ring is an even cover in which every variable appears exactly twice, and a chain is an -witness with the same property, so their statistics are restricted parts of our sums and . Notably however they use a different method for recovery, which may explain why they have no factor. We leave open whether HCE recovery can avoid this logarithmic loss. Mao also obtains exact recovery and a matching low-degree lower bound.
HCE, the works by Gupta et al. [6] and Mao [5], and implicitly the Kikuchi method [16], all rest on the same object: an even cover, that is, a set of clauses whose variables cancel in pairs, so that the product of its labels is correlated with the planted assignment. They differ in which covers they collect and how: Gupta et al. sample covers through random-walk collisions, Li and Mao count covers of one restricted shape, and HCE enumerates all covers of a given size. These choices determine the threshold and the running time and explain the different thresholds achieved. The same view applies to the Kikuchi method. The trace of a power of the Kikuchi matrix is a sum over closed walks in the Kikuchi graph, and each closed walk yields an even cover, so the Kikuchi method can also be read as a

FIG. 2: Overview of hypergraph cycle enumeration (HCE) algorithm. Left: the clauses are sparse noisy entries of the rank-one order- tensor ; HCE multiplies clauses whose supports XOR to a pair , so that every variable cancels modulo two except and , leaving an effective noisy 2-XOR constraint on . The case is elementary: two clauses with share a common -set. Right: Algorithm 1, the meet-in-the-middle implementation, analyzed in Section VC.
particular weighting of even covers. Comparing these weightings is a natural way to understand where the thresholds of spectral methods come from.
IV. HYPERGRAPH CYCLE ENUMERATION
A. Cycles carry the signal
The core idea is to use the clause structure of the -XOR instance directly. Recall that denotes the set of length- even covers, with . Consider an even cover . Every variable in appears an even number of times, so all planted signs cancel and
Under the null model () the mean vanishes, so even covers are exactly the local structures that certify planting. Collecting enough of them therefore enables detection; hence the name hypergraph cycle enumeration. Define the level- discriminator
If the summands were uncorrelated — as they are for edge-disjoint covers, and asymptotically after the overlap terms are controlled through Proposition B.12 — then detection with constant probability requires
For random uniform hypergraphs concentrates around its expectation (Corollary B.10), whose asymptotics follow from an exact Kravchuk-polynomial count of even covers in the complete hypergraph (Appendix C) combined with the sampling step (Subsection C.2, Theorem C.14). Writing for the count on the complete hypergraph, sampling gives , and for large admissible
Detection is therefore possible for large , constant and large admissible whenever
Up to logarithmic factors, the Kikuchi detection threshold [16, 18, 19] is the same condition with replaced by and replaced by the Kikuchi level . Thus HCE exhibits the same smooth trade-off, and at the two constants agree to within 2%.
B. From cycles to a matrix: the recovery matrix
Recovery proceeds by reducing the problem to standard (matrix) PCA. Here the clauses are the i.i.d. sample , and witnesses are indexed by clause indices: for put and define the recovery matrix
Every in the sum has the property that all variables cancel modulo two except and . If is the planted assignment, by problem definition. Conditionally on the supports,
where is the number of -witnesses of level . Hence is a weighted noisy estimator of the rank-one matrix . Recall that is the expected number of witnesses for a fixed pair . In the i.i.d. support model, where clauses are drawn with independent equal probabilities
Averaging (10) also over the supports gives . We therefore write
where the residual includes both the random fluctuations and the deterministic diagonal correction.
Since , the rank-one signal has eigenvector and eigenvalue . Therefore, for recovery it suffices to show that is suitably smaller than , so that the top eigenvector of remains close to the planted direction. HCE estimates , up to a global sign, by reading off the signs of this eigenvector; see Figure 2. Comparing this condition across levels gives the recovery trade-off.
Recovery is, thus, a signal-noise comparison: it suffices that be suitably smaller than . Comparing this condition across fixed levels gives the formal trade-off curve. HCE estimates from the sign pattern of the top eigenvector of ; see Figure 2.
V. THEORETICAL GUARANTEES
Theorems 3 and 4 lay the theoretical foundation of detection and recovery via HCE. These are the two main results that we will state in this section, and defer complete proofs to Appendices B and D.
The literature on planted inference problems uses a number of different models for how the clauses are sampled. For convenience and clarity of derivation, we consider two models. For detection, is a uniformly random -edge subhypergraph of : the supports are drawn uniformly without replacement, so is a simple hypergraph and even covers are sets of distinct edges. This model was used in Ref. [6]. For recovery, are i.i.d. uniform -subsets, so repeated supports may occur and witnesses are indexed by clause indices rather than by edges; repeated supports are retained rather than discarded. This model or its Poissonization were used in Refs. [4, 14, 16, 22]. In practice the two models can be seen to be equivalent up to constants factors. Given a Poissonized instance with variables, , with high probability and so asymptotically the regimes are equivalent. The Poissonized instance may have repeated clauses; in that case one can deduplicate the clauses, again with a subleading loss in the regime of interest .
| Method | Memory | Runtime |
|---|---|---|
| HCE, level | ||
| HCE, even , | ||
| HCE, odd , | ||
| Kikuchi, level | ||
| Kikuchi, even , | ||
| Quantum HCE, even , | — | |
| Quantum Kikuchi, even , | — |
TABLE I: Asymptotic runtime and memory for level- HCE and level- Kikuchi spectral recovery on planted noisy -XOR with clauses and even . suppresses logarithmic factors and constants depending on , and . Classical HCE uses the memory tricks discussed in Appendix G. Quantum rows: HCE with quantum-walk claw finding [23] for witness search, and the quartic quantum speedup of Kikuchi [4] (Section V C).
A. Detection
The heuristic of Section IV A used two unproven simplifications: that concentrates around , and that the variance of is dominated by edge-disjoint pairs of covers. Both are controlled by a single combinatorial estimate. Let be the number of ordered pairs of even -covers of sharing exactly hyperedges. Lemma B.7 computes the corresponding count on the complete hypergraph with its constant, and after sampling this yields
with as in Section II. The rate is the mechanism behind the trade-off: at fixed density, deeper levels make overlapping covers relatively rarer, and the discriminator behaves like an average of independent variables of mean . This makes the error probabilities explicit.
Theorem 3 (Smooth trade-off for detection). Fix , and a target error probability . There is a constant , depending only on , such that the following holds for every fixed admissible and every fixed . Set (assumed integral). Then, for all sufficiently large , the test that declares the instance planted when and has false-positive and false-negative probabilities each at most provided
For large this reads with , i.e. exactly the threshold (8) up to an explicit factor tending to one as grows. The same sample condition gives a test whose decision rule does not use : declare the instance planted when and
Its false-positive and false-negative probabilities are again at most for all sufficiently large .
B. Recovery
It is convenient to define expected witness count, its -scaled and noise-normalized versions below,
Writing and , using the i.i.d. support model, we obtain
so the planted eigenvalue is , while every orthogonal eigenvalue of the mean is .
The exactly centered conjugated residual differs from only by the deterministic diagonal shift,
By (17), is a rank-one spike of strength along plus the residual . By Weyl's and the Davis–Kahan inequalities, we show that its top eigenvector aligns with once is small compared with . For recovery we must control globally rather than entrywise. The exact overlap formula in Appendix D shows that the entry variance contains both the term and correlation contributions from overlapping witnesses. Entrywise information alone cannot exclude their localized effects; we therefore bound high trace moments of the exactly centered residual of (18).
Splitting witnesses according to whether and lie in the same support component (boundary-connected) or in different ones (boundary-disconnected) gives . A Hoeffding decomposition controls the first sector (Appendix D), and for even a parity argument gives identically.
Theorem 4 (HCE weak recovery for even ). Fix even , admissible , , with , and set . There are constants and such that for all and even ,
Hence, for every fixed , with probability at least ,
If for some , put . Then the top eigenvalue of is isolated, and its unit eigenvector and satisfy, with and up to a global sign,
The exact signal-to-noise ratio is , and, ignoring fixed constants, it diverges as soon as
It remains to count witnesses. Appendix E shows with , so that when . Thus the separation condition becomes a condition on the clause density alone.
Corollary 5 (Smooth trade-off for recovery). Fix even , , , and . There is a constant , independent of , such that for every fixed admissible , with , the following holds for all sufficiently large (where the lower bound on may depend on ). If , , and
then, for all sufficiently large n, the binary output of HCE satisfies, with probability at least ,
For fixed and large , , so (23) traces the Kikuchi curve up to an -independent constant; the results are stated for fixed only (Appendix D). For odd , the same curve holds at every even after trimming a sublinear, support-determined set of coordinates, which is empty for (Theorem D.38 and Corollary D.39 in Appendix D 7).
Remark 6. Since the raw HCE matrix can localize on high-degree vertices, removing the slack in (20) will likely require degree normalization or trimming, as in the normalized Kikuchi construction of Schmidhuber and Hastings [14].
C. Complexity
A direct implementation of (9) enumerates all -tuples of clauses in time when , using only matrix memory. MITM splits each -set into halves of sizes and and hashes the -sets by XOR boundary using memory. The original all-pairs probe takes construction time. Instead, aggregate both half sizes by boundary. Scan the -boundary keys for same-size partners (one-element replacements), and scan keys in each table for smaller partners (two-element deletions). Every pair of boundaries with XOR is then accounted for. Since each key has at most elements, this takes deterministic construction time with the same asymptotic memory; for even , , giving . For odd , the cost of building the larger table remains and cannot in general be dropped from this bound. An exact lower-level recurrence removes pairs of halves sharing clauses, and the final eigen-decomposition costs . Appendix G gives the construction and Table I its resource bounds. The experimental implementation uses the original all-pairs probe; its measured times do not benchmark the improved key scan.
a. Quantum complexity and implications. The enumeration underpinning HCE is an instance of the -XOR problem: find -sets of clause supports, viewed as vectors in , with prescribed total XOR. Classically, MITM is the standard generic baseline [24]. Quantumly, the problem maps to claw finding: split the clauses into two halves, let on -sets of the first half and on -sets of the second, so that a claw is exactly an -witness. Tani's quantum-walk algorithm [23], built on the element-distinctness walk of [25] and Szegedy's framework [26], finds a claw in time instead of for a fixed pair; repeating over all pairs gives the quantum HCE row of Table I. This is the cost of witness search, not an end-to-end speedup over the improved classical key scan: building requires the signed sum over all witnesses, so sampling or enumerating many of them adds output-dependent factors. For Kikuchi, Schmidhuber et al. [4] give a quartic quantum speedup of the level- spectral method. The two speedups matter in different regimes. Where classical Kikuchi is already preferable (large with deep levels, yellow region of Figure 1), its quantum speedup can play a significant role. In the ultra-sparse regime , where HCE is empirically preferable at the sizes we test, theoretical quantum speedups for Kikuchi do not naturally translate into end-to-end recovery speedups over HCE, and the relevant quantum question becomes how far the HCE enumeration itself can be accelerated.
VI. EXPERIMENTS
Full specifications of both methods and the resource metrics are given in Appendix I. The figure of merit for recovery is the overlap between the recovered and planted bitstrings. Unless stated otherwise, results are averaged over random instances generated from identical seeds for all methods, so that HCE and Kikuchi see exactly the same instances. We compare the methods at matched level . At their detection-threshold constants agree to within 2% (Section IV A), making this a natural point of comparison.
a. Recovery quality at . In Figure 3, we see that at matched level, HCE attains overlap comparable to Kikuchi, consistent with the constant-level comparison of Section IV A. Since the HCE pipeline uses the post-processing described in Appendix H, whereas the recovery theorem concerns the bare top eigenvector of one layer, these heatmaps compare the practical pipelines rather than directly testing Theorem 4. We also noted that tensor power iteration did not appreciably boost the overlaps for either methods, for reasonably large number of iteration steps.
b. Odd and larger . At , the comparison repeats, with HCE matching Kikuchi recovery quality at equal level (). At , HCE can be utilized directly for recovery, unlike symmetric Kikuchi; by the parity obstruction of Section II, the matrices vanish, giving no additional recovery contributions, as seen by plateaus from to , and to . Every reported odd- run thus has signal only at , where and trimmed HCE (Appendix D 7) coincides with HCE; trimming at is left for future work. Both heatmaps are in Appendix J (Figures 6 and 7).
c. Scaling in the problem size. Figure 4 shows runtime and the size of the largest persistent data structure, as defined in Appendix I, for a ultra-sparse instances (). We observe that HCE is consistently faster than Kikuchi at matched level, and the memory gap grows with : Kikuchi stores a lifted sparse operator, whereas HCE diagonalizes an matrix after constructing its hash table.
d. Scaling in the clause density. As can be noted in Figure 5, the advantage of HCE is largest in the hardest regime, i.e. when is small: there, few clause products collapse to a pair, so the enumeration

(a) Kikuchi recovery

(b) HCE recovery
FIG. 3: Recovery of HCE and Kikuchi is comparable when . Recovery overlap with the planted bitstring for , , averaged over 10 random -XOR instances. The HCE level and the Kikuchi level are matched, . The corresponding heatmaps for and are reported in Appendix J, Figures 6–7.

FIG. 4: HCE is faster than Kikuchi at the same level. Scaling of runtime and largest memory object with the number of variables for noisy -XOR with , , at fixed level , averaged over 3 random instances. At these finite sizes HCE is much faster than Kikuchi for , although at the asymptotic bounds of Table I have the same leading exponent.
that HCE pays for is cheap, while the Kikuchi lifted operator remains -dimensional irrespective of density. Conversely, at large C the enumeration cost of HCE grows and Kikuchi becomes preferable. This delineates three regimes: for ('sparse-but-dense') the instance is already solved at level 2; near (sparse) the two methods are comparable at matched level; and for solvable (ultra-sparse) HCE is empirically preferable.

FIG. 5: The advantage over Kikuchi is largest in the hardest regime, where is small. Scaling of runtime and largest memory object with clause density for , , ; HCE at and Kikuchi at , averaged over 3 random instances. Note that for (ultra-sparse), Kikuchi does not achieve recovery overlap .
VII. DISCUSSION AND CONCLUSION
We introduced hypergraph cycle enumeration (HCE), an elementary spectral hierarchy for planted noisy -XOR. At level , HCE multiplies clauses whose supports XOR to a pair , similar to a Gaussian elimination procedure on finite field . This reduces the problem, and hence sparse rank-one tensor recovery, to PCA on an matrix at every level.
The mechanism for HCE is transparent: every hypergraph cycle contributes an explicit parity signal, aligned with for recovery. The threshold (8) is exactly where the noise cost balances the witness gain . Unlike symmetric Kikuchi, HCE applies directly to odd . At and matched even levels, the improved HCE bound has the same leading runtime exponent as the stated Kikuchi bound. In practice, even the original all-pairs implementation solves instances at a fraction of Kikuchi's memory and runs considerably faster in the ultra-sparse regime.
Three directions remain open. The first is removing the polylogarithmic slack in (20), which would match the sharp Kikuchi result of Schmidhuber and Hastings [14]. The second is lowering the enumeration cost below the generic meet-in-the-middle baseline by exploiting planted structure. The third is extending HCE to smoothed and semi-random CSPs, since even covers underlie both refutation and the Moore bound.
These results place HCE among several recent methods for planted noisy -XOR that rest on counting even covers, each method differing by how the covers are weighted. The Kikuchi hierarchy sums closed walks in a lifted graph on vertices. Schmidhuber and Hastings [14] normalize this matrix and count its closed walks, which gives the conjectured trade-off without logarithmic loss and a quartic quantum speedup. Gupta et al. [6] find even covers through collisions of short random walks in the same Kikuchi graph, giving a classical quadratic speedup for detection when is a large constant. Li [21] and Mao [5] count only thin rings and chains of small gadgets achieving detection and recovery. HCE conversely counts every even cover and every -witness of a fixed size. We have shown numerically that HCE, despite its asymptotically worse runtime compared to some of these methods, in practice is very efficient and superior to the Kikuchi method in sparse regimes. Whether some other algorithm of this class has a practical advantage compared to HCE remains open.
There is a further connection between the HCE matrix and the Kikuchi matrix, which we show in Appendix F: both algorithms are restrictions of the same operator on the Boolean cube. Define for all the operators , where flips the bits corresponding to clause . Then the operator of interest is
In quantum language, this is the Hadamard transform of the XOR Hamiltonian. Both HCE and Kikuchi can be directly related to this object. HCE applies the degree- Kravchuk polynomial of this operator first and then either evaluates its Rayleigh quotient on the all-zero basis vector for detection, or restricts it to the Hamming weight 1 states to form the recovery matrix. The Kikuchi matrix restricts the operator to one -slice first, obtaining the Kikuchi matrix, and then takes powers to find the top eigenvector, so every intermediate state must stay on that slice. The relation between HCE and the Kikuchi method reveals interesting possibilities for future quantum algorithms. The quartic speedups of Schmidhuber et al. [4] and Schmidhuber and Hastings [14] come from the lifted Kikuchi space, whereas HCE gives up that space and instead operates on the underlying space of even covers. It is open whether this interpretation allows a similarly large quantum speedup to be obtained for HCE.
Acknowledgments
We thank Rob Otter for the executive support of the work and invaluable feedback on this project. We thank the colleagues at the Global Technology Applied Research center of JPMorganChase for support.
[1] S. B. Hopkins, Statistical Inference and the Sum of Squares Method, Ph.D. thesis, Cornell University (2018). [2] D. Kunisky, A. S. Wein, and A. S. Bandeira, in Mathematical Analysis, its Applications and Computation, Springer Proceedings in Mathematics & Statistics, Vol. 385 (Springer, 2022) pp. 1–50. [3] A. Blum, A. Kalai, and H. Wasserman, Journal of the ACM 50, 506 (2003). [4] A. Schmidhuber, R. O'Donnell, R. Kothari, and R. Babbush, Physical Review X 15, 021077 (2025). [5] S. Mao, Near optimal algorithms for noisy -XOR under low-degree heuristic, arXiv preprint (2026), arXiv:2604.10457 [cs.CC]. [6] M. Gupta, W. He, R. O'Donnell, and N. G. Singer, in Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) (SIAM, 2026) pp. 2455–2472. [7] S. B. Hopkins, J. Shi, and D. Steurer, in Proceedings of the 28th Conference on Learning Theory, Proceedings of Machine Learning Research, Vol. 40 (PMLR, 2015) pp. 956–1006. [8] S. B. Hopkins, T. Schramm, J. Shi, and D. Steurer, in Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC) (2016) pp. 178–191. [9] A. Montanari and E. Richard, in Advances in Neural Information Processing Systems, Vol. 27 (Curran Associates, Inc., 2014) pp. 2897–2905. [10] S. R. Allen, R. O'Donnell, and D. Witmer, in Proceedings of the 56th Annual IEEE Symposium on Foundations of Computer Science (FOCS) (2015) pp. 689–708. [11] U. Feige, in Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC) (2002) pp. 534–543. [12] A. Goerdt and M. Krivelevich, in Proceedings of the 18th Annual Symposium on Theoretical Aspects of Computer Science (STACS) (2001) pp. 294–304. [13] P. Raghavendra, S. Rao, and T. Schramm, in Proceedings of the 49th Annual ACM Symposium on Theory of Computing (STOC) (2017) pp. 121–131. [14] A. Schmidhuber and M. B. Hastings, The Kikuchi hierarchy is sharp for XOR, arXiv preprint (2026), arXiv:2607.29672 [cs.DS]. [15] P. K. Kothari, R. Mori, R. O'Donnell, and D. Witmer, in Proceedings of the 49th Annual ACM Symposium on Theory of Computing (STOC) (2017) pp. 132–145. [16] A. S. Wein, A. El Alaoui, and C. Moore, Journal of the ACM 72, 35:1 (2025). [17] S. B. Hopkins, P. K. Kothari, A. Potechin, P. Raghavendra, T. Schramm, and D. Steurer, in Proceedings of the 58th Annual IEEE Symposium on Foundations of Computer Science (FOCS) (2017) pp. 720–731. [18] V. Guruswami, P. K. Kothari, and P. Manohar, SIAM Journal on Computing, STOC22-282 (2024), special section on STOC 2022; advance online publication. [19] J.-T. Hsieh, P. K. Kothari, and S. Mohanty, in Proceedings of the 34th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) (2023) pp. 2324–2344. [20] J. Friedman, A. Goerdt, and M. Krivelevich, SIAM Journal on Computing 35, 408 (2005). [21] Z. Li, A smooth computational transition in tensor PCA, arXiv preprint (2025), arXiv:2509.09904 [math.ST]. [22] E. Fontana, S. Omanakuttan, J. L. Kim, J. Sullivan, M. Perlin, R. Shaydulin, and S. Chakrabarti, End-to-end quantum algorithms for tensor problems, arXiv preprint (2025), arXiv:2510.07273 [quant-ph]. [23] S. Tani, Theoretical Computer Science 410, 5285 (2009). [24] D. Wagner, in Advances in Cryptology — CRYPTO 2002, Lecture Notes in Computer Science, Vol. 2442 (Springer, 2002) pp. 288–304. [25] A. Ambainis, SIAM Journal on Computing 37, 210 (2007). [26] M. Szegedy, in 45th Annual IEEE Symposium on Foundations of Computer Science (FOCS) (2004) pp. 32–41. [27] A. Coja-Oghlan, C. Cooper, and A. Frieze, SIAM Journal on Discrete Mathematics 23, 2000 (2010). [28] J. A. Tropp, Foundations and Trends in Machine Learning 8, 1 (2015).
[29] C. Davis and W. M. Kahan, SIAM Journal on Numerical Analysis 7, 1 (1970).
[30] Y. Yu, T. Wang, and R. J. Samworth, Biometrika 102, 315 (2015).
DISCLAIMER
This paper was prepared for informational purposes by the Global Technology Applied Research center of JPMorgan Chase & Co. This paper is not a product of the Research Department of JPMorgan Chase & Co. or its affiliates. Neither JPMorgan Chase & Co. nor any of its affiliates makes any explicit or implied representation or warranty and none of them accept any liability in connection with this paper, including, without limitation, with respect to the completeness, accuracy, or reliability of the information contained herein and the potential legal, compliance, tax, or accounting effects thereof. This document is not intended as investment research or investment advice, or as a recommendation, offer, or solicitation for the purchase or sale of any security, financial instrument, financial product or service, or to be used in any way for evaluating the merits of participating in any transaction.
Organization of the appendices. The appendices follow the logical flow of the paper. Appendix A collects the notation. Appendix B proves Theorem 3. It uses Appendix C, which counts even covers in the complete hypergraph and then computes their expected number in a random hypergraph (Subsection C2). Appendix D proves Theorem 4 and Corollary 5 for even , and the trimmed odd- result in Subsection D7. Appendix E counts the witnesses that set the recovery threshold. Appendix F relates to the Kikuchi and square constructions, and Appendix G gives the meet-in-the-middle construction behind Table I. The remaining appendices concern the experiments: the decoding pipelines (Appendix H), the experimental protocol (Appendix I), and additional results for (Appendix J).
Appendix A: Notation
| Symbol | Type | Meaning / property |
|---|---|---|
| positive integers | problem size, number of sampled clauses, clause size | |
| positive integer | HCE level: even-cover size / witness size; admissible when is even | |
| positive integer | Kikuchi level: degree of the lifted Kikuchi matrix; used only in comparisons | |
| 3 ( even), 4 ( odd) | minimal admissible cover level | |
| finite set | vertex set | |
| finite set of -subsets of | possible supports | |
| number of possible clauses | ||
| positive real | clause density, | |
| real number in | noise mean (planted advantage) | |
| element of | planted sign vector | |
| complete -uniform hypergraph | ||
| subset of | instance clause set, size | |
| subset of | any subset of | |
| element of | clause support indexed by | |
| r.v. in | independent noise, | |
| r.v. in | observation | |
| operation | symmetric difference | |
| subset of | for a set of clause indices | |
| r.v. in | ||
| subset of | even cover: | |
| set / integer | even -covers in and their number | |
| set / integer | even -covers in and their number | |
| integer | , the exact Kravchuk count | |
| non-negative real | ; zero for inadmissible ; | |
| non-negative real | , so ; | |
| integers | ordered pairs of even -covers of (resp. ) meeting in exactly edges | |
| set / integer | -witnesses in and their number | |
| non-negative real | ||
| positive reals | ; signal scale | |
| matrices | and its exact centering | |
| even integers | trace-moment order; | |
| functionals | ||
| positive integers | (pattern-count exponent); , the polylogarithmic exponent | |
| probability | , the prescribed-boundary probability | |
| matrices | boundary-connected and boundary-disconnected sectors of | |
| subsets of | singleton-boundary trimming set and its complement, (D41) | |
| matrices | projection onto and trimmed recovery matrix, (D42) | |
| non-negative reals | boundary-connected witness count, degree scale, and signal scale | |
| positive real | boundary-connected restriction of the full i.i.d. witness coefficient | |
| integers | distinct-support universe count and ordered i.i.d. support-tuple count | |
| positive reals | normalized ordered-tuple and sampled i.i.d. witness constants; | |
| positive reals | ; ; |
Two conventions are worth restating. First, the HCE level is always and the Kikuchi level is always ; the two coincide only in the matched-level experiments, where we write explicitly. Second,
C denotes the clause density throughout, so the even-cover count present in the instance is written (and not ), the witness constants are (and not ), and the generic constants appearing in the moment bounds are written B. The trace-moment order is q, which is unrelated to the inclusion probability of Appendix E.
Appendix B: Proof of the Detection Theorem
Throughout this appendix is a uniformly random -edge subhypergraph of with , and is the discriminator (5), with . We keep the two sources of randomness apart by a subscript: , refer to the draw of the clause supports, while , and refer to the signs at planted advantage , the null model being .
We only consider admissible levels, i.e. with even, for which possesses proper even -covers; the minimal admissible level is of Section II. By Theorem C.13, for an -independent , with when is inadmissible and (the empty family is the unique even 0-cover). For and large admissible ,
Finally set
for the instance and for the complete hypergraph respectively.
Lemma B.7 (Pairs of covers meeting in s edges). Fix k, l and , and set . Then
If has no proper even cover of size or of size , the corresponding coefficient or vanishes and the statement is to be read as .
Proof. Define and . Every triple corresponds to a unique pair , so we count triples with and . Since and are even covers, ; call this common vertex set and put .
A family of hyperedges with symmetric difference uses at most vertices: the vertices of consume at least one incidence each, while every other used vertex has positive even degree and hence consumes at least two. Counting the vertices of only once across , the whole triple uses at most
distinct vertices. Therefore contributes at a strictly lower order in n. If , then J, A, B are themselves even covers, of sizes s, r, r, and the leading contribution comes from triples with pairwise disjoint vertex sets, since sharing a vertex again reduces the number of free labels. The number of such triples is
and removing the vertex-intersecting triples does not affect the leading term. Since , the claim follows.
Proposition B.8. Under the detection sampling model, , where denotes the falling factorial and . Consequently, for and fixed , with .
Proof. The first identity is linearity of expectation: a fixed -set of edges lies in with probability . The second follows from , and .
Lemma B.9 (Normalized second moment). Fix with and let for a constant . With and ,
For large admissible the right-hand side is .
Proof. Writing gives . For two even covers with we have , hence and
By Lemma B.7, for every fixed s,
while, for fixed l and s,
Multiplying the two displays and using the definition of gives for the -th summand; the term equals . As the sum has only terms, subtracting one from the normalized second moment proves (B6).
For the large-l estimate the summation must be uniform in s. Put
The pairing argument in the proof of Theorem C.13 gives constants such that for every sufficiently large admissible ; enlarging the constants covers the finitely many smaller admissible levels. We use the two-sided factorial bounds
Applied to the factorials in , these bounds give constants such that, uniformly over admissible indices,
and the same bound with replaced by holds for . On the interior , the same substitution gives . For example, the power-carrying part of the logarithm at the lower endpoint is
uniformly after choosing small; the square-root factors in (B10) are absorbed into . The first nonzero lower-endpoint index is , and its summand is . The opposite endpoint and the interior are smaller, while equals and is superpolynomially small at fixed . Summing the three ranges proves the stated estimate.
Corollary B.10 (Concentration of the cover count). Fix an admissible l and t > 0. Then
(B11)
for large admissible l.
Proof. Immediate from Lemma B.9 and Chebyshev's inequality.
Lemma B.11 (Overlap sums at the detection scale). Fix , and . If
then, for large admissible l,
Proof. Put . By (B1), after enlarging constants to cover the finitely many small admissible indices,
for every admissible . The sample lower bound implies . Therefore the th summand of (B13), denoted , satisfies
Applying (B10) to this display gives constants such that
Indeed, after writing , the exponential part in the interior is
which is strictly negative on every compact subinterval of . At the lower endpoint, the inequality yields the first bound uniformly for ; at the upper endpoint, setting gives the second. The square-root remainders in (B10) are absorbed into or .
Only admissible indices contribute, and the first positive one is . Summing the lower endpoint gives , the upper endpoint gives , and the interior is exponentially small. This proves (B13). The corresponding unweighted summand is ; hence its lower endpoint acquires , while the remaining ranges are no larger. Finally the omitted term is exactly , proving (B12).
We now address the second heuristic assumption.
Proposition B.12. Let with and . Then, conditionally on , .
Proof. , and since even covers form a closed cycle space, is an even cover of size . Hence , while .
Proof of Theorem 3. Let and declare the model planted when and . We first control the hypergraph randomness. Let be the event . Corollary B.10 with bounds
we bound this after imposing the sample condition below, l being fixed from this point onwards.
For under the null model , has mean zero and distinct covers have zero covariance, so . Chebyshev's inequality, together with the contribution of and , gives
Under the planted model the conditional mean is , and Proposition B.12 gives
the second identity being Lemma B.7 together with the sampling step of Proposition B.8. Chebyshev's inequality and averaging over H then yield
It remains to choose and . Requiring is exactly
which is (14) after substituting , and which for large forces . Lemma B.11 gives the required uniform bounds on the two sums above. The sample condition gives , hence ; since , the second remainder also controls the first. Choosing the implicit constant in large enough makes four times the first remainder at most and sixteen times the second sum at most . Then by (B14), and both error probabilities are below for all sufficiently large .
Finally, inserting the large-l form (B1) of into (14) gives
which is (8) up to a factor tending to one as l grows.
It remains to verify the adaptive rule (15). Under the null model, conditionally on every hypergraph with , and . Hence Chebyshev's inequality gives
Under the planted model, on the event , the sample condition implies
In particular, for all sufficiently large the left-hand side exceeds , so the adaptive threshold is at most . Its false-negative event on is contained in the one already bounded above, while has already been included in that bound. Thus both adaptive errors are at most .
Appendix C: Counting Hypergraph Cycles
1. Asymptotics for Complete Uniform Hypergraphs
We count proper even -covers (Definition 1) on the complete -uniform hypergraph , assuming even. Such identities are classical in the analysis of random CSP refutation and appear e.g. in Allen et al. [10], Raghavendra et al. [13], Wein et al. [16], Hsieh et al. [19], Coja-Oghlan et al. [27]. We use the unnormalized Kravchuk polynomials
Theorem C.13. Fix and . The number of proper even l-covers (up to permutation) in is
For fixed , as ,
with an -independent constant, equal to zero when is inadmissible and equal to 1 when . For fixed and large admissible , obeys (B1). In the iterated limit followed by admissible , this is equivalently
Proof. Let be the characteristic vector of hyperedge . Then
using Boolean Fourier analysis. The sum over may be seen as a sum over ; defining by , the Kravchuk lemma gives . By symmetry depends only on :
Grouping by Hamming weight yields (C2).
For the fixed-l asymptotics, let and . For every fixed j the central limit of the Kravchuk polynomial reads , where is the jth (probabilists') Hermite polynomial. The scaled expressions are fixed-degree polynomials whose coefficients converge, and converges in moments to , so applying this first to the inner and then to the outer polynomial gives
using , which is (C3). Since is a fixed multiple of , it vanishes exactly when no proper even -cover exists, i.e. when is inadmissible.
It remains to estimate for large . View the factors in as boxes of size . By Wick's formula counts all pairings of these factors. Put ; this counts those with no pair inside a box. The number of within-box pairs in a uniform pairing converges to a Poisson variable of mean — its th factorial moment tends to — whence .
Let count pairings with neither an internal box pair nor two boxes paired completely to one another. Intersections of complete-pairing events correspond exactly to matchings of disjoint pairs of boxes, so inclusion-exclusion gives
The probabilists' identity
Moreover, a union bound over the possible completely paired box pairs gives
Thus the outer Hermite polynomial changes the pairing count only by this relative error. Inserting and Stirling's formula into (C3) gives
which is (B1). Combining this formula with Stirling's identity for yields (C4). The factor is essential: omitting the Hermite exclusion terms would, for example, give the wrong fixed-level constant already at .
2. Expected Cycles in Random Uniform Hypergraphs
Now sample hyperedges uniformly from and let be the number of proper even -covers in the resulting random hypergraph. Its mean follows from Proposition B.8 together with Theorem C.13.
Theorem C.14. For fixed and admissible , with ,
so that, for large admissible l,
Proof. The first equality is Proposition B.8. For the second, is fixed and , so ; inserting , and gives , which is the definition of used in (13). Equation (C9) then follows from (B1) and .
In particular is equivalent, to leading exponential order, to , which is (8); the exact form of the resulting condition, with its constant, is (14).
Appendix D: Proof of the Recovery Theorem
We recall the notation needed for the recovery argument. The instance contains clauses on variables, each with a support of size , and the HCE level is the number of clauses in a witness. The planted assignment is , and is the mean of each independent noise sign. For a clause-index set , its boundary is , the set of variables occurring an odd number of times among its supports. A level-l -witness is an -element index set with boundary ; the recovery matrix sums its label products over all such witnesses and has zero diagonal, as in (9).
What recovery requires beyond detection. Detection (Appendix B) only needs the first two moments of a scalar statistic, the average over even covers, whose overlaps are controlled by the counting estimate of Lemma B.7. Recovery needs four additional ingredients. (i) A global matrix bound: the statistic is the matrix , so the residual must be controlled in operator norm; entrywise variances do not suffice, because witnesses in different entries share clauses and can create localized spectral contributions. (ii) Canonical centering and trace moments: a Hoeffding decomposition of the residual (Subsection D3) ensures that only trace diagrams in which every clause index is repeated survive, and sequential exposure with pattern counting (Subsections D4–D5) bounds high trace moments, at the cost of the factor. (iii) Signal strength and alignment: the witness count (Appendix E) fixes the spike , and Weyl's and the Davis–Kahan inequalities turn spectral separation into overlap with (Subsection D6). (iv) Boundary sectors: witnesses whose endpoints lie in different support components vanish for even but not for odd , where they are removed by support-based trimming (Subsection D7). Recovery is also proved under i.i.d. clause sampling rather than the without-replacement model used for detection.
Here denotes the number of level- -witnesses, is its expectation, and is the corresponding degree scale. Thus is the rank-one signal strength. To separate the planted signs from the fluctuations, recall and the gauged matrix .
Its exactly centered residual is . This differs from the residual used in the recovery theorem only by conjugation and the deterministic diagonal shift in (18). Unless supports are explicitly conditioned on, expectations in this appendix average over both the sampled supports and the noise, with fixed.
This appendix proves Theorem 4 and Corollary 5, together with the odd-k trimming result Theorem D.38 and Corollary D.39. Ground-variable labels (elements of ) and clause-index labels (elements of ) are kept strictly distinct throughout. The even-k argument consists of the boundary, component, Hoeffding, diagram, exposure and connected-moment subsections D1–D6; the odd-k contraction is isolated in Subsection D7. Throughout, B denotes a positive constant depending only on k and l whose value may change from line to line, , , and for a random matrix M and an even integer we write
In this notation, is the matrix absolute value, tr denotes the trace, and is the operator norm. Thus measures a trace moment, while measures an operator-norm moment; the displayed inequalities let us pass from the former to the latter.
1. Setup, boundary probabilities and the exact entry variance
We fix the planted vector and condition on it throughout. Recovery uses the i.i.d. sampling convention of Section II:
-
the supports are drawn i.i.d. uniformly from — repeated supports are retained and carry independent labels, so that clauses are indexed by rather than by a hypergraph;
-
the noise is independent of the supports and of itself, with and .
Each observation is , and is as in (9). The two sources of randomness are tracked separately: the witness structure (the event ) depends only on the supports, whereas the witness value involves both supports and noise. This separation drives the entire argument.
For with we have , which gives the conditional mean (10); averaging over the supports and using permutation symmetry gives the rank-one decomposition (17) with the normalization (16). It is convenient to write, for and ,
Here we identify a boundary set with its indicator vector in , so vector addition is symmetric difference, denotes the zero vector, and is the Hamming weight of . The quantity is therefore the probability that independent supports have the prescribed boundary , and represents the two-point boundary . In particular, , and . Fixing and conditioning on the supports, the same computation as in Proposition B.12 gives
and averaging over the supports yields the exact overlap expansion in Proposition D.17. For , its endpoint scales include both and , as summarized by Theorem D.19. Such entrywise information is not sufficient for an operator-norm bound because overlapping witnesses can localize on a few rows. The remainder of this appendix therefore bounds high trace moments of the exactly centered residual of (18). We begin with the exact scale of the objects appearing in (D3).
Lemma D.15 (Prescribed boundary probability). For fixed r, k and prescribed w of Hamming weight h,
For feasible this is a matching estimate. The feasibility tests are
Proof. An ordered -tuple of supports has clause-ground-variable incidence slots. Each prescribed odd-degree variable consumes at least one slot and every other used variable consumes at least two; hence at most unprescribed ground-variable labels occur. Counting labels and dividing by gives (D4). For a feasible zero- or two-point boundary, reserve the prescribed slots. The remaining row counts have even total and no row count exceeds the sum of the others, so the slots can be paired so that every pair joins two distinct rows (for instance by repeatedly pairing slots from the two rows of largest positive count). Assigning a distinct fresh ground variable to each pair produces valid -sets and the matching lower bound. Parity and the single-row exception give (D5)–(D6).
Definition D.16 (Overlap probability with prescribed final boundary). For and a final boundary , set
Equivalently, is the probability-weighted contribution of two -clause witnesses that share exactly clauses and whose common final boundary is .
Proposition D.17 (Exact overlap formula). For ,
and the u = 0 summand vanishes.
Proof. Expand the square and group ordered pairs of witnesses by . Conditionally on the boundary of the common clauses, both private parts must have boundary . Shared signs are squared to one and private signs have mean , which produces ; the centering subtracts . At the two witnesses are independent and the two terms cancel exactly.
Definition D.18 (Active overlaps and variance proxy). An overlap size is active if there is a with such that and, in addition, . The associated variance proxy is
Theorem D.19 (Sharp second moment). Suppose for some constant A. Then
and the smallest active overlap is
Proof. For active the leading term of is and equals . Lemma D.15 together with gives the one-entry scale . Writing and , summing over all with this profile produces, apart from common factors, the exponent , with equality only at ; every other profile loses at least a factor . If is inactive, the unique maximizing profile vanishes, so the whole class carries this fixed power loss and is negligible for polylogarithmic . For the centering contribution obeys , smaller than the active scale by a fixed power of , and the term cancels exactly by Proposition D.17. Summing the entry variances over the off-diagonal entries gives (D10), and the classification follows from (D5)–(D6).
For and the active terms form a subset of a finite geometric progression whose endpoints and are both present; since are fixed, the sum is comparable to its larger endpoint, so that uniformly in and
The two terms of (19) are exactly the trace-moment counterparts of these two endpoints.
2. Support components and boundary sectors
For a witness let be the graph on its clauses that joins two clauses whose supports intersect; its connected components are called support components.
Lemma D.20 (Boundary-component dichotomy). If , then either one support component has boundary , or two support components have boundaries and . Every other component has empty boundary, and the two alternatives are disjoint.
Proof. Distinct support components use disjoint ground-variable sets, so their boundaries are disjoint. The statement lists the only partitions of the two-set into non-empty parts.
We call the first alternative in Lemma D.20 boundary-connected (bc) and the second boundary-disconnected (bd). Let and be the corresponding sub-sums of the gauged matrix , and set for . Then
Boundary-connected does not mean that the whole witness is connected: additional zero-boundary components are allowed.
Proposition D.21 (Disconnected-sector vanishing). If is even, or if , then identically.
Proof. Let be a support component consisting of clauses. Its total number of clause-ground-variable incidences is , and if denotes the number of clauses of containing , then
Hence a component with singleton boundary has odd, which forces both and odd; in particular no such component exists when is even. If then has size , so , and since is odd every singleton-boundary component contains at least three clauses. By Lemma D.20 a boundary-disconnected witness contains two distinct singleton-boundary components, hence at least six clauses in total. Therefore whenever is even or , and so is its centered version.
For intuition, let count connected -clause sets of boundary . At the matrix is, off the diagonal, minus intersecting component pairs: a low-rank contraction that is invisible to the entry-variance analysis of Theorem D.19. This term is removed exactly by the trimming in Subsection D7.
3. Hoeffding decomposition and trace diagrams
For the boundary-connected sector, we use the abbreviation for the order- term defined in (D18) below. The coefficient in (D16) counts the number of -element clause-index sets containing a given -element set.
Why a Hoeffding decomposition. Each entry of the residual is a U-statistic of order in the i.i.d. clause variables : a sum over -sets of clause indices of a fixed kernel. In the trace expansion of , witnesses in different factors share clauses in arbitrary patterns, and the raw kernel is not centered given its other arguments, so a term in which some clause index appears in only one factor need not vanish. Bounding all such terms without cancellation would lose powers of . The Hoeffding (ANOVA) decomposition rewrites the residual as a sum over orders of canonical U-statistics, whose kernels average to zero in each argument (Lemma D.23). In the trace expansion every clause index must then occur in at least two factors (Proposition D.24), which reduces the moment bound to counting a finite family of equality diagrams. The lower orders , weighted by , capture the fluctuations created by witnesses that share only some of their clauses.
Definition D.22 (One-witness and sector kernels). Write a clause variable as , where is its support and its noise sign. The symmetric one-witness kernel is the matrix
(D14) i.e. the contribution of a single unordered set of clause samples before summing over . Form the support-intersection graph on the argument positions , joining and when . Define by retaining the entry in (D14) when and lie in the same support component, and by retaining it when they lie in two different components; all other entries are set to zero, so that pointwise.
For and — a set of argument positions, equivalently clause slots, not of ground variables — put for and for , and define the projection
(D15)
Thus the arguments in are held fixed while every argument position outside is independently averaged over both its uniform k-support and its noise sign.
With , define the order-s canonical kernel and the multiplicity coefficient
Lemma D.23 (Sectorwise Hoeffding decomposition). Every is canonical: for each argument position ,
where is a fresh clause variable and the remaining arguments are fixed. Moreover
In a trace expansion, canonicality annihilates every clause-index equality block that occurs in only one matrix factor.
Proof. Fix and average (D16) over its th argument. Group the subsets into pairs and with . The projection does not depend on the th argument, while averaging the fixed argument in turns it back into a fresh clause variable, so . The two members of each pair carry opposite signs in (D16) and cancel, proving (D17).
Next fix one -clause witness with clause-index set . Möbius inversion on the subset lattice gives . Summing over all , a fixed -set occurs once for each -set containing it, i.e. times; grouping by proves (D18). Finally, if a clause index occurs in only one matrix factor of a trace product, condition on all other clause variables and integrate that one: the factor vanishes by (D17), hence so does the whole term.
Fix an even and Hoeffding orders , and let be the resulting slot set. Here labels a matrix factor in the trace product and labels one of its clause arguments. A partition of records which slots carry the same clause index. It is admissible if no block contains two slots with the same first coordinate and every block has size at least two; write for the set of admissible partitions and for the block containing . An injection assigns distinct clause indices to distinct blocks, hence realizes exactly the equality pattern encoded by . For factor set
whose entries are distinct by admissibility and injectivity, and define the diagram value
Proposition D.24 (Exact sectorwise trace-diagram identity). For and every even ,
Proof. Insert (D18) into each of the trace factors and choose ; since is symmetric, replace each unordered by an ordered tuple of distinct clause indices and divide by . Every term then assigns one clause index to each slot of , and grouping slots with equal indices produces a unique partition . Indices within one tuple are distinct, so no block contains two slots from the same factor; and a singleton block would make the term vanish by Lemma D.23. Hence every surviving is admissible. Conversely each pair reconstructs one term through (D19). Collecting terms with the same gives (D20), and summing over and proves (D21).
Thus the exact trace expansion retains arbitrary multiway blocks: different trace factors may reuse clauses exposed by earlier factors. To count the ground-variable labels of such a pattern we expose factors sequentially and charge only the clauses appearing for the first time.
4. Sequential exposure and pattern counting
Lemma D.25 (Sequential exposure). Suppose some clauses have already been exposed and let O contain every ground variable incident to them. Expose one further witness; let f be the number of its clauses whose indices have not appeared before (equivalently, the number of fresh independent supports), and let be the number of its ground variables outside O.
(a) If its boundary is with and in one support component, then .
(b) A singleton-boundary witness satisfies ; if it is connected, its root is old and f > 0, then .
(c) A zero-boundary witness satisfies .
Proof. The fresh clauses carry incidences in total. Let be the number of these whose ground-variable endpoint lies in ; since previously exposed clauses cannot contain a variable outside , the fresh clauses contribute exactly incidences to variables outside . Let be the number of boundary variables of the new witness lying outside . Every outside non-boundary variable has positive even degree, hence degree at least two, and every outside boundary variable has degree at least one, so
For (a), leaves at most outside. If then and (D22) gives . If then , and because lie in one support component a path from to must cross from to its complement; at the first crossing a fresh clause meets a variable of , so and the terms and cancel. For (b), and give ; in the rooted connected case, the root is the unique boundary variable, so , and if connectivity forces some fresh clause to meet an old variable, so . For (c), the boundary is empty, so ; together with , equation (D22) gives .
Corollary D.26 (Completed connected trace patterns). A completed product of q boundary-connected entries along a closed trace walk, using N independent supports and v ground variables, satisfies
Proof. Expose the first trace variable, then the witnesses in cyclic order. Each left endpoint is then old, so Lemma D.25(a) applies, and each support is new exactly once.
Lemma D.27 (Pattern count). There is a constant , depending only on , such that an expansion with factors has at most abstract clause- and ground-variable equality patterns, where . A pattern with sampled clause labels, actually used independent supports and ground-variable labels contributes at most
before deterministic coefficients.
Proof. An abstract pattern records which of the at most clause slots are equal and, separately, which of the at most incidence and trace positions represent the same ground variable, i.e. two set partitions of at most positions; since the number of partitions of objects is at most , there are at most of them. Once a pattern is fixed, its clause classes and ground-variable classes can be labeled in at most and ways, and each of the distinct independent supports carries probability ; as , for all sufficiently large .
Lemma D.28 (Tensorized completion of a canonical diagram). Fix , an even , and a surviving clause-index partition of the core slots in the expansion of . Let be its number of blocks. For factor , choose in the expansion of the canonical kernel, and put
Let be the number of clause-index blocks containing at least one retained slot and let be the number of completely discarded blocks. Then the corresponding projection term has the following properties.
(i) On an enlarged product probability space it is the expectation of a product of q genuine boundary-connected l-clause kernels. Retained slots in the same block use the same sampled clause variable, and every omitted slot is filled by a fresh auxiliary clause variable; all auxiliary variables are mutually independent and independent of the sampled variables.
(ii) The number of independent support draws and the exponent used in the sampled clause-label upper bound are respectively
Every block of a surviving partition has size at least two, so and
(iii) Distinct independent draws remain distinct probability factors even if their realized k-supports coincide. After fixing a ground-variable equality pattern with v labels, its absolute contribution, including the sum over sampled clause indices and the factors , is at most
The pattern may contain additional zero-boundary support components; they are included in the same N draws and v labels.
The projection signs have absolute value one, there are at most choices of , and the abstract pattern count is bounded by Lemma D.27.
Proof. For a fixed factor, Definition D.22 writes the selected projection as an expectation over its omitted clause arguments. Conditional on all retained sampled clauses, the product of these expectations equals one expectation over mutually independent collections of auxiliary arguments. This is the product-measure tensorization identity. It proves (i) and gives one independent draw for each of the retained blocks and one for each of the auxiliary arguments, proving the formula for .
The injection assigning sampled clause indices to the blocks has at most choices, while . This proves the formula for . A completely discarded block contributes all of its slots to ; by canonicality every surviving block has size at least two. Hence , and direct substitution gives , proving (ii).
The source variables just counted are independent draws from . Equality of two realized support values is therefore an event in the ground-variable equality pattern, not an identification of their source variables; it still carries two factors . Once a pattern is fixed, label its ground-variable classes in at most ways and bound . This proves (D27). Each completed kernel is boundary-connected by construction, but its other support components may have zero boundary; no step of this count discards them. The remaining coefficient and pattern-count statements follow from the Möbius expansion and Lemma D.27.
5. The boundary-connected moment bound
Write . Since , the density plays the role of the natural expansion parameter, and at fixed .
Theorem D.29 (All connected Hoeffding orders). There is a constant , depending only on , such that, for , , , even , and all sufficiently large (depending on ),
If and s < l then .
Proof. Since is even and symmetric, , and by (D18)
Regard the arguments of each of the kernels as core slots. Grouping slots with equal clause index gives an equality partition with, say, blocks; singleton blocks vanish by canonicality (D17), before absolute values are taken, and the slots of one factor lie in distinct blocks. Hence
Fix a surviving partition and expand each canonical kernel via (D16): a term chooses , keeping those arguments and averaging the others out. Apply Lemma D.28. Its notation gives , , and . Moreover,
by (D30).
Corollary D.26 allows at most ground-variable labels; this includes every additional zero-boundary component. By Lemma D.28, a fixed completed pattern is bounded by
using and . The two bounds on give when and when . In factor , averaging the omitted noise signs contributes at most , so the product over factors is at most . Finally Lemma D.27, together with the choices of the sets , gives at most terms. Together with the factor from a fixed pattern, the factor is absorbed into the base by enlarging , since . Thus the total is at most times the displayed density and noise factors. Taking th roots and using yields (D28). If and , every projection averages at least one omitted noise sign, so .
Canonical cancellation must precede completion: it removes singleton core blocks without taking absolute values.
We use the following standard consequence of the self-adjoint matrix Bernstein inequality [28]. If are independent centered self-adjoint matrices with almost surely and , then, for every ,
It follows by integrating the usual matrix Bernstein tail bound; the numerical constant B is universal.
Lemma D.30 (Improved first projection for ). For even and , with the constant of Theorem D.29,
Proof. For a fixed support let be the probability that , completed by fresh supports, forms a boundary-connected witness of boundary , and put . If then Lemma D.15 gives . Indeed, its slot count uses at most positions and hence at most equality patterns, which is bounded by because . Block row sums therefore yield
The law of is invariant under permutations of , so the non-negative matrix has constant row sums and therefore
Now with independent centered summands , and the matrix Bernstein moment inequality (D32), with the variance and norm proxies of (D34)–(D35) gives (D33).
Theorem D.31 (Connected-sector bound). For , , even , , and all sufficiently large (depending on ),
Proof. By (D18) and the triangle inequality . Sum first the orders . If , the last assertion of Theorem D.29 gives for every , so only the term remains and all three displayed bounds follow immediately. Assume below. For , Theorem D.29 gives, suppressing the common prefactor , the geometric sequence with ratio , so that regardless of whether the ratio exceeds one
the fixed factor being absorbed into . Likewise for with ,
It remains to absorb . If , dividing the first term of (D33) by the relevant endpoint gives, up to a factor already present in , the quantity for (using , ) and for ; for the second term the corresponding ratios are and . The factors , and are absorbed into , so is dominated by the term of (D37) or (D38). Finally, if , apply the dense branch of Theorem D.29 to all and repeat the endpoint estimate with endpoints and .
Corollary D.32 (Level-explicit dense deviation). Fix , , and , and let . There is a constant , independent of , such that, whenever , for all sufficiently large ,
Proof. For an even q, Theorem D.31 and Markov's inequality give
Choose the least even integer . For fixed l and sufficiently large n, this choice satisfies , , and . Taking
proves (D39) after enlarging .
6. Even-k residual, signal-to-noise and the threshold
Proposition D.33 (Even-k residual). Fix even , an admissible , , and even . For all sufficiently large depending on , and
Proof. Proposition D.21 gives for even . For , insert the dense branch of Theorem D.31 and use the finite- calibration of Lemma E.41. Its large- condition is automatic here for sufficiently large : Lemma D.15 gives , so bounds away from zero and hence . For , use the sparse branch and the facts that and imply and . Theorem D.19 and show, when , that the same dependence on is sharp up to fixed constants (for only the endpoint is active). At the corollary's threshold one may take any fixed .
Proof of Theorem 4. Estimate (19) is exactly (D40). For the deviation bound, let and abbreviate . Using and Markov's inequality, for any
where the factor from (D40) has been absorbed into . Choosing with large enough that the bracket is at most (possible because , so ) gives . Adding the deterministic diagonal shift of (18), which costs at most , turns this into the bound (20) for , with probability at least .
For the correlation bound, work in the gauged frame: , so with the decomposition (17) reads
The multiple of the identity shifts the whole spectrum and does not affect eigenvectors. On the event , and under the assumption , Weyl's inequality separates the top eigenvalue of from the rest of its spectrum by a gap of at least , so that eigenvalue is isolated. The Davis–Kahan theorem [29, 30] then gives, for a unit top eigenvector ,
and gives (21). Conjugating back by maps to and leaves every norm involved unchanged. Choose the global sign of so that . With , the correlation bound gives . Each disagreement between and contributes at least to this squared distance, proving (21). Finally, implies , so the displayed binary overlap is strictly positive.
The exact signal-to-noise ratio is . Comparing with the two endpoints in (20) gives respectively and . Since , the latter is binding, which is (22).
Proof of Corollary 5. Let be the constant in Corollary D.32, let , and put . The witness asymptotic (E23) implies
Consequently the two suprema over admissible ,
are finite: their summands tend respectively to zero like and . Choose larger than a fixed multiple of .
On the event of (D39), write
Since , condition (23) and the definitions of give, for all sufficiently large ,
Indeed, the correlated endpoint uses , while the Wigner endpoint uses ; the extra powers of are nonnegative because .
For even , , so . Adding the deterministic diagonal shift costs . For , the preceding display yields
Repeating the Weyl, Davis–Kahan, and sign-rounding argument of Theorem 4 with radius gives the stated overlap. Corollary D.32 gives failure probability at most .
The large-l asymptotic (E23), together with the -independence of , identifies the algebraic large-l recovery curve without any hidden level-dependent prefactor. The lower bound on in the fixed-level theorem is still not uniform in growing , and the exponent grows with ; thus no theorem for is claimed.
7. Odd k: trimming the boundary-disconnected sector
Throughout this subsection is odd and is even. For the sector need not vanish. Instead of bounding its localized low-rank contribution, we remove it exactly by deleting a small, support-determined set of coordinates. For this set is empty and no trimming is needed; for , the resulting threshold contains the additional fixed-level factor (Corollary D.39).
Remark D.34 (Why the untrimmed matrix is not used). This heuristic is not used below. At , let be the gauged signed count of connected three-clause sets with boundary . Apart from sparse compatibility corrections, is off the diagonal. In the sparse-certificate regime , which includes fixed and polylogarithmic , Lemma D.15 gives expected three-clause singleton-boundary certificates. Neglecting lower-order endpoint collisions then predicts and a norm of the same order, whereas . Thus the untrimmed top eigenvector can localize at polylogarithmic .
Definition D.35 (Singleton-boundary set and trimmed recovery matrix). For even l define
Let and
We regard as acting on , equivalently as the principal submatrix indexed by . The trimmed estimator takes the signs of its top eigenvector on and assigns arbitrary signs on .
Only odd values of can occur in (D41); moreover because one -support has boundary size . Hence for .
Lemma D.36 (Exact removal of the disconnected sector). Every nonzero entry of satisfies . Consequently
Proof. If is a boundary-disconnected -witness, Lemma D.20 gives disjoint support components with boundaries and . Each has odd size at least three, so . Thus , proving the claim.
Lemma D.37 (Size of the singleton-boundary set). For even and ,
Consequently, for every ,
Proof. A union bound over the certifying index sets and Lemma D.15 with h = 1 give
The second bound absorbs the fixed number of terms into , and Markov's inequality gives the tail estimate.
Let count boundary-connected witnesses and set
Permutation symmetry gives
Proposition E.44 shows that with .
Theorem D.38 (HCE weak recovery for odd after trimming). Fix , even , and , and suppose and . Put and . The conclusions below hold for all sufficiently large depending on .
(i) For every even ,
For every fixed , with probability at least ,
(ii) If , let ; for set . On the event in (D47) and , suppose
Then the top eigenvalue of is isolated. If is a unit top eigenvector, then
The rounded trimmed estimator satisfies
In particular it achieves weak recovery whenever the right-hand side is positive. The probability of the joint event is at least
with in the second case.
Proof. Theorem D.31 is valid for every . Repeating the proof of Proposition D.33 for gives (D46), and the same Markov argument gives (D47).
Work in the gauged frame and write and . By Lemma D.36 and (D45),
Since , on the deviation event, while . Weyl and Davis-Kahan therefore give the eigengap under (D48) and for the gauged top eigenvector , viewed on and extended by zero on . Hence
which proves (D49).
For rounding, orient the gauged top eigenvector toward . Its squared distance from is at most , so at most retained coordinates have the wrong sign. The discarded coordinates contribute at worst to the absolute overlap, which yields (D50). The probability statement follows from Lemma D.37 and a union bound.
Corollary D.39 (Smooth trade-off for recovery, odd ). Fix , even , , , and . There is a constant , independent of , such that for every fixed even , with , the following holds for all sufficiently large (where the lower bound on may depend on ). Let satisfy, if , , and suppose
Then, for all sufficiently large , the trimmed estimator has overlap at least with probability .
Proof. For take ; for take . Proposition E.44 gives . Apply Corollary D.32 to . The two endpoint comparisons are the same as in the proof of Corollary 5: in the correlated endpoint the factor cancels against the displayed ratio , while the Wigner endpoint is no larger because . Thus the same finite suprema show that one may choose independently of so that exceeds the level-explicit radius by a factor for all sufficiently large . Lemma D.37 gives , and the deviation event fails with probability at most . Finally , so the proof of Theorem D.38, with this level-explicit radius, gives the stated overlap.
For fixed k followed by large even l, Proposition E.44 and (E23) give
Since is independent of l, this is the algebraic large-l recovery curve without any hidden level-dependent prefactor. The lower bound on n is still not uniform in growing l.
The side condition holds in the fixed- threshold regime, where C is polylogarithmic. No claim is made here for arbitrary n-dependent .
a. Computing . The set can be computed with the same meet-in-the-middle machinery used for HCE:
-
Fix an odd . Hash every with under the key .
-
For every with and every , look up the key .
-
Declare as soon as a lookup succeeds.
No disjointness check between and is needed. If , then has and ; the lower bound follows because a singleton-boundary set has odd size and cannot contain one clause when . Hence . Conversely, every certificate of odd size has a disjoint split of the displayed sizes, so the procedure computes exactly. Its expected cost is
time, below the level-l MITM cost. Trimming then only removes the corresponding rows and columns before the eigensolve; equivalently, witnesses with an endpoint in need not be accumulated.
8. Pure-noise refinement
Proposition D.40 (Improved pure-noise bound). If and then, for every even ,
Consequently, at zero bias the full residual has high-probability upper scale .
Proof. All proper noise projections vanish, so the first assertion is the case of Theorem D.29. In the full trace expansion a clause occurring an odd number of times has zero noise expectation, so the number of distinct clauses is at most . Exposing a general boundary-two witness along the trace with its left endpoint old, at most one outside ground variable can have odd degree, so a step with new clauses introduces at most new ground variables; starting from one trace root gives . By Lemma D.27 a pattern weighs at most ; count patterns and take th roots.
Appendix E: Counting the Witnesses
It is useful to separate the purely combinatorial count from the random sampling of clauses. Fix a pair and let
By symmetry this does not depend on , so we write . In the Poissonized inclusion model, where every -set is included independently with probability , the expected number of witnesses for a fixed pair is exactly
For the i.i.d. clause model used in the main text, clause indices are distinct but their supports need not be. The distinct-support contribution is , while repeated-support tuples must be counted separately. They can contribute at the same power ; their relative weight is small only in the subsequent large-l comparison, not in the limit at fixed l.
1. The parity constraint
Identify every support with its indicator vector in . The witness condition is : every coordinate outside has even multiplicity, while and have odd multiplicity. Taking cardinalities modulo 2 gives the necessary condition . Hence unless is even: for odd only even contributes, while for even every is admissible.
2. The exact count for l = 2
For two supports, if and only if the -sets agree outside and differ on both distinguished coordinates. Thus there is a unique -set with , and for ,
Consequently, in the i.i.d. clause model,
and to leading order
3. The exact count for l = 3
The parity constraint forces even. Assume even and . Given two supports, the third is determined by
so an ordered triple is specified by subject to ; for the three supports are then automatically distinct. Let and . Since , (E6) gives , so is equivalent to . Classify coordinates by membership,
with , and . If records where fall, then and . Filling the remaining slots with the other coordinates gives the exact count
(E8)
terms with negative factorial arguments being omitted. The first factor in the summand counts the ways of choosing summing to 2; the second counts the ways of filling the remaining slots with the remaining variables. The factor 1/6 converts ordered triples to unordered families. Hence for even , and for odd . The leading part of (E8) is
so that .
4. General fixed l: multigraph counting
We now count the leading ordered i.i.d. support tuples entering , for any fixed with even. Support values may repeat, although the sampled clause indices are distinct. In a collapsing tuple, a generic coordinate must appear in an even number of positions, while and each appear an odd number. The largest power of comes from using as many distinct generic coordinates as possible: every generic coordinate appears exactly twice and each of exactly once. Any coordinate with multiplicity , or a distinguished coordinate with multiplicity , reduces the number of free generic coordinates and is lower order.
Label the tuple positions . A generic coordinate appearing in supports and is an edge of a loopless multigraph on ; let be its multiplicity. Let be the support containing and the support containing , allowing . Since every support has size ,
and the number of generic doubled coordinates is forced to be
For fixed and feasible , choosing and assigning the generic coordinates contributes . Let be the number of ordered support tuples with boundary . Summing over labeled configurations gives
This is valid for fixed with , the relative error being controlled by the birthday-type collision term . The sum does not require the incidence rows of two tuple positions to differ, so it already includes repeated support values. For example, at the choice , , , is precisely the leading configuration with the first two supports equal.
The checks for recover the formulas above. For the single edge has multiplicity and the two choices give . For , writing , the unique solution is , , , which yields in (E9).
5. The sampled-witness constant
For a fixed clause-index set, its ordered supports are independent uniform k-sets, so the unrestricted tuple count above gives
Substituting (E12), , and yields
Thus repeated supports enter the full i.i.d. coefficient exactly once, through the same unrestricted multigraph sum. The factor comes from the sampling normalization .
Lemma E.41 (Finite-n witness calibration). Fix admissible . Uniformly over integers , if , then
Consequently there are and such that, whenever and ,
Proof. The displayed estimate for counts all leading incidence patterns. Every remaining pattern has at most free generic ground-variable labels; there are only finitely many such patterns at fixed , so their total is . Now use
in , and multiply by . The two-sided bound follows after increasing so that the relative error is at most .
6. Asymptotics of
We evaluate (E14) for large l and fixed k. The multigraph sum has a generating-function form: let
This coefficient is exactly , because records how many generic variables are shared by supports and . For a fixed ordered pair the degree sequence is . There are two symmetry classes: if there are choices and the degree sequence is up to permutation; if there are choices and it is . Therefore
To extract the exponential-in-l scale, compare with the configuration model in which loops are temporarily allowed; replacing (E16) by and writing ,
Lemma E.42 (Loopless configuration coefficient). Fix . For either degree sequence or ,
In particular, for all sufficiently large , for some .
Proof. Attach labeled half-edges to each vertex and choose a uniform perfect matching of the half-edges. Dividing the number of all matchings by gives , while restricting to matchings with no pair internal to one vertex gives . Thus , where is the number of internal pairs.
For every fixed , the contribution to from choices of vertex-disjoint internal half-edge pairs is
where is the th elementary symmetric polynomial. Choices sharing a half-edge contribute . Since all but at most two degrees equal , the display tends to . Hence the factorial moments of converge to those of Poisson((k-1)/2), so .
For both degree sequences in (E17), 2D = lk - 2 and
Their ratio is , while the prefactors in (E17) differ by . Thus the diagonal contribution is smaller by and
Using Stirling's formula, and , while the fixed factors vanish under the l-th root. Hence
and multiplying by the sampling factor gives the main-text constant
7. Boundary-connected witnesses for odd k
For a feasible configuration in (E14), let be the multigraph on with edges between and . In a leading tuple, two support positions intersect exactly when they are adjacent in , so the tuple is boundary-connected exactly when and lie in the same connected component of (with allowed). Define
This is a restriction of the same unrestricted ordered-tuple sum that defines ; repeated support values are therefore included exactly once in both constants.
Lemma E.43 (Separated boundary vertices are rare). Fix odd and even l. In the weighted multigraph sum defining , the fraction of configurations with in different connected components is .
Proof. Fix . The degree sequence is and otherwise, with total degree . Attach labeled half-edges to vertex and choose a uniform perfect matching. Conditional on the no-loop event , the resulting multiplicity vector has weight proportional to . Lemma E.42 gives uniformly in .
If and are disconnected, the component vertex set of is closed under the pairing, contains but not , and has odd size with . For fixed such , put . Then
There are choices for V. Pairing V with its complement and applying a union bound gives
Vandermonde gives
The term is . For , convexity of on bounds the remaining sum by , which is of the same or smaller order. Dividing (E25) by proves the claim.
Proposition E.44 (Boundary-connected witness constant). Fix odd and even .
(a)
For equality holds between the two constants.
(b) As through even values,
Consequently .
Proof. Part (a) follows by repeating the leading-pattern count of (E12) with the connectivity restriction in (E24). At , positivity follows from the exact count (E3). For , it follows from the feasible class, in which both boundary variables lie in one support position. Equality for follows from Proposition D.21.
For part (b), configurations with are always boundary-connected. Lemma E.43, applied to every class, shows that the complementary weighted sum is at most . This proves the ratio estimate, and the th-root conclusion follows from (E23).
Appendix F: Operator Comparison with Kikuchi and Square Constructions
This appendix shows that the HCE matrix, the Kikuchi matrix and the square construction are all restrictions of one operator on the Boolean cube. The methods differ only in whether the restriction to a slice is applied before or after the degree- polynomial is taken.
We work in the Hilbert space on the -length Boolean cube . Let be the operator that acts on the basis state corresponding to string as . For a clause index let , and similarly for a subset of clauses let . Then define the instance operator
In quantum terms, this is the Hadamard transform of the diagonal XOR Hamiltonian corresponding to the instance.
Let be the orthogonal projection onto the span of Hamming weight basis vectors. Then the level- Kikuchi matrix is simply the Hamming weight slice
Now define the elementary clause operator
The HCE side can be expressed as slices of this operator too. In the detection model, the discriminator can be written as
while the recovery matrix is
The operators and can be related by a formal power series:
On a simultaneous eigenvector of the commuting involutions , suppose exactly eigenvalues equal -1. Then has eigenvalue , while has eigenvalue . Consequently,
where is the unnormalized Kravchuk polynomial.
Thus HCE is a matrix-valued degree- low-degree polynomial in , while Kikuchi is a constant Hamming weight slice of the same operator. HCE is not in general a power of one fixed Kikuchi slice: in the intermediate Boolean-cube boundaries are unrestricted, whereas powers of force every intermediate state to remain on the -slice. For odd the balanced slice vanishes because the symmetric difference of two -sets has even cardinality, while odd-level HCE can be nonzero.
Appendix G: Meet-in-the-Middle Construction and Complexity
A direct implementation of (9) enumerates all -tuples of clauses and has runtime when . This naive cost is reduced by the standard meet-in-the-middle (MITM) strategy shown in Figure 2. Put and , and aggregate rather than list the hash buckets:
The raw MITM matrix is then
which takes time if every pair is probed for each -set. The key-scan construction works for any : also build , and write for . Each key in has size at most . To find partners of the same size, for each and , , probe at . For partners of different sizes, delete every pair from each and probe , and similarly delete pairs from keys in and probe . These exhaust all cross-table pairs of boundaries with . When , the tables coincide: same-size partners are visited twice and different-size partners are visited twice by scanning both tables. When , each cross-table match is visited once. Weighting accordingly recovers exactly. There are replacement probes per key in and deletion probes per key in either table. Thus building the tables and the raw matrix costs time and memory. For even this is time; for odd it is time. An ordered dictionary on the sparse keys gives these bounds deterministically (including logarithmic lookup overhead); hash lookups give the usual expected-time implementation. They hold for every input, not only random supports. Terms with are removed algebraically. If , the common labels square to one and the remaining labels form a lower-level witness. Counting the choices of the common labels and the split of the remaining labels gives the exact recurrence
Here is defined by (9): it vanishes for , while for it records the observed clauses with support . Computing the levels recursively therefore recovers the exact matrix (9), without enumerating the possibly individual witnesses. The deterministic total time is and memory . For odd , the table-construction term is not generally bounded by when . These are bounds for the stated probing procedures; the experiments of Section VI use the original all-pairs probe rather than the improved key scan. The resulting complexities are collected in Table I.
The enumeration task underpinning HCE, given a list of vectors in , find size- subsets with a prescribed total XOR, is an instance of the -XOR problem, a relative of generalized birthday and subset-sum problems [24]. The MITM procedure above is a standard exact generic baseline for this enumeration problem. We do not claim that its exponent is optimal for all-witness aggregation on random planted instances, where additional structure may be exploitable.
The structural difference is that HCE always performs spectral recovery on an matrix and pays for clause-product enumeration, whereas Kikuchi avoids the enumeration but uses memory for a lifted operator on a -dimensional space. For and matched even levels , the improved HCE bound and the stated Kikuchi bound have the same leading runtime exponent , not an asymptotic runtime separation. The representations nevertheless differ substantially, and this matters at the tested sizes. In our experiments, which use the original all-pairs HCE probe, HCE has substantially lower memory usage and runtime; for example at , , level-6 Kikuchi becomes computationally prohibitive (roughly 5.5 hours per instance), whereas a level-6 HCE run with eight probe threads completes the densest tested instance in roughly 300 seconds. The two timings use different thread budgets (Appendix I) and are indicative rather than resource-matched.
Appendix H: Decoding Pipelines Used in the Experiments
Theorem 4 concerns the bare spectral estimator of Figure 2: , where is the top eigenvector of the single-level matrix . The implementation used in Section VI wraps this estimator in data-dependent post-processing, and the Kikuchi baseline uses its own decoder. These steps are specified here to distinguish the practical pipelines from the estimators analyzed in Section V.
a. HCE. For a target level , the implementation retains the layers produced during enumeration. The spectral step is applied to the combined matrix
(H1) where is a data-driven estimate of , so that each layer is weighted by an estimate of its signal strength. No knowledge of is used.
Layer weights. Alongside the enumeration returns the witness counts of (10); these are obtained by replacing every label by 1 in the same hash computation. Write with . Then , where the sum runs over pairs of level- witnesses of . The diagonal terms contribute exactly 1 each. For the exact noise factor is . The implemented weighting rule heuristically replaces every off-diagonal factor by its clause-disjoint value , giving
(H2)
The term is the exact conditional expectation of at . Solving the heuristic relation (H2) for gives
A layer whose Frobenius mass does not exceed its noise floor is therefore discarded, as is a layer with . For odd k and odd the layer is identically zero and receives weight zero. The cap at 1 reflects . This weighting rule is an experimental heuristic and is not used in the recovery theorem.
Candidate bitstrings. We compute the full eigendecomposition of and retain the eigenvectors of its three largest algebraic eigenvalues, together with an eigenvector of its smallest eigenvalue. Using , the candidate set consists of
-
the eight vectors ;
-
for , the rotated rounding with , , that violates the fewest clauses among these 180 angles.
The rotations address cases where the planted direction is split across nearly degenerate top eigenvectors. Final bitstring. Each candidate is scored by
and the candidate with the smallest score is returned as ; ties are broken by the fixed order above. Selection uses only the observed clauses, never the planted x or . It is nevertheless in-sample post-processing, so the resulting curves need not equal those of the bare single-level estimator in Theorem 4.
b. Kikuchi. A single level is used, with no multi-level combination, candidate selection or local search.
Eigenvector combination. Let be unit eigenvectors of the three largest algebraic eigenvalues of , with the signs returned by ARPACK. The implemented pipeline combines them with equal weights,
using if the sum vanishes. This implementation rule is not invariant under sign changes or basis rotations within a nearly degenerate eigenspace; the reported figures should therefore be understood as results for this specified numerical pipeline, not for a basis-invariant decoder.
Voting matrix. In the planted model the informative Kikuchi eigenspace is correlated with , where . For an -set and , the product is therefore a noisy estimate of . Define by if and otherwise, and set
The diagonal carries no pairwise sign information and is removed. The factorization avoids looping over pairs of Kikuchi coordinates and uses memory for W.
Final bitstring. We compute the top eigenvector z of V by dense scipy.linalg.eigh and return , with .
Appendix I: Experimental Protocol
a. Instances. For each and seed we draw uniformly, set , draw independently and uniformly from (the recovery model of Section V), and set with . The same instances are used for every method.
b. Kikuchi baseline. For even and we form on . No degree normalization, row pruning or diagonal shift is applied; the diagonal is zero by construction. The generated entries are stored as COO records, using 32-bit row and column indices and 8-bit values, and the matrix is applied without conversion to a dense representation. Repeated clauses may generate duplicate coordinates, so this count is a count of stored records, not necessarily of distinct nonzero coordinates. The three largest algebraic eigenpairs are computed by ARPACK Lanczos (scipy.sparse.linalg.eigsh, which=LA, ncv = 20, tolerance set to machine precision). These eigenvectors are mapped to an estimate of by the voting procedure in Appendix H. No local search is applied.
c. HCE. The layer matrices used by the implementation are computed exactly with hash tables of XOR boundaries and the original all-pairs probe, not the improved key scan of Appendix G. Products containing a repeated clause are removed algebraically; this is the implementation counterpart of the overlap recurrence (G1). The resulting lower-level matrices are also retained for the multi-layer decoder of Appendix H. The spectral step uses dense numpy.linalg.eigh on an matrix. No trimming is performed in the reported experiments: every odd-k run has signal only at , where .
d. Resource metrics. Runtime is the wall-clock time of one solver call, from receiving the instance to returning , including matrix construction or enumeration, eigensolve and decoding, and excluding instance generation and I/O. Memory is the recorded payload size of the largest persistent data structure: the COO records for Kikuchi and the size- hash table for HCE (all memory figures use ). This is a proxy for the dominant memory term of Table I, not the process peak resident set size. It excludes the interpreter, transient buffers, allocator overhead and the Lanczos workspace (ncv ) 8 bytes for double-precision Kikuchi vectors). The proxy can therefore undercount either implementation and should be read only as a comparison of the selected persistent structures.
e. Hardware and software. All timings were obtained on Intel CPUs with Python 3.11, NumPy 2.4.2 and SciPy 1.17.1. The Kikuchi baseline is single-process and uses no explicit parallelism; HCE uses one probe thread except for the level-6, n = 50 timing quoted in Appendix G, which used eight probe threads. These threads independently compute the matrix element calculations for each pair.
f. Repetitions. Heatmap cells are means over 10 instances, and runtime curves are means over 3 instances. No uncertainty intervals are reported, so the runtime curves are descriptive. The Kikuchi memory proxy is a deterministic function of , namely bytes before coalescing duplicate COO coordinates. The HCE proxy at is determined by up to coincidences of XOR keys, so additional repetitions would have little effect on the plotted memory curves.
Appendix J: Additional Experimental Results
This appendix collects the recovery heatmaps for k = 5 and k = 6 referred to in Section VI. All settings (instance generation, seeds, number of repetitions) are identical to those of Figure 3.
Figure 6 shows HCE overlap for at levels . Since must be even, odd is inadmissible for odd and the corresponding recovery matrices vanish identically; the flat rows at and are exactly this parity obstruction, and they are a prediction of the theory rather than an artifact of the implementation. Symmetric Kikuchi does not apply directly to odd , so no matched baseline is plotted. Figure 7 repeats the matched-level HCE/Kikuchi comparison of Figure 3 at , where the two methods again track each other closely.

FIG. 6: HCE overlap heatmap for , , levels . Kikuchi does not directly apply to odd . Odd levels carry no signal because must be even: this can be seen by noting that the odd levels have the same recovery as the lower even levels (e.g. heatmap of level 3 is exactly the same as that of level 2)

(a) Kikuchi spectral recovery.

(b) HCE recovery.
FIG. 7: Recovery overlap for , , averaged over 10 random instances with identical seeds across methods.