Open Victor-QTP opened 8 months ago
Hi, thank you for your interests of our work.
For your Q1 and Q2, this is because we are measuring difference choices of sigma and one choice of sigma is 0.5.
For Table 6, you will fix the noise scale sigma and only allow the dynamic sensitivity. Since the privacy spending is only related to the noise scale according to the theoretical analysis. Then the dynamic sensitivity will lead to better accuracy performance.
For Table 7, we still have the fixed noise scale and dynamic sensitivity. Given a fixed accuracy goal, it takes much quicker rounds to reach the accuracy goal than the fixed privacy parameters. In this way, the privacy spending is smaller, indicating better differential privacy guarantee.
For the module compute_heterogenous_rdp, the official repo of moments accountant has been depreciated. We will try our best to find the original file. The basic idea is to replace the fixed noise scale in the original rdp code with a list of sigma choices.
BTW, please use this reference instead: W. Wei, L. Liu, J. Zhou, K. -H. Chow and Y. Wu, "Securing Distributed SGD Against Gradient Leakage Threats," in IEEE Transactions on Parallel and Distributed Systems, vol. 34, no. 7, pp. 2040-2054, July 2023, doi: 10.1109/TPDS.2023.3273490.
Hi! I am trying to reproduce the result for CIFAR10 in your paper [1]
Exception has occurred: ImportError cannot import name 'compute_heterogenous_rdp' from 'tensorflow_privacy.privacy.analysis.rdp_accountant' (/home/me/miniconda3/envs/dpsgd/lib/python3.8/site-packages/tensorflow_privacy/privacy/analysis/rdp_accountant.py) File "/media/me/me/PPFL/Fed-alphaCDP/DP_code/privacy_accounting_fed_instancelevel.py", line 212, in <module> from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_heterogenous_rdp,get_privacy_spent
Steps to reproduce the error:
It seems like the tensorflow privacy api's rdp_accountant you provided has a missing module? (compute_heterogenous_rdp) Could you please upload it?
Additionally, I would like to have 2 more questions regarding the Fed-CDP [1] implementation in Fed-CDP.py.
However,
In the last part of the code:
Btw, I find your work to be fascinating, so could you please show me the instructions on how to reproduce the CIFAR-10 results in table 6 and 7?
Ref: [1] W. Wei, L. Liu, J. Zhou, K.-H. Chow, and Y. Wu, “Securing Distributed SGD against Gradient Leakage Threats.” arXiv, May 10, 2023. Accessed: Sep. 14, 2023. [Online]. Available: http://arxiv.org/abs/2305.06473