GithubHelp home page GithubHelp logo

fuchong-cyber / label-inference-attacks Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 14.0 536 KB

Code & supplementary material of the paper Label Inference Attacks Against Federated Learning on Usenix Security 2022.

License: MIT License

Batchfile 15.00% Python 85.00%

label-inference-attacks's People

Contributors

fuchong-cyber avatar jiahuanluo 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

Watchers

 avatar

label-inference-attacks's Issues

Inconsistancy when re-running the code on A100

In your paper, you reported that for CIFAR-10 dataset, the main task accuracy is 0.8280 while the passieve model completion attack performance is 0.8024 on the training dataset and 0.6299 on the testing dataset with 40 auxiliary labeled data in total.

However, when re-running your code on my device (A100) without any modification of the default hyper-parameter settings, I got 0.8015 for main task performance, which is similar to your reported result, but 0.8721 on training dataset and 0.6984 on testing dataset for attack accuracy, which is apparently too high compared to your reported results.

Could you help me explain why this could happen?

复现cifar10数据集训练基础框架的第二行命令时,损失值始终为nan

您好,打算复现原论文中的模型补全算法,想问一下run_training.bat与run_model_completion.bat中的三行指令分别代表什么呢?还有跑python vfl_framework.py --use-mal-optim True --use-mal-optim-all False --use-mal-optim-top False -d CIFAR10 --path-dataset ./data/CIFAR10 --k 4 --epochs 100 --half 16 该命令时,loss值始终为NAN,请问这是正常现象吗

Steps to run a single attack on windows system

Hey!
I am new to VFL. I want to run this code but I didnt understand the instructions given in read.md file.
Kindly guide me with all the steps to run this code for only single attack(active attack) on windows system.
Thanks in advance..

Inquiries about passive and active labels attacks code.

I want to comfirm my understanding in your code. In ReadME indicates that 'run_model_completion.bat' will run the passive and active label inference attacks. The train() function in model_completion.py is to train a top model for passive label inference attack right? And the validation code to check accuracy on complete training set and testing set also showing the metrics score of passive label inference attack?
Thanks

Help about the training speed

Hello, I am trying to reproduce the results of the defense strategy against label inference attacks on 4090. However, I find that the training speed is too slow. I wonder is there something wrong?

This is the running script:
python vfl_framework.py --use-mal-optim True --use-mal-optim-all False --use-mal-optim-top False -d CIFAR10 --path-dataset /Datasets/CIFAR10 --k 5 --epochs 100 --half 16 --lap-noise True --noise-scale 1e-3

Question about the split model

I am a beginner in deep learning and have read the code carefully. But there are still some questions I would like to ask.
In the backpropagation phase of the vertical federated framework, the bottom model needs to calculate a loss. And the loss is
image

The note states

read grad of : input of top model(also output of bottom models), which will be used as bottom model's target

I didn't understand. Why the bottom model's loss is calculated in this way?

Help about the bert on Yahoo Answers.

I am trying to run vfl_framework.py based on the dataset Yahoo Answer. I have downloaded the Bert model 'bert-base-uncased' and saved it in models/transformers/. However, something is still wrong.
error

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.