Positional Encoding
Also called: Positional Embedding
What is Positional Encoding?
In one sentence: Positional encoding adds information about word order, so the model knows which word came first, second, and so on.
What does Positional Encoding look like?
Without positional encoding, a model could not tell "I ate the cake" from "the cake ate I."
Why does Positional Encoding matter?
Word order carries meaning, so every Transformer needs some form of positional information.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/positional-encoding/">Positional Encoding, explained simply</a> (The AI Math Dictionary)