大语言模型的逐步推理错误干扰攻击
Stepwise Reasoning Error Disruption Attack of LLMs
AI总结:
针对现有大语言模型推理攻击存在的场景受限、隐蔽性不足问题,提出兼容零样本/少样本设置、无需修改指令的SEED逐步推理错误干扰攻击,经多模型多数据集实验验证其有效性,凸显LLM推理鲁棒性研究的重要性。
摘要:
大语言模型(LLMs)在复杂推理任务中已取得显著进展,但其推理过程中的安全性与鲁棒性仍未得到充分研究。现有针对LLM推理的攻击受限于特定场景,或缺乏隐蔽性,制约了其可行性与泛化性。为应对这些挑战,我们提出逐步推理错误干扰(Stepwise rEasoning Error Disruption, SEED)攻击,该方法巧妙地向先前推理步骤注入错误,误导模型生成错误的后续推理与最终答案。与以往方法不同,SEED兼容零样本和少样本设置,可保持自然推理流程,且无需修改指令即可实现隐蔽执行。我们在4个不同模型的4个数据集上开展了大量实验,证明了SEED的有效性,揭示了LLM易受推理过程干扰的漏洞。这些发现强调,需更加关注LLM推理的鲁棒性,以保障实际应用中的安全性。我们的代码可在以下链接获取:https://github.com/Applied-Machine-Learning-Lab/SEED-Attack。
英文摘要:
Large language models (LLMs) have made remarkable strides in complex reasoning tasks, but their safety and robustness in reasoning processes remain underexplored. Existing attacks on LLM reasoning are constrained by specific settings or lack of imperceptibility, limiting their feasibility and generalizability. To address these challenges, we propose the Stepwise rEasoning Error Disruption (SEED) attack, which subtly injects errors into prior reasoning steps to mislead the model into producing incorrect subsequent reasoning and final answers. Unlike previous methods, SEED is compatible with zero-shot and few-shot settings, maintains the natural reasoning flow, and ensures covert execution without modifying the instruction. Extensive experiments on four datasets across four different models demonstrate SEED's effectiveness, revealing the vulnerabilities of LLMs to disruptions in reasoning processes. These findings underscore the need for greater attention to the robustness of LLM reasoning to ensure safety in practical applications. Our code is available at: https://github.com/Applied-Machine-Learning-Lab/SEED-Attack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。