Reproduce “How much do language models memorize?” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

John X. Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, G. Edward Suh, Alexander M. Rush, Kamalika Chaudhuri, Saeed Mahloujifar

The authors measure sample-specific information retained by a trained model by comparing a sample’s compressibility with that under a reference model capturing generalizable patterns. On independent, uniformly random sequences, they report 3.51 bits per parameter in bfloat16 and 3.83 in fp32, a small change despite doubled precision. These capacity estimates apply to tested GPT-style architectures and training setup, not universally.

Key insights

  • Memorization and generalization can be formally disentangled using an information-theoretic framework, providing a more rigorous understanding of what models "know."
  • The capacity of GPT-family models to store arbitrary information can be quantified, estimated at approximately 3.6 bits per parameter.
  • Deep learning phenomena like double descent and grokking are linked to the interplay between memorization and generalization as dataset size approaches or exceeds model capacity.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.