Opacus: User-Friendly Differential Privacy Library in PyTorch
Not on the map. Why?
Cited by 22 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
We introduce Opacus, a free, open-source PyTorch library for training deep learning models with differential privacy (hosted at opacus.ai). Opacus is designed for simplicity, flexibility, and speed. It provides a simple and user-friendly API, and enables machine learning practitioners to make a training pipeline private by adding as little as two lines to their code. It supports a wide variety of layers, including multi-head attention, convolution, LSTM, GRU (and generic RNN), and embedding, right out of the box and provides the means for supporting other user-defined layers. Opacus computes batched per-sample gradients, providing higher efficiency compared to the traditional "micro batch" approach. In this paper we present Opacus, detail the principles that drove its implementation and unique features, and benchmark it against other frameworks for training models with differential privacy as well as standard PyTorch.
Key facts. Cited by 375 papers in the map (data through 7 Oct 2026). Builds on 12 of its 21 references that are in the map. First posted on arXiv 25 Sep 2021.
Builds on
12 of 21 references.
References · 12
- 2016Deep Learning with Differential Privacycited by 2,682
- 2017Renyi Differential Privacycited by 643
- 2019R'enyi Differential Privacy of the Sampled Gaussian Mechanismcited by 199
- 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 131
- 2014Differentially Private Empirical Risk Minimization: Efficient Algorithms and Tight Error Boundscited by 104
- 2019BackPACK: Packing more into backpropcited by 77
- 2020Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorizationcited by 58
- 2020Scaling up Differentially Private Deep Learning with Fast Per-Example Gradient Clippingcited by 46
- 2015Efficient Per-Example Gradient Computationscited by 42
- 2021Fast and Memory Efficient Differentially Private-SGD via JL Projectionscited by 29
- 2019Efficient Per-Example Gradient Computations in Convolutional Neural Networkscited by 17
- 2018Efficient Deep Learning on Multi-Source Private Datacited by 16
Built on by
Citing papers per year: 2021: 4; 2022: 63; 2023: 81; 2024: 93; 2025: 67; 2026: 67.
375 papers.
Sort:
By area:
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2022Unlocking High-Accuracy Differentially Private Image Classification through Scalecited by 218
- 2024Improving LoRA in Privacy-preserving Federated Learningcited by 158
- 2023How to DP-fy ML: A Practical Guide to Machine Learning with Differential Privacycited by 150
- 2021On the Importance of Difficulty Calibration in Membership Inference Attackscited by 137
- 2022FLamby: Datasets and Benchmarks for Cross-Silo Federated Learning in Realistic Healthcare Settingscited by 121
- 2022Differentially Private Diffusion Modelscited by 118
- 2022Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipecited by 108
- 2022Toward Training at ImageNet Scale with Differential Privacycited by 87
- 2022Automatic Clipping: Differentially Private Deep Learning Made Easier and Strongercited by 87
38 more
- 2022Differentially Private Optimization on Large Model at Small Costcited by 65
- 2023Differentially Private Synthetic Data via Foundation Model APIs 1: Imagescited by 63
- 2022Privacy of Noisy Stochastic Gradient Descent: More Iterations without More Privacy Losscited by 60
- 2022Exploring the Limits of Differentially Private Deep Learning with Group-wise Clippingcited by 52
- 2022TAN Without a Burn: Scaling Laws of DP-SGDcited by 51
- 2022Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacycited by 47
- 2022Differentially Private Bias-Term Fine-tuning of Foundation Modelscited by 47
- 2022GAP: Differentially Private Graph Neural Networks with Aggregation Perturbationcited by 46
- 2023Membership Inference of Diffusion Modelscited by 46
- 2022Differentially Private Learning Needs Hidden State (Or Much Faster Convergence)cited by 45
- 2024Private Fine-tuning of Large Language Models with Zeroth-order Optimizationcited by 41
- 2023Practical Membership Inference Attacks Against Large-Scale Multi-Modal Models: A Pilot Studycited by 37
- 2023Exploring and Exploiting Decision Boundary Dynamics for Adversarial Robustnesscited by 35
- 2024Evaluations of Machine Learning Privacy Defenses are Misleadingcited by 35
- 2022Private Set Generation with Discriminative Informationcited by 34
- 2023Make Landscape Flatter in Differentially Private Federated Learningcited by 33
- 2022Federated Learning with Sparsified Model Perturbation: Improving Accuracy under Client-Level Differential Privacycited by 32
- 2022Defending against Reconstruction Attacks with R'enyi Differential Privacycited by 30
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2022SNAP: Efficient Extraction of Private Properties with Poisoningcited by 29
- 2024PrE-Text: Training Language Models on Private Federated Data in the Age of LLMscited by 29
- 2023DP-LDMs: Differentially Private Latent Diffusion Modelscited by 28
- 2023DP-AdamBC: Your DP-Adam Is Actually DP-SGD (Unless You Apply Bias Correction)cited by 28
- 2022Differentially private training of residual networks with scale normalisationcited by 26
- 2022A General Framework for Auditing Differentially Private Machine Learningcited by 25
- 2022CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learningcited by 24
- 2023On the Privacy-Robustness-Utility Trilemma in Distributed Learningcited by 24
- 2022Global Convergence of MAML and Theory-Inspired Neural Architecture Search for Few-Shot Learningcited by 22
- 2024How Private are DP-SGD Implementations?cited by 22
- 2022Differentially Private Learning with Per-Sample Adaptive Clippingcited by 21
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiencycited by 21
- 2024Differentially Private Next-Token Prediction of Large Language Modelscited by 21
- 2022Individual Privacy Accounting for Differentially Private Stochastic Gradient Descentcited by 20
- 2023Privacy and Efficiency of Communications in Federated Split Learningcited by 20
- 2023Gaussian Membership Inference Privacycited by 20
- 2024Privacy Backdoors: Stealing Data with Corrupted Pretrained Modelscited by 20
- 2024The Utility and Complexity of in- and out-of-Distribution Machine Unlearningcited by 20
- 2022Beyond Uniform Lipschitz Condition in Differentially Private Optimizationcited by 19
50 most cited of 375 All 375 (JSON)
- 2026Closed-Form Noise Calibration Against Membership Inference for Random-Allocation DP-SGD7 Oct 2026
- 2026Certification-Based Differentially Private Learning30 Sep 2026
- 2026Where Privacy Belongs: Placement Diagnosis and Certified Selection for Private Counterfactual Explanations on Graphs29 Sep 2026
- 2026Distributed Learning as a Service: The Developer's Perspective25 Sep 2026
- 2026Canaries in the Bank: Auditing User-Level Privacy in Private Evolution11 Sep 2026
- 2026RAPTOR: Role-Aware Private Training for Mixture-of-Experts4 Sep 2026
- 2026When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy27 Aug 2026
- 2026DIME: Query-Efficient Framework for Membership Inference on Diffusion Models24 Aug 2026
- 2026Spectral Gradient Orthogonalization Improves Differentially Private Training at Scale18 Aug 2026
- 2026DP-IVON-Gradsq: Differentially Private Squared-Gradient Improved Variational Online Newton26 Jul 2026
- 2026End-to-End Differential Privacy in Training Deep Neural Network Classifiers21 Jul 2026
- 2026Recovering Clinical Utility Under Differential Privacy: Empirical Validation of Adaptive Federated Aggregation on Heterogeneous Cardiovascular Datasets7 Jul 2026
38 more
- 2026Dithered Gaussian Mechanism for Randomness-Efficient Differential Privacy7 Jul 2026
- 2026Reducing Per-Sample Interference in Stochastic Optimization28 Jun 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026From Gradient Clipping to Structural Refinement: Improving DPSGD for Medical Image Segmentation19 Jun 2026
- 2026Private Learning with Public Feature Conditioning17 Jun 2026
- 2026Privacy-Preserving Federated Autoencoder for ECG Anomaly Detection on Edge Devices10 Jun 2026
- 2026Cross-modal linkage risk in clinical vision-language models1 Jun 2026
- 2026Private and Stable Test-Time Adaptation with Differential Privacy1 Jun 2026
- 2026Fair Finetuning Mitigates Distribution Inference Attacks1 Jun 2026
- 2026PRISM: Gauge-Invariant Tangent-Space Differentially Private LoRA31 May 2026
- 2026Spectral Reach: Understanding Neural Scaling as Progress into the Spectral Tail29 May 2026
- 2026Differentially Private Preference Data Synthesis for Large Language Model Alignment29 May 2026
- 2026Detectability in Diversity: Improved Canary Crafting for Privacy Auditing in One Run26 May 2026
- 2026Provably Communication-Efficient and Privacy-Preserving Federated Graph Neural Networks25 May 2026
- 2026From Privacy to Generalization: Linear Max-Information Bounds for Differentially Private Learning Algorithms25 May 2026
- 2026Efficient DP-SGD for LLMs with Randomized Clipping24 May 2026
- 2026Provable Robustness against Backdoor Attacks via the Primal-Dual Perspective on Differential Privacy20 May 2026
- 2026An exponential mechanism based on quadratic approximations for fine-tuning machine learning models with privacy guarantees19 May 2026
- 2026Beyond Square Roots: A Memory-Efficient Explicit Factorization for Multi-Epoch Private Learning18 May 2026
- 2026FML-bench: A Controlled Study of AI Research Agent Strategies from the Perspective of Search Dynamics17 May 2026
- 2026DP-KFC: Data-Free Preconditioning for Privacy-Preserving Deep Learning13 May 2026
- 2026PACZero: PAC-Private Fine-Tuning of Language Models via Sign Quantization7 May 2026
- 2026Adaptive Selection of LoRA Components in Privacy-Preserving Federated Learning7 May 2026
- 2026FIBER: A Differentially Private Optimizer with Filter-Aware Innovation Bias Correction5 May 2026
- 2026Class-Aware Adaptive Differential Privacy in Deep Learning for Sensor-Based Fall Detection3 May 2026
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approach23 Apr 2026
- 2026Differentially Private Model Merging22 Apr 2026
- 2026DPrivBench: Benchmarking LLMs' Reasoning for Differential Privacy17 Apr 2026
- 2026Secure and Privacy-Preserving Vertical Federated Learning15 Apr 2026
- 2026Differentially Private Modeling of Disease Transmission within Human Contact Networks8 Apr 2026
- 2026DPxFin: Adaptive Differential Privacy for Anti-Money Laundering Detection via Reputation-Weighted Federated Learning14 Mar 2026
- 2026Privacy-Preserving Federated Fraud Detection in Payment Transactions with NVIDIA FLARE13 Mar 2026
- 2026Privacy-Preserving Machine Learning for IoT: A Cross-Paradigm Survey and Future Roadmap13 Mar 2026
- 2026Learnability and Privacy Vulnerability are Entangled in a Few Critical Weights13 Mar 2026
- 2026Differential Privacy in Two-Layer Networks: How DP-SGD Harms Fairness and Robustness5 Mar 2026
- 2026PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systems3 Mar 2026
- 2026Lap2: Revisiting Laplace DP-SGD for High Dimensions via Majorization Theory26 Feb 2026
- 2026PrivacyBench: Privacy Isn't Free in Hybrid Privacy-Preserving Vision Systems21 Feb 2026
50 newest of 375 All 375 (JSON)
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2021On the Importance of Difficulty Calibration in Membership Inference Attackscited by 137
- 2023Practical Membership Inference Attacks Against Large-Scale Multi-Modal Models: A Pilot Studycited by 37
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2023Gaussian Membership Inference Privacycited by 20
- 2024The Utility and Complexity of in- and out-of-Distribution Machine Unlearningcited by 20
- 2024PANORAMIA: Privacy Auditing of Machine Learning Models without Retrainingcited by 17
- 2024Certified Machine Unlearning via Noisy Stochastic Gradient Descentcited by 13
- 2024Free Record-Level Privacy Risk Evaluation Through Artifact-Based Methodscited by 6
- 2023When Fairness Meets Privacy: Exploring Privacy Threats in Fair Binary Classifiers via Membership Inference Attackscited by 5
- 2022Pre-trained Encoders in Self-Supervised Learning Improve Secure and Privacy-preserving Supervised Learningcited by 4
- 2023Chameleon: Increasing Label-Only Membership Leakage with Adaptive Poisoningcited by 4
12 most cited of 20 All 20 (JSON)
- 2026Closed-Form Noise Calibration Against Membership Inference for Random-Allocation DP-SGD7 Oct 2026
- 2026Detectability in Diversity: Improved Canary Crafting for Privacy Auditing in One Run26 May 2026
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approach23 Apr 2026
- 2025Dual-View Inference Attack: Machine Unlearning Amplifies Privacy Exposure18 Dec 2025
- 2025Hyperparameters in Score-Based Membership Inference Attacks10 Feb 2025
- 2024The Utility and Complexity of in- and out-of-Distribution Machine Unlearning12 Dec 2024
- 2024Free Record-Level Privacy Risk Evaluation Through Artifact-Based Methods8 Nov 2024
- 2024Defending Membership Inference Attacks via Privacy-aware Sparsity Tuning9 Oct 2024
- 2024Curvature Clues: Decoding Deep Learning Privacy with Input Loss Curvature3 Jul 2024
- 2024A Reliable Cryptographic Framework for Empirical Machine Unlearning Evaluation17 Apr 2024
- 2024Certified Machine Unlearning via Noisy Stochastic Gradient Descent25 Mar 2024
- 2024PANORAMIA: Privacy Auditing of Machine Learning Models without Retraining12 Feb 2024
12 newest of 20 All 20 (JSON)
- 2022Differentially Private Diffusion Modelscited by 118
- 2023Membership Inference of Diffusion Modelscited by 46
- 2023DP-LDMs: Differentially Private Latent Diffusion Modelscited by 28
- 2024Differentially Private Fine-Tuning of Diffusion Modelscited by 18
- 2024Private Synthetic Text Generation with Diffusion Modelscited by 10
- 2024Navigating Heterogeneity and Privacy in One-Shot Federated Learning with Diffusion Modelscited by 7
- 2024On Differentially Private 3D Medical Image Synthesis with Controllable Latent Diffusion Modelscited by 7
- 2024DP-TLDM: Differentially Private Tabular Latent Diffusion Modelcited by 5
- 2024Federated Diffusion Modeling with Differential Privacy for Tabular Data Synthesiscited by 2
- 2024Leveraging Programmatically Generated Synthetic Data for Differentially Private Diffusion Trainingcited by 1
- 2025PrivORL: Differentially Private Synthetic Dataset for Offline Reinforcement Learningcited by 1
- 2025On the MIA Vulnerability Gap Between Private GANs and Diffusion Modelscited by 0
12 most cited of 14 All 14 (JSON)
- 2026DIME: Query-Efficient Framework for Membership Inference on Diffusion Models24 Aug 2026
- 2025PrivORL: Differentially Private Synthetic Dataset for Offline Reinforcement Learning8 Dec 2025
- 2025Privacy Preserving Diffusion Models for Mixed-Type Tabular Data Generation29 Nov 2025
- 2025On the MIA Vulnerability Gap Between Private GANs and Diffusion Models3 Sep 2025
- 2024Federated Diffusion Modeling with Differential Privacy for Tabular Data Synthesis20 Dec 2024
- 2024Leveraging Programmatically Generated Synthetic Data for Differentially Private Diffusion Training13 Dec 2024
- 2024Private Synthetic Text Generation with Diffusion Models30 Oct 2024
- 2024On Differentially Private 3D Medical Image Synthesis with Controllable Latent Diffusion Models23 Jul 2024
- 2024Differentially Private Fine-Tuning of Diffusion Models3 Jun 2024
- 2024Navigating Heterogeneity and Privacy in One-Shot Federated Learning with Diffusion Models2 May 2024
- 2024DP-TLDM: Differentially Private Tabular Latent Diffusion Model12 Mar 2024
- 2023DP-LDMs: Differentially Private Latent Diffusion Models25 May 2023
12 newest of 14 All 14 (JSON)
- 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Textcited by 18
- 2024Differentially Private Tabular Data Synthesis using Large Language Modelscited by 16
- 2024Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Datacited by 2
- 2026EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectorscited by 2
- 2026EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectors31 Jan 2026
- 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Text19 Feb 2025
- 2024Differentially Private Tabular Data Synthesis using Large Language Models3 Jun 2024
- 2024Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Data23 May 2024
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2022Unlocking High-Accuracy Differentially Private Image Classification through Scalecited by 218
- 2024Improving LoRA in Privacy-preserving Federated Learningcited by 158
- 2023How to DP-fy ML: A Practical Guide to Machine Learning with Differential Privacycited by 150
- 2022FLamby: Datasets and Benchmarks for Cross-Silo Federated Learning in Realistic Healthcare Settingscited by 121
- 2022Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipecited by 108
- 2022Toward Training at ImageNet Scale with Differential Privacycited by 87
- 2022Automatic Clipping: Differentially Private Deep Learning Made Easier and Strongercited by 87
- 2022Differentially Private Optimization on Large Model at Small Costcited by 65
- 2023Differentially Private Synthetic Data via Foundation Model APIs 1: Imagescited by 63
- 2022Privacy of Noisy Stochastic Gradient Descent: More Iterations without More Privacy Losscited by 60
12 most cited of 328 All 328 (JSON)
- 2026Certification-Based Differentially Private Learning30 Sep 2026
- 2026Where Privacy Belongs: Placement Diagnosis and Certified Selection for Private Counterfactual Explanations on Graphs29 Sep 2026
- 2026Distributed Learning as a Service: The Developer's Perspective25 Sep 2026
- 2026Canaries in the Bank: Auditing User-Level Privacy in Private Evolution11 Sep 2026
- 2026When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy27 Aug 2026
- 2026Spectral Gradient Orthogonalization Improves Differentially Private Training at Scale18 Aug 2026
- 2026DP-IVON-Gradsq: Differentially Private Squared-Gradient Improved Variational Online Newton26 Jul 2026
- 2026End-to-End Differential Privacy in Training Deep Neural Network Classifiers21 Jul 2026
- 2026Recovering Clinical Utility Under Differential Privacy: Empirical Validation of Adaptive Federated Aggregation on Heterogeneous Cardiovascular Datasets7 Jul 2026
- 2026Dithered Gaussian Mechanism for Randomness-Efficient Differential Privacy7 Jul 2026
- 2026Reducing Per-Sample Interference in Stochastic Optimization28 Jun 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
12 newest of 328 All 328 (JSON)