Abstract
Large Language Models (LLMs) are known to memorize sensitive information from their training data, posing significant privacy risks. While Differential Privacy (DP) is frequently applied during fine-tuning, this approach fails to protect data memorized during the much larger pretraining phase. We present VaultGemma 1B, the largest open-weight LLM trained from scratch using Differentially Private Stochastic Gradient Descent (DP-SGD). By incorporating privacy guarantees into the initial pretraining, VaultGemma achieves a rigorous privacy bound of $\epsilon \le 2.0$ and demonstrates zero detectable memorization of training sequences. While a "privacy tax" in utility remains, VaultGemma performs comparably to GPT-2 1.5B, establishing a new baseline for privacy-preserving foundation models.
1. Introduction
Standard LLMs act as "data sponges," inadvertently memorizing specific strings of text, including personally identifiable information (PII), from their massive training datasets. Adversaries can exploit this by "prodding" models to regurgitate verbatim training data. Applying DP only during fine-tuning provides a false sense of security, as it cannot retroactively erase information already embedded in the model's weights during pretraining. This is particularly critical for open-weight models where an adversary has access to the model's weights. VaultGemma addresses this by building privacy into the model's "DNA" from the very first step of training.
2. Methodology
VaultGemma 1B was trained using DP-SGD, which incorporates per-example gradient clipping and the addition of Gaussian noise to mask individual data contributions. To scale this approach to 1 billion parameters, several technical innovations were implemented:
- DP Scaling Laws: A quadratic fitting method was used to determine the optimal learning rate, accounting for the sensitivity of DP training to noise-to-batch ratios.
- Truncated Poisson Subsampling: This method provides an efficient way to sample mini-batches while adhering to DP's mathematical requirements, avoiding the overhead of traditional subsampling.
- Architectural Optimization: The sequence length was limited to 1024 tokens to facilitate extremely large batch sizes (exceeding 500,000 sequences), which is essential for maintaining performance when training with DP noise.
3. Experimental Results
3.1 Privacy and Memorization
The primary goal of VaultGemma is the elimination of data memorization. We conducted a "prefix-suffix" test, where the model is provided with a 50-token prefix and tasked with completing the subsequent 50 tokens exactly. While standard models show measurable rates of exact memorization, VaultGemma's exact memorization rate was effectively zero.
3.2 Benchmark Performance
We evaluated VaultGemma across several standard academic benchmarks to quantify the "privacy tax"—the loss in utility resulting from DP training. VaultGemma 1B demonstrates a performance gap compared to its non-private counterpart (Gemma 1B). However, it remains competitive with older, larger non-private models such as GPT-2 1.5B, suggesting that the utility gap is narrowing.
4. Discussion and Conclusion
VaultGemma 1B represents a significant step toward private-by-design LLMs. By applying DP during pretraining, we achieve a rigorous privacy bound ($\epsilon \le 2.0$) that is not possible with fine-tuning alone. The results confirm that while the privacy tax is real, it is manageable. Future work will focus on scaling these DP techniques to larger models (7B and 27B) and extending the sequence length beyond 1024 tokens to close the utility gap further.
Summary updated