One nice thing about proving that something is possible epsilon faster than O(f(n)) time is that you can stop looking for a proof that the best you can do is O(f(n)).
Thanks for writing this up. A few weeks ago Anthropic publushed a blog post about "using claude to speed up protein structure prediction." I did a little testing myself and found that basically 100% of the "speedup" was from turning on cuda graphs and all the "optimized kernels" did not add much. Good (in some cosmic sense) to see that the pattern is similar for these math results.
I can imagine that tuning cuda kernels could be beneficial for the broader community! But too often the releases from the lab are more about advertising than actual public benefit.
Unreasonable complaint imo. Wow mathematics is ungrounded from physical reality? This has really torn the foundations out from under me — I always hoped my work in arithmetic geometry might cure cancer someday.
It's not a "failure of the culture" that the *complexity theorists* care more about the asymptotic behaviour than numerical improvements. Were it otherwise they ought to drop out of academia and become consultants for Google or something. You're more or less just arguing against the study of abstract objects in general.
Is this the best defence we can mount of our discipline? Complaints about *practicality*, of all things? (Mathematicians begging for mercy on the grounds of applicability to the real world — we really are fucked).
The ~entire reason that math as a field of study has a certain amount of status in the wider world (and provides viable careers) is its "unreasonable effectiveness" in practice. Sure, mathematicians might have other ideas about what's important, and after the dust settles, they just might get to continue pursuing that stuff. As hobbyists.
Oh come on. Algorithmic complexity theory is not pure math, it is supposed to be applied mathematics. The eagerness of CS theory people to pretend otherwise is an indication of a bad field, not bold theorizing.
I think the only problem with this paper is that it is picked up as a breakthrough, where all that it does is to exploit some holes in the applied computation model. Publishing such an exploit is fine, though a well-written such paper would warn the reader that this is a heck. Papers like this reteach the lesson of that models of computation have limitations. Though the problem with this one is that we kinda already knew these limitations and so why would you need another 30 page long paper about this?
A very nice post about FFT, OpenAI, and CS theory. However, I worry that terse calls for collective action ("we should consider doing something else") are detached from science culture (status quo, funding, institutional bias, fragile egos, ...) in the way that CS theory is detached from actual computers.
In defense of "exact complex arithmetic" (not OAI's ridiculous paper dump): plenty of people work on this sort of thing (keyword Blum-Shub-Smale model), and it has merit in providing potentially more tractable settings for various questions (like analyzing numerical algorithms, or "easier" versions of P vs NP.) There are also some high-profile people in TCS who are careful about things like controlling the bit-sizes and rounding errors in real/complex arithmetic.
All that said, there is your broader point that the paper dump "amplifies the unspoken cultural practices no one likes", such as not implementing an algorithm. Here, I completely agree!
I'm not against real computation as a lens on actual computation. The Blum-Shub-Smale work and related inquiry show that numerical conditioning is often the heart of complexity. Morgenstern and Ailon's work is closely related. I'm just saying that if you are going to all for real-valued coefficients, you have to show you can approximate your algorithm on a standard computer. And for that, you can't have exponentially large coefficients in matrices with infinite condition numbers.
Thank you for bringing this down to earth for us math tourists. Not sure how I feel about your description of the theoretic formalism in computer science. It seems very unfortunate for a discipline that should be application focused. On the other hand, makes me feel better that economics is not the only discipline that has lost its way with pseudo formalism.
I had the impression that the successes of AI in applied math were rather measured anyway. One would think that AI companies have a large interest in, say, faster implementations of stochastic gradient descent. But either they haven't let their agents loose on this, or they found nothing.
Hey, Ben. Great article! When I first heard about OpenAI's result, I was pretty excited at first, but after throwing a bunch of tokens at it I pretty much came to the same conclusion as you. Neat, but doesn't seem to be of too much practical use. For what it's worth though the community has improved the bounds from n(logn)^(1-1e-13) to almost n(logn)^(1-1e-3) which is almost less useless (maybe from a galactic algorithm to a solar system algorithm??). (https://github.com/jacobalansussman/wht-power-saving-lean if interested)
It has been interesting seeing how even how even though it's relatively easy to get AIslopped mathematical breakthroughs on this sort of thing, it's hard to get real-world improvements. After my experiments above failed to produce anything of much use I managed to get AI to improve the theoretical O-notation FFT bounds from Alman-Rao's (23/24)*n(logn) to (5/6)*n(logn) and (3/4)*n*(logn) [so changing the constant rather than the nlogn nature itself], but again this didn't increase the speed real-world processors I tested actually worked at. It did manage to decrease the space needed by about 20% on FPGA implementations I tried but, again, this came at the cost of a slower clock speed. (https://github.com/jacobalansussman/wht-fewer-operations if interested).
Since then I've set up Opus 5.5 on improving the speed of real-world FFT algorithms but all that's come of that so far was a test with a memory leak that crashed my computer. I see how AI can be a useful tool but we're still not at the point where we've seen substantial FFT improvements. I'm still holding out hope for a linear-time algorithm though!
Hah, I would also love a legitimate linear-time algorithm. That would be wild.
Regarding the repo work on improvement, can you get your agents to estimate the constant in front of n(log n)^(1-8e-4) in the big-O notation? I.e., the C and N I describe in my post?
Sorry for the late response! Short answer: the n is far worse than your examples. My agents worked it out from the Lean files. The theorems are pure big-O existence, so no C or N is stated, but taking the construction apart:
As proved (the program is built for the proof) not for speed: C ≈ 10^14,410, and it beats n log n only once n has more than 10^16,000,000 digits. Built sensibly (my cost model, not in Lean), C ≈ 1.01, but it is just the ordinary fast transform until n ≈ 2^48,000, a 14,400-digit number. For the full DFT against your 5 n log n, n needs about 10^6,600 digits.
With t near 0.001 you need log n > C^(1/t), so even C ≈ 1.01 puts log n in the tens of thousands. The more practical side is my constant-factor work: (5/6) N log2 N + N.
As you hint at, your criticism of their matrix multiplication result applies to every result since at least the 90s. From what I’ve heard, the proof of OpenAI’s result was in the spirit of what some humans have been trying recently. Viewing their improvement on omega as a practical algorithm is not really a fair characterization.
There are people (Oded Schwartz) that care about practical applications and are working on improving the constants, but that just happens to get less PR. Maybe that work should be given more attention.
Well, when calculating algorithm complexities; if we can use arbitrary operations as atomic (Because how else are you going to argue arbitrary precision complex number arithmetic is a basic operation), then Fourier Transform in O(1) is trivial. Just use a computation model where Fourier Transform is one of the basic operations.
Your criticism of theoretical computer science is undeserved. Theoreticians are well-aware of these deficiencies of the big-Oh convention. Galactic algorithms are interesting only if they reveal something interesting, or make progress towards revealing something interesting. There are definitely examples of solutions that used to be impractical on account of the constants, but were later (sometimes decades later) improved to the point of being practical. For instance, that was the case with linear time planar graph embedding (and isomorphism). The initial results from the 1970s were in practice prohibitively slow (worse than quadratic or even cubic time simple algorithms), but in the 2000s this changed, and the new algorithms are now implemented is standard software packages.
If indeed the new DFT algorithm counts arithmetic operations on exponential size binary numbers, that's a cheat beyond even the formal theory rules of the game. We know that arithmetic over very large numbers can solve NP-hard problems using a polynomial number of arithmetic operations. You just simulate all the runs of a polynomially bounded non-deterministic Turing machine in parallel. If you're counting arithmetic operations, the numbers shouldn't grow uncontrollably compared to the numbers in the input. The RAM model requires numbers (and memory addresses) to have O(log n) bits (where n is the input size) for an operation to count as one operation.
This exact same criticism can be levied at "fast matrix multiplication" algorithms. But Winograd's 1971 algorithm was rightly hailed as an impressive breakthrough, despite being a "galactic" algorithm.
One nice thing about proving that something is possible epsilon faster than O(f(n)) time is that you can stop looking for a proof that the best you can do is O(f(n)).
Thanks for writing this up. A few weeks ago Anthropic publushed a blog post about "using claude to speed up protein structure prediction." I did a little testing myself and found that basically 100% of the "speedup" was from turning on cuda graphs and all the "optimized kernels" did not add much. Good (in some cosmic sense) to see that the pattern is similar for these math results.
I can imagine that tuning cuda kernels could be beneficial for the broader community! But too often the releases from the lab are more about advertising than actual public benefit.
Unreasonable complaint imo. Wow mathematics is ungrounded from physical reality? This has really torn the foundations out from under me — I always hoped my work in arithmetic geometry might cure cancer someday.
It's not a "failure of the culture" that the *complexity theorists* care more about the asymptotic behaviour than numerical improvements. Were it otherwise they ought to drop out of academia and become consultants for Google or something. You're more or less just arguing against the study of abstract objects in general.
Is this the best defence we can mount of our discipline? Complaints about *practicality*, of all things? (Mathematicians begging for mercy on the grounds of applicability to the real world — we really are fucked).
The ~entire reason that math as a field of study has a certain amount of status in the wider world (and provides viable careers) is its "unreasonable effectiveness" in practice. Sure, mathematicians might have other ideas about what's important, and after the dust settles, they just might get to continue pursuing that stuff. As hobbyists.
Oh come on. Algorithmic complexity theory is not pure math, it is supposed to be applied mathematics. The eagerness of CS theory people to pretend otherwise is an indication of a bad field, not bold theorizing.
Thanks for the nice summary.
I think the only problem with this paper is that it is picked up as a breakthrough, where all that it does is to exploit some holes in the applied computation model. Publishing such an exploit is fine, though a well-written such paper would warn the reader that this is a heck. Papers like this reteach the lesson of that models of computation have limitations. Though the problem with this one is that we kinda already knew these limitations and so why would you need another 30 page long paper about this?
A very nice post about FFT, OpenAI, and CS theory. However, I worry that terse calls for collective action ("we should consider doing something else") are detached from science culture (status quo, funding, institutional bias, fragile egos, ...) in the way that CS theory is detached from actual computers.
In defense of "exact complex arithmetic" (not OAI's ridiculous paper dump): plenty of people work on this sort of thing (keyword Blum-Shub-Smale model), and it has merit in providing potentially more tractable settings for various questions (like analyzing numerical algorithms, or "easier" versions of P vs NP.) There are also some high-profile people in TCS who are careful about things like controlling the bit-sizes and rounding errors in real/complex arithmetic.
All that said, there is your broader point that the paper dump "amplifies the unspoken cultural practices no one likes", such as not implementing an algorithm. Here, I completely agree!
I'm not against real computation as a lens on actual computation. The Blum-Shub-Smale work and related inquiry show that numerical conditioning is often the heart of complexity. Morgenstern and Ailon's work is closely related. I'm just saying that if you are going to all for real-valued coefficients, you have to show you can approximate your algorithm on a standard computer. And for that, you can't have exponentially large coefficients in matrices with infinite condition numbers.
Thank you for bringing this down to earth for us math tourists. Not sure how I feel about your description of the theoretic formalism in computer science. It seems very unfortunate for a discipline that should be application focused. On the other hand, makes me feel better that economics is not the only discipline that has lost its way with pseudo formalism.
I had the impression that the successes of AI in applied math were rather measured anyway. One would think that AI companies have a large interest in, say, faster implementations of stochastic gradient descent. But either they haven't let their agents loose on this, or they found nothing.
They do not want to publish anything that helps with AI development.
Anthropic will ban you from smarter models if you try to use them for GPU kernel development for ML.
Really? Ominous. They can't be terribly confident in their ability to advance ahead of competitors is this the case. Links?
careful now. They're going to use your article as a means to improve their AI generation :L
Hey, Ben. Great article! When I first heard about OpenAI's result, I was pretty excited at first, but after throwing a bunch of tokens at it I pretty much came to the same conclusion as you. Neat, but doesn't seem to be of too much practical use. For what it's worth though the community has improved the bounds from n(logn)^(1-1e-13) to almost n(logn)^(1-1e-3) which is almost less useless (maybe from a galactic algorithm to a solar system algorithm??). (https://github.com/jacobalansussman/wht-power-saving-lean if interested)
It has been interesting seeing how even how even though it's relatively easy to get AIslopped mathematical breakthroughs on this sort of thing, it's hard to get real-world improvements. After my experiments above failed to produce anything of much use I managed to get AI to improve the theoretical O-notation FFT bounds from Alman-Rao's (23/24)*n(logn) to (5/6)*n(logn) and (3/4)*n*(logn) [so changing the constant rather than the nlogn nature itself], but again this didn't increase the speed real-world processors I tested actually worked at. It did manage to decrease the space needed by about 20% on FPGA implementations I tried but, again, this came at the cost of a slower clock speed. (https://github.com/jacobalansussman/wht-fewer-operations if interested).
Since then I've set up Opus 5.5 on improving the speed of real-world FFT algorithms but all that's come of that so far was a test with a memory leak that crashed my computer. I see how AI can be a useful tool but we're still not at the point where we've seen substantial FFT improvements. I'm still holding out hope for a linear-time algorithm though!
Hah, I would also love a legitimate linear-time algorithm. That would be wild.
Regarding the repo work on improvement, can you get your agents to estimate the constant in front of n(log n)^(1-8e-4) in the big-O notation? I.e., the C and N I describe in my post?
Just to elaborate a bit on how hard it is to get a non-galactic algorithm here, you need the constant C and the sublogarithmic exponent t to satisfy
C*n*log(n)^(1-t) < =5*n*log*n
So even if C=20 and t=1/2, this is only true when n is larger than 8 million. If C=40 and t=1/2, the smallest n jumps to 6×10^21.
Sorry for the late response! Short answer: the n is far worse than your examples. My agents worked it out from the Lean files. The theorems are pure big-O existence, so no C or N is stated, but taking the construction apart:
As proved (the program is built for the proof) not for speed: C ≈ 10^14,410, and it beats n log n only once n has more than 10^16,000,000 digits. Built sensibly (my cost model, not in Lean), C ≈ 1.01, but it is just the ordinary fast transform until n ≈ 2^48,000, a 14,400-digit number. For the full DFT against your 5 n log n, n needs about 10^6,600 digits.
With t near 0.001 you need log n > C^(1/t), so even C ≈ 1.01 puts log n in the tens of thousands. The more practical side is my constant-factor work: (5/6) N log2 N + N.
As you hint at, your criticism of their matrix multiplication result applies to every result since at least the 90s. From what I’ve heard, the proof of OpenAI’s result was in the spirit of what some humans have been trying recently. Viewing their improvement on omega as a practical algorithm is not really a fair characterization.
There are people (Oded Schwartz) that care about practical applications and are working on improving the constants, but that just happens to get less PR. Maybe that work should be given more attention.
Well, when calculating algorithm complexities; if we can use arbitrary operations as atomic (Because how else are you going to argue arbitrary precision complex number arithmetic is a basic operation), then Fourier Transform in O(1) is trivial. Just use a computation model where Fourier Transform is one of the basic operations.
There is an entire agenda to explore average and beyond worst case analysis - https://cacm.acm.org/research/beyond-worst-case-analysis/
It is a bit sad to see this polemic against TCS.
Your criticism of theoretical computer science is undeserved. Theoreticians are well-aware of these deficiencies of the big-Oh convention. Galactic algorithms are interesting only if they reveal something interesting, or make progress towards revealing something interesting. There are definitely examples of solutions that used to be impractical on account of the constants, but were later (sometimes decades later) improved to the point of being practical. For instance, that was the case with linear time planar graph embedding (and isomorphism). The initial results from the 1970s were in practice prohibitively slow (worse than quadratic or even cubic time simple algorithms), but in the 2000s this changed, and the new algorithms are now implemented is standard software packages.
If indeed the new DFT algorithm counts arithmetic operations on exponential size binary numbers, that's a cheat beyond even the formal theory rules of the game. We know that arithmetic over very large numbers can solve NP-hard problems using a polynomial number of arithmetic operations. You just simulate all the runs of a polynomially bounded non-deterministic Turing machine in parallel. If you're counting arithmetic operations, the numbers shouldn't grow uncontrollably compared to the numbers in the input. The RAM model requires numbers (and memory addresses) to have O(log n) bits (where n is the input size) for an operation to count as one operation.
This exact same criticism can be levied at "fast matrix multiplication" algorithms. But Winograd's 1971 algorithm was rightly hailed as an impressive breakthrough, despite being a "galactic" algorithm.