絮语攻击:针对大语言模型的资源消耗攻击 Chatter Attack: Resource Consumption Attack for Large Language Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-08
⬇️ 6 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型推理成本高,恶意用户可通过诱导超长输出来消耗资源。现有攻击方法在自回归采样生成中易失效。本文提出“絮语攻击”,通过优化对抗提示诱导模型生成预设的简短怀疑短语,触发自我怀疑状态,并用推理注意力损失和全局熵损失维持该状态,从而产生长输出。为适应黑盒场景,进一步提出贝叶斯提示优化方法。实验表明,该方法在多个模型和数据集上优于基线,最大响应长度增加至31.5倍,揭示了实际LLM推理服务的资源耗尽风险。
领域人工智能安全 / 大语言模型对抗攻击
适合谁读需要一定专业背景(了解大语言模型和对抗攻击基础)
核心贡献1. 提出絮语攻击,通过诱导短怀疑短语触发自我怀疑状态,避免搜索空间爆炸,稳定生成超长输出;2. 提出贝叶斯提示优化方法,利用离散令牌核和先验信息高效探索搜索空间,适用于黑盒场景。
关键数据最大响应长度增加至31.5倍;在多个模型和数据集上优于基线方法。
推荐理由如果你关心大模型的安全漏洞或推理成本控制,这篇论文展示了一种让模型“话痨”到崩溃的新攻击方式,效果惊人且实用。
关键词["资源消耗攻击", "大语言模型", "对抗提示", "贝叶斯优化", "推理成本", "安全风险"]

原文摘要

查看英文原文摘要

LLMs are powerful but incur substantial inference cost, which can be exploited by malicious users to induce overly long outputs, increasing latency and operational expense. Prior resource consumption attacks either coerce repetition or suppress the end-of-sequence token by lowering its logit value. However, with autoregressive, sampling-based generation, the search space grows exponentially with length and small deviations or unstable trajectories can derail optimization, limiting attack effectiveness and stability. To address this issue, we introduce Chatter Attack, a novel class of resource consumption attacks that optimize adversarial prompts to induce predefined short target phrases, thereby avoiding search-space explosion while still eliciting long responses. Specifically, Chatter Attack triggers self-doubt using short doubt-inducing phrases as the target, and sustains this state throughout generation via inference attention loss and global entropy loss. To extend to black-box settings, we further propose a novel Bayesian Prompt Optimization (BPO) method, which models the objective function globally by constructing a discrete token kernel, efficiently exploring the entire search space using prior information. Extensive experiments across multiple models and datasets show that our method outperforms baselines, with maximum response length increases to 31.5$\times$, and revealing practical resource-depletion risks for real-world LLM inference services.