Two Relations at Once

AttentionHard+30 XP+30

Two Relations at Once

Self-attention runs on the five-token sentence

the   tired   cat   slept   quietly

with a model width of d=64d = 64d=64.

Consider the output computed for slept. We want it to draw on both of the words slept relates to, each at close to full strength — meaning an attention weight of about 0.90.90.9 on that position:

  • cat, its subject, and
  • quietly, its manner.

Two setups are compared. Each scores queries against keys, scales by the square root of its own head dimension, applies softmax, blends the values, and passes the result through one learned output matrix:

design
Setup 1one attention head of width 646464
Setup 2four attention heads of width 161616, concatenated

Setup 2 can meet the goal above. Setup 1 cannot — not with any values of its WQW_QWQ​, WKW_KWK​ and WVW_VWV​, however long it is trained.

What is the precise reason?

Hints

Solve it to unlock the solution

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

Select all that apply.