projects / proj-flag-015
Next task →
Projects/Specializations/Scaling-law study with a controlled compute budget
Level 5 · research · ~60 h

Scaling-law study with a controlled compute budget

Run a controlled scaling-law study over model size and dataset size under a fixed compute budget, fit the Chinchilla parametrization, and test whether the fitted law predicts a held-out model's loss.
Add to portfolio →

Problem statement

  • 01Run a controlled scaling-law study over model size and dataset size under a fixed compute budget, fit the Chinchilla parametrization, and test whether the fitted law predicts a held-out model's loss.

Real-world motivation

  • 01Compute allocation decisions depend on fitted scaling laws, but poor experimental design can produce laws that fail to extrapolate.

Learning objectives

  • 01Design a balanced compute grid
  • 02Fit the parametric loss law
  • 03Validate extrapolation on a held-out configuration

Technical architecture

  • 01decoder-only models from 10M to 120M parameters
  • 02fixed token budgets per run
  • 03nonlinear least-squares fitting with uncertainty

Mathematical foundations

  • 01$L(N,D)=E+A/N^\alpha+B/D^\beta$
  • 02$C\approx 6ND$, optimal allocation $N\propto C^{\beta/(\alpha+\beta)}$

Dataset and sources

  • 01OpenWebText subset with deduplication
  • 02WikiText-103 for validation loss

Step-by-step tasks

  • 01Define a grid of (N, D, C) configurations with no repeated data
  • 02Train each configuration with identical optimization settings
  • 03Collect final validation loss for every run
  • 04Fit the law with bootstrap uncertainty
  • 05Hold out one configuration and test prediction
  • 06Derive the compute-optimal frontier and compare with Chinchilla's ratio

Implementation requirements

  • 01Use a shared training harness
  • 02Record exact token counts
  • 03Fit with scipy.optimize.least_squares

Testing requirements

  • 01Check no data repetition across epochs
  • 02Verify fit residuals are unstructured
  • 03Confirm held-out prediction error is small

Evaluation metrics

  • 01held-out loss prediction error
  • 02fitted exponents with intervals
  • 03compute efficiency

Expected outputs

  • 01scaling plots
  • 02fitted parameter table
  • 03compute frontier
  • 04methodology report

Common failure modes

  • 01small models violate asymptotic assumptions
  • 02data repetition biases the data term
  • 03optimizer settings differ across scales

Stretch goals

  • 01add downstream-task scaling
  • 02study data-constrained regimes

Research extensions

  • 01derive confidence intervals for optimal allocation
  • 02study law breakdown at very small scales

GitHub submission requirements

  • 01Training logs for every run
  • 02Fitting code with bootstrap
  • 03Held-out validation results
  • 04Report with limitations

Completion rubric

  • 01grid design controlled
  • 02no data repetition
  • 03fit with uncertainty
  • 04extrapolation tested
  • 05limitations stated

Submit when every rubric item is satisfied and your repository contains runnable code plus a reproduction command.