Hubble: a Model Suite to Advance the Study of LLM Memorization
Johnny Tian-Zheng Wei, Ameya Godbole, Mohammad Aflah Khan, Ryan Wang, Xiaoyuan Zhu, James Flemings, Nitya Kashyap, Krishna P. Gummadi, Willie Neiswanger, Robin Jia
TL;DR
The paper presents Hubble, an open-source suite of Llama-3-based models (1B and 8B, trained on 100B or 500B tokens) with standard and perturbed variants to enable controlled memorization research across copyright, privacy, and test-set contamination domains. Through randomized perturbations and careful decontamination, Hubble enables precise measurement of memorization dynamics, revealing that increasing corpus size (dilution) and presenting sensitive data earlier in training mitigate memorization, while larger models are more prone to memorization at a given duplication level. Domain-specific analyses uncover nuanced memorization patterns, including PII leakage from synthetic biographies and indirect leakage in chats, and demonstrate Hubble’s utility for evaluating membership inference attacks and unlearning methods. The work provides a rigorous, transparent resource for benchmarking memorization, guiding mitigation strategies, and accelerating future research in understanding and safely managing memorization in large language models.
Abstract
We present Hubble, a suite of fully open-source large language models (LLMs) for the scientific study of LLM memorization. Hubble models come in standard and perturbed variants: standard models are pretrained on a large English corpus, and perturbed models are trained in the same way but with controlled insertion of text (e.g., book passages, biographies, and test sets) designed to emulate key memorization risks. Our core release includes 8 models -- standard and perturbed models with 1B or 8B parameters, pretrained on 100B or 500B tokens -- establishing that memorization risks are determined by the frequency of sensitive data relative to size of the training corpus (i.e., a password appearing once in a smaller corpus is memorized better than the same password in a larger corpus). Our release also includes 6 perturbed models with text inserted at different pretraining phases, showing that sensitive data without continued exposure can be forgotten. These findings suggest two best practices for addressing memorization risks: to dilute sensitive data by increasing the size of the training corpus, and to order sensitive data to appear earlier in training. Beyond these general empirical findings, Hubble enables a broad range of memorization research; for example, analyzing the biographies reveals how readily different types of private information are memorized. We also demonstrate that the randomized insertions in Hubble make it an ideal testbed for membership inference and machine unlearning, and invite the community to further explore, benchmark, and build upon our work.
