Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

RecurGuard: Runtime Monitoring for Reasoning-Token Consumption Attacks

About

Reasoning-capable large language models can be induced to spend their generation budget on injected decoy tasks rather than answering the user's question, causing denial of service when no final answer is produced and denial of wallet when excess output tokens are billed. Input-side safety classifiers often miss these attacks because the injected prompts can appear syntactically benign. We build RecurGuard, a runtime monitor for detecting reasoning-chain consumption attacks when reasoning traces are exposed by the model. RecurGuard analyzes reasoning traces as they are generated and tracks three signals: recurrence rate, volume growth, and progress toward the user's query. If all three signals remain anomalous over three consecutive chunks, RecurGuard terminates generation early. We evaluate RecurGuard against OverThink and ExtendAttack across open-weight reasoning models and conduct adaptive stress tests on DS-R1-Qwen-7B. On this model, RecurGuard detects 99% of OverThink attacks and 92% of ExtendAttack instances while maintaining near-zero false positive rates on question answering, code generation, mathematics, and summarization. Adaptive evaluation reveals the limit of the defense: topical attacks retain 11.9x amplification with an approximately 50% joint miss rate, whereas full semantic evasion reduces amplification from 22.8x to 2.2x. When reasoning traces are unavailable, QDM provides a post-hoc fallback monitor based on the final output.

Abid Aziz, Hafsa Binte Kibria• 2026

Related benchmarks

TaskDatasetResultRank
Attack DetectionSQuAD QA full profile (N = 200; incl. 50 calib.)
FPR0.00e+0
6
Attack DetectionHumanEval code (N = 100)
FPR1
6
Attack DetectionTopical CSP C1 N = 100
TPR38
6
Attack DetectionCNN/DM summary (N = 100)
FPR0.00e+0
6
Attack DetectionOverThink N = 100
TPR (OverThink N=100)100
6
Attack DetectionExtendAttack N = 50
TPR96
6
Attack DetectionC4 Task-aligned filler (N = 100)
TPR0.00e+0
6
Attack DetectionGSM8K (N = 100)
FPR0.00e+0
6
Showing 8 of 8 rows

Other info

Follow for update