Introduction to Position Encoding: From Sine Waves to RoPE, How Transformer Knows the Order of Words
The attention mechanism has a natural flaw: it is insensitive to input order. By shuffling the words in a sentence, the result calculated from self attention remains almost unchanged, but "cat chasing