A Budget of Focus

AttentionMedium+20 XP+20

A Budget of Focus

A self-attention head of width dk=64d_k = 64dk​=64 is reading the sentence "the cat sat down". The token "sat" supplies the query, and its query has already been dotted with all four keys. These are the raw, unscaled dot products:

tokenqsat⋅kq_{\text{sat}} \cdot kqsat​⋅k
the888
cat242424
sat161616
down000

These are not weights yet. Finish the two remaining operations of the formula that stand between a row of raw dot products and a row of attention weights.

What attention weight does "sat" end up placing on itself?

Round your answer to 3 decimal places.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.