# RoleFUZZER: User-Behaviour Fuzzing for Role-Specification Adherence in Large Language Models

DevFeed: [RoleFUZZER: User-Behaviour Fuzzing for Role-Specification Adherence in Large Language Models](<https://devfeed.tech/articles/rolefuzzer-user-behaviour-fuzzing-for-role-specification-adherence-in-large-language-models-107377.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38438>)

Author: Kshitish Ghate, Michael Saxon, Tadayoshi Kohno, Aylin Caliskan

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [conversations](<https://devfeed.tech/tags/conversations.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [failure](<https://devfeed.tech/tags/failure.md>), [financial](<https://devfeed.tech/tags/financial.md>), [framework](<https://devfeed.tech/tags/framework.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [grid](<https://devfeed.tech/tags/grid.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llms](<https://devfeed.tech/tags/llms.md>), [model](<https://devfeed.tech/tags/model.md>), [override](<https://devfeed.tech/tags/override.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [plausible](<https://devfeed.tech/tags/plausible.md>), [policies](<https://devfeed.tech/tags/policies.md>), [roles](<https://devfeed.tech/tags/roles.md>), [specification](<https://devfeed.tech/tags/specification.md>), [user](<https://devfeed.tech/tags/user.md>)

## AI overview

RoleFUZZER applies coverage-guided fuzzing to test whether LLMs adhere to role specifications during multi-turn conversations with plausible, potentially problematic users. It uses a 64-cell grid crossing interaction types with the role specification under pressure. Across 15 campaigns spanning five roles and simulated and validated conversations, it reached at least 89% grid coverage for every tested model and role. At the same conversation budget, free-form LLM-generated users without the grid achieved 39-69% coverage and surfaced fewer kinds of violations. Failure directions also varied by model: open-weight models tested as antagonistic roleplay characters overrode players' safety signals, while Claude Haiku 4.5 broke character instead.

## Source excerpt

arXiv:2610.38438v1 Announce Type: cross 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.