FAVOR+'s Efficiency: Memory & Speed Gains

Beyond speed, FAVOR+ significantly reduces memory footprint by avoiding explicit computation and storage of the full attention matrix, making it viable for very long sequences on diverse hardware.

The top 3

  1. From Quadratic to Linear: FAVOR+ Complexity Leap: FAVOR+ reduces Transformer attention's computational time and memory from quadratic (O(L²)) to linear (O(L)) complexity in sequence length L, enabling vastly longer contexts without relying on sparsity or low-rankness.
  2. FAVOR+: Up to 8x Speed, 32K Token Support: FAVOR+ delivers up to 8x faster processing on long sequences and enables Performer architectures to handle sequence lengths up to 32,768 tokens on a 16GB GPU, a range far exceeding the practical limits of standard Transformers.
  3. Random Feature Magic: FAVOR+'s Efficiency Secret: FAVOR+ achieves its linear-scaling efficiency by approximating the softmax attention kernel with positive orthogonal random features, allowing for rearrangement of matrix multiplications to avoid explicitly constructing the quadratically-sized attention matrix.

Sources

Open the full topic