This is the implementation code of the paper HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Text
- follow the instruction of https://github.com/RishabhMaheshwary/hard-label-attack.git in the main directory
- follow the instruction of https://github.com/dugu9sword/dne.git in the "dne"
- follow the instruction of https://github.com/lethaiq/shield-defend-adversarial-texts.git in the "sda"
HQAAttack_Text_Classifier.py and HQAAttack_NLI_Classifier.py are our attack files. The corresponding commands are in the commands
file.