An embedding layer is a lookup table with one row per vocabulary entry. This one is deliberately tiny:
| quantity | value |
|---|---|
| vocabulary size | tokens |
| embedding dimension |
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:
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?
The embedding layer is nothing but a lookup table — one row per vocabulary entry. Feeding in a word ID just reads that row.
Once you get it right, the reasoning behind the answer shows up here.
Select all that apply.