Widening the Middle

TransformersHard+30 XP+30

Widening the Middle

A team builds a transformer block of width d=512d = 512d=512 and makes the feed-forward sublayer's middle eight times the width instead of the usual four.

The learned weight matrices in one such block:

sublayermatrices
self-attentionfour matrices of shape d×dd \times dd×d — the query, key and value projections, plus the output projection that follows the heads (splitting into heads does not change this total)
feed-forwardone matrix of shape d×8dd \times 8dd×8d that widens, and one of shape 8d×d8d \times d8d×d that narrows

Ignore biases and the layer-norm parameters; count only the entries of those matrices.

What share of this block's weights sits in the feed-forward sublayer? Give it to the nearest whole percent.

Hints

Solve it to unlock the solution

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

Select all that apply.