Private Ad Modeling with DP-SGD

Carson Denison, Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Krishna Giri Narra, Amer Sinha, Avinash Varadarajan, Chiyuan Zhang · DOI · OpenReview

Abstract

Training machine learning models on sensitive user data, such as browsing history for ad click-through rate (CTR) prediction, necessitates robust privacy guarantees. Differential Privacy (DP) provides a rigorous framework, but its application via Stochastic Gradient Descent (DP-SGD) has historically faced significant utility and computational hurdles in the advertising domain. This paper demonstrates that DP-SGD can be successfully scaled to large-scale ad modeling with minimal accuracy loss and negligible overhead. By leveraging "ghost clipping," large-batch training, and advanced privacy accounting, the authors show that high-privacy models ($\epsilon = 0.5$) are finally practical for the sparse, imbalanced data typical of the advertising industry.

Introduction

Ad modeling tasks, such as predicting click-through rates (pCTR) or conversion rates (pCVR), rely on massive datasets containing sensitive user interactions. While Differential Privacy (DP) offers mathematical safeguards against data leakage, applying DP-SGD to these tasks has been challenging due to extreme class imbalance, high feature sparsity, and the sheer scale of embedding layers. Historically, these factors led to a significant "utility gap" or required prohibitively large privacy budgets that offered little real protection.

Challenges in Private Ad Modeling

Ad data presents three primary obstacles for standard DP-SGD:

  1. Class Imbalance: Conversions are rare events, and the noise added by DP can easily "drown out" the signal from these infrequent positive labels.
  2. Sparsity: Ad models rely heavily on categorical features that result in extremely sparse gradient updates, making noise addition more disruptive.
  3. Computational Scale: Standard DP-SGD requires calculating per-example gradient norms, which typically causes memory bottlenecks and slow training speeds in large embedding-heavy models.

Methodology

To overcome these challenges, the authors implement several key optimizations:

Ghost Clipping

Ghost clipping is the primary driver of efficiency. Instead of materializing full per-example gradients—a memory-intensive process—ghost clipping allows the team to compute only the necessary gradient norms. This approach is particularly effective for the linear and embedding layers that constitute the bulk of ad models, allowing training throughput and memory usage to match non-private baselines.

Large Batch Training and Tighter Accounting

Increasing mini-batch sizes (up to 65k+ examples) reduces the relative variance introduced by DP noise. To maintain a strict privacy budget ($\epsilon$) with these large batches, the authors utilize Privacy Loss Distributions (PLD) instead of Rényi Differential Privacy (RDP), providing a tighter numerical estimate of privacy leakage.

Hyperparameter Optimization

Optimal hyperparameters for non-private models often perform poorly under DP-SGD. The choice of optimizer and learning rate must be specifically tuned for the private regime to maximize utility across different privacy budgets.

AUC vs. Privacy Budget for various optimizer and learning rate configurations.

Key Insights: The Bias-Variance Trade-off

A critical aspect of DP-SGD is the selection of the gradient clipping norm ($C$). A low $C$ introduces bias by truncating signal, while a high $C$ increases the variance of the added noise. The "sweet spot" for $C$ shifts as the privacy budget $\epsilon$ changes. Furthermore, the authors found that adjusting microbatch sizes can further optimize this trade-off, providing a more granular way to manage the noise-to-signal ratio during gradient estimation.

Impact of tuning clipping norm and microbatch size on model utility (AUC) across privacy budgets.

Results and Conclusion

Evaluations on the public Criteo dataset and proprietary Google datasets reveal that DP-SGD can achieve high utility even at $\epsilon = 0.5$. For the pCTR task on the Criteo dataset, the AUC loss (defined as $1 - AUC$) increased by only 15.8% (from 0.1943 to 0.2250) even at a very strict privacy budget. Crucially, ghost clipping enabled scaling to batch sizes exceeding 500,000, which would crash standard implementations. These results suggest that DP-SGD is a viable and efficient solution for privacy-preserving ad modeling at scale, closing the long-standing gap between theoretical privacy and practical utility.

Summary updated

BibTeX
@inproceedings{denison2023private,
  author = {Carson Denison and Badih Ghazi and Pritish Kamath and Ravi Kumar and Pasin Manurangsi and Krishna Giri Narra and Amer Sinha and Avinash Varadarajan and Chiyuan Zhang},
  title = {{Private Ad Modeling with DP-SGD}},
  booktitle = {AdKDD @ KDD},
  year = {2023},
  url = {https://openreview.net/forum?id=zDVCHOhIKo},
}
Figure