c21 · E3

Open: Attention, Images and Sequences

c21.E3.1E3 · open

Section 21.5 says attention sees a collection of vectors and the block treats every position alike, so a position signal is added before the first block. It does not say what that signal should be. The field has several answers: fixed sinusoidal patterns, learned vectors with one entry per position, relative offsets computed from the distance between two positions, and rotations of the query and key vectors by an angle that depends on position. No scheme wins on every task, and the choice changes what happens when a model meets a sequence longer than the one it trained on.

Take a position: what should a position signal encode, and what experiment would show whether your choice is right?

In your answer: name at least two candidate schemes and the property each assumes; specify the control and the quantity you would measure; say what pattern of results would count for and against each scheme; state one way the experiment could mislead you; and say what the result would imply for a model trained on short sequences and tested on long ones.

Rubric. Tick each criterion your answer meets, then save the self-assessment. The platform does not grade it.

Other tiers

E1 Practise · E2 Derive

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.