Sébastien Huet — Books

Chapter 11

Attention and Transformers: the revolution
Question 1 of 10
Chapter 11Intermediate

Positional encoding — why sin and cos

The sinusoidal positional encoding uses $\sin$ and $\cos$ at varied frequencies. What mathematical properties does this construction guarantee?