Same Weights, Different Scores

AttentionMedium+20 XP+20

Same Weights, Different Scores

One query is scored against four positions of a sentence, giving the raw score row

s=[ 2.0,  1.0,  1.0,  0.0 ]s = \big[\,2.0,\ \ 1.0,\ \ 1.0,\ \ 0.0\,\big]s=[2.0,  1.0,  1.0,  0.0]

Softmax — exponentiate every score, then divide by the total — turns that row into attention weights:

softmax(s)i=esi∑jesj⟹softmax(s)≈[ 0.5344,  0.1966,  0.1966,  0.0723 ]\mathrm{softmax}(s)_i = \frac{e^{s_i}}{\sum_j e^{s_j}} \qquad \Longrightarrow \qquad \mathrm{softmax}(s) \approx \big[\,0.5344,\ \ 0.1966,\ \ 0.1966,\ \ 0.0723\,\big]softmax(s)i​=∑j​esj​esi​​⟹softmax(s)≈[0.5344,  0.1966,  0.1966,  0.0723]

Below are four other score rows over the same four positions. Exactly one of them produces the identical weight at every position — 0.53440.53440.5344 on the first, 0.19660.19660.1966 on the second and third, 0.07230.07230.0723 on the fourth.

Which row is it?

Hints

Solve it to unlock the solution

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

Select all that apply.