Git Product home page Git Product logo

federated-learning-with-differential-privacy's People

Contributors

yangfan-jiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

federated-learning-with-differential-privacy's Issues

I want to know how you determined the parameter q=0.01

fl_param = {
'output_size': 10,
'client_num': client_num,

'model': MNIST_CNN,
'data': d,
'lr': lr,
'E': 200,
'C': 1,
'eps': 1.0,
'delta': 1e-5,
'q': 0.01,
'clip': 0.1,
'tot_T': 30,
'batch_size': 128,
'device': device

}

how to preset (epsilon, delta) pair?

if I want to preset (epsilon, delta) pair as privacy guarantee, what should I do?
just modify FLClient.update, not change the sensivity, but modify new_param[name] += add guassian noise defined in gaussian_noise(), will it work?
I want to use the code of
def gaussian_noise()
Waht should I do? Recalculate the sensitivity?
Thanks!!!

some questions about CDP

I meet some trouble when I apply differential privacy into FL in the way of CDP.Specifically,I add noise during aggregated stage in server, and then broadcast to all client. However, the finally accuracy result is low……
I'd be appreciated it if you could do me some favor.

如何配置不添加噪声

请问作者,我想对比一下不加噪声和加噪声最后的结果。如何配置能使得这个联邦学习不添加噪声

how to compute the sensitivity

why your sensitivity = 2 * self.lr * self.clip / self.data_size + (self.E - 1) * 2 * self.lr * self.clip? in the paper ,the sensitivity = 2C*pi/m or 2C/m.

how to computer the sensitivity

Nice job!
Where can I reference the way that you compute the sensitivity
sensitivity = 2 * self.lr * self.clip / self.data_size + (self.E - 1) * 2 * self.lr * self.clip

By the way, are there any other implementations of dp algo except the Gaussian?

How to use global_update_grad()?

Hello : )

I used global_update_grad() because I tried to playback the result in the original paper.
I'v already added epsilon and delta in class FLSever and fl_param, but it still ran an error like this image
Did I make a mistake or miss something?
Thank you !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.