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.
Open the full topic