🔒

Pro Lab

Positional Encoding

Attention is order-blind, so transformers stamp each position with a sine/cosine fingerprint at many frequencies. Watch the iconic wavy heatmap give every position a unique code, and nearby positions a similar one, so attention can reason about order.

Start 30 days free → Try 34 free labs No card needed · cancel anytime Already Pro? Log in