Persona conditioning can cause up to 207.64× token amplification in LLMs
Adaptive persona prompts can dramatically increase LLM token generation, amplifying inference cost
Security & privacy arXiv 28 Jul 2026 Attack Prototype evidence
Published as “From Role Prompt to Infinite Thinking: Exploiting Persona Conditioning for Inference Cost Attacks in LLMs”
Why it matters
Persona-based prompts can dramatically increase inference cost, indicating a need for detection or mitigation mechanisms in LLM services.
Summary
RolePlay can inflate LLM inference cost dramatically, achieving up to 7.64× average token amplification and a maximum of 207.64× generated tokens, outperforming prior suffix-based and over-thinking attacks. It does this by dynamically constructing task-aware personas that induce inefficient yet coherent reasoning. The paper reports consistent gains across multiple commercial and open-source models, though amplification is lower on smaller models like Llama-3-8B-Instruct.
What they found 3
- RolePlay achieves the highest token amplification on Gemini-3.5-Flash, surpassing baselines.
“RolePlay achieves 7.64× token amplification, outperforming ExtendAttack (3.59×) and OverThinking (2.19×).”
- In extreme cases RolePlay reaches up to 207.64× generated-token amplification.
“RolePlay achieves the highest ratios among all methods: 172.78× for reasoning tokens, 143.74× for output tokens, and 207.64× for generated tokens.”
- The attack prompts remain natural, with the lowest input perplexity among methods.
“RolePlay achieves the lowest Input PPL, indicating that the generated attack prompts remain natural and do not introduce obvious abnormal patterns.”
Caveats 2
- On GPT-5 Nano, RolePlay achieves only 2.54× amplification, ranking second among all compared attacks while still maintaining a substantial improvement.
- Llama-3-8BInstruct achieves a lower 3.19× amplification due to its limited maximum output length, RolePlay remains effective under constrained generation settings.
What’s new here 4
- Exploits persona consistency to induce inefficient reasoning without explicit extension instructions.
- Dynamically builds task-aware personas using six extracted task dimensions.
- Amplifies both internal reasoning and final output tokens simultaneously.
- Shows higher token amplification (up to 7.64× average, 207.64× max) than prior suffix-based or over-thinking attacks.