All Projects → SAP-samples → Machine Learning Diff Private Federated Learning

SAP-samples / Machine Learning Diff Private Federated Learning

Licence: apache-2.0
Simulate a federated setting and run differentially private federated learning.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Machine Learning Diff Private Federated Learning

Play Scala Isolated Slick Example
Example Play Slick Project
Stars: ✭ 155 (-25.12%)
Mutual labels:  sample
Kotlin Full Stack Application Demo
Full-stack demo application written with Kotlin MPP
Stars: ✭ 165 (-20.29%)
Mutual labels:  sample
Cognitive Face Ios
iOS SDK for the Microsoft Face API, part of Cognitive Services
Stars: ✭ 191 (-7.73%)
Mutual labels:  sample
Randomdata
Random data generator
Stars: ✭ 157 (-24.15%)
Mutual labels:  sample
Clean Architecture Swiftui
SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.
Stars: ✭ 2,925 (+1313.04%)
Mutual labels:  sample
Cognitive Face Windows
Windows SDK for the Microsoft Face API, part of Cognitive Services
Stars: ✭ 175 (-15.46%)
Mutual labels:  sample
Mvvmrxjavaretrofitsample
MVVM RxJava Retrofit Sample
Stars: ✭ 148 (-28.5%)
Mutual labels:  sample
Daggerandroidinjector
Dagger Sample Project on how to use the new dagger-android module for Dagger v2.11
Stars: ✭ 195 (-5.8%)
Mutual labels:  sample
Play Java Starter Example
Play starter project in Java (ideal for new users!)
Stars: ✭ 164 (-20.77%)
Mutual labels:  sample
Nodejs Docs Samples
Node.js samples for Google Cloud Platform products.
Stars: ✭ 2,309 (+1015.46%)
Mutual labels:  sample
Pointasnl
PointASNL: Robust Point Clouds Processing using Nonlocal Neural Networks with Adaptive Sampling (CVPR 2020)
Stars: ✭ 159 (-23.19%)
Mutual labels:  sample
Abap Platform Rap Opensap
Samples for the openSAP course "Building Apps with the ABAP RESTful Application Programming model (RAP)."
Stars: ✭ 163 (-21.26%)
Mutual labels:  sample
Reactnativeuniversal
A demonstration of sharing javascript react-native code between mobile, desktop and web environments
Stars: ✭ 178 (-14.01%)
Mutual labels:  sample
Workoutwotch
Repository for my video series on building an iOS app in .NET.
Stars: ✭ 156 (-24.64%)
Mutual labels:  sample
Openui5 Sample App
OpenUI5 Sample App
Stars: ✭ 193 (-6.76%)
Mutual labels:  sample
Pyentropy
Entropy for Python
Stars: ✭ 149 (-28.02%)
Mutual labels:  sample
Unitymathreference
Math reference for games and more. All visualized in Unity3D.
Stars: ✭ 166 (-19.81%)
Mutual labels:  sample
Cloud Cap Samples
This project contains sample applications for SAP Cloud Application Programming Model.
Stars: ✭ 202 (-2.42%)
Mutual labels:  sample
Play Scala Websocket Example
Example Play Scala application showing WebSocket use with Akka actors
Stars: ✭ 194 (-6.28%)
Mutual labels:  sample
Fluttergames
Flutter app for purchasing and renting games.
Stars: ✭ 182 (-12.08%)
Mutual labels:  sample

Differentially Private Federated Learning: A Client-level Perspective

REUSE status made-with-python PyPI License

Description:

Federated Learning is a privacy preserving decentralized learning protocol introduced by Google. Multiple clients jointly learn a model without data centralization. Centralization is pushed from data space to parameter space: https://research.google.com/pubs/pub44822.html [1]. Differential privacy in deep learning is concerned with preserving privacy of individual data points: https://arxiv.org/abs/1607.00133 [2]. In this work we combine the notion of both by making federated learning differentially private. We focus on preserving privacy for the entire data set of a client. For more information, please refer to: https://arxiv.org/abs/1712.07557v2.

This code simulates a federated setting and enables federated learning with differential privacy. The privacy accountant used is from https://arxiv.org/abs/1607.00133 [2]. The files: accountant.py, utils.py, gaussian_moments.py are taken from: https://github.com/tensorflow/models/tree/master/research/differential_privacy

Note that the privacy agent is not completely set up yet (especially for more than 100 clients). It has to be specified manually or otherwise parameters 'm' and 'sigma' need to be specified.

Authors:

Requirements

Download and Installation

  1. Install Tensorflow 1.4.1 2 Download the files as a ZIP archive, or you can clone the repository to your local hard drive.

  2. Change to the directory of the download, If using macOS, simply run:

    bash RUNME.sh
    

    This will download the MNIST data-sets, create clients and getting started.

For more information on the individual functions, please refer to their doc strings.

Known Issues

No issues known

How to obtain support

This project is provided "as-is" and any bug reports are not guaranteed to be fixed.

Citations

If you use this code or the pretrained models in your research, please cite:

@ARTICLE{2017arXiv171207557G,
   author = {{Geyer}, R.~C. and {Klein}, T. and {Nabi}, M.},
    title = "{Differentially Private Federated Learning: A Client Level Perspective}",
  journal = {ArXiv e-prints},
archivePrefix = "arXiv",
   eprint = {1712.07557},
 primaryClass = "cs.CR",
 keywords = {Computer Science - Cryptography and Security, Computer Science - Learning, Statistics - Machine Learning},
     year = 2017,
    month = dec,
   adsurl = {http://adsabs.harvard.edu/abs/2017arXiv171207557G},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

References

License

Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].