Skip to content

Commit 427d4ac

Browse files
galenmandrewtensorflower-gardener
authored andcommitted
More stable loop termination criterion in fraction RDP order computation.
Previously the loop sometimes terminated too early, resulting in underestimates of the RDP at some orders. Now it will run to convergence in most cases, and in case of too many iterations, it will return an RDP of inf at that order, guaranteeing that the resulting epsilon is a true upper bound. PiperOrigin-RevId: 668593123
1 parent 66d05a2 commit 427d4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tensorflow_privacy/privacy/analysis/compute_dp_sgd_privacy_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ComputeDpSgdPrivacyTest(parameterized.TestCase):
4141
@parameterized.named_parameters(
4242
('Test0', 60000, 150, 1.3, 15, 1e-5, 0.7242234026109595, 19.0),
4343
('Test1', 100000, 100, 1.0, 30, 1e-7, 1.4154988495444842, 13.0),
44-
('Test2', 100000000, 1024, 0.1, 10, 1e-7, 5907982.3113984, 1.25),
44+
('Test2', 100000000, 1024, 0.1, 10, 1e-7, 5907982.3113978775, 1.25),
4545
)
4646
def test_compute_dp_sgd_privacy(self, n, batch_size, noise_multiplier, epochs,
4747
delta, expected_eps, expected_order):

0 commit comments

Comments
 (0)