Google introduced this idea in 2022 with "FNet: Mixing Tokens with Fourier Transforms" [0]. Later they found out that, performance of their TPU(s) for matrix multiplication was faster than FFT in the most scenarios. [0]: https://arxiv.org/abs/2105.03824
That seems like an odd comparison, specialty hardware is often better, right? Hey, do DSPs have special hardware to help with FFTs? (I’m actually asking, this isn’t a rhetorical question, I haven’t used one of the things but it seems like it could vaguely be helpful).
The FFT Strikes Back: An Efficient Alternative to Self-Attention
61–70 of 175 posts
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#62Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#63Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#64Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformers John Guibas, Morteza Mardani, Zongyi Li, Andrew Tao, Anima Anandkumar, Bryan Catanzaro
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#65Machines going to be thinking in the frequency domain. We cooked.
Our bodies have parts that do processing in frequency domain. Who knows, maybe it'll turn out we are thinking in the frequency domain, too.
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#66this seems to follow the similar FNO work by nvidia, and switching to frequency domain is usually in any computer scientist's toolbox at this point, however, I'm curious if this translates to real gains for real architectures. FFT makes use of imaginary numbers to encode the harmonics of the signal, these are generally not amenable to gpu architectures. Would fast walsh hadamard suffice? Sometimes the 'signal mixing'…
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#67this seems to follow the similar FNO work by nvidia, and switching to frequency domain is usually in any computer scientist's toolbox at this point, however, I'm curious if this translates to real gains for real architectures. FFT makes use of imaginary numbers to encode the harmonics of the signal, these are generally not amenable to gpu architectures. Would fast walsh hadamard suffice? Sometimes the 'signal mixing'…
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#68The Fourier transform is taken along the “token” dimension. However, in many applications, this dimension is not meaningful. That’s why transformers are a great option for consuming data which is permutation invariant. I would like to see additional experiments using the lesser known Fourier transform over finite groups [1], which is permutation invariant but shares many properties with the standard Fourier transform…
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#69Basically leverages convolution theorem[0]: expensive convolutions in direct space becomes simple multiplications in reciprocal space, and vice versa. Whereever you have a convolution operation on your data, transform them to the conjugate domain to turn it into multiplication. In other words, work in the domain that is natural to your data. [0] https://en.wikipedia.org/wiki/Convolution_theorem
Why would multiplication be more "natural" to a domain than convolution, as opposed to just simpler to calculate?
Re: The FFT Strikes Back: An Efficient Alternative to Self-Attention
#70This guy's has had a lot bangers lately.