BadThink:针对大语言模型思维链推理的触发式过度思考攻击 BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-11-13
👁️ 预览文献
💡 AI 中文简介
这项研究提出BadThink,一种针对大语言模型思维链推理的后门攻击。当模型遇到特定触发提示时,会生成大量冗余的推理步骤,导致计算成本和推理时间大幅增加,但最终答案保持不变,因此很难被发现。研究者通过投毒微调策略和基于大模型的迭代优化,生成自然的毒化数据来植入该行为。在多个先进模型和推理任务上,推理链长度最高增加超过17倍(MATH-500数据集),且攻击隐蔽、鲁棒。这揭示了思维链系统在推理效率上存在被隐蔽操控的新漏洞。
领域自然语言处理 / 大语言模型安全与对抗攻击
适合谁读需要一定专业背景(了解大语言模型、思维链提示和对抗攻击基本概念)
核心贡献首次提出针对思维链推理的隐蔽后门攻击,通过触发提示诱导模型产生冗余推理链而不改变最终输出;设计基于大模型的迭代优化投毒微调策略,生成高度自然的毒化数据,实现攻击的隐蔽性和鲁棒性。
关键数据在MATH-500数据集上推理链长度增加超过17倍;在多个先进模型和推理任务上均能稳定触发,且保持最终输出一致,难以被常规输出评估检测。
推荐理由如果你关心大模型推理的安全和成本,这篇论文揭示了一个容易被忽视的漏洞:攻击者能让模型‘想太多’却看不出来,值得一读。
关键词["思维链推理", "后门攻击", "大语言模型", "过度思考", "推理效率", "投毒微调"]

原文摘要

查看英文原文摘要

Recent advances in Chain-of-Thought (CoT) prompting have substantially improved the reasoning capabilities of large language models (LLMs), but have also introduced their computational efficiency as a new attack surface. In this paper, we propose BadThink, the first backdoor attack designed to deliberately induce "overthinking" behavior in CoT-enabled LLMs while ensuring stealth. When activated by carefully crafted trigger prompts, BadThink manipulates the model to generate inflated reasoning traces - producing unnecessarily redundant thought processes while preserving the consistency of final outputs. This subtle attack vector creates a covert form of performance degradation that significantly increases computational costs and inference time while remaining difficult to detect through conventional output evaluation methods. We implement this attack through a sophisticated poisoning-based fine-tuning strategy, employing a novel LLM-based iterative optimization process to embed the behavior by generating highly naturalistic poisoned data. Our experiments on multiple state-of-the-art models and reasoning tasks show that BadThink consistently increases reasoning trace lengths - achieving an over 17x increase on the MATH-500 dataset - while remaining stealthy and robust. This work reveals a critical, previously unexplored vulnerability where reasoning efficiency can be covertly manipulated, demonstrating a new class of sophisticated attacks against CoT-enabled systems.