Pith. sign in

hub

Opacus: User-friendly differential privacy library in pytorch

24 Pith papers cite this work. Polarity classification is still indexing.

24 Pith papers citing it
abstract

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.

hub tools

citation-role summary

background 2 method 1

citation-polarity summary

representative citing papers

Fair Finetuning Mitigates Distribution Inference Attacks

cs.LG · 2026-06-01 · conditional · novelty 7.0

Fair fine-tuning under Equalized Odds yields a tight bound Adv(A, M_f) ≤ Δ_EO · W on adversarial advantage in distribution inference attacks, with empirical reductions below detection threshold across six datasets.

Efficient DP-SGD for LLMs with Randomized Clipping

cs.LG · 2026-05-24 · unverdicted · novelty 6.0

DP-SGD-RC applies Hutchinson and Hutch++ estimators to approximate per-sample gradient norms for clipping in DP-SGD, claiming competitive privacy noise multipliers and utility on Llama 3.2-1B with reduced memory.

Differentially Private Model Merging

cs.LG · 2026-04-22 · unverdicted · novelty 5.0

Post-processing via random selection or linear combination of differentially private models allows meeting arbitrary target privacy parameters without additional training.

Secure and Privacy-Preserving Vertical Federated Learning

cs.CR · 2026-04-15 · unverdicted · novelty 5.0

Three optimized MPC protocols for privacy-preserving vertical federated learning that support global and global-local updates while reducing computation versus naive full-MPC delegation.

citing papers explorer

Showing 24 of 24 citing papers.