r/compsci • u/azurerazor • 15d ago
An algorithm for sub-quadratic 3SUM and sub-cubic APSP has been found
https://arxiv.org/abs/2610.06783v128
u/randomsubaccount 15d ago edited 14d ago
Group experiment: Anyone with GPT 6 Astra, please ask yours to see if we can tighten the D^0.063 bound up to D^0.070. I put a simple prompt in and asked if there's anything from my personal context that could help lower the bound, and it reported that we could move the exponent on D up to 0.070, and pull the best complexity down to O(n^1.99902778).
This would be absolutely wild if others are able to corroborate.
For reference, my work is largely in applied low-rank matrix methods.
Update: seemingly there is an O(n^1.9963) bound that is possible with further parameter optimization.
7
u/Regular-Slip6227 15d ago
What does .07 imply that .063 does not?
16
u/randomsubaccount 15d ago edited 15d ago
It implies nothing.
It's simply a minor parameter optimization, I can see where the connection between my work and the optimization is from (optimal matrix block partitioning), so there is no concrete implication other than that there is still headroom in the method.
Across fields, after a barrier is broken, it's a race to the bottom, similarly to how the exponent for matrix multiplication has been slowly incrementally lowered (i.e the many papers lowering the exponent after the original Volker Strassen result).
Curious to see others interrogate the method.
66
u/Sezbeth 15d ago
Can't help but wonder what the field of complexity theory is going to look like in a few years with AI absolutely tearing through high profile conjectures now. I don't think it'll be nonexistent, but there's definitely a bit of pruning of open problems going on at the moment.
8
u/r0ze_at_reddit 14d ago
Working on a fantastic paper on persistence in complex systems and giving it to AI where it can apply it across fields has been beyond fun. Just opens up so many doors
2
1
7
u/ADisappointingLife 14d ago
Buddy, I haven't even managed to have a quadratic 3SUM, let alone a sub-quadratic one.
2
u/Mendoza2909 12d ago
True story, I had a problem I was trying to solve at work once that related to the 3sum problem. So I googled it and me and my colleague saw some images that we very much did not expect to see
1
-14
u/Vanitas_Daemon 15d ago
I'm disappointed no one made a threesome joke.
10
u/doocheymama 15d ago
Grow up
4
-26
u/MyUsrNameWasTaken 15d ago
So instead of O(n2) we now have O(n1.9992) ??! Lmao big whoop.
39
u/CrownLikeAGravestone 15d ago
3SUM is foundational to complexity analysis. It's about what that means for the rest of the field.
We would commonly say things like "well, if <problem x> had a fast solution that would mean we could solve 3SUM in sub-quadratic time", and while we didn't have a formal proof that was accepted as a pretty good proxy for "not possible". Problems were "hard like 3SUM" and now we know 3SUM isn't actually hard in the way we thought it was.
It's a much more humble version of "Hey I found a P-time solution to an NP problem, but it's horrendously complicated and the constant factors are huge". Very few people actually care about solving 3SUM quickly.
0
u/BrixtonTonaBrix 14d ago
You've said "now we know 3SUM isn't actually hard in the way we thought it was" and "it's about what that means for the rest of the field".
What does it mean for the rest of the field? Suppose that all (or at least some) O(n^2) problems are now O(n^1.9992) problems. What does that actually mean? Like, what actually changes? What do we do with it?
2
u/CrownLikeAGravestone 14d ago
Let's say I was really into making bows and arrows, and I wanted to shoot the highest-velocity arrow I could. Lots and lots of people try this, and we all find that with our best creative efforts we can get arrows arbitrarily close to the speed of sound but never higher.
We conjecture "hey maybe the speed of sound is the natural limit on arrow flight?". That makes a kind of intuitive sense; the speed of sound is the speed at which mechanical force propagates in some medium, a bow is a mechanical device for force transfer. We can't prove that the speed of sound is the upper limit but with all these bowyers trying and failing to break that limit, our confidence is pretty high.
Then along comes some strange guy with a really weird bow. It's got clockwork and fancy metals and the arrows are so thin you can barely see them, but we repeatedly confirm: it goes 1m/s over the speed of sound.
Does anyone want that bow? No! It's absurdly fragile and expensive, it'll never be practical for anything, and the cost to manufacture and fire it is eye-watering for a measly meter per second.
But the principle is what matters here, not the bow. There are two primary findings:
Firstly, we may be able to extend the techniques in this new bow to produce something even faster, and it opens up new solutions for all sorts of other engineers too.
Secondly, and more importantly, we have a proof that the assumed speed limit is not actually a limit. It was a plateau. We can go faster than the speed of sound, potentially a lot faster, we just need to figure out how to do so in a manner that actually makes sense.
That's the kind of result we're talking about here. Nobody cares about running some galactic algorithm very slightly faster on near-infinitely-large inputs. It's about the fact that it was technically possible in the first place.
0
u/BrixtonTonaBrix 14d ago
Two problems I see here. First, I don't see how confidence in a likely limit would suppress desire to break it, so I don't think the demo is motivating any work that wouldn't be done anyway. Why would they need proof? Who is the demo for?
Second, this strange guy turning up with their strange bow and talking in math and buzzing like a fridge and doing unintelligible and unenlightening demos is being an arse; if they don't and won't engage with the community the community has little chance of learning from or reproducing the strange bow. There's no rule that says the demo alone helps anyone else, and little evidence so far to suggest that'll change. Strange bow person isn't going to be a good teacher or collaborator. They charge crazy fees to talk at conferences and almost no one understands the content, and they're wearing a wire the entire time feeding everything you ask them to the nearest billionaire.
None of this points to a healthy and supported community that'll make progress on anything worth caring about (I give 0 shits about the fastest possible arrow within or without the metaphor). All of this points to someone desperately wanting some VC money and deciding that a strange bow is the most cost-effective hype available. Even if some real progress were to happen it would be by chance and in spite of strange bow person, because progress is not what this system is built to achieve.
In short: you paint a lovely optimistic picture, but if our goal is collective knowledge and betterment I think we need to zoom out a little and see this grift for what it is, because OpenAI is in no way interested in collective knowledge or betterment
1
u/CrownLikeAGravestone 13d ago
You seem more interested in telling me how awful OpenAI are than actually engaging with what I'm saying, so I'm going to bow out. Goodbye.
0
u/BrixtonTonaBrix 13d ago
I'm rejecting the scope of what you're saying on the grounds it's a waste of both our time, yes
11
u/godofpumpkins 15d ago
I think the cool thing is that it’s under 2, not that it’s actually more efficient. And unlike the various matrix multiplication algorithms that shave off small amounts already weird numbers, going from 2 to under 2 is a big deal
91
u/cbarrick 15d ago
Long paper.
Page 9 gives a nice diagram of all the different problems solved by reduction to their new algorithm.
This is an important note from the end: