atlas

Research map / Large language models / Language, safety and interpretability

Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that optimal LLM vocabulary size grows with compute budget and proposes three approaches (IsoFLOPs power-law fits, derivative-based estimation, and a parametric loss fit) to predict it, validated with models up to 3B parameters.

Problem

Scaling laws for LLMs ignore vocabulary size, leading to widely varying and likely suboptimal vocabulary sizes; the compute-optimal vocabulary size for a given model and budget is unknown.

Approach

Introduces a vocabulary-insensitive unigram-normalized loss and a tokens-per-character function f(V), then predicts optimal vocabulary via IsoFLOPs power-law fits, a derivative of FLOPs w.r.t. V, and a parametric loss with a vocabulary term.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase vocabulary from 32K to the predicted optimal 35K2.87B non-vocabulary parameter model · ARC-C, compute-optimal training (1.2e21 FLOPs)accuracy: 28.5 ±1.3 -> 29.1 ±1.3Helped
Increase vocabulary from 32K to the predicted optimal 35K2.87B non-vocabulary parameter model · Average, compute-optimal training (1.2e21 FLOPs)accuracy: 47.9 -> 48.5Helped
Reduce vocabulary from 32K to the predicted optimal 24K2.87B non-vocabulary parameter model · ARC-C, undertraining (2.8e20 FLOPs)accuracy: 23.6 ±1.2 -> 24.2 ±1.3Helped
Reduce vocabulary from 32K to the predicted optimal 24K2.87B non-vocabulary parameter model · Average, undertraining (2.8e20 FLOPs)accuracy: 43.2 -> 43.9Helped
Increase vocabulary from 32K to the predicted optimal 43K2.87B non-vocabulary parameter model · ARC-C, overtraining (2.3e21 FLOPs)accuracy: 29.1 ±1.3 -> 32.0 ±1.4Helped
Increase vocabulary from 32K to the predicted optimal 43K2.87B non-vocabulary parameter model · Average, overtraining (2.3e21 FLOPs)accuracy: 50.3 -> 51.6Helped
Reduce vocabulary from 16K to 10K when training data is the bottleneckModel with N_nv=302M · Data-constrained trainingvalidation loss: 16K -> 10KHelped
Increase vocabulary from 16K to 24K with excessive training dataModel with N_nv=302M · Excessive-data trainingvalidation loss: 16K -> 24KHelped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama

Benchmarks: ARC-Challenge ARC-Easy HellaSwag OpenBookQA WinoGrande PIQA BoolQ

Metrics: accuracy normalized loss (L_u) RMSE R^2

Baselines: Llama2 vocabulary 32K Gemma vocabulary configurations

Builds on: Chinchilla scaling laws unigram-normalized metric Llama architecture

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy