Reproduce “Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Sander Land, Max Bartolo
Researchers at Cohere developed automated methods to identify "under-trained" or "glitch" tokens in Large Language Models, which are vocabulary tokens rarely or never encountered during training, leading to inefficient resource use and unpredictable model behavior. Their analysis demonstrates that these tokens are widespread across various LLMs and can cause issues like hallucinations or garbled outputs.
Key insights
- Under-trained tokens are widespread across diverse LLMs, typically constituting 0.1% to 1% of a model's vocabulary, with common sources including single-byte tokens and intermediate BPE fragments.
- The proposed weight-based indicators show a strong correlation with actual token frequencies in training data, providing a reliable method for identifying under-trained tokens even without direct access to training logs.
- Mismatches between tokenizer training data, model training data, and pre-processing pipelines are primary causes of under-trained tokens, emphasizing the need for consistent data handling across the LLM development lifecycle.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.