jax_privacy.accounting.random_allocation_bandmf_event#
- jax_privacy.accounting.random_allocation_bandmf_event(noise_multiplier, iterations, *, num_bands, total_participations)[source]#
Returns the DpEvent for DP-BandMF with cyclic random allocation.
The examples are partitioned into
num_bandsgroups, and each group only participates in iterations matching its index modulonum_bands. Within the iterations it is eligible for, each example participates in exactlytotal_participations(\(k\)) of them, chosen uniformly at random. This guarantees a minimum separation ofnum_bandsbetween two consecutive participations, so with anum_bands-banded strategy matrix the mechanism reduces to random allocation of a single Gaussian mechanism over the iterations of one group. SeeRandomAllocationSamplingwithcycle_length = num_bandsfor the corresponding batch selection strategy.If
iterationsis not a multiple ofnum_bands, the batch selection strategy runs as if forceil(iterations / num_bands) * num_bandsiterations and truncates toiterations(which is post-processing). Every group therefore hasceil(iterations / num_bands)eligible iterations and the exact same privacy guarantee (prior to post-processing).References
“(Amplified) Banded Matrix Factorization: A unified approach to private training” Choquette-Choo et al. (2023)
“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 to use, assuming the strategy matrix has maximum L2 column norm of one.iterations (
int) – The number of iterations to run the mechanism for.num_bands (
int) – The number of bands to use.total_participations (
int) – The number of iterations each example participates in (k). Must be at mostceil(iterations / num_bands).
- Return type:
DpEvent- Returns:
A DpEvent object.