Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue of inconsistent linearity results #5

Open
sincere0909 opened this issue Dec 24, 2024 · 1 comment
Open

The issue of inconsistent linearity results #5

sincere0909 opened this issue Dec 24, 2024 · 1 comment

Comments

@sincere0909
Copy link

Thank you very much for providing the open-source project. However, I encountered some confusion while using your code and would appreciate your help.
First, I ran the command “CUDA_VISIBLE_DEVICES=0 python model_train.py --dataset cifar10 --network resnet18 --phase train” to train a clean model, and the accuracy was normal. Then, I ran the command “CUDA_VISIBLE_DEVICES=0 python eval_linearity.py --attack clean --dataset cifar10 --network resnet18” to evaluate the linearity of the clean model. However, the result shows a linearity score of 0.9911737153566863, while the result in Table 4 of the original paper is 0.47. This discrepancy is quite significant, and I am unsure about the cause.
I look forward to your reply and greatly appreciate you.

@KaiyuanZh
Copy link
Owner

Hi @sincere0909 , thank you for your interest in our work, you can play with the _k and the linear_inputs parameters. The linearity scores of a clean model can fluctuate more and have lower values, and backdoored models yield stronger linearity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants