You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prv-accountant PyPI package (v0.2.0, Aug 2022) is effectively unmaintained - no release in 4 years. Its internal domain-size computation can overflow or hang for small noise multipliers (high epsilon), which #351 works around with a SIGALRM timeout and RDP fallback. Relying on an abandoned dependency for privacy accounting is a maintenance risk.
Describe the solution you'd like
Migrate from prv-accountant to Opacus's built-in PRV accountant (opacus.accountants.prv). Opacus ships a separate PRV implementation based on the same paper, and its compute_safe_domain_size uses Opacus's own RDP internally - which may avoid the hang since Opacus RDP handles high epsilon fine. This would also drop the prv-accountant dependency entirely.
Priority Level
Medium (Nice to have)
Is your feature request related to a problem?
The
prv-accountantPyPI package (v0.2.0, Aug 2022) is effectively unmaintained - no release in 4 years. Its internal domain-size computation can overflow or hang for small noise multipliers (high epsilon), which #351 works around with a SIGALRM timeout and RDP fallback. Relying on an abandoned dependency for privacy accounting is a maintenance risk.Describe the solution you'd like
Migrate from
prv-accountantto Opacus's built-in PRV accountant (opacus.accountants.prv). Opacus ships a separate PRV implementation based on the same paper, and itscompute_safe_domain_sizeuses Opacus's own RDP internally - which may avoid the hang since Opacus RDP handles high epsilon fine. This would also drop theprv-accountantdependency entirely.Describe alternatives you've considered
prv-accountantand fix the overflow. Higher maintenance burden than switching to Opacus's actively maintained implementation.Additional context
Discussion: #351 (comment)