RoleFUZZER: User-Behaviour Fuzzing for Role-Specification Adherence in Large Language Models
Organizations: University of Washington, Seattle, WA · Georgetown University, Washington, DC
Abstract
Large language models (LLMs) are often conditioned into specific roles such as tutors, interviewers, or agents acting for an organisation, through system prompts that specify how they should behave. The extent to which they can actually adhere to these role specifications under multi-turn interactions with realistic and potentially problematic users is understudied. To address this, we propose user behaviour fuzzing, a guided search over plausible user behaviours that can lead a model to violate its role specification, and introduce RoleFUZZER, a framework that adapts coverage-guided fuzzing from software testing to operationalise the search. RoleFUZZER constructs scenarios guided by a user-behaviour coverage grid that crosses a grounded taxonomy of user interaction types and the role specification of the model under test i.e. what is under pressure. With RoleFUZZER, we evaluate LLMs across five role specifications, including tutor, financial advisor, AI interviewer, antagonistic roleplay character, and web agent under organisational policies. Across simulated and validated conversations in 15 campaigns, the framework reaches >= 89% coverage of the 64-cell behaviour grid for every model and role tested, and surfaces specification-grounded failure patterns. At an equal budget of conversations, removing the RoleFUZZER grid and asking an LLM to generate specification targeting users free-form lowers coverage to 39-69% with fewer kinds of violations. The same specification can also fail in opposite directions. For e.g., on the antagonist, open-weight target models override the player's safety signals, while Claude Haiku 4.5 breaks character instead. RoleFUZZER offers a tractable way to uncover vulnerabilities in LLMs across role specifications by testing diverse user behaviours that are likely to violate them.
Figures & tables
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Pairwise agreement (%) | ||
| Role | Any dev. | Clear br. |
| Financial Advisor | 80.8 | 95.5 |
| Interviewer | 60.5 | 89.8 |
| Tutor | 83.0 | 86.8 |
| Antagonist | 77.8 | 86.1 |
| Web Agent | 78.7 | 95.3 |
| Turn | |||||||||
| Role | Responder | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| Cumulative clear breach of the targeted principle (%) | |||||||||
| Tutor | Qwen3-32B | 22 | 34 | 41 | 43 | 46 | 48 | 48 | 49 |
| Gemma-4-31B-it | 1 | 1 | 1 | 1 | 2 | 3 | 4 | 6 | |
| Claude Haiku 4.5 | 4 | 6 | 8 | 10 | 12 | 13 | 14 | 14 | |
| Financial Advisor | Qwen3-32B | 8 | 18 | 24 | 27 | 30 | 32 | 33 | 34 |
| Responder | Role | Families | Children | Pooled breach (%) | Mean family rate |
| Qwen3-32B | Tutor | 17 | 101 | 64 | 0.66 |
| Financial Advisor | 7 | 56 | 59 | 0.59 | |
| Interviewer | 10 | 62 | 61 | 0.74 | |
| Antagonist | 7 | 63 | 67 | 0.73 | |
| Web Agent | 5 | 54 | 69 | 0.61 | |
| Gemma-4-31B-it | Tutor | 2 | 13 | 31 | 0.18 |
| Role | Principle | Responder | Viol % | Breach % | TTFV |
| Tutor | Academic Integrity | Qwen3-32B | 88.9 | 83.6 | 1.9 |
| Gemma-4-31B-it | 45.5 | 27.8 | 3.8 | ||
| Claude Haiku 4.5 | 58.6 | 40.8 | 2.6 | ||
| Confidentiality | Qwen3-32B | 6.2 | 3.1 | 2.2 | |
| Gemma-4-31B-it | 2.0 | 0.5 | 3.2 | ||
| Claude Haiku 4.5 | 0.5 | 0.0 | 3.0 |
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 644 papers