# Chatter Attack: Resource Consumption Attack for Large Language Models

*Yibo Miao, Yichuan Cao, Xiao-Shan Gao, Yinpeng Dong*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150065) · [OpenReview](https://openreview.net/forum?id=l0WR9h7F4b) · [Open on the map](../papers.html#p150065)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Attack Strategies](../pgroup/451.md) · Type: new method · Keywords: resource consumption attack, LLM security, adversarial prompt optimization, self-doubt, attention loss, entropy loss

Areas: [Safety & Security](../areas/safety.md) › Language Model Security › Prompt Injection and Resource Attacks

## Summary
Chatter Attack introduces a resource consumption attack that optimizes adversarial prompts to induce short target phrases, achieving up to 31.5× longer LLM responses and exposing practical resource-depletion risks.

## Explained to a 5-year-old
Some computer programs called LLMs can write sentences just like a person. If someone gives them a special sentence that makes the program think it's not sure, the program will keep writing more and more words. This can make the computer take a long time and use a lot of electricity and money. The paper shows how to make this happen even when you don't know how the program works inside. It also shows how big the problem can be, so people can try to stop it.

## Explained to a 5-year-old, longer
Large language models are smart computer programs that can write sentences just like people. When they answer a question, they usually stop after a while, but they can be tricked into writing a lot more. Some tricks make the model repeat the same words over and over, or they try to stop the model from ending its answer. These old tricks often fail because the model has many possible choices, and a tiny mistake can make the answer go wrong. The new idea is to give the model a short sentence that makes it doubt itself, like “I might be wrong”. By using this doubt, the model keeps thinking and writing more sentences, even though the request was short. To keep the doubt going, the researchers use two special tricks: one looks at how the model pays attention, and the other looks at how uncertain the model is. These tricks help the model stay in a state of uncertainty for a long time. For situations where you cannot see inside the model, they also created a method that works like a guess-and-check process, using prior knowledge to explore many possible prompts. The experiments show that this new way can make the model write up to about thirty-one times more text than usual. This demonstrates a serious risk: someone could use this to waste a lot of computer time and money on a language model service. The paper hopes that by showing how easy it is to cause this problem, developers will think about ways to protect their models.

## For a technical reader
The paper shows that large language models can be coerced into generating excessively long outputs by crafting adversarial prompts that trigger self-doubt. It uses attention-based and entropy-based loss functions to maintain this doubt throughout the generation process. A Bayesian Prompt Optimization technique is introduced to efficiently search the prompt space in black-box scenarios. Experiments across several models demonstrate response length increases of up to 31.5× compared to existing resource-consumption attacks. The results highlight a practical security concern for LLM services, emphasizing the need for defensive mechanisms against such resource-depletion attacks.

## Problem
Large language models incur high inference costs that can be exploited to generate excessively long outputs, raising latency and operational expense. Existing resource consumption attacks either force repetition or suppress the end-of-sequence token, but their optimization suffers from exponential search spaces and instability.

## Method
The approach formulates adversarial prompts that target short doubt-inducing phrases, and uses inference attention loss and global entropy loss to sustain self-doubt throughout generation, while a Bayesian Prompt Optimization method models the objective globally to explore the prompt space efficiently.

## Results
The approach achieves response length increases up to 31.5× compared to baselines across models, demonstrating significant resource-depletion risks for LLM services.

## Contributions
It introduces a new class of resource consumption attacks that avoid search-space explosion, proposes a Bayesian Prompt Optimization technique for black-box scenarios, and provides extensive empirical evidence of the attacks’ effectiveness.

## Practical relevance
The findings highlight a practical risk that malicious users can deplete LLM service resources, urging providers to consider defensive measures against such attacks.

## Research questions this paper is counted under

- [How can we automatically determine when reasoning steps become unnecessary to stop or prune them without harming answer quality?](../q/16.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150065)
