Back to the lesson libraryMECHANISM · 12 MIN
M15.5 CONNECT THE MECHANISM

Give a transformer information about order

To plain self-attention, "dog bites man" and "man bites dog" are the same news. See the three tricks, waves, rotations, and distance penalties, that give transformers a sense of order.

LESSON OVERVIEW12 min lesson

Lesson overview

To plain self-attention, "dog bites man" and "man bites dog" are the same news. See the three tricks, waves, rotations, and distance penalties, that give transformers a sense of order.

What you’ll explore

  • Explain why self-attention needs position information, and trace additive (learned or sinusoidal) positions, rotary position embeddings, and distance biases.
Suggest a correction

A precise note can make an explanation better.

Choose the scene and describe what needs attention. Download a feedback file to share through a channel you already use. This page does not send feedback or connect you with a reviewer.

The file includes this note, the scene title, and lesson metadata. Your saved progress and quiz responses are excluded. Download before leaving or reloading to keep your note.