Before transformers, RNNs and LSTMs processed text sequentially. The key insight of self-attention: let every token attend to every other token simultaneously—enabling parallelization and direct connections.
Example: "The cat sat on the mat because it was tired." When processing "it," the model computes scores between "it" and every word. "Cat" gets a high score (it refers to the cat); "the" or "on" get low scores. Information flows from relevant words.