docs: Clarify scalar PLD scope for correlated multi-output Gaussian releases#430
Open
Gaijin-01 wants to merge 3 commits into
Open
docs: Clarify scalar PLD scope for correlated multi-output Gaussian releases#430Gaijin-01 wants to merge 3 commits into
Gaijin-01 wants to merge 3 commits into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
1d199b0 to
ce7ac32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs + fix: Clarify scalar PLD scope for correlated multi-output Gaussian releases + numerical hardening
Summary
This PR improves both usability and numerical robustness in Google's dp_accounting library:
1. Documentation Clarification (python/dp_accounting)
from_gaussian_mechanismfor jointly observed correlated multi-output releases.f_j = c_j · f_1) with independent noise, the exact ε-hockey-stick divergence equals the scalar case computed atDelta_eff = Delta × ||c_vec||₂.This pattern is mathematically valid but was not explicitly documented, leading to potential privacy underestimation when users naively apply scalar PLD to multi-output scenarios.
2. Numerical Hardening (C++)
LogErfc(x)andLogNormalCdf(z)helpers using asymptotic expansions.CalculateDeltaForGaussianStddevto prevent NaN/overflow for large ε (ε ≳ 709).expm1-basedlog1mexp.These changes follow best practices from JAX, TensorFlow Privacy, and high-precision libraries, and are particularly valuable for extreme privacy parameters.
Comparison with other libraries
Related
See also: https://doi.org/10.5281/zenodo.20078486