What One Sentence Can Move

Sequential DataMedium+20 XP+20

What One Sentence Can Move

An embedding layer is a lookup table with one row per vocabulary entry. This one is deliberately tiny:

quantityvalue
vocabulary size888 tokens
embedding dimension444

Every number in the table starts at a random non-zero value, and the table is trained by plain gradient descent — no momentum, no weight decay:

w←w−α∂L∂ww \leftarrow w - \alpha \frac{\partial L}{\partial w}w←w−α∂w∂L​

Exactly one training step is run, on one sentence, tokenised as

the cat sat on the mat

The loss is computed from these six lookups and the layers stacked on top of them. Assume no gradient comes out at exactly zero by coincidence.

After this single update, how many individual numbers inside the embedding table can have changed?

0.70
0.20
-0.40
0.60

The embedding layer is nothing but a lookup table — one row per vocabulary entry. Feeding in a word ID just reads that row.

Hints

Solve it to unlock the solution

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

Select all that apply.