Global Context Demands All-Pairwise Relationships

To establish comprehensive long-range dependencies and contextual understanding across the entire input sequence, self-attention must model every token's relationship to every other, necessitating O(N²) comparisons for its global perspective.

Sources

Open the full topic