r/compsci • Algorithmic Evangelist • 7d ago

A Deterministic Subexponential-time Algorithm for the Discrete Logarithm Problem

https://eprint.iacr.org/2026/3020
313 Upvotes

46 comments sorted by

59

u/Remarkable-Goat-123 7d ago

Isn't this the problem that would break cryptography if solved in polynomial time?

21

u/beeskness420 Algorithmic Evangelist 7d ago

Yeah an efficient discrete log would be bad for a lot of cryptography.

92

u/UncleMeat11 7d ago

This is subexponential, not polytime.

47

u/PersonalityIll9476 7d ago

Even polynomial isn't necessarily a problem if it's ngoogol

7

u/UncleMeat11 6d ago

This is true but we really aren't aware of too many polytime algorithms with very large exponents that weren't specifically constructed to be that way.

2

u/PersonalityIll9476 6d ago

Sure, and we aren't aware of any low degree polytime algorithms for factorization, either.

We're talking specifically about a problem in that grey zone where your intuition about the typical does not apply.

1

u/BossOfTheGame 5d ago

I think you have to account for both possibilities, but I think it says something that most useful algorithms have low polynomial degree. perhaps it says something about our own limitations, and perhaps it says something about the universe.

3

u/PersonalityIll9476 5d ago

What you wrote is almost a tautology. An algorithm is useful if and only if its runtime on problems we care about is good.

And you have to be more careful than that: many of the best exponents for matrix multiplication are galactic algorithms, so the constants are so large that they're useless to us - this is exactly one of the failure modes for P = NP doomers. Even if a problem has a solution with a good exponent it might still be useless if the coefficients are also large.

-32

u/Ginger_1977 7d ago

True. But if you find a googol * ngoogol algo, you will eventually find small * nsmall.

Similarly if you find exp(n0.5) you will eventually find exp(nsmaller)

14

u/mathematics_helper 7d ago

Sure find a matrix multiplication algorithm smaller than n2.25

Since you should know thats impossible (since openAI proved it) you should realize how bad your srgument is.

I still want if p≠np, i want it to be discovered that its a linear algorithm with a constant added term of bb(20) as its lower bound. Just because it would be hilarious.

0

u/Ginger_1977 7d ago

Was it always n to 2.25 or was it previously a larger exponent?

9

u/mathematics_helper 7d ago

It was conjectured to be 2 originally. openAI proved that n2.25 was an upper bound in October and recently proved it is also a lower bound.

1

u/snet0 6d ago

Somewhat unrelated, but could you explain why it's still phrased as being both an upper and lower bound, rather than just the value itself? Is there something in that that is meaningfully different from just "the exponent is 9/4"? Or is it just to separate the two different proofs?

1

u/mathematics_helper 6d ago

In October open ai found an algorithm that is O(n2.25 ) this made it an upper bound (as there still could have been an algorithm faster)

In November (recently) open ai released a paper that showed any algorithm faster than O(n2.25 ) cannot represent matrix multiplication and thus is a lower bound. The paper then quoted the previous result in October to make the final conclusion that matrix multiplication IS O(n2.25 ). Which is why it has the title of "matrix multiplication exponent IS 9/4".

The reason I say proved a lower bound is because that is how the paper showed it has an exponent 9/4

25

u/Johalternate 7d ago

That's not how it works. You will eventually find a limit, but that limit could be n^googol or a lower but comparably insane value.

1

u/big_hole_energy 7d ago

There are barely any non-linearish algorithms for which we provably know that their runtime is optimal, so while huge polynomial exponent is impractical it would start global manhunt to find something better because a proof of limit will be extremely hard.

6

u/StrikingHearing8 7d ago

Just because a proof doesn't exist doesn't mean that it can go down arbitrarily.

9

u/arnet95 7d ago

That's not true. A straightforward corollary of the Time Hierarchy Theorem is that there are problems with an O(ngoogol) algorithm but not an O(ngoogol-1) algorithm.

1

u/Aedan91 7d ago

What? How? What?

15

u/Remarkable-Goat-123 7d ago

Yeah yeah, I can appreciate the difference

6

u/Masticatron 7d ago

They showed no confusion on this point.

6

u/necroforest 7d ago

being in P would be a necessary condition, it would still need to be reasonably efficient.

2

u/Gastmon 7d ago

There could also be an exponential-time algorithm with a ridiculously good constant.

6

u/NullOfSpace 7d ago

Even a really small constant could be beaten by just making the input size double or triple. That’s the power of exponentials.

1

u/slaymaker1907 7d ago

I know the best complexity multiplication algorithms basically never get used because the constants are so bad that it won't beat out the "slower" algorithms for any reasonable input.

1

u/Defiant-Plantain1873 5d ago

Well then it would be supexponential wouldn’t it.

45

u/SecretCombo21 7d ago

So is this the result that got distorted into those rumors about P = BQP?

21

u/Plappedudel 7d ago edited 7d ago

Hopefully not? If so, that would just show how clueless some people are about complexity classes. At this point, complexity of both discrete logarithm and factorization is still totally unclear apart from there now being a proof that the former isn't in EXPTIME. How people get from that to P=BQP is beyond me.

Edit: I've been told there's a proof of subexponential factorization as well. I think that's fantastic. Both of these results are very impressive. But they say nothing about P vs. BQP since subexponential and polynomial are far from identical.

6

u/math1985 7d ago

The latter neither, that was proven a few days ago by Google.

https://getaibook.com/news/google-cogentic-six-papers-unconditional-factoring-lean/

1

u/BullockHouse 7d ago

Maybe, but maybe not. A lot is happening right now. 

33

u/troelsbjerre 7d ago

Yay, instead of b in the exponent, we get b/sqrt(log log b). I'm guessing the constants involved front are such that for this to be faster, the key wouldn't be representable within the known universe.

18

u/kbr89 7d ago

Two things in the abstract matter more than the title.

  1. It's conditional. The result assumes the "Cauchy-Hermite Boolean tensor contraction construction" from OpenAI (October 2026). Given that, the algorithm is deterministic, uses zero random bits, and needs neither GRH nor smoothness heuristics. The abstract's baseline for deterministic algorithms without hypotheses is p^(1/2+o(1)), so that part is a real jump.
  2. The bound is subexponential, but only barely: 2^O(b/sqrt(log log b)) time and 2^O(b/(log b)^(1/4)) space, with b the bit length of p. That is p^o(1), yet for F_p* it is still far above what randomized algorithms already do: index calculus with rigorous proofs runs in L_p[1/2], roughly 2^O(sqrt(b log b)), and the number field sieve heuristically gets L_p[1/3]. So for prime fields the gain is determinism without hypotheses, and the speed stays far behind.

The abstract also says Las Vegas subexponential algorithms for elliptic curve discrete log came out after the ETH refutations (Akshima et al. and Kaarelson). So on curves this paper removes the randomness; subexponential time was already there.

2

u/Longjumping_Apple753 7d ago

thank you! took me a bit to realize. Else, dividing the exponent by √(log log b) feels like that inverse-Ackermann removal paper -- galactic algorithm or a constant factor for anything practical.

9

u/Deweydc18 7d ago

I’d say that’s this week’s paper of the decade but nowadays it’s more like today’s paper of the decade

3

u/ProjectRevolutionTPP 7d ago

Is this another galactic function?

4

u/ChiaraStellata 6d ago

Very much so. This algorithm is deterministic but is considerably worse than Pollard rho on average for all practical inputs. It falls back to brute force for inputs under like 10^25 digits. Even asymptotically it only improvements the exponent to b/sqrt(log log b) and for all practical values of b, sqrt(log log b) is gonna less than 2.

2

u/phage4104 6d ago

That's an insane discovery

1

u/david-1-1 6d ago

Does this mean that elliptic encryption no longer works? The other comments indicate that there is no such worry.

1

u/markt- 4d ago

All they’re doing is applying a sub linear function to the exponent. It’s still exponential.

-9

u/VanderSound 7d ago

Crypto will break

-2

u/woShame12 7d ago

If not AI, then Quantum

13

u/so_zetta_byte 7d ago

Post-quantum cryptography exists. There isn't some grand mystery around it. We know what will break and what won't. And infrastructure is already starting to prepare.

2

u/beeskness420 Algorithmic Evangelist 7d ago

Going forward there are solutions. Not sure what the solution is for all the backed up data that already exists using old encryption.

2

u/Cerise_Pomme 7d ago

Not totally disagreeing with you here, but, Post-quantum cryptography isn't immune to quantum, there may be algorithms that make them easier, they are just algorithms that are known to not contain any vulnerabilities. They are resistant only, quantum is still a volatile domain.
So we don't really know what won't break, just what will.

1

u/woShame12 6d ago

As someone who who works in this area, companies are behind even before thinking about "harvest now, decrypt later". Migration is not a simple process and the first cryptographically relevant quantum computers are likely 3 or 4 years out.