arXiv:2507.18305cs.CL2025-07被引 10

给大模型植入可调节的过度推理后门,攻击者能控制推理冗长程度。

BadReasoner: Planting Tunable Overthinking Backdoors into Large Reasoning Models for Fun or Profit

  • 用可调触发词重复次数控制模型推理冗长度,实现精细攻击
  • 实测使推理长度多倍增长,答案正确率不变
  • 适合研究模型安全或对抗攻击的读者关注

大型推理模型(LRMs)是专为复杂推理任务设计的大语言模型,其核心能力在于链式思维(CoT)推理。本文首次发现针对LRMs的新型攻击向量——‘过度推理后门’。提出一种可调后门机制,攻击者可精确控制模型推理过程的冗长程度。通过数据投毒实现:将可调触发词(重复次数决定强度)与对应冗长的CoT响应配对;这些响应由教师模型生成,通过指令注入可控数量的冗余优化步骤,保持最终答案正确。实验在多个LRMs上验证,该方法可稳定触发推理过程长度数倍增加,且不影响答案准确性。源代码已公开于https://github.com/FZaKK/BadReasoner。

原文摘要 · Abstract (English)

Large reasoning models (LRMs) have emerged as a significant advancement in artificial intelligence, representing a specialized class of large language models (LLMs) designed to tackle complex reasoning tasks. The defining characteristic of LRMs lies in their extensive chain-of-thought (CoT) reasoning capabilities. In this paper, we identify a previously unexplored attack vector against LRMs, which we term "overthinking backdoors". We advance this concept by proposing a novel tunable backdoor, which moves beyond simple on/off attacks to one where an attacker can precisely control the extent of the model's reasoning verbosity. Our attack is implemented through a novel data poisoning methodology. It pairs a tunable trigger-where the number of repetitions signals the desired intensity-with a correspondingly verbose CoT response. These responses are programmatically generated by instructing a teacher LLM to inject a controlled number of redundant refinement steps into a correct reasoning process. The approach preserves output correctness, which ensures stealth and establishes the attack as a pure resource-consumption vector. Extensive empirical results on various LRMs demonstrate that our method can reliably trigger a controllable, multi-fold increase in the length of the reasoning process, without degrading the final answer's correctness. Our source code is available at https://github.com/FZaKK/BadReasoner.

模型安全后门攻击推理控制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。