Incident: Tokens the model never learned
Module 2 · Incident file · About 30 minutes
What happened
In February 2023 Jessica Rumbelow and Matthew Watkins published "SolidGoldMagikarp (plus, prompt generation)" on LessWrong. They had found odd entries in the vocabulary of the tokeniser used by GPT-2 and GPT-3: whole-word tokens such as " SolidGoldMagikarp", which is a Reddit username. Asked to repeat these strings back, the models could not, and they answered strangely about them.
The likely cause, as the write-up explained it, sits between two sets of text. The tokeniser was built on text in which these strings were common, so each earned a token of its own. The model was then trained on text in which they were rare, so it learned almost nothing about those tokens. The tokeniser handed the model pieces it had barely seen.
Lesson 2 of this module trained a subword tokeniser and warned that a tokeniser ships with its model. This case is the other half of that warning: a tokeniser and a model must also be built from the same text.