FAVOR+'s Core: Random Feature Softmax Approximation
The algorithm revolutionizes attention by using positive orthogonal random features to approximate the softmax kernel, transforming quadratic complexity into a linear operation.
The top 3
- FAVOR+'s Roots: Kernel Approximation & Random Kitchen Sinks: FAVOR+'s random feature softmax approximation draws inspiration from kernel approximation methods, particularly the 'Random Kitchen Sinks' technique by Rahimi and Recht, which uses random projections to efficiently approximate kernels with finite-dimensional feature maps.
- FAVOR+'s Core: Linearizing Softmax with Positive Features: The FAVOR+ algorithm's core innovation is approximating the softmax kernel `exp(QK^T/sqrt(d))` by using positive orthogonal random features to transform queries (Q) and keys (K) into a lower-dimensional space. This allows the attention computation to be performed as a sequence of matrix multiplications, effectively linearizing the typically quadratic softmax operation without explicitly forming the large attention matrix.
- Random Features: Softmax's Statistical Efficiency Trick: FAVOR+'s random feature softmax approximation relies on statistical sampling to project high-dimensional query and key vectors into a lower-dimensional space, allowing efficient dot-product approximations that closely mimic the full softmax output while drastically cutting computational and memory demands.
Sources
Open the full topic