In a nutshell
Self-attention lets every word in a sentence look at every other word and decide how much to focus on each. A word asks a question (its query) and every word offers a label (its key); matching them gives focus weights that blend the words' contents (their values). Several heads do this in parallel, each catching a different kind of relationship.