PivotAttack: Rethinking the Search Trajectory in Hard-Label Text Attacks via Pivot Words
Organizations: Guangdong University of Foreign Studies, China
Abstract
Existing hard-label text attacks often rely on inefficient "outside-in" strategies that traverse vast search spaces. We propose PivotAttack, a query-efficient "inside-out" framework. It employs a Multi-Armed Bandit algorithm to identify Pivot Sets-combinatorial token groups acting as prediction anchors-and strategically perturbs them to induce label flips. This approach captures inter-word dependencies and minimizes query costs. Extensive experiments across traditional models and Large Language Models demonstrate that PivotAttack consistently outperforms state-of-the-art baselines in both Attack Success Rate and query efficiency.
Figures & tables
| Model | Attack | Yelp | Yahoo | MR | Amazon | SST-2 | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ASR | Pert | ASR | Pert | ASR | Pert | ASR | Pert | ASR | Pert | ||
| WordLSTM | PivotAttack | 16.8 | 1.4 | 42.3 | 1.5 | 50.6 | 5.1 | 18.6 | 1.8 | 37.8 | 6.1 |
| LimeAttack | 11.9 | 2.5 | 39.3 | 2.9 | 48.3 | 5.0 | 18.2 | 2.4 | 36.5 | 5.8 | |
| TextHacker | 14.5 | 5.9 | 38.8 | 4.3 | 44.9 | 5.9 | 18.5 | 3.5 | 33.6 | 6.6 | |
| LeapAttack | 10.9 | 2.6 | 36.4 | 3.0 | 45.2 | 4.9 | 15.0 | 2.2 | 33.4 | 5.6 | |
| TextHoaxer | 9.5 | 2.3 | 34.4 | 3.8 | 42.8 | 4.8 | 14.4 | 2.5 | 29.2 | 5.5 | |
| Dataset | Method | ASR. | Pert. |
|---|---|---|---|
| Yelp | PivotAttack | 15.2 | 1.2 |
| −Culling | 13.8 | 1.4 | |
| −MAB | 13.6 | 1.4 | |
| −Tighten | 14.8 | 1.3 | |
| MR | PivotAttack | 49.8 | 5.0 |
| −Culling | 47.9 | 5.0 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Attack | Yelp | Yahoo | MR | Amazon | SST-2 | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ASR | Pert | ASR | Pert | ASR | Pert | ASR | Pert | ASR | Pert | ||
| WordCNN | PivotAttack | 12.9 | 1.6 | 44.5 | 2.4 | 51.5 | 6.0 | 19.0 | 2.1 | 46.4 | 6.1 |
| LimeAttack | 11.1 | 2.3 | 43.2 | 2.9 | 48.8 | 5.1 | 17.0 | 2.4 | 43.6 | 5.8 | |
| TextHacker | 12.9 | 3.0 | 43.0 | 4.6 | 48.6 | 6.1 | 19.0 | 2.9 | 37.2 | 6.6 | |
| LeapAttack | 10.0 | 2.6 | 38.1 | 2.7 | 46.7 | 4.9 | 16.1 | 2.3 | 41.7 | 5.5 | |
| TextHoaxer | 9.8 | 2.6 | 38.0 | 2.8 | 42.3 | 4.7 | 16.0 | 2.5 | 37.5 | 5.3 | |
Adversarial Text Attacks
Adversarial text attacks test how small or meaning-preserving text changes can fool language models, classifiers, and safety systems.
See all 78 papers