jax_privacy.matrix_factorization.sensitivity.get_min_sep_sensitivity_upper_bound_for_X#
- jax_privacy.matrix_factorization.sensitivity.get_min_sep_sensitivity_upper_bound_for_X(X, min_sep=1, max_participations=None)[source]#
Computes an upper bound on the min_sep sensitivity of X.
Unlike get_sensitivity_banded_for_X, this method does not require X to be banded, and will provide a valid upper bound on sensitivity for any X.
- How this algorithm works:
To compute min_sep sensitivity normally, we need to find the submatrix X_{pi, pi} with maximum L1 norm (sum of absolute values) over all possible pi satisfying the (min_sep, max_part) participation schema.
- This upper bound works in two stages:
Find the subvector x_{pi} with maximum L1 norm for each row x of X.
Call maximum L1 norms v_1, …, v_n.
Find the subvector v_{pi} with maximum L1 norm.
This is a valid upper bound because it is computing the maximum over an enlarged space of possibilities. Now, the subset of columns chosen do not have to be the same across rows, and the subset of rows chosen does not have to match the subset of columns chosen.
If X is min_sep-banded, this upper bound is identical to get_sensitivity_banded_for_X, but this function requires O(n^2 k) time while get_sensitivity_banded_for_X requires O(n^2 + n k) time.
Reference: See Choquette-Choo et al. (2023).
- Parameters:
X (
Array) – The Gram matrix of the encoder matrix, C.T @ C.min_sep (
int) – Minimum separation between the participations of the same user. For example,min_sep = 1means the same user could participate on two consecutive rounds.max_participations (
int|None) – Optional, the maximum number of participations. IfNone, thenmax_participationsis determined fromn.shape[0]andmin_sep.
- Return type:
float- Returns:
The L2 sensitivity of \(C\) satisfying \(C^T C = X\).