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

The authors present a pipeline to detect under-trained tokens in language models. It combines tokenizer checks and embedding signals to rank candidates, then prompts the model to check for output probabilities below 1%. In OLMo v1.7 7B, 993 ranked candidates yielded 175 qualifying tokens, versus 191 among all 49,575 tokens, capturing most while reducing verification work, not demonstrating faster inference.

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.