arXiv:2611.05082cs.DSNov 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2611.05082

Finding Hypercliques Faster Than Brute Force

Josh Alman, Baitian Li, Neha Pant, Kevin Pratt, Ryan Williams

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We show that for any fixed kk, there exists εk>0\varepsilon_k > 0 such that, given a (k−1)(k-1)-uniform hypergraph HH on nn vertices, one can count the number of kk-hypercliques in HH in O(nk−εk)O(n^{k-\varepsilon_k}) time. This refutes the hyperclique conjecture of Lincoln, Vassilevska Williams, and Williams (SODA 2018). Our result follows from the uniform construction of a family of arithmetic circuits of size O(nk−εk)O(n^{k-\varepsilon_k}) for the “kk-hyperclique tensor”, a natural higher-order generalization of the matrix multiplication tensor.

As corollaries, it follows that

  • For every kk, there is an ε>0\varepsilon > 0 such that Max-kSAT\text{Max-kSAT} can be solved in 2(1−ε)n⋅poly(m,n)2^{(1-\varepsilon)n} \cdot \text{poly}(m, n) time.

  • For every kk, there is an ε>0\varepsilon > 0 so that arithmetic progressions of length kk in subsets of {0,1,…,n}\{0, 1, \ldots, n\} can be detected in n2−εn^{2-\varepsilon} time.

Both results refute other prominent conjectures in the literature.

The main result was obtained by ChatGPT 6 Pro. The full chat is available at

https://chatgpt.com/share/6acf869d-a8f0-83ea-a00d-35492f5a3af5

*Columbia University. Supported in part by NSF Grant CCF-2238221 and a Packard Foundation Fellowship.

†Columbia University. Supported in part by NSF Grant CCF-2238221 and a Packard Foundation Fellowship.

‡Columbia University. Supported in part by a Columbia Engineering Grossman Fellowship.

§Columbia University. Supported in part by NSF Grant CCF-2238221 and a Packard Foundation Fellowship.

¶MIT. Work supported in part by NSF CCF-2420092 and the AI Security Institute (AISI).

1 Introduction

One of the most striking algorithms avoiding exhaustive search is the nω+o(1)≤n2.25+o(1)n^{\omega+o(1)} \leq n^{2.25+o(1)} [Ope26a] time algorithm for detecting (and finding) a triangle in an nn-node graph, first reported by Itai and Rodeh [IR78]. Taking AA to be the n×nn \times n adjacency matrix, tr(A3)\mathrm{tr}(A^3) is exactly six times the number of triangles, so computing it with fast matrix multiplication decisively beats the naive O(n3)O(n^3) time of exhaustive search. (By recurring on subgraphs, we can also find triangles in analogous running time.) Since Itai and Rodeh, many other improvements in graph algorithms have been powered by fast matrix multiplication, such as transitive closure, shortest paths, matching, cycle and subgraph detection, and many others; see the surveys and lecture notes of Zwick [Zwi15] and Vassilevska Williams [Wil18; Wil21].

It is natural to ask whether similar algorithmic improvements are possible for problems on generalizations of graphs, such as 3-uniform hypergraphs whose edge sets are 3-sets of vertices, or more generally kk-uniform hypergraphs for constant k≥3k \geq 3. A starting problem, generalizing triangle finding, is that of finding a kk-hyperclique in a (k−1)(k-1)-uniform hypergraph for k≥3k \geq 3. Williams [Wil05] raised the problem for k=4k=4, noting that a faster 4-hyperclique algorithm could be applied to solve Max-3SAT faster than exhaustive search. This reduction was generalized for arbitrary kk by [LVW18]: faster (k+1)(k+1)-hyperclique finding in kk-uniform hypergraphs would yield a faster algorithm for Max-kkSAT. They proposed a hardness hypothesis for kk-hyperclique finding:

Hypothesis 1 (k-Hyperclique Hypothesis). For every k≥4k \geq 4, there is no ε>0\varepsilon > 0 such that kk-hypercliques in (k−1)(k-1)-uniform hypergraphs can be detected in O(nk−ε)O(n^{k-\varepsilon}) time.

As evidence for their hypothesis, they proved that unlike matrix multiplication which famously has subcubic tensor rank (starting with Strassen [Str69]), the tensor rank of the natural (k−1)(k-1)-dimensional generalization of matrix multiplication (precisely the kind of task one needs to solve to compute kk-hypercliques, see Section 1.1 for a definition) is Θ(nk)\Theta(n^k). This led [LVW18] to conclude that radically different algorithmic techniques would be needed to refute the kk-Hyperclique Hypothesis, if it is possible at all. Further work extensively studied consequences of proving and refuting the hypothesis [MVX22; BCFK22; DJVW22; Cha23; AFS24; GK25; FKRS25; DFG+26; BKW26; BCK+26]. Notably, [DFG+26] recently showed that if the kk-Hyperclique Hypothesis were false, then one could detect arithmetic progressions of length kk in an input set A⊆{0,1,2,…,n}A \subseteq \{0,1,2,\ldots,n\} in O(n2−ε)O(n^{2-\varepsilon}) time for some ε>0\varepsilon > 0.

By the work of [Wil05; LVW18] mentioned above, the kk-Hyperclique Hypothesis was also believed to be true because it followed from another algorithmic hypothesis about the complexity of Max-kkSAT:

Hypothesis 2 (Max-kk-SAT Hypothesis). For every k≥3k \geq 3, there is no ε>0\varepsilon > 0 such that Max-kkSAT on nn variables can be solved in O(2(1−ε)n)O(2^{(1-\varepsilon)n}) time.

This hypothesis had a vast literature as well, with a body of work studying algorithms and hardness for Max-kkSAT [Wil03; DW06; KK07; IPS13; SST14; SSTT15; CS15; ACW16; ABDN18; BGS17; BFK19; AV20; JW20; BCFK22; BKM+24; SN25; LS25; CKMS26]. There was also a “sparse” version of the Max-kkSAT hypothesis which asserted that O(n)O(n)-clause instances were already hard [AV20].

Our Results. We prove that the kk-Hyperclique Hypothesis is false. In fact, we show that for every k≥3k \geq 3, there is an ε>0\varepsilon > 0 such that the appropriate kk-dimensional generalization of matrix multiplication (a.k.a., the kk-wise matrix product [BS21, Section 5.1]) can be computed on Boolean matrices in O(nk+1−ε)O(n^{k+1-\varepsilon}) time. As an immediate application, this allows us to count the number of hypercliques, so that for every kk, even #Max−kSAT\# \text{Max}-k \text{SAT} can be solved in 2(1−εk)n2^{(1-\varepsilon_k)n} time for some εk>0\varepsilon_k > 0.

Our main technical result is that the natural polynomial for enumerating hypercliques (a sum over all possible hypercliques which takes the product of all hyperedges in the hyperclique, see Section 1.1 for a definition) has uniform arithmetic circuits that are significantly smaller than nkn^k size.

Theorem 1. For every fixed k≥3k \geq 3, the kk-hyperclique polynomial Δn(k)\Delta_n^{(k)} has uniformly constructible circuits of size O(nk−εk)O(n^{k-\varepsilon_k}), where εk=2−Θ(2k)\varepsilon_k = 2^{-\Theta(2^k)}, with all constants in Z[1/2]\mathbb{Z}[1/2]. In particular, there is an algorithm that, given (1n,1k)(1^n, 1^k) as input, outputs a circuit of O(nk−εk)O(n^{k-\varepsilon_k}) size in nk−εk+o(1)n^{k-\varepsilon_k+o(1)} time.

Many interesting consequences follow. First of all, we can easily count the number of hypercliques in a hypergraph, by evaluating such a polynomial.

Theorem 2. For every fixed k≥3k \geq 3, there is an algorithm that, given any (k−1)(k-1)-uniform hypergraph HH on nn vertices, outputs the number of kk-hypercliques in HH in nk−εk+o(1)n^{k-\varepsilon_k+o(1)} time, where εk\varepsilon_k is the constant in Theorem 1.

Furthermore, applying the Baur–Strassen Theorem (Lemma 3), we can compute the natural kk-dimensional generalization of matrix multiplication faster (i.e., the kk-wise matrix product), as well.

Theorem 3. For every k≥3k \geq 3, there is an ε>0\varepsilon > 0 such that MPk(A1,…,Ak)\text{MP}_k(A_1, \ldots, A_k) can be computed on A1,…,AkA_1, \ldots, A_k, each with nkn^k Boolean entries, in O(nk+1−ε)O(n^{k+1-\varepsilon}) time.

Applying these results, we can refute a much weaker hypothesis than just the Max-kkSAT Hypothesis (Hypothesis 2). In fact, we solve a much more general Max-Degree-kkCSP problem [LVW18]. A Boolean function on nn variables is a degree-kk constraint if it has degree at most kk in its unique multilinear polynomial representation over the {0,1}\{0,1\} basis. (Note that Max-kkSAT represents the very special case where each polynomial is over at most kk variables.) The Max-Degree-kkCSP problem is: given any set of degree-kk constraints over nn Boolean variables, find a Boolean assignment that sets a maximum number of constraints to true.

Theorem 4. For every k≥3k \geq 3, there is a δk>0\delta_k > 0 such that Max-Degree-kkCSP with nn variables and any number of mm constraints can be solved in 2(1−δk)n2^{(1-\delta_k)n} poly(n,m)(n,m) time.

Our results also refute a recently proposed hypothesis on the difficulty of finding short arithmetic progressions in a set of numbers. The kk-AP Hypothesis [DFG+26, Hypothesis 1.3] (see also [Fis26]) states that for every k≥4k \geq 4 there is no ε>0\varepsilon > 0 such that one can determine whether a subset of {0,1,…,n}\{0,1,\ldots,n\} contains a nontrivial arithmetic progression of length kk, in O(n2−ε)O(n^{2-\varepsilon}) time. (Note that for k=3k=3 the problem can be solved in near-linear time by FFT, so the hypothesis starts at k=4k=4.) We give an improved algorithm:

Theorem 5. For every fixed k≥4k \geq 4, we can decide whether a set A⊆{0,…,n}A \subseteq \{0,\ldots,n\} contains a nontrivial kk-term arithmetic progression in O(n2−2εk/k)O(n^{2-2\varepsilon_k/k}) time.

Finally, our results also have bearing on a well-known problem in database theory. The kk-dimensional Loomis–Whitney join LMk\text{LM}_k has kk attributes and one relation on each (k−1)(k-1)-subset of the attributes. Its Boolean version is exactly kk-hyperclique on a (k−1)(k-1)-uniform hypergraph, and its counting version is the polynomial Δn(k)\Delta_n^{(k)} evaluated on the relations. The AGM bound [AGM13] shows that the output of LMk\mathrm{LM}_k on relations of total size mm has size at most mk/(k−1)m^{k/(k-1)}, and worst-case optimal join algorithms [NPRR18] can list all answers in O~(mk/(k−1))\tilde{O}(m^{k/(k-1)}) time. The question of whether the Boolean and counting versions can be evaluated faster has been a prominent open problem in database theory; see e.g., the PODS 2025 tutorial of Mengel [Men25, Theorem 3.5], who shows that the kk-Hyperclique Hypothesis implies no O(mk/(k−1)−ε)O(m^{k/(k-1)-\varepsilon}) time algorithm exists. Theorem 2 directly gives a faster algorithm for dense instances. By a standard high degree/low degree trick just as in [AYZ97], we can also obtain that for every kk there is an ε>0\varepsilon > 0 and an O(mk/(k−1)−ε)O(m^{k/(k-1)-\varepsilon}) time algorithm for these joins, for all sizes mm.1^1

Why –ETH does not affect our results. Very recently, OpenAI [Ope26b] and Anthropic [Cla26] announced a refutation of the Exponential Time Hypothesis, showing that 3SAT on nn variables is solvable in exp⁡(n poly(log⁡log⁡n)/log⁡n)\exp(n \text{ poly}(\log \log n)/\sqrt{\log n}) time. While this result directly implies that Max-kkSAT on nn variables and cncn clauses is in 2o(n)2^{o(n)} time (refuting the “sparse” hypothesis [AV20]), it evidently says nothing about the full Max-kkSAT Hypothesis. This is because Max-kkSAT instances may have up to Θ(nk)\Theta(n^k) clauses, and all known reductions from Max-kkSAT on mm clauses to 3SAT introduce Ω(m)\Omega(m) variables. (In other words, no Sparsification Lemma [IPZ01] is known for Max-kkSAT for any kk.) Hence, we would apparently need 3SAT to be in less than exp⁡(n1/k)\exp(n^{1/k}) time in order to solve Max-kkSAT faster via reductions. Our results directly solve Max-kkSAT faster by solving kk-hyperclique faster.

Intriguingly, our algorithm for finding hypercliques faster does share one ingredient with the OpenAI refutation of ETH [Ope26b]: namely, they both rely on an interesting new decomposition of the identity matrix. See Remark 1 and the discussion before it.

References (53)