arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.13771cs.CRcs.AI
收藏

ExplainableGuard:利用思维链推理实现大语言模型的可解释对抗防御

ExplainableGuard: Interpretable Adversarial Defense for Large Language Models Using Chain-of-Thought Reasoning

Centre for Smart Health, School of Nursing, The Hong Kong Polytechnic University(智能健康研究中心、护理学院、香港理工大学);Department of Language Science and Technology, The Hong Kong Polytechnic University(语言科学与技术系、香港理工大学);Department of Electrical and Electronic Engineering, The Hong Kong Polytechnic University(电子与电气工程系、香港理工大学)

Shaowei Guan, Yu Zhai, Zhengyu Zhang, Yanze Wang, Hin Chi Kwok

AI总结:

针对现有大语言模型对抗防御黑箱不透明的问题,提出ExplainableGuard可解释防御框架,依托DeepSeek-Reasoner的CoT能力实现多维度对抗检测净化并提供可解释依据,实验验证其防御效果与部署信任度优势。

摘要:

大语言模型(LLM)日益容易受到可巧妙操纵其输出的对抗攻击影响。尽管目前已提出多种防御机制,但许多机制以黑箱形式运行,决策过程缺乏透明度。本文提出ExplainableGuard,这是一个利用DeepSeek-Reasoner的思维链(CoT)推理能力构建的可解释对抗防御框架。我们的方法不仅能检测并消解文本中的对抗扰动,还能为每一项防御动作提供分步解释。我们展示了定制化的CoT提示如何引导LLM开展多维度分析(涵盖字符、词汇、结构与语义层面),生成净化后的输出以及人类可读的判定依据。在GLUE基准和IMDB影评数据集上的初步结果显示该框架具备可观的防御效果。此外,人工评估研究表明,ExplainableGuard生成的解释在清晰度、具体性和可操作性上优于消融变体,其部署信任度评分达72.5%,凸显了其助力更可信LLM部署的潜力。

英文摘要:

Large Language Models (LLMs) are increasingly vulnerable to adversarial attacks that can subtly manipulate their outputs. While various defense mechanisms have been proposed, many operate as black boxes, lacking transparency in their decision-making. This paper introduces ExplainableGuard, an interpretable adversarial defense framework leveraging the chain-of-thought (CoT) reasoning capabilities of DeepSeek-Reasoner. Our approach not only detects and neutralizes adversarial perturbations in text but also provides step-by-step explanations for each defense action. We demonstrate how tailored CoT prompts guide the LLM to perform a multi-faceted analysis (character, word, structural, and semantic) and generate a purified output along with a human-readable justification. Preliminary results on the GLUE Benchmark and IMDB Movie Reviews dataset show promising defense efficacy. Additionally, a human evaluation study reveals that ExplainableGuard's explanations outperform ablated variants in clarity, specificity, and actionability, with a 72.5% deployability-trust rating, underscoring its potential for more trustworthy LLM deployments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑