Practice free →
HomeClaudeaifoundationstransformer_attention › The chosen positional encoding scheme uses

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.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions