Search papers, labs, and topics across Lattice.
This paper introduces TokEval, a comprehensive evaluation framework for tokenizers that assesses linguistically and structurally meaningful properties beyond traditional metrics. By conducting controlled pretraining experiments with various tokenizers, the authors demonstrate that intrinsic properties significantly influence downstream model performance, with information-theoretic metrics predicting language modeling abilities and structure-sensitive metrics correlating with task accuracy. The findings advocate for a more principled approach to tokenizer evaluation, potentially replacing extensive pretraining sweeps with targeted intrinsic measurements.
Tokenizer design choices can drastically affect model performance, with intrinsic properties predicting abilities in language modeling and task accuracy more effectively than traditional metrics.
Language model tokenizers are typically selected with minimal evaluation, despite the fact that their design choices directly impact model capabilities. This can be partly attributed to a limited understanding of which tokenizer properties affect which aspects of downstream performance. We introduce TokEval, a framework of tokenizer evaluation metrics that goes beyond standard measures like fertility and compression rate to capture linguistically and structurally meaningful properties, e.g., UTF-8 character boundary integrity and digit place-value boundary alignment for mathematics. To validate whether these metrics are predictive of downstream model performance, we conduct controlled language model pretraining experiments, varying solely the tokenizers'training data mixture, pretokenization strategy, and training algorithm. We evaluate the resulting models on bits-per-byte (a tokenizer-agnostic version of perplexity) and several benchmarks, spanning linguistic understanding, mathematical reasoning, and code generation. Our experiments suggest that different intrinsic properties have different impacts on model abilities: information-theoretic metrics predict language modeling abilities (Spearman rho up to 0.80), while structure-sensitive metrics, such as those measuring digit and line-break handling, correlate with task accuracy. We hope TokEval enables more principled tokenizer evaluation, replacing pretraining sweeps with intrinsic measurement wherever the two agree.