Repository navigation
feat(dp): Rényi/zCDP composition accounting (#161) - #333
Merged
Merged
Conversation
Basic sequential composition sums ε linearly, which is loose for many Gaussian mechanisms. Add an opt-in XAZZ_DP_COMPOSITION mode: - zCDP: ρᵢ = εᵢ²/(4 ln(1.25/δᵢ)) per Gaussian (σ calibrated as before), compose additively, convert ε(δ) = ρ + 2√(ρ ln(1/δ)). - RDP: Gaussian is (α, αρ)-RDP, Laplace is ε-RDP for every α; compose per α and use Mironov's ε(δ) = ε_RDP + ln(1/δ)/(α-1). The optimum over α equals the zCDP formula (asserted by a test). - Mixed sessions: ε = Σε(Laplace) + ρ + 2√(ρ ln(1/δ)) at the session δ budget. Rejected requests roll the composition back atomically. Tests pin the ρ↔σ identity, a known Gaussian value (ρ=0.5, δ=1e-5 → ε≈5.2985), the RDP/zCDP equivalence, 10 Gaussian queries (basic 10 vs RDP ≈3.0), and rollback.
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.
What
Add an opt-in composition mode (
XAZZ_DP_COMPOSITION=basic|rdp|zcdp). Defaultbasicis unchanged.ρ = ε²/(4 ln(1.25/δ))(σ calibrated as before), composed additively, convertedε(δ) = ρ + 2√(ρ ln(1/δ)).(α, αρ)-RDP, Laplace ε-RDP for all α; Mironov conversion. The optimum over α equals the zCDP formula (test).ε = Σε(Laplace) + ρ + 2√(ρ ln(1/δ))at the session δ.Verification
cargo test -p xazz-exec --lib dp::→ 28 passed (8 new).cargo clippy -p xazz-exec --all-targets -- -D warningsclean.cargo fmt --all -- --checkclean.Math note
The composed guarantee is converted at the session δ, so
rdp/zcdp≤basicfor the composed budget. This is a valid upper bound, not the exact analytic Gaussian mechanism; documented indocs/design/dp-spec.md§3 with the limit.