TL;DR
Token aggregation is a challenge in models that convert token representations into predictions, as most methods only work in the original token space. FLaG, a new aggregation module, utilizes the real Fast Fourier Transform (FFT) to enhance token representations by summarizing spectral components with learnable queries and applying a channel-wise gate.
✦ Why It Matters
Engineers can implement FLaG to improve prediction accuracy in models requiring token aggregation.
Key Takeaways
How It Works
FLaG operates by first applying the real Fast Fourier Transform (FFT) to token representations, which allows the model to analyze the frequency components of the data. It then uses learnable latent queries to summarize these spectral components, effectively capturing important features.
A channel-wise gating mechanism is applied to reweight the contributions of different frequency bands, enabling the model to focus on the most relevant information. Finally, the enhanced time-domain tokens are reconstructed for pooling, leading to improved predictions.
Related