用短提示诱导大模型陷入无限推理,实现隐蔽的拒绝服务攻击。
ReasoningBomb: A Stealthy Denial-of-Service Attack by Inducing Pathologically Long Reasoning in Large Reasoning Models
- 通过强化学习生成自然语言提示,触发模型产生超长推理链。
- 平均引发1.9万条推理令牌,输入输出放大比达286.7倍。
- 可绕过98%以上检测,适合研究安全漏洞与防御机制者参考。
大型推理模型(LRMs)在具备多步推理能力的同时,引入了新型提示诱导的推理时拒绝服务(PI-DoS)攻击风险,利用推理过程的高计算成本进行攻击。本文首次形式化定义了LRM的推理成本并提出PI-DoS概念,证明有效攻击需满足三个特性:高放大率(查询长度远小于生成推理长度)、隐蔽性(提示与响应保持自然语言分布,不被检测器发现)和可优化性(攻击自身成功不影响优化效率)。基于此框架,提出ReasoningBomb,一种基于强化学习的攻击框架,使用常数时间代理奖励训练攻击者模型,生成短且自然的提示,使目标LRMs陷入病态长推理甚至无法终止。在七种开源模型(含LLMs与LRMs)及三种商业LRMs上测试,平均生成18,759个完成令牌和19,263个推理令牌。相比次优基线,完成令牌提升35%,推理令牌提升38%,比正常查询多出6-7倍,输入输出放大比均值达286.7。同时,在输入、输出及双阶段联合检测中,绕过率分别达到99.8%、98.7%和98.4%。
原文摘要 · Abstract (English)
Large reasoning models (LRMs) extend large language models with explicit multi-step reasoning traces, but this capability introduces a new class of prompt-induced inference-time denial-of-service (PI-DoS) attacks that exploit the high computational cost of reasoning. We first formalize inference cost for LRMs and define PI-DoS, then prove that any practical PI-DoS attack should satisfy three properties: (1) a high amplification ratio, where each query induces a disproportionately long reasoning trace relative to its own length; (ii) stealthiness, in which prompts and responses remain on the natural language manifold and evade distribution shift detectors; and (iii) optimizability, in which the attack supports efficient optimization without being slowed by its own success. Under this framework, we present ReasoningBomb, a reinforcement-learning-based PI-DoS framework that is guided by a constant-time surrogate reward and trains a large reasoning-model attacker to generate short natural prompts that drive victim LRMs into pathologically long and often effectively non-terminating reasoning. Across seven open-source models (including LLMs and LRMs) and three commercial LRMs, ReasoningBomb induces 18,759 completion tokens on average and 19,263 reasoning tokens on average across reasoning models. It outperforms the the runner-up baseline by 35% in completion tokens and 38% in reasoning tokens, while inducing 6-7x more tokens than benign queries and achieving 286.7x input-to-output amplification ratio averaged across all samples. Additionally, our method achieves 99.8% bypass rate on input-based detection, 98.7% on output-based detection, and 98.4% against strict dual-stage joint detection.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。