Skip to content

Exploring gradient-guided masked language model detection of textual adversarial attacksExploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks

arXiv· arXiv:2504.08798· IEEE Transactions on Audio, Speech, and Language Processing 2025· Xiaomei Zhang, Zhaoxi Zhang, Yanjun Zhang, Xufei Zheng, Leo Yu Zhang, Shengshan Hu, Shirui Pan·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The study proposes a masked language model detection method, MLMD, which uses masking and restoration operations to distinguish the manifold changes between normal text and adversarial text, achieving competitive detection performance. However, masking one by one is costly, and subsequent analysis found that a large number of non-keywords are not important for detection. Based on this, the proposed GradMLMD uses gradient information to identify and skip non-keywords, significantly reducing resource consumption without sacrificing detection performance.

Read originalIEEE Transactions on Audio, Speech, and Language Processing 2025