jax_privacy.accounting.random_allocation_dpsgd_event#
- jax_privacy.accounting.random_allocation_dpsgd_event(noise_multiplier, iterations, *, total_participations)[source]#
Returns the DpEvent for DP-SGD with random allocation (k-out-of-t).
In random allocation (also known as balanced-iteration sampling), each example independently participates in exactly
total_participations(\(k\)) iterations chosen uniformly at random without replacement fromiterations(\(t\)) total steps. For \(k=1\), this participation pattern is equivalent to single-epoch balls-in-bins sampling.References
“Privacy Amplification by Random Allocation” Feldman & Shenfeld (2025)
“Leveraging Randomness in Model and Data Partitioning for Privacy Amplification” Dong, Chen, & Ozgur (2025)
“Efficient Privacy Loss Accounting for Subsampling and Random Allocation” Feldman & Shenfeld (2026)
“Less Random, More Private: What is the Optimal Subsampling Scheme for DP-SGD?” Dong & Ozgur (2026)
- Parameters:
noise_multiplier (
float) – The noise multiplier of the Gaussian mechanism.iterations (
int) – The total number of iterations/batches (t).total_participations (
int) – The number of steps each example participates in (k).
- Return type:
DpEvent- Returns:
A DpEvent object.