Chatter Attack: Resource Consumption Attack for Large Language Models
Abstract
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, and revealing practical resource-depletion risks for real-world LLM inference services.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CR, cs.CV, math.OC
- Comments
- NeurIPS 2026
Related papers
Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language Models
Shared title terminologycs.LGHonghao Feng, Shanhan Qu, Kai Tong et al.
Physical regime changes expose formula misuse in large language models
Shared title terminologycs.LGMaohao Ran, Yanting Zhang, Chendong Ma et al.
Linear Probes to Bayesian Manifolds: Geometry of Arithmetic in Large Language Models
Shared title terminologycs.LGAnshul Kumar, Neha Prasad, Manoj Kumar et al.
LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification
Shared title terminologycs.LGKiana Taktehrani, Maryam Hosseini, Amir Keynia et al.
Attacking Tabular Foundation Models: An Experimental Taxonomy of Context Poisoning and Test-Time Evasion
Shared title terminologycs.LGRamak Nassiri, Sujan Kumar Reddy Challa, Feroz Ahmed et al.
HKD-ACPA: Heterogeneous Knowledge Distillation Adversarial Cyber-Physical Attacks in Power Grids
Shared title terminologycs.LGJunhao Ren, Honglin Gao, Shuo Feng et al.