arXiv:2607.14101cs.CLcs.AI2026-07

低查询预算下生成高质量对抗文本的新方法

LBA: Textual Hard-Label Adversarial Attack under Low Query Budgets

论文配图:LBA: Textual Hard-Label Adversarial Attack under Low Query Budgets
图 1 · 摘自论文原文
  • 基于采样构建对抗样本分布,融合先验与后验知识
  • 在六个模型、四个数据集上均超越现有最优方法
  • 生成的对抗文本更语义连贯,适合真实场景测试

在硬标签场景下,以低查询预算生成高质量对抗文本仍是难题。现有方法多依赖贪婪算法,逐个替换文本位置,易陷入局部最优且查询成本过高。理想情况下应考虑所有位置组合,但穷举不可行。为此,我们提出LBA——一种基于采样的方法,通过融合先验与后验知识构建高质量对抗样本的近似分布,并用于采样。随着采样进行,后验知识不断更新分布,引导更高效的搜索。在六种语言模型(从小到大)和四个数据集上的实验表明,LBA在所有评估指标上显著优于当前最优基线。此外,基于大模型的评估显示,LBA生成的对抗文本具有更强的语义保留性和可读性。

原文摘要 · Abstract (English)

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.

对抗攻击文本生成低预算采样方法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。