Sparse Attention's Efficiency in Long Contexts

Sparse attention mechanisms, exemplified by models like Longformer and BigBird, reduce the computational complexity of transformers from quadratic to linear, enabling them to process sequences up to 8x longer than traditional dense attention models by focusing on a subset of relevant tokens.

Sources

Open the full topic