-
Notifications
You must be signed in to change notification settings - Fork 371
Open
Labels
enhancementNew feature or requestNew feature or request
Description
🚀 Feature
Implement Brent's method to find the best value of sigma for a given epsilon.
Motivation
https://github.com/google/differential-privacy/blob/main/python/dp_accounting/mechanism_calibration.py uses a much better method to find the best value of sigma for a given epsilon. Opacus will frequently give you a much larger value of sigma than you need. For example for q=1, steps=60 it will give you 280 vs 240 for GDP. Similar for https://github.com/microsoft/prv_accountant/blob/main/prv_accountant/dpsgd.py
Pitch
Implement Brent's method or any other root-finding method to replace the current naive binary sesarch.
Alternatives
Considered doing this myself, tried for a while, and turns out I don't know how to write search algorithms. And it was quite slow.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request