LBA: Textual Hard-Label Adversarial Attack under Low Query Budgets
Shixin Guo, Ming Zhong, Xuhong Zhang, Dandan Zhao, Zhe Wang, Bo Zhang, Shouling Ji, Hao Peng
Abstract
Generating high-quality adversarial texts with low query budgets remains a challenging problem in the hard-label scenario. Most existing approaches rely on greedy algorithms, where one position in the text is selected for substitution, followed by the substitutions of other positions. This local search approach may fail to discover high-quality adversarial examples and often leads to excessive query costs. Ideally, an optimal adversarial sample would consider all possible position combinations in the text, but exhaustive search is computationally impractical. To address this challenge, we propose a sampling-based method called LBA, which constructs an approximate distribution of high-quality adversarial examples by integrating both prior and posterior knowledge, and utilizes this distribution for sampling. As sampling progresses, posterior knowledge updates the approximate distribution, which in turn guides more effective sampling. Extensive experiments on six language models, ranging from small-scale to large-scale architectures across four datasets, demonstrate that LBA significantly outperforms state-of-the-art baselines on all evaluation metrics. Additionally, LLM-based assessment indicates that LBA generates more semantically preserved and comprehensible adversarial texts.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Diverse Alternative Reasoning Traces for Hard Math Problems
Shared title terminologycs.CLLukas Aichberger, Adam Golinski, Arno Blaas et al.
Know the Design, Pick the Attack: Sentence-Keyed Watermarks for LLMs
Shared title terminologycs.CLJon Carmona, Jon Irureta, Jon Imaz et al.
SALSA: Sampling Adversarial Suffixes from Learned Distributions for LLM Safety Assessment
Shared title terminologycs.CLShivank Rajput, Himanshu Singh, A. V. Subramanyam
MultiSoc-4D: A Benchmark for Diagnosing Instruction-Induced Label Collapse in Closed-Set LLM Annotation of Bengali Social Media
Shared title terminologycs.CLSouvik Pramanik, S. M. Riaz Rahman Antu, Shak Mohammad Abyad et al.
Lightweight Stylistic Consistency Profiling: Robust Detection of LLM-Generated Textual Content for Multimedia Moderation
Shared title terminologycs.CLSiyuan Li, Aodu Wulianghai, Xi Lin et al.
Estimating the Black-box LLM Uncertainty with Distribution-Aligned Adversarial Distillation
Shared title terminologycs.CLHuizi Cui, Huan Ma, Qilin Wang et al.