thunlp / OpenBackdoor

An open-source toolkit for textual backdoor attack and defense (NeurIPS 2022 D&B, Spotlight)
https://openbackdoor.readthedocs.io/
Apache License 2.0
149 stars 22 forks source link

Lack of lws_poisoner.py #1

Closed fenffef closed 2 years ago

fenffef commented 2 years ago

The provided code is missing the lws_poisoner.py file, will it be provided later?

Yangyi-Chen commented 2 years ago

Hi, Xuan

Thanks for your watch on our repo. The LWS attack is a little bit special, compared to other data poisoning-based backdoor attacks. It generates poisoned data in a dynamic way. In each round, it needs to interact with the local victim model.

So, for implementation, we don't include a specific lws_poisoner.py file, you may use the default/badnets poisoner. Please see the configs/lws_config.json file.

fenffef commented 2 years ago

Thanks for your reply!