potentialpaper

Chatter Attack: Resource Consumption Attack for Large Language Models

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

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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, samplingbased 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, 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 LLM services.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes a novel attack framework that avoids search-space explosion by optimizing adversarial prompts to trigger predefined short, doubt-inducing target phrases—forcing the model into a state of "self-doubt" and overthinking in both white-box and black-box settings. The reviewers universally agree that investigating resource-consumption and latency attacks against LLM inference is a timely, practical, and vital research area. They commend the paper for its clean, interpretable attack mechanism—inducing "self-doubt" via short phrases rather than optimizing full trajectories—and its impressive token-inflation results on local setups. On the flip side, reviewers highlight the lack of economic justification for attackers in pay-per-token API models, the noticeable drop in effectiveness during online black-box transfer, and the absence of evaluations against standard infrastructure defenses like hard token caps, rate throttling, and anomaly detection. Overall, the AC believes this is a borderline paper but leans towards rejection as an initial assessment (but is very willing to reconsider upon an effective author response) -- in addition to the concerns raised by the reviewers, I am also curious that given Chatter attack works in black-box setting, how does it perform against state-of-the-art frontier closed-source models in real-world black-box settings, particularly on complex, realistic application tasks rather than a math benchmarks like GSM8K (which seems a bit unnatural to me)?

Final justification

In their rebuttal, the authors provided a comprehensive response featuring direct black-box evaluations on DeepSeek-V4-Pro across complex benchmarks, extensive infrastructure defense evaluations (~15 settings), and a theoretical bound, which largely resolved the initial concerns. Following the discussion phase, the majority of reviewers are supportive (5, 4), while the sole remaining negative reviewer (3) chose to maintain their score without providing substantive justification or counterarguments. Having examined the rebuttal and subsequent follow-ups in detail, the AC believes that the initial concerns have been largely addressed. Therefore, the AC recommends acceptance and encourage the authors to faithfully incorporate all new experimental results, defense discussions, and theoretical proofs into the camera-ready version.

Area Chair qiQb · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper proposes a novel attack framework that avoids search-space explosion by optimizing adversarial prompts to trigger predefined short, doubt-inducing target phrases—forcing the model into a state of "self-doubt" and overthinking in both white-box and black-box settings. The reviewers universally agree that investigating resource-consumption and latency attacks against LLM inference is a timely, practical, and vital research area. They commend the paper for its clean, interpretable attack mechanism—inducing "self-doubt" via short phrases rather than optimizing full trajectories—and its impressive token-inflation results on local setups. On the flip side, reviewers highlight the lack of economic justification for attackers in pay-per-token API models, the noticeable drop in effectiveness during online black-box transfer, and the absence of evaluations against standard infrastructure defenses like hard token caps, rate throttling, and anomaly detection. Overall, the AC believes this is a borderline paper but leans towards rejection as an initial assessment (but is very willing to reconsider upon an effective author response) -- in addition to the concerns raised by the reviewers, I am also curious that given Chatter attack works in black-box setting, how does it perform against state-of-the-art frontier closed-source models in real-world black-box settings, particularly on complex, realistic application tasks rather than a math benchmarks like GSM8K (which seems a bit unnatural to me)?

Final justification

In their rebuttal, the authors provided a comprehensive response featuring direct black-box evaluations on DeepSeek-V4-Pro across complex benchmarks, extensive infrastructure defense evaluations (~15 settings), and a theoretical bound, which largely resolved the initial concerns. Following the discussion phase, the majority of reviewers are supportive (5, 4), while the sole remaining negative reviewer (3) chose to maintain their score without providing substantive justification or counterarguments. Having examined the rebuttal and subsequent follow-ups in detail, the AC believes that the initial concerns have been largely addressed. Therefore, the AC recommends acceptance and encourage the authors to faithfully incorporate all new experimental results, defense discussions, and theoretical proofs into the camera-ready version.

1 comment
Authors · CommentOpenReview ↗

Rebuttal

Thank you for acknowledging the practical importance, interpretable design, and strong performance of our paper as well as providing valuable feedback. Below we address the detailed comments, and hope that you can find our response satisfactory.

Q1: in addition to the concerns raised by the reviewers, I am also curious that given Chatter attack works in black-box setting, how does it perform against state-of-the-art frontier closed-source models in real-world black-box settings, particularly on complex, realistic application tasks rather than a math benchmarks like GSM8K (which seems a bit unnatural to me)?

A1: We thank the AC for raising this important question.

First, in addition to the mathematical benchmarks (GSM8K, MATH-500, and MathQA), we also evaluate our method on the widely used question-answering benchmark MMLU-Pro and the coding benchmark HumanEval. The results are reported in Section 5.3 and Table 6 of the paper.

Moreover, we fully recognize the importance of evaluating state-of-the-art frontier closed-source models on complex, realistic application tasks in real-world black-box settings. Therefore, we evaluate the Chatter-BPO attack, which is specifically designed for black-box APIs, on a frontier model, DeepSeek-V4-Pro (1.6T parameters, 1M context window) via API, covering several realistic and complex application tasks: Terminal Bench 2.0 for domain-specific missions for scientific computing in terminal environments, Humanity's Last Exam for frontier of human academic knowledge benchmark with extreme reasoning across diverse subjects, and GDPval for economically valuable real-world tasks.

As shown in the table below, Chatter-BPO consistently induces massive resource overhead across all benchmarks: inflating output token consumption by over 11× on GSM8K (from 240.3 to 2860.4), while still causing a sharp 2.5× to 3.2× surge on complex application tasks. This demonstrates that Chatter Attack possesses the capability to inflict severe practical damage on state-of-the-art frontier closed-source models across complex, realistic application tasks in real-world black-box settings. We will incorporate these results into the revised manuscript.

Table: Average output token length (ATL) on DeepSeek-V4-Pro

GSM8K Terminal Bench 2 Humanity's Last Exam GDPval
Benign 240.3 5980.1 3267.3 1888.2
Chatter-BPO Attack 2860.4 15315.7 10576.9 5702.8

Q2: On the flip side, reviewers highlight the lack of economic justification for attackers in pay-per-token API models, the noticeable drop in effectiveness during online black-box transfer, and the absence of evaluations against standard infrastructure defenses like hard token caps, rate throttling, and anomaly detection.

A2: We thank the AC for summarizing the three common concerns raised by the reviewers.

  1. Regarding the lack of economic justification for attackers in pay-per-token API models, the reviewer has a serious misunderstanding of our practical threat model / attack scenarios, which we have clearly clarified in Q2 and Q3 of our Rebuttal for Reviewer fVoV.

  2. Regarding the noticeable drop in effectiveness during online black-box transfer, we re-ran direct black-box attacks against a state-of-the-art closed-source API, abandoning the previous setting of zero-shot transfer from a white-box attack (see Q1 of our Rebuttal for Reviewer 3gy9 for details). We evaluated the attack on DeepSeek-V4-Pro over a series of complex datasets (Terminal Bench 2.0, Humanity's Last Exam, GDPval). See Q1 of our Rebuttal for Area Chair qiQb, Q1 of our Rebuttal for Reviewer 3gy9, and Q2 of our Rebuttal for Reviewer SWE2 for details.

  3. Regarding the absence of evaluations against standard infrastructure defenses like hard token caps, rate throttling, and anomaly detection, we have added a large number of additional experiments, evaluating a series of defenses (about 15 in total). See Q4 and Q7 of our Rebuttal for Reviewer fVoV and Q2 of our Rebuttal for Reviewer 3gy9 for details.

  4. Regarding all the other questions from all reviewers, we have provided a detailed clarification and additional experiments for each of them one by one.

Reviewer 3gy9OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies LLM resource-consumption attacks, where adversarial prompts force excessively long generations and raise latency, cost, and service-disruption risk. The method combines initial doubt loss, inference attention loss, and global entropy loss to keep the model in a self-doubting generation state, and it introduces Bayesian Prompt Optimization for black-box settings. Experiments across multiple datasets and models show large increases in output length and inference time, including up to 31.5× longer responses on GSM8K.

Strengths and weaknesses

Strengths:

  • Attack design is solid: using short, doubt-inducing targets plus attention and entropy losses to avoid the optimization instability
  • The evaluation is broad, covering multiple datasets, models, baselines, defenses, and a deployed vLLM service setting

Weaknesses:

  • The online API transfer results appear much weaker than the main local-model results, suggesting that the practical effectiveness against production systems needs further optimization.
Questions

How effective is Chatter Attack under realistic production constraints such as strict output-token limits, per-user rate limits, anomaly detection, dynamic batching, request prioritization, and server-side early termination policies?

Limitations

Yes.

Final justification

I appreciate the responses from the authors. I do not think I have a misunderstanding of the initial version of the paper. As such, I keep the original rating.

Formatting concerns

N/A

3 comments
Authors · CommentOpenReview ↗

Rebuttal (2/2)

Q2: How effective is Chatter Attack under realistic production constraints such as strict output-token limits, per-user rate limits, anomaly detection, dynamic batching, request prioritization, and server-side early termination policies?

A2: Thanks for the valuable suggestion. We implement and evaluate all six production constraints in a simulated server environment (see Section 5.5 for details). In the experimental setup, queries are injected continuously at intervals of 2–4s over a total duration of 3000s, with malicious attack requests accounting for 10% of the traffic and the remaining 90% consisting of lightweight background traffic from 200 independent benign accounts. The attacker is assigned a conservative resource pool consisting of 5 IPs and 20 accounts. We implement six distinct constraint mechanisms, including:

  1. strict output-token limits capping every request's max_tokens at 8,192 at admission;
  2. per-user rate limits enforcing token-bucket-based limits with RPM = 20 and TPM = 10k;
  3. anomaly detection covering both input and output sides (on the input side, computing prompt perplexity via Qwen2.5-7B-Instruct to filter high-PPL inputs; on the output side, applying post-generation loop detection with a repeated 4-gram ratio >0.5> 0.5 or gzip compression ratio <0.10< 0.10, alongside excessive-reasoning monitoring via Qwen2.5-7B-Instruct as an LLM judge, enforcing a 600s account ban after 3 cumulative violations);
  4. dynamic batching dynamically varying vLLM's concurrency limit between 256 and 512;
  5. request prioritization that maps account reputation, derived from registration age, historical output length, and violation records, to priority levels in vLLM’s native scheduler;
  6. server-side early termination policies using a lightweight online trigger (cumulative self-doubt markers >8> 8 or generated length >8,000> 8,000 tokens) to abort requests in real time and release resources.

As shown in the table below, none of these realistic production constraints can fully eliminate the impact of Chatter Attack.

For request management policies like per-user rate limits, dynamic batching, and request prioritization, they are fundamentally ineffective because Chatter Attack's threat stems from per-request reasoning depth rather than request volume.

  1. Per-user rate limits fail to block attack requests since their arrival frequency matches that of benign requests.
  2. Dynamic batching with increased concurrency limits provides no relief for running requests or GPU cache usage because attack requests do not inflate request counts, but rather bottleneck the system on KV cache.
  3. Request prioritization merely alters execution order, meaning low-priority attack requests are still executed and consume compute, leaving running requests (RR) at 15.6 (close to 17.4 under no defense), while attackers could potentially farm reputation to gain high priority, posing even greater risks.

For policies directly capping per-request resources, such as strict output-token limits and server-side early termination policies, Chatter Attack remains effective.

  1. Under strict output-token limits, RR remain at 6.2 (roughly three times the benign baseline), aggressively lowering this limit further risks truncating legitimate long chains of thought, thereby undermining normal utility.

  2. Server-side early termination policies effectively abort a portion of requests, but the freed compute capacity is rapidly re-consumed by subsequent attack requests, failing to relieve server congestion, with RR and GPU cache usage (GCU) actually rebounding to higher levels of 26.0 and 43.8%, respectively.

For pre- and post-generation anomaly detection, both methods suffer from severe detection difficulty.

  1. Perplexity-based input detection only partially suppresses high-perplexity prefixes and cannot eliminate Chatter Attack. Output-side monitoring is also ineffective: repetition-based loop detection has a hit rate below 5% due to paragraph-level semantic re-derivation, while LLM judges miss up to 65.6% of attacked CoTs. More fundamentally, post-generation detection cannot prevent the resources already consumed during generation.

In summary, Chatter Attack remains highly effective under realistic production constraints, as no policy can completely eliminate the threat. We will incorporate these additional experiments and discussions into revision.

Defense Setting RR GCU (%) TTFT (ms) TPS
Benign 2.2 0.1 22.4 78.8
Under Attack 17.4 17.3 40.1 60.3
Per-User Rate Limit 16.4 16.3 42.9 56.0
Dynamic Batching 13.9 13.1 39.0 58.3
Request Prioritization 15.6 14.0 27.0 56.3
Output-Token Limit 6.2 3.0 30.0 71.3
Server-side Early Termination 26.0 43.8 68.0 44.2
Anomaly Detection (Input Perplexity) 11.0 11.3 38.8 58.8
Anomaly Detection (Output Loop Detection) 9.1 9.2 39.6 58.6
Anomaly Detection (Output Excessive-Reasoning) 6.2 5.9 31.4 67.5
Authors · CommentOpenReview ↗

Rebuttal (1/2)

Thank you for appreciating our solid attack design and broad evaluation as well as providing valuable feedback. Below we address the detailed comments, and hope that you can find our response satisfactory.

Q1: The online API transfer results appear much weaker than the main local-model results, suggesting that the practical effectiveness against production systems needs further optimization.

A1: We thank the reviewer for this perceptive observation. We acknowledge that the initial online API results appear relatively weaker because they rely on direct transfer (zero-shot transfer) from small local surrogate models, where cross-architecture discrepancies inevitably reduce attack efficiency after transfer.

To evaluate true effectiveness against production systems, we employ Chatter-BPO to directly optimize attack prompts against API endpoints, evaluating it on a production-grade frontier model, DeepSeek-V4-Pro (1.6T parameters, 1M context window). Direct black-box optimization completely eliminates this performance gap: Chatter-BPO inflates the output overhead on GSM8K by 11.9× (from 240.3 to 2860.4), which is comparable to the results we report on smaller models.

Furthermore, we conduct tests on various complex, realistic application tasks to further simulate black-box attacks in real-world environments, including Terminal Bench 2.0 for domain-specific missions for scientific computing in terminal environments, Humanity's Last Exam for frontier of human academic knowledge benchmark with extreme reasoning across diverse subjects, and GDPval for economically valuable real-world tasks.

As shown in the table below, Chatter-BPO attack still induces a sharp 2.5× to 3.2× surge across these datasets. These results confirm that, when equipped with direct black-box optimization, Chatter Attack poses a severe attack threat to online API production systems. We incorporate these additional API experiments into the revised manuscript.

Table: Average output token length (ATL) on DeepSeek-V4-Pro

GSM8K Terminal Bench 2 Humanity's Last Exam GDPval
Benign 240.3 5980.1 3267.3 1888.2
Chatter-BPO Attack 2860.4 15315.7 10576.9 5702.8
Authors · CommentOpenReview ↗

Look forward to further feedback

Dear reviewer,

Thanks again for appreciating our contributions as well as providing valuable comments. We have carefully addressed them in detail. As the rebuttal is about to close, we hope you may find the response satisfactory and could kindly raise your score, and we are happy to address further feedback (if any).

Best regards, Authors

Reviewer fVoVOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work addresses the central challenge of resource-consumption attacks on LLM inference. Chatter Attack induces model self-doubt so that the model generates excessively long outputs, increasing latency, cost, and server load. The paper considers both white-box and black-box settings and evaluates the attack across several models, datasets, and defenses.

Strengths and weaknesses

Strenghts

  • Important and timely problem for deployed LLM services.

  • The paper considers both white-box and black-box attacks.

  • The black-box setting is especially relevant for API-served models.

  • The authors evaluate several defenses and provide mitigation recommendations.

  • The claims of the paper are potentially significant for LLM availability and inference-cost security.

Weaknesses:

  • Resource attacks have been explored extensively before in reasoning models.

  • The practical threat model is not fully convincing: in many API settings, the attacker pays for the extra tokens.

  • The paper should analyze attacker cost and whether the attack remains economically worthwhile.

  • Traditional infrastructure defenses such as IP blocking, rate limits, spend caps, and account-level throttling are underexplored.

  • The assumption that maximizing self-doubt reliably maximizes output length needs stronger justification or a theoretical explenation.

  • Maximum output-token or reasoning-token limits on the part of the victim may substantially bound the damage from any single query.

  • The paper does not evaluate post-generation defenses such as loop detection or excessive-reasoning monitoring.

  • The white-box setting is less well motivated than the black-box setting for commercial API deployments.

Questions

Why not directly optimize for latency or returned token count?

Who bears the cost in paid API settings, and what is the attacker’s economic incentive? How effective are simple defenses such as IP blocking, rate limits, spend caps, and per-user token limits? Why is evaluation on standard datasets necessary, rather than searching for the worst-case prompt or task? Would arbitrary strings or unusual character sequences provide a stronger optimization space than natural-language prompts? What is the worst-case behavior: excessive but meaningful reasoning, or looping until the maximum token budget? Can these prompts be used for adversarial training against excessive reasoning or runaway generation?

Limitations

Very limited: one paragraph in the paper. I would expect a larger section in the appendix.

Formatting concerns

NA

9 comments
Authors · CommentOpenReview ↗

Rebuttal (8/8)

Q12: Why is evaluation on standard datasets necessary, rather than searching for the worst-case prompt or task?

A12:

  1. First, directly searching for the worst-case prompt or task does not satisfy the second threat model / attack scenario in Q2, i.e., the one that targets a legitimate user (the victim), whose query may be tampered with by an untrusted third-party API proxy (the attacker) and so on, so that a resource consumption attack is deliberately triggered. In this scenario, the original input (corresponding to the standard datasets) is provided by the victim and is typically whatever question the legitimate user happens to ask; the attacker only has permission to inject or append content, and cannot arbitrarily replace the entire task.

  2. Generalization. What we identify is a mechanism that holds across all models and standard datasets — a class of universally existing vulnerability. In contrast, directly searching for the worst-case prompt typically finds isolated cases, which results in insufficient diversity, robustness, generalization, and reproducibility, and may only be effective on a specific model. As Reviewer SWE2 writes in the Strengths section: our proposed approach is a mechanistic way to make the model overthink, rather than just showing a prompt trick that happens to work.

Q13: Would arbitrary strings or unusual character sequences provide a stronger optimization space than natural-language prompts?

A13: Yes, they can provide a stronger search space. However, this does not mean that the optimization converges more easily. Under a limited optimization budget, it may instead increase the search complexity and make effective targets sparser in the space, and therefore harder for the optimization algorithm to discover.

Q14: What is the worst-case behavior: excessive but meaningful reasoning, or looping until the maximum token budget?

A14: The worst case is: the model falls into self-doubt, keeps performing excessive reasoning that looks meaningful but is in fact meaningless, and then loops through round after round of reasoning and doubt until the maximum token budget. In this case, the reasoning trace is locally linguistically coherent and does keep proposing, exploring, and checking different explanations. It is not a simple verbatim or sentence-level repetition loop, but it repeatedly doubts itself overall, never converges, and cannot be called meaningful task reasoning either.

Q15: Can these prompts be used for adversarial training against excessive reasoning or runaway generation?

A15: They certainly can be used for adversarial training. However, this may cause a loss in model performance, since there is often a trade-off between safety and performance. We leave it to our future work.

Q16: Limitations are very limited: one paragraph in the paper. I would expect a larger section in the appendix.

A16: Thanks for the valuable suggestion. We have already expanded the Limitations in the main text, and will add a complete section in the appendix of the revised version: 1) A limitation of our work is that our attacks are only applicable to autoregressive LLMs and do not affect models like Diffusion Language Models, which generate tokens non-sequentially. We leave this for future research. 2) For ordinary conversational models that do not perform explicit chain-of-thought reasoning, the attack is less effective than on reasoning models, and the target phrases and the set of critical tokens would need to be redesigned. We plan to extend our method to non-reasoning conversational models and non-autoregressive architectures in future work. 3) Our exploration of frontier closed-source models is limited. We have already attacked DeepSeek-V4-Pro during the rebuttal period, and will attack more frontier models in the future. 4) The evaluation benchmarks are five reasoning datasets (GSM8K, MathQA, MATH-500, MMLU-Pro, HumanEval), and the evaluation on frontier, complex, real-world application tasks is limited. We have already evaluated on datasets such as Terminal Bench 2.0, Humanity's Last Exam, GDPval, and τ²-bench during the rebuttal period, and will evaluate on more complex datasets in the future. 5) Only three defenses (CCoT, CoD, PD³F) are evaluated, and all of them are inference-time and prompt-based methods; model-level approaches such as adversarial training are not considered. We have already added a large number of defense methods during the rebuttal period. However, there is as yet no public paradigm for adversarial training against resource consumption attacks, so we leave this for future research. 6) In the future, the LLM service deployment simulation needs to reach a production-grade service with realistic scheduling, in order to further validate the real-world impact. We will add these discussions to the revised manuscript.

Authors · CommentOpenReview ↗

Rebuttal (7/8)

Q8: The white-box setting is less well motivated than the black-box setting for commercial API deployments.

A8: Although we study both white-box attacks and black-box attacks, we would still like to clarify the motivation and the significance of the white-box setting:

  1. Most commercial API proxy platforms (e.g., OpenRouter, Fireworks, HuggingFace) not only provide closed-source APIs, but also deploy open-source models as a service. An attacker can download the weights of the same open-source model, construct the attack input locally and offline in a white-box manner, and then submit the attack input to the platform. The attack target is therefore a commercial API deployment, while the attacker's optimization process falls into the white-box setting.

  2. With the development of the open-source community, a large number of LLM services that are freely open to everyone have appeared (e.g., HuggingChat, Chatbot Arena, HuggingFace Spaces, and individual developers). Such platforms or websites usually run on limited computational resources, do not require users to log in, and the attack cost is nearly zero. Since they are almost all based on open-source models, they are naturally realistic targets for white-box attacks.

  3. White-box attacks can be used to evaluate the worst-case robustness of a model before deployment. Specifically: 1) to uncover model vulnerabilities, characterize the worst-case upper bound of the threat, and assess model security; 2) for defense research, the effectiveness of any defense against resource consumption attacks must be examined under the strongest white-box attack; 3) to help service providers estimate the maximum workload capacity of their system, and accordingly optimize the service policy and avoid service interruption caused by overload; 4) for adversarial training, using data obtained from white-box attacks for adversarial training can help the model learn the meta-ability to stop generating.

Studying white-box attacks is therefore very useful in this area.

Q9: Why not directly optimize for latency or returned token count?

A9:

  1. In the white-box setting, latency and returned token count are non-differentiable and cannot be optimized directly.

  2. In the black-box setting, using latency and returned token count as the optimization objective has the following drawbacks: 1) the reward signal is sparse and the reward landscape is plateau-like, which is unsuitable for local optimization; 2) the generation process is highly stochastic, so the noise and variance of the optimization objective are extremely large and the optimization process is unstable.

  3. In fact, in the black-box setting we have already specifically constructed baselines that directly optimize the token count, namely Black-box Search and Gradient-free Attack. The detailed settings are given in Baselines of Section 5.1 and in Baselines of Appendix C (Detailed Experiment Settings), and the corresponding experimental results are given in row 11 (Gradient-free Attack) and row 12 (Black-box Search) of Table 2. On R1-7b / GSM8K, their ATL values are only 474.9 and 1,456.7 respectively, whereas Chatter Attack reaches 13,345.8 (a gap of 28.1× and 9.2×). On QwQ-32b, the Gradient-free Attack, which directly optimizes length, is even lower than Base without any attack at all (914.1 vs. 991.4). This further verifies that latency and returned token count are unsuitable as direct optimization objectives.

Q10: Who bears the cost in paid API settings, and what is the attacker’s economic incentive?

A10: Please see Q2 and Q3.

Q11: How effective are simple defenses such as IP blocking, rate limits, spend caps, and per-user token limits?

A11: Please see Q4.

Authors · CommentOpenReview ↗

Rebuttal (6/8)

Q6: Maximum output-token or reasoning-token limits on the part of the victim may substantially bound the damage from any single query.

A6: A maximum output-token limit can bound the damage from a single query to some extent, as long as it is small enough. However, an overly small maximum output-token limit often prevents the model from completing the task under normal conditions, and accuracy drops. The experiments conducted in this paper already cap the output at 16,384 tokens (see Detailed Experiment Settings in the paper). The recommended output limit for mainstream models (e.g., Qwen3) is typically 32,768 tokens or 65,536 tokens. We have therefore already imposed a reasonable maximum output-token limit.

Q7: The paper does not evaluate post-generation defenses such as loop detection or excessive-reasoning monitoring.

A7: We sincerely thank the reviewer for these valuable suggestions. To address this concern, we implement and evaluate two representative post-generation defenses in our simulated server environment: loop detection and excessive-reasoning monitoring. Loop detection follows classic degeneration criteria [1,2], flagging an output when its repeated 4-gram ratio exceeds 0.5 or its gzip compression ratio falls below 0.10. Excessive-reasoning monitoring is implemented using an LLM-as-a-judge (Qwen2.5-7B-Instruct) that classifies each completed CoT as overthinking or normal based on the overthinking criteria in [3]. In both cases, the enforcement policy is aligned with our strictest account-level strategy: an account is banned for 600s after accumulating 3 flagged outputs. The experimental setup (3000s duration, 10% attack traffic, and an attacker resource pool of 5 IPs and 20 accounts) is identical to that used in the infrastructure defense evaluation.

The experimental results are shown in the table below. We find that post-generation monitoring fundamentally fails to mitigate Chatter Attack for two reasons.

First, it cannot reliably detect the attack. Chatter Attack does not induce verbatim repetition; instead, it triggers paragraph-level semantic re-derivation where each round is lexically distinct. As a result, literal loop detection triggers only 10 times across all generations, resulting in the banning of 3 accounts. The excessive-reasoning judge is similarly unreliable, missing 65.6% of attack traces because malicious long chain-of-thought (CoT) reasoning is hard to distinguish from legitimate deep reasoning by benign users.

Second, and more fundamentally, these defenses are inherently reactive: detection can only be executed after a request is fully generated, by which point the compute and KV-cache consumption spikes already occur. By the time an attack is detected, the attack request already consumes an average of 10k–15k output tokens. As shown in the table below, while account bans lead to a partial reduction in RR, the impact of the attack on the server is already inflicted, causing an increase in TTFT and a degradation in TPS. We incorporate these additional experiments into the revised manuscript.

Defense Setting RR GCU (%) TTFT (ms) TPS
Benign 2.2 0.1 22.4 78.8
Under Attack 17.4 17.3 40.1 60.3
Loop Detection 9.1 9.2 39.6 58.6
Excessive-Reasoning Monitoring 6.2 5.9 31.4 67.5

[1] Holtzman A, Buys J, Du L, et al. The curious case of neural text degeneration[J]. arXiv preprint arXiv:1904.09751, 2019.

[2] Xu J, Liu X, Yan J, et al. Learning to break the loop: Analyzing and mitigating repetitions for neural text generation[J]. Advances in Neural Information Processing Systems, 2022, 35: 3082-3095.

[3] Chen X, Xu J, Liang T, et al. Do not think that much for 2+ 3=? on the overthinking of o1-like llms[J]. arXiv preprint arXiv:2412.21187, 2024.

Reviewer SWE2OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Chatter Attack, a resource-consumption attack approach against foundation models. Instead of directly forcing repetition or suprressing the EOS token, the attack uses adversarial prompts to induce short self-doubt phrases at the start of generation, causing the model to overthink and produce much longer responses. The method combines initial doubt induction, attention-based persistence, and entropy maximization, and works in both white-box and block-box settings. Experiments show that Chatter Attack significantly increases output lenght and inference latency across reasoning, QA, and coding benchmarks.

Strengths and weaknesses

Strengths

Instead of optimizing for a long repeated sequence or directly suppressing EOS, the attack optimizes for a short self-doubt phrase that can trigger long downstream reasoning. The paper decomposes the attack into three interpretable objectives, initial doubt induction, attention persistence, and entropy maximization, which is a mechanistic way to make the model overthink, rather than just showing a prompt trick that happens to work.

The empirical evaluation covers a broad of areas such as coding, math, QA, etc. And the peformane of the approch seems SOTA by increasing the average output length from 423 to 13346 tokens on GSM8k using R1-7b model.

Weaknesses

The proposed self-doubt mechanism is plausible but not fully proven. The proposed approach will be more convincing and sound if it can be proved mathematically.

The paper evaluates on R1-7B, QwQ-32b, and gpt-oss-20b, with a local vLLM service simultion. That is useful, but it doesn't show how the proposed approach work against larger, heavily post-trained models such as ChatGPT-class or Claude-class models. My assumption is that the attack idea may still be relevant, but the reported effect size may not transfer.

Questions

Please see the weaknesses section.

Limitations

Yes

Formatting concerns

No.

6 comments
Authors · CommentOpenReview ↗

Rebuttal (3/3)

Q2: The paper evaluates on R1-7B, QwQ-32b, and gpt-oss-20b, with a local vLLM service simultion. That is useful, but it doesn't show how the proposed approach work against larger, heavily post-trained models such as ChatGPT-class or Claude-class models. My assumption is that the attack idea may still be relevant, but the reported effect size may not transfer.

A2: We thank the reviewer for raising this insightful question. Regarding the concern about the transferability of attack effectiveness to larger, heavily post-trained models, we conduct additional evaluations on a frontier model, DeepSeek-V4-Pro, which features 1.6T parameters and supports a 1-million-token context window. To comprehensively evaluate such an ultra-large model beyond the standard GSM8K benchmark, we extend our evaluation to a suite of challenging benchmarks: Terminal Bench 2.0 (scientific computing tasks in a terminal environment), Humanity's Last Exam (a frontier academic knowledge benchmark that covers multiple disciplines and requires extremely strong reasoning ability), and GDPval (real-world tasks with practical economic value). Given the model scale, we employ the Chatter-BPO attack, which is specifically designed for black-box API scenarios.

As shown in the table below, Chatter-BPO attack consistently induces massive resource overhead across all benchmarks. On GSM8K, it inflates output consumption from 240.3 to 2860.4. Even on other complex benchmarks, Chatter-BPO attack still causes a sharp 2.5× to 3.2× surge in resource consumption. In summary, the core idea of Chatter Attack seamlessly transfers to 1.6T-scale, heavily post-trained models, maintaining high attack effectiveness and severe practical impact across multiple challenging benchmarks. We incorporate these additional experimental results and discussions into the revised manuscript.

Table: Average output token length (ATL) on DeepSeek-V4-Pro

GSM8K Terminal Bench 2.0 Humanity's Last Exam GDPval
Benign 240.3 5980.1 3267.3 1888.2
Chatter-BPO Attack 2860.4 15315.7 10576.9 5702.8
Authors · CommentOpenReview ↗

Rebuttal (2/3)

Step 2: entropy and EOS advantage determine the hazard

(exact). Write Zt=∑iezt(i)Z_t=\sum_i e^{z_t(i)}. Expanding the entropy of the softmax distribution and, separately, the EOS log-probability gives

Ht=−∑ift(i)log⁡ft(i)=−∑ift(i)(zt(i)−log⁡Zt)=log⁡Zt−Ei∼ft[zt(i)],log⁡ht=zt(EOS⁡)−log⁡Zt.(6)\begin{aligned} H_t &=-\sum_i f_t(i)\log f_t(i)\\\\ &=-\sum_i f_t(i)\bigl(z_t(i)-\log Z_t\bigr) =\log Z_t-\mathbb{E}_{i\sim f_t}[z_t(i)],\\\\ \log h_t&=z_t(\operatorname{EOS})-\log Z_t. \end{aligned} \tag{6}

Eliminating the same partition function ZtZ_t from these two equalities yields the exact hazard identity

log⁡ht=zt(EOS⁡)−Ei∼ft[zt(i)]−Ht=Δt−Ht,ht=eΔt−Ht.(7)\log h_t =z_t(\operatorname{EOS})-\mathbb{E}_{i\sim f_t}[z_t(i)]-H_t =\Delta_t-H_t, \qquad h_t=e^{\Delta_t-H_t}. \tag{7}

Thus, at the same step, higher entropy or lower EOS advantage reduces the hazard. This conclusion follows from softmax algebra alone, it does not yet say that attention to the implanted phrase changes either term.

Step 3: attention supplies the first-order bridge.

Let PP be the positions of the implanted phrase. Splitting the attention read-out between PP and its complement gives the exact affine identity

cl,t=∑jAl,t(j)vl,j=vˉl,t¬P+al,t(vˉl,tP−vˉl,t¬P).(8)\begin{aligned} c_{l,t} &=\sum_j A^{(j)}_{l,t}v_{l,j}\\\\ &=\bar v^{\neg P}_{l,t} +a_{l,t}\bigl(\bar v^P_{l,t}-\bar v^{\neg P}_{l,t}\bigr). \end{aligned} \tag{8}

This algebra explains why al,ta_{l,t} is the natural scalar for the attention loss. The next link is not exact: under the linear residual-stream approximation, let gl,t:=∂zt/∂al,tg_{l,t}:=\partial z_t/\partial a_{l,t}. Differentiating the log-softmax gives

∂log⁡ht∂al,t=gl,t(EOS⁡)−Ei∼ft[gl,t(i)]=:−κl,t.(9)\frac{\partial\log h_t}{\partial a_{l,t}} =g_{l,t}(\operatorname{EOS})-\mathbb{E}_{i\sim f_t}[g_{l,t}(i)] =:-\kappa_{l,t}. \tag{9}

The sign condition κl,t>0\kappa_{l,t} > 0 means that more attention to the phrase locally lowers log hazard. Integrating this response only to first order and combining it with (7) gives the source's master relation

log⁡ht=Δt(0)−κaˉt−Ht+o(aˉt)≈Δt(0)−κaˉt−Ht.(10)\log h_t =\Delta_t^{(0)}-\kappa\bar a_t-H_t+o(\bar a_t) \approx\Delta_t^{(0)}-\kappa\bar a_t-H_t. \tag{10}

Equation (10) is explicitly a first-order model. Taking it as the conditional model in A1, and then applying the baseline, coefficient, attention, and entropy bounds in A1--A3, gives

log⁡ht≤Δˉ−κa−H,ht≤eΔˉ−κa−H=:hˉ.(11)\log h_t\leq\bar\Delta-\kappa a-H, \qquad h_t\leq e^{\bar\Delta-\kappa a-H}=:\bar h. \tag{11}

This is the assumption-dependent bridge from the two sustain losses to the uniform hazard bound needed in Step 1.

Step 4: insert the three losses.

Let II be the event that the target phrase y⋆y^\star is generated. Nonnegativity of NN and the definition of LIDL_{\mathrm{ID}} give the conditioning chain

E[N]≥Pr⁡(I),E[N∣I]=Pr⁡(y1:m=y1:m⋆),E[N∣y1:m=y1:m⋆]=e−LIDE[N∣y1:m=y1:m⋆].(12)\begin{aligned} \mathbb{E}[N] &\geq \Pr(I)\\,\mathbb{E}[N\mid I]\\\\ &=\Pr(y_{1:m}=y^\star_{1:m})\\,\mathbb{E}[N\mid y_{1:m}=y^\star_{1:m}]\\\\ &=e^{-L_{\mathrm{ID}}}\mathbb{E}[N\mid y_{1:m}=y^\star_{1:m}]. \end{aligned} \tag{12}

Within the conditional model, (11) and the exact geometric bound (5) applied to the conditioned process yield (2). In the non-saturated regime, taking logarithms and substituting the two loss normalizations produces the full line-by-line reduction

log⁡E[N]≥−LID+κa+H−Δˉ−log⁡2=−LID−κL∣U∣LIA−1KLGE−Δˉ−log⁡2=−[LID+κL∣U∣LIA+1KLGE]−Δˉ−log⁡2.(13)\begin{aligned} \log\mathbb{E}[N] &\geq -L_{\mathrm{ID}}+\kappa a+H-\bar\Delta-\log 2\\\\ &=-L_{\mathrm{ID}} -\frac{\kappa}{L|U|}L_{\mathrm{IA}} -\frac1K L_{\mathrm{GE}} -\bar\Delta-\log 2\\\\ &=-\left[ L_{\mathrm{ID}} +\frac{\kappa}{L|U|}L_{\mathrm{IA}} +\frac1K L_{\mathrm{GE}} \right] -\bar\Delta-\log 2. \end{aligned} \tag{13}

Interpretation of the bound

LIDL_{\mathrm{ID}} controls whether the skeptical phrase is implanted, LIAL_{\mathrm{IA}} controls its continued attention under the first-order model, and LGEL_{\mathrm{GE}} controls the entropy term in the exact hazard identity. Under the theorem's trajectory-wide assumptions, minimizing the normalized three-term objective raises a lower bound on the logarithm of expected output length, until the decoding budget becomes active.

Authors · CommentOpenReview ↗

Rebuttal (1/3)

Thank you for acknowledging our novel and interpretable attack design as well as providing valuable feedback. Below we address the detailed comments, and hope that you can find our response satisfactory.

Q1: The proposed self-doubt mechanism is plausible but not fully proven. The proposed approach will be more convincing and sound if it can be proved mathematically.

A1: Thank you for your valuable suggestion. Below, we provide a mathematical proof and establish the Conditional Output-Length Bound for the Chatter Objective (Theorem 1), which explains how the self-doubt mechanism affects output length. We provide a proof sketch and an interpretation of the bound, while the full proof will be included in the appendix of the revised manuscript.

Proof overview

We prove the bound by reducing expected output length to a sequence of local halting hazards through the exact tail-sum and survival identities. For a softmax model, an exact algebraic identity then decomposes each hazard into the EOS advantage and predictive entropy. The three Chatter losses enter this chain through distinct controls: LIDL_{\mathrm{ID}} controls phrase implantation, LIAL_{\mathrm{IA}} controls sustained attention under a first-order residual-stream model, and LGEL_{\mathrm{GE}} controls the entropy term. Thus the survival and softmax identities are exact, whereas the attention bridge and the resulting objective-to-length bound are conditional on the assumptions stated below.

Notation

Let ft=softmax⁡(zt)f_t=\operatorname{softmax}(z_t) be the next-token distribution, and let

ht:=p(EOS⁡∣a,x,y<t),Ht:=H(ft),Δt:=zt(EOS⁡)−Ei∼ft[zt(i)].(1)h_t:=p(\operatorname{EOS}\mid a,x,y_{ < t }),\qquad H_t:=H(f_t),\qquad \Delta_t:=z_t(\operatorname{EOS})-\mathbb{E}_{i\sim f_t}[z_t(i)]. \tag{1}

Here N≤TN\leq T is the generated length capped at budget TT. Let y⋆y^\star be the implanted phrase, pID=p(y⋆∣a,x)=e−LIDp_{\mathrm{ID}}=p(y^\star\mid a,x)=e^{-L_{\mathrm{ID}}}. At layer ll and step tt, let al,ta_{l,t} be the attention mass on that phrase and let aˉt\bar a_t denote its aggregate over layers.

Theorem 1: Conditional Output-Length Bound for the Chatter Objective

Condition on successful implantation of y⋆y^\star. Suppose that, at every relevant step t≤Tt\leq T:

  1. the first-order attention-to-hazard model is an adequate local description,
  2. its baseline EOS advantage obeys Δt(0)≤Δˉ\Delta_t^{(0)}\leq\bar\Delta,
  3. the attention response has a positive uniform lower bound, κl,t≥κ>0\kappa_{l,t}\geq\kappa > 0,
  4. attention and entropy have per-step floors, aˉt≥a\bar a_t\geq a and Ht≥HH_t\geq H.

Then the source argument gives

\mathbb{E}[N]\geq \frac12 e^{-L_{\mathrm{ID}}} \min\\!\left\\{e^{\kappa a+H-\bar\Delta},\\,T\right\\}. \tag{2}

If additionally eκa+H−Δˉ≤Te^{\kappa a+H-\bar\Delta}\leq T (the non-saturated regime), and the loss normalizations are

a=−LIAL∣U∣,H=−LGEK,a=-\frac{L_{\mathrm{IA}}}{L|U|}, \qquad H=-\frac{L_{\mathrm{GE}}}{K},

then

log⁡E[N]≥−[LID+κL∣U∣LIA+1KLGE]−Δˉ−log⁡2.(3)\log\mathbb{E}[N]\geq -\left[ L_{\mathrm{ID}} +\frac{\kappa}{L|U|}L_{\mathrm{IA}} +\frac1K L_{\mathrm{GE}} \right] -\bar\Delta-\log 2. \tag{3}

Proof sketch

Step 1: length is controlled by the halting hazard (exact).

For autoregressive sampling with EOS⁡\operatorname{EOS} as the absorbing stop event, define the survival factor StS_t. The event N>tN > t is exactly the event that the decoder has survived all stopping opportunities through tt, so

St:=∏s≤t(1−hs),Pr⁡(N>t)=E[St],E[N]=∑t=0T−1E[St].(4)S_t:=\prod_{s\leq t}(1-h_s),\qquad \Pr(N > t)=\mathbb{E}[S_t],\qquad \mathbb{E}[N]=\sum_{t=0}^{T-1}\mathbb{E}[S_t]. \tag{4}

This is the exact passage from local stopping probabilities to expected length. If ht≤hˉh_t\leq\bar h at every relevant step, each survival factor is bounded below by (1−hˉ)t(1-\bar h)^t. Summing the resulting geometric series gives

\mathbb{E}[N] \geq\sum_{t=0}^{T-1}(1-\bar h)^t =\frac{1-(1-\bar h)^T}{\bar h} \geq\frac12\min\\!\left\\{\frac1{\bar h},T\right\\}. \tag{5}

Thus a uniform hazard upper bound immediately becomes a quantitative expected-length lower bound.

Comments on the paper

3 comments
Authors · CommentOpenReview ↗

As the additional experiments are still in progress, we plan to submit our rebuttal tomorrow

Dear Reviewers and AC,

We sincerely thank you for the time you have devoted to reviewing our paper and for your valuable feedback.

As the additional experiments we are conducting in response to the reviewers’ and AC’s feedback are still in progress, we plan to submit our rebuttal tomorrow. Thank you for your understanding.

Authors · CommentOpenReview ↗

Look forward to further feedback

Dear reviewers,

Thanks again for appreciating our contributions as well as providing valuable comments. We have carefully addressed them in detail. As the rebuttal is about to close, we hope you may find the response satisfactory and could kindly raise your score, and we are happy to address further feedback (if any).

Best regards, Authors

Authors · CommentOpenReview ↗

Summary of Rebuttal

Dear Reviewers, AC, and SAC:

We deeply thank the work done by AC and SAC such as distributing the paper to reviewers, guiding the reviewing process, and further supervising the discussion. We also sincerely appreciate the reviewers for taking the time to read our paper, providing constructive comments, and getting involved in our discussion. Without your elaborative help and support, our paper could not have been further polished.

Here we summarize our rebuttal to present a general perspective which could hopefully help grasp our contribution quickly.

Through interactive discussion, one reviewer maintained the positive rating, and two reviewers have not provided further feedback on our rebuttal.

The scores given by the reviewers are as follows:

  • Rating: 5, 4, 3

Additionally, several consensuses have been achieved:

  • Our paper and tackled problem are important, timely, practical and potentially significant for LLM availability and inference-cost security. (Reviewers fVoV, 3gy9)
  • Our attack mechanism is clean, solid, and interpretable. (Reviewers SWE2, 3gy9)
  • The performance of our attack is SOTA and impressive. (Reviewers SWE2)
  • Our empirical evaluation is broad, covering multiple datasets, models, baselines, defenses, and a deployed vLLM service setting. (Reviewers SWE2, fVoV, 3gy9)

Based on all the comments from the reviewers, we summarize the primary concerns and our responses as follows:

  • Question 1: The lack of attacker’s economic justification. (Reviewer fVoV’s Q2, Q3, Q10)

    We need to clarify that the reviewer fVoV has misunderstood our practical threat model/attack scenario, which we have clearly clarified in Q2 and Q3.

  • Question 2: Insufficient experiments against larger models and particularly on complex realistic application tasks in online black-box API settings. (Reviewer SWE2’s Q2, Reviewer 3gy9’s Q1 and Area Chair qiQb’s Q1)

    We conduct additional evaluations on frontier DeepSeek-V4-Pro (1.6T parameters) over a series of complex benchmarks (Terminal Bench 2.0, Humanity's Last Exam, GDPval). See Q1 of our Rebuttal for Area Chair qiQb.

  • Question 3: The absence of evaluations against traditional infrastructure defenses. (Reviewer fVoV’s Q4, Q7 and Reviewer 3gy9’s Q2)

    We have added a large number of additional experiments, fully covering various defenses (about 15 in total). See Q4 and Q7 of our Rebuttal for Reviewer fVoV and Q2 of our Rebuttal for Reviewer 3gy9 for details.

  • Question 4: The proposed approach will be more convincing and sound if it can be proved mathematically. (Reviewer SWE2’s Q1 and Reviewer fVoV’s Q5)

    We provide a mathematical proof and establish the Conditional Output-Length Bound for the Chatter Objective (Theorem 1), which explains how the self-doubt mechanism affects output length. And we also provide a proof sketch and an interpretation of the bound in Rebuttal. See Q1 of our Rebuttal for Reviewer SWE2.

In the past few weeks, we have tried our best to improve the quality of this paper and address each concern from all reviewers. We sincerely hope our effort can contribute to the community. Thanks again for your kind help and constructive opinions, we are truly grateful to have advice from you.

Sincerely, Authors.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…