Earlier quoted context omitted.
From the abstract I get the feeling these techniques are useful when you don’t have access to the corpus, as e.g. in the case where you download some open source weights but the corpus is secret. Otherwise I don’t understand why you wouldn’t just compute a histogram over the tokens in (a statistical sample of) the corpus.
The paper mentions some reasons why these quick fix ideas are not as simple as it sounds. For example many rare tokens are “intermediate” merges inside the BPE algorithm, shorter prefixes of longer words. The long word is common, but its earlier, intermediate merge is not, by itself.
Automatically Detecting Under-Trained Tokens in Large Language Models
11–20 of 27 posts
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#12When we find them, it might be best to delete weights with hardly any data flowing through them (which might make the model smaller or help generalisation).
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#13Earlier quoted context omitted.
Sure, but if your corpus is very large, that's not feasible.
Tokenizer training doesn't scale as well as model training, so general practice is to train on a subset of the full corpus.
Maybe if we’re talking terabytes it might not scale as well but so far in my experience training tokenizers has never been an issue. It’s training models that takes ages.
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#14Isn't the solution to just train the tokeniser on the same corpus as the LLM? I'm not sure why reusing tokenisers is so common. Anybody know?
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#15Amazing name for the paper
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#16Isn't the solution to just train the tokeniser on the same corpus as the LLM? I'm not sure why reusing tokenisers is so common. Anybody know?
1. They want to continue pretraining a model instead of starting from scratch. But actually people might not know that you can pretty easily reuse model weights even when training with a new tokeniser (I’ve got a blog post on how to do that: https://umarbutler.com/how-to-reuse-model-weights-when-train... ).
2. Because it’s convenient for end users. Tokenising and chunking really large corpora can take a long time and it’s nice that I can use the GPT2 tokeniser and then train a bunch of different models on that data without having to retokenise everything.
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#17Earlier quoted context omitted.
Sure, but if your corpus is very large, that's not feasible.
Tokenizer training doesn't scale as well as model training, so general practice is to train on a subset of the full corpus.
Re: Automatically Detecting Under-Trained Tokens in Large Language Models
#18Earlier quoted context omitted.
From the abstract I get the feeling these techniques are useful when you don’t have access to the corpus, as e.g. in the case where you download some open source weights but the corpus is secret. Otherwise I don’t understand why you wouldn’t just compute a histogram over the tokens in (a statistical sample of) the corpus.
> open source weights but the corpus is secret This is oxymoronic; the corpus is the "source". Yet this usage of "open source" is widespread. Maybe we should start calling such models by their rightful name, "freeware".