gzip Predicts Data-dependent Scaling Laws

Rohan Pandey
5/26/2024
cs.CLcs.LG

No official code found. Best implementation: KhoomeiK/complexity-scaling (35 stars, MIT, last commit 2024-05-28).

Abstract

Past work has established scaling laws that predict the performance of a neural language model (LM) as a function of its parameter count and the number of tokens it's trained on, enabling optimal allocation of a fixed compute budget. Are these scaling laws agnostic to training data as some prior work suggests? We generate training datasets of varying complexities by modulating the syntactic properties of a PCFG, finding that 1) scaling laws are sensitive to differences in data complexity and that 2) gzip, a compression algorithm, is an effective predictor of how data complexity impacts scaling properties. We propose a new data-dependent scaling law for LM's that accounts for the training data's gzip-compressibility; its compute-optimal frontier increases in dataset size preference (over parameter count preference) as training data becomes harder to compress.

View on arXivView PDF

Code Implementations(1)

MIT

gzip Predicts Data-dependent Scaling Laws

354PythonMar 17, 20242 years agoMIT

Similar Papers

Cite this paper

@article{pandey2024gzip,
  title  = {gzip Predicts Data-dependent Scaling Laws},
  author = {Rohan Pandey},
  year   = {2024},
  eprint = {2405.16684},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16684v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.16684.svg)](https://codeofpaper.com/paper/2405.16684)

Discussion