Let's understand Positional Encoding from High School Physics
The sinusoidal positional encoding of "Attention Is All You Need", rebuilt from one picture: a clock hand turning at a steady speed. Live figures, and numbers to check on a calculator at every step.



![86.5% on IndicGLUE sna.bn, above mBERT and IndicBERT — from 7.5M parameters trained 28 hours on one 16GB M1. On the right, the six-layer encoder stack: a [CLS] A [SEP] B [SEP] pair goes in at the top, a pooled [CLS] classifier reads it out at the bottom.](/_astro/bert_cover.ChghBB-Z_Z16YI7L.webp)
