AdvExpander: Generating Natural Language Adversarial Examples by Expanding TextAdvExpander: Generating Natural Language Adversarial Examples by Expanding Text
AI summary
AdvExpander generates natural language adversarial examples by expanding text, supplementing methods that rely only on replacing characters or words. It first uses linguistic rules to determine the constituents to be expanded and the types of modifiers, then directly searches for adversarial latent codes in a generative model based on a CVAE pretrained on a large-scale corpus, and uses heuristic rules to constrain the modifications so as to keep the text matching its label. Experiments on three classification tasks verify the effectiveness of the method.