Index Ai Academy
Glossary · Phase 5 · Transformers

Sliding-window attention

Also written: sliding window attention

Attention where each token only looks at a fixed number of recent tokens, so the cost grows in step with the length instead of with its square.

Learn it properly

Long context · Efficient attention and million-token windows. About 35 minutes.

Open the lesson Create a free account

Other terms from the same lesson