arXiv:2610.38438cs.CLOct 2026

Manuscript Offprint

arXiv:2610.38438

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

Kshitish Ghate, Michael Saxon, Tadayoshi Kohno, Aylin Caliskan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 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.

1 Introduction

Large language models (LLMs) are routinely used to perform roles through system prompts that contain explicit behavioural instructions (Luz de Araujo et al., 2025; Appel et al., 2026). A tutor role may require the model to maintain academic integrity by withholding complete solutions, or an interviewer role may require fairness and neutrality. We refer to such specified instruction sets as role specifications, by analogy to model specifications that define how a model should behave.¹ In deployment, a model's adherence to its role specification is challenged by users often unintentionally, for instance, a student with an assignment due in an hour wants answers immediately. In this study, we ask how to test whether a role-conditioned model keeps to its specification under systematically constructed pressure, and propose user-behaviour fuzzing, a guided search over user behaviours that lead a model to violate its specifications.

Current capability benchmarks (Hendrycks et al., 2021; Chen et al., 2021) test what models can do. Safety benchmarks (Parrish et al., 2022; Hartvigsen et al., 2022; Gehman et al., 2020) measure how models respond to intentionally harmful requests. Adversarial red-teaming (Perez et al., 2022; Russinovich et al., 2025; Zhou and Arel, 2025; Pavlova et al., 2025; Rahman et al., 2025) tests whether models can be made to produce harmful outputs through targeted attacks. None of these test whether a model continues to adhere to its assigned specifications under multi-turn interactions with realistic and potentially problematic users.

Identifying these failures is a constrained search problem. The space of multi-turn user behaviours is intractably large to sample uniformly, so an effective test that traverses the space of user be-

¹Anthropic's constitution (Bai et al., 2022), OpenAI's Model Spec, and DeepMind's Gemini guidelines all enumerate model principles, priorities, and boundaries.

haviours must direct its search toward those that stress a system's adherence with a given role. Red-teaming research has found the same problem with human testers. Probing without structure can lead to uneven coverage of the risk surface, and parameterising what each tester targets can mitigate this (Weidinger et al., 2024). At the same time, the failures that matter are what a real user could cause. Simply optimising each turn against the target can produce adversarial inputs that could break it. But these would be inputs rarely encountered against real users. Hence, search needs to be directed at what to test next, while each individual conversation remains plausible.

We introduce fuzzing, from software and security testing, as a solution for the first half of this problem. A fuzzer executes a program on systematically generated inputs and flags those that violate a correctness condition (Miller et al., 1990). Coverage-guided fuzzing (Mallissery and Wu, 2023) extends this by tracking which regions of a structured input space have been explored, and directs the search toward under-covered regions. We introduce RoleFUZZER (Figure 1), to operationalise this analogy. In our setting, the role-conditioned LLM is the program under test, users form the input, and adherence to the role's specifications is the correctness condition. For the second half of the problem, we define the input space with the TUNA taxonomy (Shelby et al., 2025) of user-AI interactions, and use it to tractably ground coverage over ecologically valid user behaviours. We then propose user-behavioural fuzzing as the systematic search over the user-behaviour space to target a role specification.

We evaluate RoleFUZZER on five role specifications: a tutor, a financial advisor, an AI job interviewer, and an antagonistic game character, and a web agent that carries out customer relationship management (CRM) work under organisational policies (Levy et al., 2026)), each with three target models (responders): Qwen3-32B, Gemma4-31B-it, and Claude Haiku 4.5. Across 15 campaigns of 240 episodes each, RoleFUZZER covers ≥ 89% of the behaviour grid for every role and responder, with coverage plateauing above 98% for 12 of them. At the same budget, simply asking an LLM to generate free-form user scenarios that directly test specification leaves up to 61% of the grid untested and finds fewer kinds of breaches.

We make the following contributions:

① We introduce user-behaviour fuzzing as a method for assessing alignment between an LLM's behavior and its role specifications.

② We design and implement a user behaviour fuzzing framework, and demonstrate a user-behaviour guided search method for specification violations in role-conditioned language models. The framework uses a two-channel information architecture that separates campaign level violation feedback, which directs the search, from conversation-level grounding feedback, which keeps each simulated conversation plausible.

③ We evaluate RoleFUZZER's ability to characterise vulnerabilities across several example role specifications. In our experiments, RoleFUZZER finds that failures concentrate where the specification requires the target model to withhold help when the user is asking for it(e.g., a complete solution or a quick recommendation).