jax_privacy.accounting.random_allocation_dpsgd_event

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 from iterations (\(t\)) total steps. For \(k=1\), this participation pattern is equivalent to single-epoch balls-in-bins sampling.

References

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.