Sliding-window attention
Attention in which each token looks only at a fixed number of nearby tokens, so the cost grows in step with the length of the text instead of with its square. A few tokens can be given global attention to reach the whole text.
Introduced by
Longformer, 2020
Used by
- Mistral 7B, 2023