arXiv:2611.09764cs.DSNov 2026

Manuscript Offprint

arXiv:2611.09764

The k-Clique hypothesis is dead, for good

Virginia Vassilevska Williams, Or Zamir

Abstract

We present an algorithm that solves the kk-Clique problem for any large enough kk and any nn-vertex graph in n(ω3−c)kn^{\left(\frac{\omega}{3}-c\right)k} time, where ω≥2\omega \geq 2 is the matrix multiplication exponent and c>0c > 0 is a positive constant independent of both ω\omega and kk. This refutes the long-standing kk-Clique conjecture, regardless of the value of the matrix multiplication constant, even if ω=2\omega = 2. In fact, our algorithm solves the more general problem of counting weighted kk-Cliques.

1 Introduction

Finding cliques in graphs is a classic problem in computer science with an abundance of applications. The problem is NP-hard when the desired clique size kk is part of the input. When kk is a fixed small constant, there is a well-known way to beat the brute-force kk-tuple enumeration algorithm. More than 40 years ago, Nešetril and Poljak [NP85] showed how to reduce kk-clique in nn node graphs to triangle (i.e. 3-clique) detection in O(nk/3)O(n^{k/3}) node graphs, when kk is divisible by 3. This leads to an nωk/3+o(1)n^{\omega k/3+o(1)}-time algorithm for kk divisible by three [NP85], and only adds at most 2/3 to the exponent1^1 for other kk. Here ω≤9/4\omega \leq 9/4 denotes the exponent of square matrix multiplication (see e.g. [Ope26b, AvdBZ26, Shp26, Str69, CW90, ADV+^+25]).

The exponent for kk-clique detection has remained unchallenged until today, except for small improvements using rectangular matrix multiplication for the cases when kk is not divisible by 3 (e.g. [EG04]). This motivated the somewhat dubious, yet perfectly consistent with the state of affairs, kk-Clique Hypothesis [Woe04, ABV18]:

The kk-Clique Hypothesis: in the word-RAM model with O(log⁡n)O(\log n) bit words, for kk divisible by 3, kk-clique detection in nn node graphs requires nωk/3−o(1)n^{\omega k/3-o(1)} time.

Stronger versions [DVV21] even conjectured the optimality of the rectangular matrix multiplication solution for values of kk not divisible by three.

Fine-grained complexity then developed many reductions from kk-Clique to other algorithmic problems (e.g. [ABV18, Cha16, BW17, JS17, ABBK17, NNT26, LVW18, DVV21, DV22, Cha10, FKRS25, FKRS26, GK23]), showing that in order to make further progress on these problems, one must first refute the kk-Clique Hypothesis.

The kk-Clique Hypothesis is usually used for problems whose best running times rely on matrix multiplication (MM) in some way. To show that MM is likely necessary for the best algorithm for a problem π\pi, one reduces to π\pi, either MM itself, or another problem that is believed to require MM. Such problems include Boolean Matrix Multiplication (BMM, whose best algorithms are the same as for MM), triangle detection (which is subcubically equivalent to BMM [VW10, VW18]) or more

1^1If k=tmod  3k = t \mod 3, we can reduce the problem to ntn^t instances of k−tk-t clique, and the overall exponent for kk-clique becomes ω(k−t)/3+t=ωk/3+(3−ω)t/3≤ωk/3+t/3≤ωk/3+2/3\omega(k-t)/3 + t = \omega k/3 + (3-\omega)t/3 \leq \omega k/3 + t/3 \leq \omega k/3 + 2/3.

generally kk-Clique either for some other fixed kk (such as k=4k=4) or for any constant k≥3k \geq 3, relying on the kk-Clique Hypothesis. The latter route is particularly useful when the reduction has some polynomial overhead which the high conjectured running time of kk-Clique lets you overcome.

For instance, in Abboud, Backurs and Vassilevska W.'s reduction from kk-Clique to Context Free Grammar (CFG) Recognition [ABV18], an nn-node graph is encoded as a string of length O(nk/3+1)O(n^{k/3+1}) for a single fixed grammar, a factor of nn more than the nk/3n^{k/3} that a tight reduction would produce. An O(nω−ε)O(n^{\omega-\varepsilon})-time CFG recognizer would then solve kk-Clique in O(n(ω−ε)(k/3+1))=O(nωk/3−εk/3+ω−ε)O(n^{(\omega-\varepsilon)(k/3+1)}) = O(n^{\omega k/3-\varepsilon k/3+\omega-\varepsilon}) time. This is faster than nωk/3n^{\omega k/3} only when k>3(ω−ε)/εk > 3(\omega - \varepsilon)/\varepsilon and, under the kk-Clique Hypothesis that makes an assertion for all kk, Valiant's O(nω)O(n^{\omega})-time parser is optimal. If one were trying to get the reduction to work from small kk, such as from triangle, it would not work because of the extra +1 overhead in the reduction exponent. There are many such examples, where a reduction from a fixed size clique such as triangle (or from BMM) would not quite work due to the overhead, so the kk-Clique Hypothesis became useful.

In 2004, Woeginger [Woe04] challenged algorithms researchers to beat the Nešetril-Poljak running time for some fixed kk. Over two decades passed, the running time remained untouched, the hypothesis gained more traction and more fine-grained problems were found to be kk-clique hard.

In this paper we strongly refute this hypothesis, and we bring forth hope that the kk-clique hard problems can also have faster algorithms. We prove:

Theorem 1.1. There exists constants K0K_0 and δ>0\delta > 0, independent of the matrix multiplication exponent ω≥2\omega \geq 2, such that for every k≥K0k \geq K_0, kk-Clique can be solved in O(n(ω−δ)k/3)O(n^{(\omega-\delta)k/3}) time. In fact, the algorithm can return the number of kk-cliques in the given graph.

We did not try to optimize K0K_0 or δ\delta, as we eventually discuss in Section 5.

Recent breakthroughs have refuted several central conjectures in fine-grained complexity, including the APSP and 3SUM hypotheses [AW26], the Exponential Time Hypothesis [Ope26a], and the Hyperclique Hypothesis [Fis26, ALP+26, CIMY26]. The kk-Clique Hypothesis presents an additional difficulty: unlike these conjectures, its predicted running time depends on ω\omega, whose exact value is unknown. Thus, even an improvement over the best known kk-Clique algorithm could cease to contradict the hypothesis if a subsequent improvement in matrix multiplication lowered the known upper bound on ω\omega. Our result avoids this moving target: the exponent saving is relative to the true value of ω\omega, and therefore remains a refutation of the hypothesis regardless of any future progress on matrix multiplication, including in the case that it would be proven that ω=2\omega = 2.

In order to obtain improved kk-Clique running times, we solve a potentially harder weighted kk-clique sum problem that generalizes counting the number of kk-cliques: Every edge ee of the host graph GG has a weight w(e)w(e), the weight of a kk-clique in GG is the product of its edge weights, and we want to compute the sum of all weights of kk-cliques in GG. The Nešetril-Poljak style reduction works just as well for weighted kk-clique sum, and the problem in nn node graphs can be reduced to weighted ℓ\ell-clique sum in O(nk/ℓ)O(n^{k/\ell}) node graphs (when kk is divisible by ℓ\ell). Thus, to get a faster weighted kk-clique sum algorithm for all large enough kk, it suffices to get a faster weighted ℓ\ell-clique sum algorithm for some constant ℓ\ell. We do this for ℓ=9\ell = 9.

In fact, we give an improved algorithm that computes a weighted sum over the copies of any given 9-node pattern HH in an nn-node graph GG (see Section 3 for a definition for this more general problem):

Theorem 1.2. There is an absolute constant ε>0\varepsilon > 0 such that, over any field of characteristic zero, for any nn-node host graph GG and every pattern graph HH on nine vertices the weighted sum over the copies of HH in GG can be computed using n3ω−ε+o(1)n^{3\omega - \varepsilon + o(1)} arithmetic operations.

As kk-clique in unweighted graphs can be converted to the corresponding weighted sum problem with small weights, the arithmetic complexity implies a similarly efficient algorithm in the word-RAM model, and combining the algorithm with the Nešetril-Poljak reduction, we obtain Theorem 1.1 as a corollary.

Our proof makes central use of an algebraic decomposition lemma that we distilled, with a publicly available AI model's assistance, out of the recent ETH refutation of OpenAI [Ope26a]. We separate the proof of this decomposition (in Section 4) from our algorithmic framework that uses it in a black-box manner (in Section 3). We devote Section 6 to discuss and reflect in detail on our methodology of AI-use.

Consequences for exact exponential-time algorithms. Our result also improves the running time of exact algorithms for several NP-hard optimization problems. Williams [Wil05], and subsequently Koivisto [Koi06], showed that Max-2-CSP on nn Boolean variables can be solved in 2ωn/3+o(n)2^{\omega n/3+o(n)} time using fast matrix multiplication. Their framework includes Max-Cut and Max-2-SAT, as well as counting the number of optimal solutions. We improve this bound to

2(ω/3−c)n+o(n)2^{(\omega/3-c)n+o(n)}

for some absolute constant c>0c>0, independent of ω\omega. Indeed, we partition the variables into nine groups, regard each assignment to a group as a vertex, and encode the constraints by unary and pairwise weights of a weighted K9K_9 instance. Our algorithm then gives the stated improvement, including when ω=2\omega=2. As in [Koi06], for polynomially bounded integer scores we can encode the objective values in the weights so that the resulting sum also determines the number of assignments attaining each score. Thus, the improvement applies to exact optimization and counting optimal solutions for general Max-2-CSP, including unrestricted dense instances.

The improvement also extends to several related counting problems. In particular, it gives the same exponent saving for counting induced copies of any fixed kk-vertex graph, rather than only cliques [CDN25]. Moreover, Scott and Sorkin [SS09] extended the matrix-multiplication approach to polynomial constraint satisfaction problems, including computing Ising partition functions, counting cuts of every size, and solving graph bisection. Our weighted counting algorithm improves the corresponding general bounds to 2(ω/3−c)n+o(n)2^{(\omega/3-c)n+o(n)}.

References (28)