SHARP: Search-Based Adversarial Attack for Structured Prediction

Liwen Zhang, Zixia Jia, Wenjuan Han, Zilong Zheng, Kewei Tu


Abstract
Adversarial attack of structured prediction models faces various challenges such as the difficulty of perturbing discrete words, the sentence quality issue, and the sensitivity of outputs to small perturbations. In this work, we introduce SHARP, a new attack method that formulates the black-box adversarial attack as a search-based optimization problem with a specially designed objective function considering sentence fluency, meaning preservation and attacking effectiveness. Additionally, three different searching strategies are analyzed and compared, i.e., Beam Search, Metropolis-Hastings Sampling, and Hybrid Search. We demonstrate the effectiveness of our attacking strategies on two challenging structured prediction tasks: Pos-tagging and dependency parsing. Through automatic and human evaluations, we show that our method performs a more potent attack compared with pioneer arts. Moreover, the generated adversarial examples can be used to successfully boost the robustness and performance of the victim model via adversarial training.
Anthology ID:
2022.findings-naacl.71
Volume:
Findings of the Association for Computational Linguistics: NAACL 2022
Month:
July
Year:
2022
Address:
Seattle, United States
Editors:
Marine Carpuat, Marie-Catherine de Marneffe, Ivan Vladimir Meza Ruiz
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
950–961
Language:
URL:
https://aclanthology.org/2022.findings-naacl.71
DOI:
10.18653/v1/2022.findings-naacl.71
Bibkey:
Cite (ACL):
Liwen Zhang, Zixia Jia, Wenjuan Han, Zilong Zheng, and Kewei Tu. 2022. SHARP: Search-Based Adversarial Attack for Structured Prediction. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 950–961, Seattle, United States. Association for Computational Linguistics.
Cite (Informal):
SHARP: Search-Based Adversarial Attack for Structured Prediction (Zhang et al., Findings 2022)
Copy Citation:
PDF:
https://aclanthology.org/2022.findings-naacl.71.pdf
Video:
 https://aclanthology.org/2022.findings-naacl.71.mp4