Home Knowledge Base Landmark Attention

Landmark Attention is the efficient transformer attention mechanism that reduces computational complexity by routing all token attention through a sparse set of landmark (anchor) tokens that serve as information hubs — achieving sub-quadratic attention cost while preserving global information flow — the architecture that demonstrates how strategically placed landmark tokens can serve as a compressed global context, enabling long-sequence processing without the full O(n²) cost of standard self-attention.

What Is Landmark Attention?

Why Landmark Attention Matters

Landmark Attention Architecture

Landmark Placement Strategies:

Attention Pattern:

Complexity Comparison

MethodAttention ComplexityGlobal ContextMemory
Full AttentionO(n²)CompleteO(n²)
Local WindowO(n × w)NoneO(n × w)
Landmark AttentionO(n × k + k²)Via landmarksO(n × k)
LongformerO(n × (w + g))Via global tokensO(n × (w + g))

Landmark Attention is the information-routing architecture that proves global context can be maintained through strategic compression — using a sparse network of landmark tokens as information hubs that connect distant sequence regions at sub-quadratic cost, achieving the practical efficiency of local attention with the semantic capability of global attention.

landmark attentionllm architecture

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.