AVQ-Attention-2 cuts attention training costs in transformer tests
In an arXiv preprint, Winfried van den Dool and colleagues introduce AVQ-Attention-2, a transformer layer that computes exact attention over nearby tokens and uses averages of groups of keys to approximate attention farther away. The authors report that, for a fixed number of groups, the training cost of the attention layer grows linearly with sequence length. Across the sequence lengths they tested, they report faster performance than FlashAttention with little or no quality loss. They also report replacing an attention layer in a pretrained transformer without fine-tuning.
Why it matters
The reported results suggest the layer could reduce the computational cost of processing long sequences. The replacement test also shows a way to evaluate it on an existing transformer without an extra fine-tuning step.
Sources
- PrimaryarXiv · Computer VisionSource date ·
Written by AIToolMaps from the source above and checked against it sentence by sentence.