WorksComputer Science
A Short Note on Algorithms For The Noisy -XOR Problem
Abstract
This mostly expository note studies the sample-noise regimes in which the testing problem for noisy -XOR in dimension can be efficiently solved. Concretely, we ask what pairs admit algorithms running in time where is the number of samples and is the noise distribution. The current state-of-the-art algorithms are: I. A folklore algorithm when based on Gaussian elimination; II. A folklore algorithm when based on the birthday paradox; III. A recent algorithm in the regime based on a reduction to the first algorithm [DJ24,CSZ24]. IV. Extending [AF09], we strictly improve the last regime to These algorithms correspond to efficiently finding short cycles in uniform hypergraphs and can be equivalently phrased as algorithmic Moore bounds.
Figure 1: Sample–noise tradeoffs for noisy -XOR, equivalently interpreted through finding cycles of length . Regions strictly above and to the right of the curves are “easy” and handled by the respective algorithms. The Moore bound does not imply hardness for noisy -XOR but is an obstruction to the meta-approach described in Lemma 1.1, which underlies all four algorithms.

Figure 1. Sample–noise tradeoffs for noisy -XOR, equivalently interpreted through finding cycles of length . Noise versus samples. Information-theoretically impossible. Moore Bound (unknown for -XOR). Unknown. Sample exponent (). Noise exponent (). I. Gaussian elimination, , . II. Birthday paradox, . III. [DJ24; CSZ24], . IV. This note (extending [3]), . Moore Bound, . Bounds shown at exponent level. Schematic spacing: .
Introduction
The noisy -XOR problem is informally “linear regression over where each sample is uniformly random -sparse” (we define it rigorously below). Perhaps surprisingly, unlike standard linear regression over , the problem exhibits a substantial information-computation gap when . In some “information-theoretically possible regimes”, there is evidence for near-exponential hardness of the problem [28]. The simple linear structure combined with strong hardness makes the noisy -XOR problem useful across Learning Theory [26, 15, 17, 5, 18, 12, 11 BLR+26], Cryptography [2 DJ24, 22, 27], and Average-Case Complexity [20, 28].
Despite the prominence of the problem, we still don’t know the answer to a basic question: In what regimes is noisy -XOR easy? The goal of this note is to summarize the (surprisingly limited) progress towards this question. We concretely focus on the regime of small sparsity , inverse polynomial noise rate , and polynomially many equations , . We also interpret easy as the existence of algorithms running in time . This is for two reasons. First, a lot of the interesting behavior is when (Figure 1), so time is polynomial in the input size. Second, the recent work [6] gives evidence for an running-time lower bound on the noisy -XOR problem.2 The problem has testing, search, and refutation versions. We focus on testing and discuss the other two at the end.
Problem 1 (Testing Problem For Noisy -XOR). Suppose that are natural numbers with , for some . Let be the uniform distribution over -sparse vectors in . Suppose also that and the noise is . The testing problem is between the following two distributions over :
The goal is to design an algorithm running in time and distinguishing the two distributions with constant advantage, i.e.
The constant is unimportant and can be boosted to any other constant by taking constantly many more samples, or to by taking times more samples. Since we care only about the exponent , this change of the advantage is inconsequential.
We mention, without proof, that whenever , there is a consistent test between and based on the largest number of simultaneously satisfiable equations. This note is dedicated to exploring when a “computationally efficient” test with this property exists.
The Attack: Even Cycles and An Algorithmic Moore Bound. A natural approach to Problem 1 is based on finding linearly dependent rows of (also known as even covers or cycles). This meta-approach underlies many attacks on noisy -XOR and related problems including the Kikuchi matrix approach [5, 19 ABK26] and the BKW algorithm [9, 24, 23] in addition to the simple algorithms discussed below.
Lemma 1.1. Suppose that there is an algorithm running in time which on input finds with probability at least a set of rows of , indexed by that sum up to . We claim that for any constant , there is an testing algorithm for the noisy -XOR problem with , .
Proof. Let be the set of coordinates returned by the algorithm. Then, under , we have that as is independent of and has unbiased coordinates. Under , on the other hand, . This is the XOR of at most independent variables, which is . This distribution can be easily distinguished from with advantage .
All the algorithms below and in Figure 1 are based on Lemma 1.1.
We note that the shortest cycle given equations is of size roughly . Thus, a shortest-cycle oracle would succeed in the regime . This bound is known as the Moore bound and is known to hold also for worst-case (related to the semi-random version of the problem, see § 3) [HKM23; BKN+26; Fei08]. When such cycles can be found in time is a wide-open problem for both random and worst-case . Even more mysterious is the regime when the noise is but cycles of length do not exist, so one cannot rely on the approach of Lemma 1.1 even with a cycle-finding oracle.3 We outline as an interesting problem whether the converse to Lemma 1.1 holds.
Open Problem 1. Suppose that there exists an algorithm which solves the testing Problem 1 for some in time . Does there exist an algorithm running in time which on input with finds a non-trivial cycle of length ?
Algorithms
We now present the four algorithms from Figure 1 which are all based on Lemma 1.1.
I. Low-Noise Algorithm [Folklore]. When , the first rows of are linearly dependent. Hence, there is a cycle of length . It can be efficiently discovered in time via Gaussian elimination. Combined with Lemma 1.1, this shows that the regime is easy.
II. Birthday Paradox Algorithm [Folklore]. Another folklore algorithm is based on the birthday paradox. Suppose that . As the number of distinct rows is , with a constant positive probability, there exist two rows among the first rows of that coincide. Those two rows form a cycle. Combined with Lemma 1.1, this shows that the regime is easy.
III. Algorithm of [DJ24; CSZ24]. In these two recent works, the authors adapt the folklore algorithm resolving to the regime . The algorithm is the following. Consider only the first columns of . Then, maintain only the rows of whose support is in those columns. A simple first and second moment calculation shows that the expected number of samples retained is . Restricting to those samples and columns we can apply the first algorithm.
For completeness, we give the first moment calculation. Independence across samples then implies the result. The probability that the support of a sample falls fully in the first coordinates is . Taking the expectation over the samples, we get an expected number of samples with support in the first columns
Hence, whenever , there are at least samples with support in the first columns as desired.
IV. Improved Algorithm Based on [3]. Finally, we present our algorithm which improves the regime of [DJ24; CSZ24] to . It is a relatively straightforward extension of an algorithm for in [3 Lemma 3.3].
We still separate the first columns as in algorithm III. However, this time we keep samples with exactly two coordinates outside of those columns (as opposed to 0). This is useful since those samples with exactly 2 coordinates on the remaining columns can be viewed as edges in a multigraph indexed by the columns. In graphs, unlike in hypergraphs, cycles are easy to discover.
A similar first moment + independence argument shows that whenever , with high probability there are at least samples which have exactly 2 coordinates outside of the first columns.
We now view those samples as a graph on vertices and edges. The following fact is well known and we only sketch its proof for completeness.
Fact 1. Suppose that is a multigraph on vertices and edges for some absolute constant . Then, for all large enough , there exists a collection of edge-disjoint cycles each of length .
Proof Sketch. It is enough to show the existence of one such cycle. Then, we can remove its edges and induct. To show the existence of one such cycle, notice first that has a subgraph with minimal degree at least . To find one such , keep deleting vertices of degree less than . Note that in the process at most edges are deleted. Hence, there are some edges which are not deleted and the process terminates with a non-empty graph. This graph has at most vertices and minimal degree . Hence, a simple breadth-first search procedure identifies a cycle of length at most .
The proof above not only shows that there are edge-disjoint cycles on the last columns, but it also provides an algorithm for finding them. Let the cycles correspond to equations indexed by disjoint sets respectively , each of length . Then, the row-vectors fully belong to the first columns. Again, Gaussian elimination will give a non-trivial cycles among at most of them. This leads to a non-trivial cycle of length of the original equations which is enough to apply Lemma 1.1.
Some Remarks
Search and Strong Refutation. This note focused on the testing problem. However, search and refutation are also of interest to the high-dimensional statistics, learning theory, and cryptography communities. We note that up to a blow-up of the sample size by a multiplicative factor of (or less) each of these algorithms can be easily transformed into a search algorithm (that is, finding under the promise that the distribution is . For even this is only possible up to a global flip of the coordinates of ). This can be either seen directly for the simple algorithms we presented or via the recent search (in noisy -XOR)-to-decision (in noisy -XOR) reduction [11]. Prior reductions with worse sample blow-up are also known [12].
While there doesn’t seem to be a qualitative difference between search and testing, strong refutation is significantly more challenging (see [26] for the definition of refutation). In fact, Sum-of-Squares (SoS) lower bounds suggest that when , there are no refutation algorithms.
It is worthwhile noting that the recent refutation algorithm [23] for learning parity with noise, extending the BKW algorithm, surpasses known SoS lower bounds.
Other Parameter Regimes. Our focus is on the setting of time budget, . However, of interest are many other regimes, such as when quasi-polynomial or even subexponential time algorithms are permissible [26 BLR+26, 25], or the noise is of the form and the number of equations is for , [7] (see Section 2.1 of [7] for a similar discussion of hardness and polynomial time algorithms in that regime).
Semirandom Instances. The current note focuses on the case when . Common in the literature is also the semi-random case in which is worst-case, but independent of the secret and noise [18, 4]. We note that most of the discussion in the current note extends rather directly to this case as well. Neither of the algorithms relies strongly on the fact that is random. Namely, algorithm I applies directly to any (does not even need to be sparse). Algorithm II still applies as in any -uniform hypergraph with edges, there is a cycle of length which can be found in time [16]. Algorithms III and IV need to be modified as follows. Note that if instead of the first columns one takes a uniformly random set of columns, the expected number of samples with (respectively ) coordinates outside of those columns is the same with (respectively ). However, as samples are not independent, we cannot rely on a second moment concentration argument. Instead we notice that the maximal number of samples with the desired property is . Hence, the probability that there are at least samples with (respectively ) coordinates outside of those columns is at least . After trials we will find with high probability rows that satisfy the desired property.
Hardness in Restricted Models of Computation. One reason why the complexity of the problem is still poorly understood is that we do not have any reasonable hardness predictions for the testing/search problem against restricted classes of algorithms such as via the Low-Degree Polynomials framework, Sum-of-Squares Hierarchy, or the Overlap Gap Property. While one can prove lower bounds in any of these frameworks, those lower bounds are meaningless as even the simplest algorithms – such as III and IV – do not fall in the restricted classes of algorithms (they are highly non-local and high-degree due to the Gaussian elimination step). Hence, it is not surprising that the predictions are wrong. For instance, low-degree and Sum-of-Squares predict hardness for any noise level when . This is an expected failure mode of the two paradigms in algebraic settings (formally, the Sum-of-Squares prediction is not known to be wrong as it predicts hardness of refutation). The interesting question that it raises is:
Open Problem 2. Design a noise-sensitive hardness heuristic that will predict in what regimes Problem 1 is hard without contradicting any of the algorithms I, II, III, IV. Or, show that all of the “unknown” regime in Figure 1 is easy in time .
Assuming that the problem is not easy at least in part of the “unknown regime”, we strongly believe that such a heuristic will be broadly useful towards other “algebraic” problems in high-dimensional statistics.
Alternatively, it would be interesting to prove hardness via reductions from well-established assumptions.
Acknowledgments. I am grateful to Guy Bresler, Stefan Tiegel, and Vinod Vaikuntanathan for many insightful conversations on noisy -XOR and related problems.
AI Usage Statement. AI was used to discover the connection to [3]. AI was also used to revise the document.
References
- [2]Benny Applebaum, Boaz Barak, and Avi Wigderson. “Public-key cryptography from different assumptions”. In: Proceedings of the forty-second ACM symposium on Theory of computing. 2010, pp. 171–180 (cit. on p. 2).DOI
- [3]Noga Alon and Uriel Feige. “On the power of two, three and four probes”. In: Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms. SODA ’09. New York, New York: Society for Industrial and Applied Mathematics, 2009, pp. 346–354 (cit. on pp. 1, 3, 5).
- [4]Jackson Abascal, Venkatesan Guruswami, and Pravesh K Kothari. “Strongly refuting all semi-random Boolean CSPs”. In: Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA). SIAM. 2021, pp. 454–472 (cit. on p. 4).arxiv.org/abs/2009.08032
- [5]Sarah R. Allen, Ryan O’Donnell, and David Witmer. “How to Refute a Random CSP”. In: 2015 IEEE 56th Annual Symposium on Foundations of Computer Science (2015), pp. 689–708. DOI: 10.1109/FOCS.2015.48 (cit. on p. 2).DOI
- [6]Kiril Bangachev, Guy Bresler, Stefan Tiegel, and Vinod Vaikuntanathan. Near-Optimal Time-Sparsity Trade-Offs for Solving Noisy Linear Equations. 2024. arXiv: 2411.12512 [cs.CC]. URL: https://arxiv.org/abs/2411.12512 (cit. on p. 2).
- [7]Guy Bresler and Alina Harbuzova. “Average-Case Reductions for k-XOR and Tensor PCA”. In: arXiv preprint arXiv:2601.19016 (2026) (cit. on p. 4).arxiv.org/abs/2601.19016
- [9]Avrim Blum, Adam Kalai, and Hal Wasserman. “Noise-tolerant learning, the parity problem, and the statistical query model”. In: J. ACM 50.4 (July 2003), pp. 506–519. ISSN: 0004-5411. DOI: 10.1145/792538.792543 (cit. on pp. 2, 3).DOI
- [11]Andrej Bogdanov, Alon Rosen, and Kel Zin Tan. “Sample Efficient Search to Decision for k-LIN”. In: Advances in Cryptology – CRYPTO 2025: 45th Annual International Cryptology Conference, Santa Barbara, CA, USA, August 17–21, 2025, Proceedings, Part I. Santa Barbara, CA, USA: Springer-Verlag, 2025, pp. 203–220. ISBN: 978-3-032-01854-0. DOI: 10.1007/978-3-032-01855-77. URL: https://doi.org/10.1007/978-3-032-01855-77 (cit. on pp. 2, 4).
- [12]Andrej Bogdanov, Manuel Sabin, and Prashant Nalini Vasudevan. “XOR codes and sparse learning parity with noise”. In: Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms. SODA ’19. San Diego, California: Society for Industrial and Applied Mathematics, 2019, pp. 986–1004. DOI: 10.5555/3310435.3310496 (cit. on pp. 2, 4).DOI
- [15]Uriel Feige. “Relations between average case complexity and approximation complexity”. In: Proceedings of the Thirty-Fourth Annual ACM Symposium on Theory of Computing. STOC ’02. Montreal, Quebec, Canada: Association for Computing Machinery, 2002, pp. 534–543. ISBN: 1581134959. DOI: 10.1145/509907.509985 (cit. on p. 2).DOI
- [16]Uriel Feige. “Small linear dependencies for binary vectors of low weight”. In: Building Bridges: Between Mathematics and Computer Science. Springer, 2008, pp. 283–307 (cit. on pp. 2, 4).DOI
- [17]Uriel Feige, Jeong Han Kim, and Eran Ofek. “Witnesses for non-satisfiability of dense random 3CNF formulas”. In: 2006 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS’06). 2006, pp. 497–508. DOI: 10.1109/FOCS.2006.78 (cit. on p. 2).DOI
- [18]V. Guruswami, J. Hsieh, P. K. Kothari, and P. Manohar. “Efficient Algorithms for Semirandom Planted CSPs at the Refutation Threshold”. In: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS). Los Alamitos, CA, USA: IEEE Computer Society, Nov. 2023, pp. 307–327. DOI: 10.1109/FOCS57990.2023.00026 (cit. on pp. 2, 4).DOI
- [19]Meghal Gupta, William He, Ryan O’Donnell, and Noah G. Singer. “A Classical Quadratic Speedup for Planted k-XOR”. In: Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). 2026, pp. 2455–2472. DOI: 10.1137/1.9781611978971.88. eprint: https://epubs.siam.org/doi/pdf/10.1137/1.9781611978971.88. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611978971.88 (cit. on p. 2).DOI
- [20]Dima Grigoriev. “Linear lower bound on degrees of Positivstellensatz calculus proofs for the parity”. In: Theoretical Computer Science 259.1-2 (2001), pp. 613–622. DOI: 10.1016/S0304-3975(00)00157-2 (cit. on p. 2).DOI
- [22]Aayush Jain, Huijia Lin, and Amit Sahai. “Indistinguishability obfuscation from LPN over Fp, DLIN, and PRGs in NC0”. In: Annual International Conference on the Theory and Applications of Cryptographic Techniques. Springer. 2022, pp. 670–699 (cit. on p. 2).
- [23]Pravesh K Kothari, Andrew D Lin, and Peter Manohar. “Strongly Refuting Semirandom Linear Systems in Subexponential Time”. In: arXiv preprint arXiv:2609.30052 (2026) (cit. on pp. 2, 4).arxiv.org/abs/2609.30052
- [24][Lyu05] Vadim Lyubashevsky. “The parity problem in the presence of noise, decoding random linear codes, and the subset sum problem”. In: Proceedings of the 8th International Workshop on Approximation, Randomization and Combinatorial Optimization Problems, and Proceedings of the 9th International Conference on Randomization and Computation: Algorithms and Techniques. APPROX’05/RANDOM’05. Berkeley, CA: Springer-Verlag, 2005, pp. 378–389. ISBN: 3540282394. DOI: 10.1007/1153846232. URL: https://doi.org/10.1007/1153846232 (cit. on p. 2).
- [25][Mao26] Songtao Mao. “Near Optimal Algorithms for Noisy k-XOR under Low-Degree Heuristic”. In: arXiv preprint arXiv:2604.10457 (2026) (cit. on p. 4).arxiv.org/abs/2604.10457
- [26][RRS17] Prasad Raghavendra, Satish Rao, and Tselil Schramm. “Strongly refuting random CSPs below the spectral threshold”. In: Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing. STOC 2017. Montreal, Canada: Association for Computing Machinery, 2017, pp. 121–131. ISBN: 9781450345286. DOI: 10.1145/3055399.3055417 (cit. on pp. 2, 4).DOI
- [27][RVV24] Seyoon Ragavan, Neekon Vafa, and Vinod Vaikuntanathan. Indistinguishability Obfuscation from Bilinear Maps and LPN Variants. Cryptology ePrint Archive, Paper 2024/856. 2024. URL: https://eprint.iacr.org/2024/856 (cit. on p. 2).DOI
- [28][Sch08] Grant Schoenebeck. “Linear level Lasserre lower bounds for certain k-CSPs”. In: 2008 49th Annual IEEE Symposium on Foundations of Computer Science. IEEE, 2008, pp. 593–602. DOI: 10.1109/FOCS.2008.74 (cit. on p. 2).DOI