OpenAI algorithm for the FFT is less a breakthrough and more a malicious exploit

Hacker News by 9 min read 92x views
OpenAI algorithm for the FFT is less a breakthrough and more a malicious exploit

Share Post

Hi there, argmin readers! Today’s article looks at part of OpenAI’s math repository that claims to compute faster Fourier transforms. It’s additional specialized than usual, but I tried to add several tutorial matter for group who need a refresher way on indication handling or computational complexity.

The Fast Fourier Transform is among the most crucial innovations in digital indication handling and one of my favorite algorithms. The FFT is a accelerated way to extract the frequence satisfied of signals, letting you quickly analyze, filter, and manipulate frequencies throughout distinct bands of the spectrum.

The Fourier change computes the energy in all frequence collection through a uncomplicated dot product.1 Let x signify your input, a dimension n gathering of samples, and f a frequency. Then the amount of frequence satisfied in x at f can be computed by the formula:

For digital signals, a bit of math shows you lone need to compute n of these dot products, one at all multiple of the frequence 2𝜋/n, to comprehend all of the frequence content. Naively, this requires n multiplications and additions for all frequency. Hence, computing the complete Fourier change appears to necessitate n2 arithmetic operations.

The fast Fourier change is a clever recursive procedure devised by James Cooley and John Tukey in 1965.2 The chief idea is that a length-n Fourier change can be computed by shuffling the input vector, computing two Fourier transforms of dimension n/2 on the shuffled components, and afterward recombining the outputs using nuclear arithmetic operations. The shuffles and recombinations obtain a linear figure of arithmetic operations. Repeating this procedure iteratively, namely, log2(n) times, computes the complete discrete Fourier transform. With the bookkeeping, the FFT computes a length-n Fourier change in small than 5 n log2 n arithmetic operations.

To create this acceleration concrete, whenever n is 1,000, n^2 is 1,000,000 and 5 * n log n is about 50,000, a 20-fold speedup. When n is 1,000,000, the speedup is 10,000-fold. These speedups can be the difference between a change being computable or not stated the constraints of a indication handling application.

Since the innovation of the FFT, group have looked for equal faster Fourier transforms. One inquiry is fair how accelerated you can go. It seems akin you likely need at smallest n operations to compute the FFT, as it takes n steps fair to compose it down. The FFT is 5*log2(n) times slower than that sensible speed limit, and that 5*log2(n) aspect can be big. It’s 200 whenever n is a trillion. Can you do item clever to decrease that prefactor of 200?

Well, lo and behold, in the enormous document dump OpenAI took on the math earth final week, they assertion to have a faster Fourier transform. The chief assertion from their discriminatively named “main.pdf” is

I was intrigued concerning what was going on here. The log(n) term, in theory, was a teeny small bit smaller than in the norm FFT.

Did I peruse this paper? Of way not. No one at OpenAI peruse this document either, so why should I? I did what all another mathematician in the earth does alongside AI slop mathematics: I fed it rear into the slop device and ran an data retrieval meeting alongside a chatbot interface to extract prominent facts. Anthropomorphically speaking: I asked ChatGPT what it thinks concerning its own output. This is how we do mathematical investigation now. What a world.

Unfortunately, I did not discover a faster Fourier transform. Instead,l I established the rot that develops inner applied mathematical theory whenever formalism becomes so detached from actuality that a “breakthrough” is nothing additional than an relic of mathematicians not being capable to correctly define the rules of their games in natural language.

First, “big-O” notation has been so abused that it has rotate into meaningless. Let’s assessment the definition, which impressed me as an undergrad. An algorithm has operating period T(n) = O(F(n)) if there exists an entire figure N and a changeless C specified that

That is, the figure of steps the algorithm really takes is high bounded by a changeless times several convenient function F(n) as lengthy as n is large. F(n) is normally item acquainted and interpretable, akin a polynomial or exponential function. This notation says that we lone attention concerning what happens whenever the size of the computation is large. We attention concerning the asymptotic growth charge of the computation time. All constants are equivalent.

Big-O notation is helpful for shortcuts in algorithmic accounting, but it additionally allows for notable logical laziness. If we desire a practically faster FFT, we desire an algorithm that requires small than 50n operations for fairly sized n. But O(n) does not average 50 n. It could average 1080 n. This would be considered a “linear time” algorithm. An algorithm that requires n + 1080 is additionally considered a linear period algorithm in the big-O regime. An algorithm that lone has linear-time guarantees whenever n is greater than 1080 is additionally considered linear time. 1080 is about equal to the figure of atoms in the known universe. That is why Richard Lipton and Ken Regan call algorithms alongside unfathomably ample hidden constants galactic algorithms.

The OpenAI FFT algorithm is certainly galactic. The estimated values for C were 10100 whenever N=1012. So equal whenever n=10100, the venerable Cooley-Tukey-Gauss FFT would be 1099 times faster.

So why is this new FFT outcome interesting? Well, note that in big-O notation, it is technically asymptotically faster than the Cooley-Tukey algorithm because

I mean, sure. But stated the constants, the algorithm runs faster lone whenever n is impossibly large. Roughly, you need

whatever the hell that figure means.

Lipton and Regan contend galactic algorithms are helpful since they spur research. Once you display a operating period is asymptotically possible, you can expend your period finding an algorithm that practically achieves this provable operating time. Maybe you can dispatch your AI delegate swarms following it. You do you. Maybe you can get a applicable algorithm out, but I don’t cognize of any lawful examples anywhere this happened. I’m particularly doubtful here, since the example of “computation” OpenAI uses bears no similarity to an genuine computer.

“The example uses exact complex arithmetic.” That method it assumes you can shop and multiply complex numbers at arbitrary precision. Indeed, the algorithm requires you to multiply complex numbers whose magnitudes develop superpolynomially alongside n. If you stored these numbers as bits, the recollection necessity would efficiently be exponential in the input length. It assumes you can multiply specified arbitrarily ample complex numbers together in a sole operation. We do not have computers that can do this. So equal if this theorem in main.pdf is “true” (no one knows, and I don’t care), it’s not really solving the issue we set out to resolve whenever looking for a faster FFT.

For group acquainted alongside theoretical analyses of the FFT, that you need an ridiculous example of computation to interrupt the FFT speed bounds isn’t surprising. In 1973, Jacques Morgenstern proved that you couldn’t get a Fourier change faster than ½ n log n if you required that complex coefficients used in the computation had bounded magnitude. That should have been the end of the story! But it wasn’t. People stated Morgenstern’s restricted coefficient example was too restrictive. Forty years later, Nir Ailon showed that you couldn’t compute an FFT faster than n log n without serious numerical instabilities. This was additionally too restrictive for several people, I guess.

This new OpenAI outcome is thus small a mathematical breakthrough and additional an oddity of device scientists being bad at formalizing their scheme specifications. The “theoretical” definition of a device is extremely far removed from the computers we really build. The “faster” Fourier change is merely an example anywhere theory gets so unmoored from the first inquiry that an “open problem” becomes nothing additional than an scholarly position puzzle. The resolution is akin what happens whenever you set computational bot streams at unattainable problems and discover them engaging in forbidden hacking.

Many of the another “big” results in this OpenAI slopository could be critiqued in the identical way. For example, one of those results was a galactic algorithm to multiply two matrices in O(n^2.25) operations. The building used in the document does not let you equal evaluation the changeless that hides inner big O.3 It may as fine be infinite, computable lone alongside the divine music of the spheres.

Still, if written substantially better, these document would have made it into the most distinguished publish venues for the theory of device discipline (i.e., refereed gathering proceedings from STOC or FOCS).4 The matrix multiplication document would have apt won awards. But neither of these has item to do alongside computers!

This is since the theory of device discipline has a civilization that actively discourages operating algorithms on a computer. It’s satisfactory to compose document in theory conferences that province an algorithm exists without always penning it down. The theory of device discipline has rotate into a form of math that doesn’t involvement itself alongside computers, and it offers small reward for effect exterior those mathematical pursuits. I explained this to a companion who remarked to me that “theory” has the transdisciplinary definition of “hiding in nowhere of one’s own making.”

AI is really fine at automating our worst tendencies. It amplifies the unspoken traditional practices no one likes, but no idiosyncratic can fairly deviate from. It exploits the mechanized traditions recalcitrant to company action. In that vein, AI can now compose useless theory papers. But perchance in the absurdity of the distasteful OpenAI trash dump of proofs, we can all appearance up and acknowledge together that we should regard doing item else.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads