Start learning →

The chosen positional encoding scheme uses

AA separate learned embedding per absolute index
BA relative position bias in attention weights
CRotary half-angle phase shifts on each key vector
DSinusoidal functions of different frequencies
Answer & Solution
Correct answer: D. Sinusoidal functions of different frequencies
PE_(pos, 2i) = sin(pos / 10000^(2i/d_model)); odd dimensions use cos. Wavelengths form a geometric progression from 2π to 10000·2π. Chosen partly so the model can extrapolate to longer sequences than seen in training.
Practise this question with Quill — Claude →

Keep practising Transformer Attention

Browse all Transformer Attention questions for Claude, or explore more Aifoundations topics.

Start a Transformer Attention lesson →
Related questions