When the Table Pays for Itself

Sequential DataHard+30 XP+30

When the Table Pays for Itself

A vocabulary holds V=50,000V = 50{,}000V=50,000 tokens, and the embedding dimension is d=300d = 300d=300.

Count every number each scheme has to store in order to represent a passage of TTT tokens.

One-hot. Each token becomes a vector of length VVV, written out in full. There is nothing else to store — the representation is the scheme.

Embedding. The lookup table is stored once: one row of ddd numbers for every vocabulary entry. On top of that, each of the TTT tokens becomes a vector of length ddd.

For a very short passage the embedding scheme is the more expensive of the two, because the whole table has to be paid for before a single token has been represented.

What is the smallest whole number of tokens TTT for which the embedding scheme stores strictly fewer numbers than the one-hot scheme?

Your answer is a whole number.

Hints

Solve it to unlock the solution

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