通过诱导模型输出置信度,实现无需参数的黑盒攻击新方法
Confidence Elicitation: A New Attack Vector for Large Language Models
- 利用提示工程诱导大模型输出可信度分数
- 在三个数据集上优于现有硬标签黑盒攻击方法
- 适合研究模型安全与对抗攻击的从业者
深度学习中的一个根本性问题始终是对抗鲁棒性。随着模型规模扩大,这一问题依然存在。当前拥有数十亿参数的大语言模型(LLMs)仍易受对抗攻击,但威胁模型已发生变化。过去可获得灰盒访问权限(如输入嵌入或输出概率),而如今闭源模型仅提供最终生成结果。这意味着当前黑盒攻击只能依赖最终预测判断攻击是否成功。本文研究并实证了在分类任务中,仅通过黑盒访问即可利用类似输出概率的攻击引导能力。这通过诱导模型输出置信度实现。我们实验证明,所获取的置信度是校准的,非虚构。通过最小化该置信度,可提高误分类概率。新范式在两个模型(LLaMA-3-8B-Instruct 和 Mistral-7B-Instruct-V0.3)上的三个数据集上均达到当前最优效果,优于仅进行词级替换的现有硬标签黑盒攻击方法。
原文摘要 · Abstract (English)
A fundamental issue in deep learning has been adversarial robustness. As these systems have scaled, such issues have persisted. Currently, large language models (LLMs) with billions of parameters suffer from adversarial attacks just like their earlier, smaller counterparts. However, the threat models have changed. Previously, having gray-box access, where input embeddings or output logits/probabilities were visible to the user, might have been reasonable. However, with the introduction of closed-source models, no information about the model is available apart from the generated output. This means that current black-box attacks can only utilize the final prediction to detect if an attack is successful. In this work, we investigate and demonstrate the potential of attack guidance, akin to using output probabilities, while having only black-box access in a classification setting. This is achieved through the ability to elicit confidence from the model. We empirically show that the elicited confidence is calibrated and not hallucinated for current LLMs. By minimizing the elicited confidence, we can therefore increase the likelihood of misclassification. Our new proposed paradigm demonstrates promising state-of-the-art results on three datasets across two models (LLaMA-3-8B-Instruct and Mistral-7B-Instruct-V0.3) when comparing our technique to existing hard-label black-box attack methods that introduce word-level substitutions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。