0PricingLogin
NLP Academy · Lesson

Self-Attention, Step by Step

Queries, keys, and values.

What Is Self-Attention?

In self-attention, every word looks at every other word in the same sentence to build a richer, context-aware version of itself. 🔍

Three Roles per Word

Each word is projected into three vectors: a query, a key, and a value. These three roles drive the whole self-attention computation.

All lessons in this course

  1. The Idea of Attention
  2. Self-Attention, Step by Step
  3. Multi-Head Attention and Positions
  4. Inside the Transformer Block
← Back to NLP Academy