Context-aware perturbations for text adversarial attacksContextualized Perturbation for Textual Adversarial Attack
AI summary
The paper proposes CLARE, a context-aware adversarial text example generation model based on a pretrained masked language model, which outputs fluent, grammatical text through a mask-fill process. The authors design three context-aware perturbations, Replace, Insert, and Merge, which can generate adversarial text of different lengths. Experiments and human evaluation show that CLARE outperforms baselines in attack success rate, text similarity, fluency, and grammaticality, and can attack target models more efficiently with fewer edits.