You are reading immutable version 19. The current guide may be newer.

Study the paper

Attention Is All You Need

Lessons, visuals, quizzes, flashcards, and resources—organized in teaching order.

All activities

Integrated assessment

Test your understanding

Check your understanding

1. What does the supplied architecture replace with attention?
2. State the architectural motivation established by the supplied introduction excerpt.
3. Which two major structural parts are named in the excerpt?
4. How would you begin tracing a component through the architecture?
5. Which matrices form the score product before scaling?
6. Describe the roles of queries, keys, and values in the attention equation.
7. What divides the query-key score in scaled dot-product attention?
8. Write the scaling divisor and explain what its symbol denotes.
9. In an illustrative scalar score of 2 with d_k = 4, what is the scaled score before softmax?
10. For an illustrative unscaled score s and key dimension d_k, state the score sent to softmax.