PrivacyGuard: A Modular Framework for Privacy Auditing in Machine Learning
Luca Melis, Matthew Grange, Iden Kalemaj, Karan Chadha, Shengyuan Hu, Elena Kashtelyan, Will Bullock
TL;DR
PrivacyGuard addresses the gap between theoretical privacy guarantees and practical privacy risk assessment by delivering a modular, PyTorch‑based framework for empirical privacy analysis. It combines state‑of‑the‑art membership inference attacks (LiRA and RMIA), robust auditing methods including bootstrap and $f$‑DP auditing, and probabilistic extraction analyses for language models, enabling end‑to‑end privacy evaluation across supervised and generative settings. Key contributions include a clean modular architecture with attack modules and analysis nodes, concrete demonstrations on CIFAR‑10 and Enron, and practical tooling for empirical privacy lower bounds via $\epsilon$ and $f$‑DP curves. The framework emphasizes extensibility, rigorous testing, and tutorials, offering a practical, open‑source resource for researchers and practitioners to quantify privacy risks and guide responsible deployment of AI systems. PrivacyGuard thus provides a scalable, attack‑driven approach to empirical privacy auditing with applicability to both traditional and large language model workflows.
Abstract
The increasing deployment of Machine Learning (ML) models in sensitive domains motivates the need for robust, practical privacy assessment tools. PrivacyGuard is a comprehensive tool for empirical differential privacy (DP) analysis, designed to evaluate privacy risks in ML models through state-of-the-art inference attacks and advanced privacy measurement techniques. To this end, PrivacyGuard implements a diverse suite of privacy attack -- including membership inference , extraction, and reconstruction attacks -- enabling both off-the-shelf and highly configurable privacy analyses. Its modular architecture allows for the seamless integration of new attacks, and privacy metrics, supporting rapid adaptation to emerging research advances. We make PrivacyGuard available at https://github.com/facebookresearch/PrivacyGuard.
