atlas

Research map / Learning theory and algorithms / Sample complexity

Resolving Discrepancies in Compute-Optimal Scaling of Language Models

NeurIPS 2024 · Learning theory and algorithms › Sample complexity · approach: Generalization and limits under data constraints · 1 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.

Reproduces the Kaplan compute-optimal scaling law on OpenWebText2 and RefinedWeb, identifies last-layer FLOP counting, warmup length, and scale-dependent optimizer tuning as causes of its discrepancy with the Chinchilla law, and shows constant learning rate suffices to recover the Chinchilla exponent.

Problem

Kaplan et al. and Hoffmann et al. give substantially different compute-optimal scaling laws for model size versus compute budget, and the reason for the discrepancy is not well understood.

Approach

Systematically reproduces the Kaplan setup and then corrects one factor at a time (head FLOP counting, warmup duration proportional to model size, per-size tuning of learning rate, batch size, and AdamW beta2), showing these account for the gap to the Chinchilla law without needing learning rate decay.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Count last-layer FLOPs instead of excluding the head from model size (ablation)Kaplan-reproduction setup · OpenWebText2 and RefinedWebcompute-optimal exponent a: 0.864 -> 0.699; 0.835 -> 0.706Helped
Set warmup tokens equal to model size rather than using a long fixed warmup (ablation)Kaplan-reproduction setup with last-layer FLOPs counted · OpenWebText2 and RefinedWebcompute-optimal exponent a: 0.699 -> 0.603; 0.706 -> 0.602Helped
Use per-model, per-compute cosine learning-rate decay (ablation)Corrected-warmup setup · OpenWebText2 and RefinedWebcompute-optimal exponent a: 0.603 -> 0.574; 0.602 -> 0.571Helped
Use per-model optimizer tuning for learning rate, batch size, and β₂ with a constant learning-rate schedule (ablation)Corrected-warmup setup · OpenWebText2 and RefinedWebcompute-optimal exponent a: 0.574 -> 0.518; 0.571 -> 0.497Helped
Tune AdamW β₂ above 0.95 for smaller batch sizes (ablation)Small-batch AdamW training · Small batch sizes (128 and below)performanceHelped
Use cosine learning-rate decay instead of a constant learning rate (ablation)Tuned optimizer training · Compute-optimal loss across compute scaleslossHelped
Shorten warmup duration (ablation)Compute-optimal training · Low compute scalesloss: up to 0.5 nat per tokenHelped
Tune optimizer hyperparameters (ablation)Compute-optimal training · Low compute scalesloss: up to 0.5 nat per tokenHelped
Use a constant learning-rate schedule instead of cosine decay (ablation)Tuned optimizer training · Compute-optimal losslossHurt

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText2 RefinedWeb

Benchmarks: held-out validation loss on OpenWebText2 and RefinedWeb

Metrics: compute-optimal model size exponent a R^2 of power-law fit predicted optimal model size at Chinchilla compute validation log loss

Baselines: Kaplan et al. scaling law Hoffmann et al. (Chinchilla) scaling law Besiroglu et al. adjusted scaling law

Builds on: Kaplan scaling laws Chinchilla scaling law OpenLM Llama

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