TextHacker: a learning-based hybrid local search algorithm for text hard-label adversarial attacksTextHacker: Learning based Hybrid Local Search Algorithm for Text Hard-label Adversarial Attack
The researchers propose TextHacker, a text hard-label adversarial attack method that requires only access to predicted labels. Existing text adversarial attacks typically rely on gradients or prediction confidence, making them difficult to deploy in real applications; TextHacker first constructs adversarial examples by randomly perturbing a large number of words, then employs a hybrid local search algorithm that estimates word importance from the changes in predicted labels caused by word substitutions in the attack history, in order to minimize the adversarial perturbation. Extensive evaluations on text classification and textual entailment tasks show that TextHacker significantly outperforms existing hard-label attacks in both attack performance and adversarial example quality.