the.ai

Attention / Position

verified

Positional Encoding

Attention has no idea what order anything is in. Shuffle the input and the output shuffles with it, unchanged. Positional encoding puts the order back by adding a position-dependent signal to each token's representation, so that a word at the start and the same word at the end no longer look identical.

Viz primitive · update-spectrumfrequencies = 8 · bars = 8

8 values. The left group decays steeply; the right group is 67% of the way to flat, and reads flatter than the left.

The frequency bands making up a position's signal, from fastest to slowest. Drag the band count to see how finely position can be distinguished.

8

Reviewed by opendroid · 2026-08-04