针对大型语言模型的目标驱动攻击
Target-driven Attack for Large Language Models
AI总结:
针对现有黑盒攻击策略随机性强且与成功率关系不明的问题,提出目标驱动黑盒攻击方法,通过最大化KL散度将问题转化为凸优化并利用投影梯度下降求解,包含token操纵和错误信息攻击两种策略,实验证明其有效。
摘要:
当前的大型语言模型(LLM)为面向大规模用户的自然语言任务提供了坚实基础。许多用户可以通过用户界面轻松注入对抗性文本或指令,从而导致LLM模型面临安全挑战,例如语言模型无法给出正确答案。尽管目前已有大量关于黑盒攻击的研究,但大多数黑盒攻击采用随机和启发式策略。目前尚不清楚这些策略如何与攻击成功率相关联,从而有效提升模型鲁棒性。为解决这一问题,我们提出了目标驱动的黑盒攻击方法,通过最大化干净文本与攻击文本条件概率之间的KL散度来重新定义攻击目标。基于攻击目标,我们将距离最大化问题转化为两个凸优化问题,以求解攻击文本并估计协方差。此外,利用投影梯度下降算法求解攻击文本对应的向量。我们的目标驱动黑盒攻击方法包含两种攻击策略:token操纵和错误信息攻击。在多个大型语言模型和数据集上的实验结果证明了我们攻击方法的有效性。
英文摘要:
Current large language models (LLM) provide a strong foundation for large-scale user-oriented natural language tasks. Many users can easily inject adversarial text or instructions through the user interface, thus causing LLM model security challenges like the language model not giving the correct answer. Although there is currently a large amount of research on black-box attacks, most of these black-box attacks use random and heuristic strategies. It is unclear how these strategies relate to the success rate of attacks and thus effectively improve model robustness. To solve this problem, we propose our target-driven black-box attack method to maximize the KL divergence between the conditional probabilities of the clean text and the attack text to redefine the attack's goal. We transform the distance maximization problem into two convex optimization problems based on the attack goal to solve the attack text and estimate the covariance. Furthermore, the projected gradient descent algorithm solves the vector corresponding to the attack text. Our target-driven black-box attack approach includes two attack strategies: token manipulation and misinformation attack. Experimental results on multiple Large Language Models and datasets demonstrate the effectiveness of our attack method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。