Giter Club home page Giter Club logo

raifle's Introduction

RAIFLE: Reconstruction Attack on Interaction-based Federated Learning with Adversarial Data Manipulation

This is the repository for the paper RAIFLE: Reconstruction Attack on Interaction-based Federated Learning with Adversarial Data Manipulation. To reproduce our results, please follow the following steps:

Installation:

Clone the repo, then create a conda environment (inside the repo or wherever) using conda-spec-file.txt: conda create --name raifle --file conda-spec-file.txt. This will install all the necessary libraries using conda. Make sure to activate the conda environment once you are done: conda activate raifle.

Data:

After downloading the data below, you should unzip them in the dataset folder.

  • Learning to Rank

    • LETOR: Download MQ2007.rar and MQ2008.rar from here. (Microsoft link)
    • MSLR: Download MSLR 10K (Microsoft link)
  • Recommendation:

    • MovieLens: Download the 100K version (and others if you want to) from here

Files:

  • attack.py: Our implementation of the RAIFLE attack.
  • ranker.py: Our implementation of the FPDGD algorithm and the FNCF algorithm.
  • dataset.py: Code to load and preprocess dataset.
  • utils.py: Contains code for metrics, differential privacy, and OLTR click models
  • experiment_ltr.ipynb: Experiments for Federated Online Learning to Rank with LETOR and MSLR data.
  • experiment_ltr_cv.ipynb: Experiments for Federated Online Learning to Rank with image-based data. First, follow PyTorch's instructions to set up the ImageNet-1K 2012 dataset. Then, generate the manipulated images before you can run the attack (follow the cells in the notebook). GPU is highly recommended (you may need to adjust the batch size depending on how much GPU memory is available)
  • experiment_rec.ipynb: Experiments for Federated Recommender Systems.
  • plot.ipynb: Code for generating plots and numbers

raifle's People

Contributors

dzungvpham avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.