tensorflow/privacy
Library for training machine learning models with privacy for training data
Provides differentially private TensorFlow optimizers (SGD, Adam, etc.) with per-example gradient clipping and built-in privacy accounting tools to measure epsilon/delta guarantees. Includes optimized Keras implementations for Dense and Embedding layers that achieve DP training without meaningful performance overhead by leveraging fast per-example gradient computation. Integrates directly with TensorFlow 2.x and tf.keras, with tutorials demonstrating how to wrap standard optimizers into privacy-preserving variants.
2,003 stars. Actively maintained with 3 commits in the last 30 days.
Stars
2,003
Forks
469
Language
Python
License
Apache-2.0
Category
Last pushed
Mar 10, 2026
Commits (30d)
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/tensorflow/privacy"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
meta-pytorch/opacus
Training PyTorch models with differential privacy
tf-encrypted/tf-encrypted
A Framework for Encrypted Machine Learning in TensorFlow
awslabs/fast-differential-privacy
Fast, memory-efficient, scalable optimization of deep learning with differential privacy
IBM/differential-privacy-library
Diffprivlib: The IBM Differential Privacy Library
privacytrustlab/ml_privacy_meter
Privacy Meter: An open-source library to audit data privacy in statistical and machine learning...