jax_privacy.matrix_factorization.sensitivity.fixed_epoch_sensitivity_for_X

jax_privacy.matrix_factorization.sensitivity.fixed_epoch_sensitivity_for_X#

jax_privacy.matrix_factorization.sensitivity.fixed_epoch_sensitivity_for_X(X, epochs)[source]#

Compute the sensitivity of X under (k,b)-fixed-epoch participation.

Note that X can contain negative entries, which are handled essentially by taking an absolute value of the necessary entries.

Reference: See Choquette-Choo et al. (2022), and Choquette-Choo et al. (2023) for the absolute-value trick. Essentially, this implementation applies Eq. (5) to the b = n / k possible participation patterns under (k, b)-fixed-epoch participation.

Parameters:
  • X (Array) – the Gram matrix of the encoder, which may contain negative entries.

  • epochs (int) – the number of epochs. Must be square in shape.

Return type:

float

Returns:

The sensitivity of the matrix factorization mechanism defined by X.