
Quasi-polynomial Runtime
Quasi-polynomial runtime describes how long an algorithm – that is, a step-by-step computational procedure – takes to solve a problem: faster than the dreaded exponential procedures, but slower than truly efficient algorithms. In computer science, it is regarded as an important intermediate stage that sometimes marks the first breakthrough on difficult problems.
In computer science, one measures how long an algorithm – that is, a procedure that solves a problem step by step – takes as the input size grows. An algorithm that sorts a list of n numbers might, for example, need n² steps: this is called polynomial runtime, and it is considered tractable. At the other end stands exponential runtime, where the number of steps explodes with 2ⁿ, meaning years of computation time even for medium-sized inputs. Quasi-polynomial runtime lies exactly in between. Typical for it is a step count of the form n^(log n) – this grows faster than any polynomial, but dramatically slower than an exponential function. One could call it the “lower floor of the difficult”: not yet proof that a problem is easy, but a clear sign that it does not belong among the hardest.
Why quasi-polynomial can be a milestone
In theoretical computer science, there are many problems for which no algorithm better than an exponential one was known for decades. When someone then finds a quasi-polynomial algorithm, that is a genuine breakthrough – even if the procedure would still be too slow in practice. It shows that the problem does not belong to a certain class of the hardest puzzles.
Concretely, this means: an exponential algorithm for an input of size n = 1,000 might need 2^1000 steps – a number with over 300 digits that no computer in the world could ever work through. A quasi-polynomial algorithm would need roughly 1,000^(log 1,000) = 1,000^10 = 10^30 steps for the same input. Still enormous, but manageable by orders of magnitude more – and mathematically a completely different category.
The class of quasi-polynomially solvable problems also serves researchers as a point of orientation. If one succeeds in “moving” a problem here, the search continues for a polynomial algorithm – the actual goal. Quasi-polynomial is then the intermediate stop, not the final destination.
The exponent that grows with the input
The decisive difference from a polynomial lies in the exponent. In a polynomial like n³, the exponent is fixed: always 3, no matter how large n becomes. In quasi-polynomial runtime, the exponent itself depends on n – typically log n. Logarithm here roughly means: how many times one would have to halve n to reach 1. For n = 1,024, log₂(n) would be 10. So the exponent grows, but very slowly.
That sounds like a small difference, but it has massive effects. For n = 1,000: n^10 is large, but computable. For n = 10,000: n^13 is noticeably larger still – the exponent has risen from 10 to 13, because log(10,000) = 13.3. For a true exponential function like 2^n, the jump from n = 1,000 to n = 10,000 would be unimaginably dramatic. Quasi-polynomial algorithms thus remain controllably growing, without being truly efficient.
There are various variants of quasi-polynomial runtimes, depending on exactly how the exponent is structured. What they have in common is that they can be written as n^(polylog n) – that is, n to the power of a polynomial in log n. This is the formal definition, but behind it always lies the same principle: a growing, yet restrained, exponent.
Where this term appears in the AI and tech world
In 2018, an algorithm made headlines for solving the so-called graph isomorphism problem – the question of whether two network structures are built identically – in quasi-polynomial runtime. Networks and graphs play a role everywhere: in social networks, in chips, in molecular structures. The algorithm, developed by László Babai at the University of Chicago, is still regarded today as one of the greatest achievements in theoretical computer science of the past decades.
In AI research, quasi-polynomial runtime comes up when it concerns how costly certain learning methods are in the worst case. Some methods that work quickly in practice have only quasi-polynomial guarantees theoretically. This means: for most inputs everything runs fine, but for particularly unfavorable cases the computation time can increase sharply.
In tech news, one usually encounters the term when a long-unsolved mathematical or algorithmic problem experiences a new complexity breakthrough. The headline then often reads: “Researchers find quasi-polynomial algorithm for problem X” – which, for experts, means that X is no longer one of the absolute hardest nuts to crack, even if it has not yet been fully cracked.