From Role Prompt to Infinite Thinking: Exploiting Persona Conditioning for Inference Cost Attacks in LLMs
Zhiyi Mou, Wangze Ni, Tianfang Xiao, Haoyang LI, Chen Jason Zhang, Hanzhi Ma, Yang Bai, Zhibo Wang, Kui Ren
Abstract
LLMs are increasingly deployed in real-world applications, making inference efficiency and service reliability critical concerns due to their substantial computational costs. However, the autoregressive generation mechanism of LLMs enables malicious prompts to manipulate generation behaviors, inducing excessive token generation that amplifies computational consumption and threatens service efficiency. Existing methods mainly rely on adversarial suffixes or explicit extension instructions, which introduce detectable behaviors and limit their applicability. In this paper, we reveal a previously unexplored vulnerability caused by persona consistency in LLMs, where models maintain assigned roles and reproduce corresponding behaviors even when they result in inefficient reasoning and excessive generation. Based on this observation, we propose RolePlay, a task-aware dynamic persona alignment framework that constructs adaptive personas to naturally induce inefficient yet semantically coherent behaviors for inference cost amplification. Extensive experiments across multiple LLMs and diverse task datasets demonstrate that RolePlay consistently outperforms existing inference extension methods, achieving an average token amplification of up to \bm{} and a maximum token amplification ratio of \bm{}. Our findings identify persona conditioning as a new attack surface for LLM inference efficiency and offer a new perspective on computational cost amplification.
Create a lesson
Metadata
- Comments
- 17pages
Related papers
POMA: Beyond Final Flags -- Process-Level Evaluation of Base LLMs in Vulnerability Exploitation
Shared title terminologycs.CRGufeng Zhang, Yiru Zhao, Shengyu Liu et al.
Domain Decoupling Attack: Exploiting the Validation Gap Between Protective DNS and Shared Edge Routing
Shared title terminologycs.CRWeizhe Wang, Minhong Dong, Jinhao Li et al.
Turn-Based Structural Triggers: Structure-Conditioned Backdoors in Multi-Turn LLMs
Shared title terminologycs.CRYiyang Lu, Jinwen He, Yue Zhao et al.
Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks
Shared title terminologycs.CRSiyuan Li, Zehao Liu, Haoyu Li et al.
Screen-Conditioned Watermarking Against Multi-Screen Collusion Attacks
Shared title terminologycs.CRMingyue Chen, Xin Liao, Yufeng Wu et al.
Hollow-LLM Attack: Computationally Trivial Weights in Zero-Knowledge Verification of LLM Inference
Shared title terminologycs.CRChen Gong, Beijie Liu, Mengyuan Li