{"_id":"MkAdCBWCN65hMA73n","bibbaseid":"liu-yu-hu-li-lin-ma-yang-wen-characterlevelwhiteboxadversarialattacksagainsttransformersviaattachablesubwordssubstitution-2022","author_short":["Liu, A.","Yu, H.","Hu, X.","Li, S.","Lin, L.","Ma, F.","Yang, Y.","Wen, L."],"bibdata":{"bibtype":"misc","type":"misc","title":"Character-level White-Box Adversarial Attacks against Transformers via Attachable Subwords Substitution","url":"http://arxiv.org/abs/2210.17004","doi":"10.48550/arXiv.2210.17004","abstract":"We propose the first character-level white-box adversarial attack method against transformer models. The intuition of our method comes from the observation that words are split into subtokens before being fed into the transformer models and the substitution between two close subtokens has a similar effect to the character modification. Our method mainly contains three steps. First, a gradient-based method is adopted to find the most vulnerable words in the sentence. Then we split the selected words into subtokens to replace the origin tokenization result from the transformer tokenizer. Finally, we utilize an adversarial loss to guide the substitution of attachable subtokens in which the Gumbel-softmax trick is introduced to ensure gradient propagation. Meanwhile, we introduce the visual and length constraint in the optimization process to achieve minimum character modifications. Extensive experiments on both sentence-level and token-level tasks demonstrate that our method could outperform the previous attack methods in terms of success rate and edit distance. Furthermore, human evaluation verifies our adversarial examples could preserve their origin labels.","urldate":"2025-01-14","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Liu"],"firstnames":["Aiwei"],"suffixes":[]},{"propositions":[],"lastnames":["Yu"],"firstnames":["Honghai"],"suffixes":[]},{"propositions":[],"lastnames":["Hu"],"firstnames":["Xuming"],"suffixes":[]},{"propositions":[],"lastnames":["Li"],"firstnames":["Shu'ang"],"suffixes":[]},{"propositions":[],"lastnames":["Lin"],"firstnames":["Li"],"suffixes":[]},{"propositions":[],"lastnames":["Ma"],"firstnames":["Fukun"],"suffixes":[]},{"propositions":[],"lastnames":["Yang"],"firstnames":["Yawen"],"suffixes":[]},{"propositions":[],"lastnames":["Wen"],"firstnames":["Lijie"],"suffixes":[]}],"month":"October","year":"2022","note":"arXiv:2210.17004 [cs] TLDR: This work proposes the first character-level white-box adversarial attack method against transformer models that could outperform the previous attack methods in terms of success rate and edit distance and human evaluation verifies the authors' adversarial examples could preserve their origin labels.","keywords":"Computer Science - Computation and Language","bibtex":"@misc{liu_character-level_2022,\n\ttitle = {Character-level {White}-{Box} {Adversarial} {Attacks} against {Transformers} via {Attachable} {Subwords} {Substitution}},\n\turl = {http://arxiv.org/abs/2210.17004},\n\tdoi = {10.48550/arXiv.2210.17004},\n\tabstract = {We propose the first character-level white-box adversarial attack method against transformer models. The intuition of our method comes from the observation that words are split into subtokens before being fed into the transformer models and the substitution between two close subtokens has a similar effect to the character modification. Our method mainly contains three steps. First, a gradient-based method is adopted to find the most vulnerable words in the sentence. Then we split the selected words into subtokens to replace the origin tokenization result from the transformer tokenizer. Finally, we utilize an adversarial loss to guide the substitution of attachable subtokens in which the Gumbel-softmax trick is introduced to ensure gradient propagation. Meanwhile, we introduce the visual and length constraint in the optimization process to achieve minimum character modifications. Extensive experiments on both sentence-level and token-level tasks demonstrate that our method could outperform the previous attack methods in terms of success rate and edit distance. Furthermore, human evaluation verifies our adversarial examples could preserve their origin labels.},\n\turldate = {2025-01-14},\n\tpublisher = {arXiv},\n\tauthor = {Liu, Aiwei and Yu, Honghai and Hu, Xuming and Li, Shu'ang and Lin, Li and Ma, Fukun and Yang, Yawen and Wen, Lijie},\n\tmonth = oct,\n\tyear = {2022},\n\tnote = {arXiv:2210.17004 [cs]\nTLDR: This work proposes the first character-level white-box adversarial attack method against transformer models that could outperform the previous attack methods in terms of success rate and edit distance and human evaluation verifies the authors' adversarial examples could preserve their origin labels.},\n\tkeywords = {Computer Science - Computation and Language},\n}\n\n\n\n\n\n\n\n","author_short":["Liu, A.","Yu, H.","Hu, X.","Li, S.","Lin, L.","Ma, F.","Yang, Y.","Wen, L."],"key":"liu_character-level_2022","id":"liu_character-level_2022","bibbaseid":"liu-yu-hu-li-lin-ma-yang-wen-characterlevelwhiteboxadversarialattacksagainsttransformersviaattachablesubwordssubstitution-2022","role":"author","urls":{"Paper":"http://arxiv.org/abs/2210.17004"},"keyword":["Computer Science - Computation and Language"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/zzhenry2012","dataSources":["nZHrFJKyxKKDaWYM8"],"keywords":["computer science - computation and language"],"search_terms":["character","level","white","box","adversarial","attacks","against","transformers","via","attachable","subwords","substitution","liu","yu","hu","li","lin","ma","yang","wen"],"title":"Character-level White-Box Adversarial Attacks against Transformers via Attachable Subwords Substitution","year":2022}