RoleFUZZER: user-behavior fuzzing for LLM role-specification complianceRoleFUZZER: User-Behaviour Fuzzing for Role-Specification Adherence in Large Language Models
The authors propose RoleFUZZER, which uses coverage-guided user-behavior fuzzing to test role-specification adherence; all 15 campaign grids have coverage ≥89%, while the no-grid baseline is only 39–69%.
- LLMs are often assigned role specifications such as tutor or interviewer via the system prompt, but whether they can adhere to the specification under multi-turn pressure from real users lacks systematic testing; existing capability benchmarks, safety benchmarks, and red-teaming methods do not test this.
- The authors propose RoleFUZZER: moving coverage-guided fuzzing into the user behavior space, building a 4×4×K coverage grid with the TUNA taxonomy, with a campaign planner generating scenarios in a directed way, and a user simulator, consistency monitor, and judge ensuring realism and scoring at the session level.
- Across 15 campaigns (5 role specifications × 3 target models), grid coverage is ≥89% in all (12 >98%), while the no-grid baseline is only 39–69%; violations concentrate on principles requiring the model to refuse help, such as an 83.6% academic integrity clear-breach rate for the Qwen3-32B tutor.
- The authors note: TUNA does not cover axes such as emotional pressure, dialogues are limited to 8 turns, all experiments are in English and the specifications are US-context-leaning; role specifications are hand-written, and the judge relies on an LLM (76.1% agreement with humans).
- Threat model
- Non-adversarial threat model: simulates a real user (not a malicious attacker) who, in multi-turn dialogue, unintentionally exerts pressure on the role specification because of their own goals; the victim system is a target LLM with a role specification in its system prompt (role + principles + graded violation criteria); success is determined by a judge LLM rating a response as violating one of the principles according to three severity levels (full adherence / partial deviation / clear breach).
- Evaluated models
- Qwen3-32BGemma4-31B-itClaude Haiku 4.5
- Benchmarks
- WildChat-1M(种子语料)ST-WebAgentBench(web agent 种子来源)TUNA 用户行为分类法(覆盖网格)5 个自建角色设定(tutor、financial advisor、AI interviewer、antagonist、web agent)
- Metrics
- grid coverageviolation rateclear-breach rateTTFVVendi score(user diversity)behaviour clusters / failure typespooled child breach rate
The researchers propose the RoleFUZZER framework, which ports coverage-guided fuzzing from software testing to testing LLM compliance with role specifications, discovering vulnerabilities by searching for user behaviors that may induce the model to violate its role specification. The framework constructs scenarios based on a user-behavior coverage grid that crosses user-interaction type categories with the role specifications of the model under test, covering five roles: mentor, financial advisor, AI interviewer, adversarial role-play character, and web agent constrained by organizational policy. Across simulated and validation dialogues in 15 experimental batches, the framework achieved over 89% coverage of the 64-cell behavior grid for every model and role tested; under the same dialogue budget, removing the grid and letting an LLM freely generate specification-targeted users dropped coverage to 39%-69%, with fewer kinds of violations. The same specification can also fail in the opposite direction: for example, on the adversarial role, the open-weight model under test overrides the player's safety signal, whereas Claude Haiku 4.5 breaks character.
Paper analysis
What problem does this paper attempt to solve?
How to systematically test whether role-specified LLMs adhere to their role specification under multi-turn pressure from real users.
Core question: Do LLMs assigned roles by the system prompt (tutor, interviewer, web agent, etc.) still adhere to their role specification when encountering real and potentially stressful users across multi-turn interactions—the authors state that this question remains understudied.
- Scenario and importance: Deployed roles often have explicit behavioral constraints, e.g., a tutor must uphold academic integrity and not directly give complete answers; users often unintentionally apply pressure (e.g., a student directly asking for answers right before an exam). The authors call such instruction sets role specification, analogous to model specification.
- Shortcomings of existing methods: The authors state that capability benchmarks test "what the model can do," safety benchmarks test responses to deliberately harmful requests, and adversarial red teaming tests whether harmful outputs can be induced—none test role-specification adherence under multi-turn real user interactions.
- Core observation: The multi-turn user behavior space is too large to sample uniformly, so search must be directed toward behaviors that pressure the specification; at the same time, each conversation must remain realistic and must not produce inputs a real user would not send, as per-turn adversarial optimization does.
- Paper proposes: user-behaviour fuzzing and its implementation framework RoleFUZZER, moving coverage-guided fuzzing from software testing into the user behavior space, defining the coverage grid with the TUNA taxonomy, and evaluating on 5 role specifications and 3 target models.
- Threat model (non-adversarial, per the paper's formulation):
- Attacker/pressuring party: a non-malicious real user with a specific goal who unintentionally pressures the role specification; the paper explicitly states "user is not adversarial."
- Knowledge and capability: the user sees only the responder's actual replies, not judge scores or violation feedback.
- Victim system: a target LLM with a role specification in its system prompt (role description + principle set + graded violation criteria).
- Success determination: a judge determines by three-level severity (full adherence / partial deviation / clear breach) whether the target reply violates a principle.
What related research exists?
Related work falls into four groups: evaluation benchmarks and frameworks, multi-turn red teaming, fuzzing, and coverage-based red teaming STAR.
LLM Evaluation Benchmarks and Frameworks
- Capability benchmarks MMLU (Hendrycks et al., 2021), HumanEval (Chen et al., 2021)—quantify model capability on verifiable tasks.
- Safety benchmarks RTP (Gehman et al., 2020), BBQ (Parrish et al., 2022), ToxiGen (Hartvigsen et al., 2022)—target specific harm categories; the authors state these are more general safety concepts.
- General evaluation frameworks Inspect AI (Abbas et al., 2025) and the auditing tool PETRI (Fronsdal et al., 2025, 19 fixed alignment dimensions); the authors state the difference of this paper is supporting testing of arbitrary role specifications from the perspective of real user behavior.
Multi-turn LLM Red Teaming
- Crescendo (Russinovich et al., 2025) gradual escalation; tempest (Zhou and Arel, 2025) tree search over conversation trajectories; GOAT (Pavlova et al., 2025) dynamically selecting strategies during conversation; X-Teaming (Rahman et al., 2025) multi-agent collaborative jailbreak.
- The authors state these systems target general safety alignment and attack success rates rather than role-specific specification criteria (e.g., academic integrity violations are not necessarily harmful in general contexts), and carry adversarial intent throughout, whereas this paper simulates real users with specific goals.
Software and LLM Fuzzing
- Software fuzzing: the pioneering work of Miller et al. (1990), coverage-guided fuzzing (Mallissery and Wu, 2023), AFL, directed greybox fuzzing (Böhme et al., 2017), FuzzFactory, AFLNet.
- LLM fuzzing: PROMPTFUZZ and AgentFuzzer (finding prompt injection vulnerabilities), LLMFuzzer (jailbreak); the authors state RoleFUZZER adopts a coverage-guided directed greybox approach similar to Böhme et al. (2017), but for multi-turn role-adherence testing.
Coverage-based Red Teaming and Baselines
- STAR (Weidinger et al., 2024)—gives human red teamers parameterized dimension instructions to cover the risk surface; the authors state it is the closest work to their coverage grid, and RoleFUZZER automates it and uses coverage feedback to decide what to test next.
- Baselines: seed-only (seed bucket only, no directed search), no-grid (removes the coverage grid and lets the LLM freely generate pressuring users directly from the specification), random-cell (keeps the full method but selects target cells uniformly at random); the seed corpus comes from WildChat-1M, and web agent seeds are taken from ST-WebAgentBench (Levy et al., 2026).
The authors position this paper as introducing coverage-guided search into the test space of "real user behavior × role specification," which is not covered by existing benchmarks and red teaming.
How does the paper address this problem?
RoleFUZZER: a campaign-level planner generates scenarios in a targeted way according to a coverage grid, and a session-level pipeline ensures realism and scoring.
Overall approach: treat the role-specification LLM as the program under test, the user as input, and specification adherence as the correctness condition, and use coverage-guided fuzzing to search in a targeted way for violations on the TUNA user-behavior grid. RoleFUZZER consists of two layers, campaign level (planner + coverage grid) and session level (simulator, monitor, judge), with information isolated between the two layers.
Problem formalization
- A role specification is defined as a tuple S = (ρ, P, κ): ρ is the natural-language description of the role, κ is the situational context, and P = {p1, ..., pK} is the set of principles; each principle pk = (ℓk, Vk) carries graded violation criteria Vk, calibrated to three levels—clear breach, partial violation, full adherence (following the 5-level scale of Rahman et al. 2025 with the middle levels merged).
- The judge scores each principle at each turn Jt,k ∈ {0,1,2}, and Vt,k(θ) = 1{Jt,k ≥ θ} indicates a violation under threshold θ; meaning: discretize each response's degree of adherence to each principle into an accumulable violation signal.
- User-behavior fuzzing: within a budget of N dialogues, select each scenario σn based on existing results so as to cover as much of grid B as possible and find violations in as many cells as possible; an additional constraint is that user inputs must look like something a real user would send.
User-behavior coverage grid
- Adopt the TUNA taxonomy (Shelby et al., 2025, based on 1,200 real human-machine sessions) as external grounding; claim only to simulate external behavior, not users' internal states.
- Grid B = M × S × P: 4 instrumental modes (information seeking, information processing, procedural guidance, content creation) × 4 relational/meta strategies (sociability, shared understanding, system management, conversation management) × K principles, 64 cells when K=4.
- Each cell accumulates the number of observations, the number of violations, and a favoured parent (the scenario in that cell that produced the highest-severity judgment, for later mutation); a cell is covered = an approved user turn classified into that (m, s) appears in a dialogue targeting that principle.
Session-level pipeline (maintaining realism)
- User simulator: an LLM plays the user role in the scenario, seeing only the responder's actual replies, not the judge scores or violation feedback.
- Consistency monitor: before each candidate user turn is sent to the target, first verify groundedness and consistency with the goal (regenerate on failure, terminate the dialogue after 3 failures), then classify that turn into TUNA (m, s) and fill it into the grid, and use a free-text prompt to steer the next turn toward the planner's target cell.
- LLM-as-a-Judge: at each turn, score the target response on all principles simultaneously with three-level severity; scores are fed to the planner only between dialogues, not to the simulator and monitor.
Campaign planner (targeted search)
- Each round's budget is allocated by an open-loop annealing schedule into three buckets: seed (αseed, seed scenarios, no cell targeting, also serving as an unbiased baseline), coverage-directed (αcov, synthesizing scenarios for under-covered cells), and mutation (αmut, intensity mutation of the favoured parent or frame swap with a new seed context, keeping the target cell unchanged).
- The schedule starts at (0.15, 0.40, 0.45) and becomes (0.15, 0.25, 0.60) in the final round, shifting from coverage synthesis to mutation as the grid fills up.
- Generated scenarios include the user role's background, communication style, target coverage cell (m, s, pk), and a user goal that naturally conflicts with the target principle; Appendix C gives the full prompts for the simulator, monitor, judge, and planner.
Role specifications and judging
- 5 role specifications each with K=4 principles, all hand-written and anchored to public standards: tutor (NEA Code of Ethics), financial advisor (fiduciary standards), AI interviewer (EEOC Uniform Guidelines), antagonist game character (narrative consistency, including the safeword "lantern"), enterprise web agent (ST-WebAgentBench policy).
- Each principle carries three-level violation criteria for judge calibration; the full YAML is in Appendix B.
What experiments did the paper conduct?
5 roles × 3 models, 15 campaigns in total: coverage ≥89%, with violations concentrated on principles requiring "refusal of help."
Experimental Setup
- Target models: Qwen3-32B, Gemma4-31B-it (open weights), Claude Haiku 4.5 (closed source); multi-LLM components within the framework are evaluated with GPT-5-mini (judge, etc.).
- Role specifications: tutor, financial advisor, AI interviewer, antagonist, web agent, each with 4 principles, a 64-cell grid.
- Campaign configuration: each campaign has 8 turns × 30 conversations, each conversation 8 turns, with 4 principles evaluated simultaneously each turn; 15 campaigns in total (5 roles × 3 models), 240 conversations each.
- Seeds: tutor/advisor/interviewer retrieve 128 items from WildChat by domain; antagonist uses 32 self-written scenarios; web agent builds 32 seeds from ST-WebAgentBench.
- Baselines: seed-only, no-grid, random-cell (also serving as ablation).
- Metrics: user diversity (Vendi score, sentence-transformer embeddings), number of behavior clusters and failure types (clustering with k=32 each), grid coverage, per-principle violation rate and clear-breach rate (counted by the most severe turn in the conversation), TTFV, per-cell violation rate.
- Measurement validity: 80 stratified-sampled conversations (about 610 turns) human-annotated; three-level agreement between GPT-5-mini and each annotator is 76.1% (77.0% between annotators), with 90.7% agreement on clear breach; re-judged with GPT-5 and Llama-3.3-70B-Instruct, overall agreement 86% and 79%.
Main Results
According to Table 4 (violation rate / clear-breach rate / TTFV, by the most severe turn in the conversation, TTFV in turns, conditioned on at least one violation), taking the most-violated principle for each role:
Swipe horizontally to read the table
Role Principle Qwen3-32B Gemma4-31B-it Claude Haiku 4.5 Tutor Academic Integrity 88.9 / 83.6 / 1.9 45.5 / 27.8 / 3.8 58.6 / 40.8 / 2.6 Fin. Advisor Fiduciary Duty 51.9 / 37.3 / 2.0 42.8 / 23.7 / 2.9 23.6 / 9.4 / 3.3 Interviewer Structured Assessment 95.4 / 81.1 / 2.8 27.2 / 11.1 / 3.6 62.5 / 19.0 / 3.7 Antagonist Player Safety Signals 85.5 / 58.0 / 2.6 83.5 / 62.4 / 3.0 35.7 / 3.8 / 3.6 Web Agent Hierarchy Adherence 48.8 / 32.9 / 3.1 10.4 / 2.5 / 4.3 30.4 / 3.3 / 3.3 - The authors state that violations concentrate on principles where "the specification requires the model to refuse help when the user asks for it" (e.g., the tutor giving a complete solution, the interviewer writing the answer for the candidate), and argue this reflects a goal conflict between the role specification and the model's helpfulness training defaults.
- The same specification can fail in opposite directions: on the antagonist role, open-weight models ignore player safety signals (Qwen 58.0%, Gemma 62.4% clear-breach), while Claude Haiku 4.5 has a clear-breach of 73.0% on stay-in-character (breaking character); the authors argue this is consistent with the Claude family's safety alignment making it unwilling to play a villain.
- Most clear breaches occur early in the conversation: mean TTFV ranges from 1.8 to 4.7 (Table 4; per-turn cumulative in Appendix Table 2).
Effectiveness of the Grid and Search (§5.1, §5.2)
- Grid improves diversity: compared with no-grid, user diversity is 19% higher, behavior clusters 27/32 vs. 19/32, and failure types 26% more (Figure 2 left, average over five roles).
- Coverage: all 15 campaigns exceed 80% within the first three turns and all end >89% (12 >98%); the same-budget no-grid ranges from 39% (web agent) to 69% (interviewer); seed-only conversations cover 14–41%, while RoleFUZZER covers 47–63% within the first 30 conversations (Figure 2 right).
- Search efficiency: the random-cell baseline eventually covers most of the grid but more slowly; in campaigns where it reaches >90% coverage, RoleFUZZER uses on average 40% fewer conversations (116 vs. 193), because 60% of its scenarios target uncovered cells (46% for random-cell).
Mutation Reproduction and Heatmaps (§5.3)
- Mutation offspring reproduction: for parents that produced a target clear breach, the pooled clear-breach rate of their offspring on the same target ranges from 61% for Qwen interviewer to 86% for Claude Haiku antagonist (stay-in-character) (Table 3); the authors state that violation patterns are reproducible with respect to user behavior.
- Heatmaps: Figure 4 gives the 16-cell × principle violation rates for Qwen3-32B (cells with fewer than 3 conversations masked); the authors state that interviewer violations concentrate where the candidate steers the conversation toward themselves, Claude antagonist stay-in-character violations concentrate where the player uses metagame control, and web agent hierarchy adherence violations occur when the employee gets chummy and tries to lead execution; Gemma and Claude heatmaps are in Appendix E (Figures 7, 8).
Other Ablations and Analyses
- Rule-based validation for the web agent: judge vs. programmatic state checks give κ = 0.88, 0.86, 0.89 on consent, hierarchy, security; strict execution is only κ = 0.14, which the authors explain as most violations being steps the user requested but the agent skipped, which cannot be determined from saved state (Appendix D.2).
- Per-turn cumulative violations (Appendix Table 2): e.g., tutor × Qwen3-32B target-principle clear breach rises from 22% at turn 1 to 49% at turn 8.
- Misjudgment analysis: of 13 judge false-positive clear breaches, 10 attribute an earlier violation in the same conversation to a later reply; the authors state that conversation-level metrics and TTFV are unaffected (Appendix D.2).
- Case studies (Appendix F): the tutor, under time pressure, gives complete solution steps in the form of "let's walk through it together," judged as an academic integrity clear breach; the financial advisor gives specific allocation advice without understanding the client's situation, judged as a fiduciary duty clear breach.
What are some points that can be further explored?
The authors list four limitations and future directions: taxonomy completeness, test environment, conversation length, and cultural/linguistic scope.
Limitations and future directions noted by the authors
- Taxonomy completeness (Limitations): TUNA was designed as a functional intent taxonomy for general interaction and does not cover all behaviors that pressure role boundaries; the coverage grid also lacks explicit axes for emotional valence or pressure dynamics; the authors list extending the grid as future work.
- Test environment (Limitations): role specifications are hand-written and anchored to public professional or policy standards, and real deployment characteristics may differ; the authors say this paper's contribution is a validated method, and practitioners should apply RoleFUZZER to their own specifications.
- Dialogue length (Limitations): dialogues are limited to 8 turns (compute constraint); the metrics reliably capture early violations but may miss other temporal degradation dynamics in long-horizon interaction; the authors plan to explore longer-horizon interaction closer to the real world.
- Cultural and language scope (Limitations): all experiments are in English and the role specifications are US-centric; how non-English deployments, specifications under non-US regulatory and cultural frameworks, user behavior distributions, and model behavior would change are listed by the authors as future work.
Experimental coverage
- The target models tested are Qwen3-32B, Gemma4-31B-it, and Claude Haiku 4.5, 3 in total; there are 5 role specifications (4 conversational + 1 agentic), each campaign has 240 dialogues of 8 turns each, for 15 campaigns in total.
- The LLM components within the framework (planner, simulator, monitor, judge) use GPT-5-mini; the judge is additionally cross-validated by re-judging with GPT-5 and Llama-3.3-70B-Instruct.
- Human validation consists of 80 stratified sampled dialogues (about 610 turns), 4 annotators, with at least 2 independent annotations per dialogue; the simulated user's three-axis acceptability rate is 87.1%–95.9%, and the judge's overall agreement with humans is 76.1%.
- The paper does not report the full sample size at the level of each (model × role × principle) cell, nor whether the 15 campaigns were run repeatedly; regarding randomness, it reports only a global seed of 42 and greedy decoding (Appendix G).
- The coverage grid is fixed at 4×4×4 = 64 cells (K=4 principles per role); axes such as emotional pressure are not included (the authors note this in Limitations).
Summarize the main content of the paper
RoleFUZZER systematically exposes role-specification violations using coverage-guided user-behavior fuzzing and provides reproducible failure patterns.
An evaluation methodology paper: proposes user-behaviour fuzzing and the framework RoleFUZZER, testing whether role-specified LLMs adhere to their specifications under multi-turn pressure from real users.
- Problem: Capability benchmarks, safety benchmarks, and adversarial red teaming all fail to test "whether a model continuously adheres to the role specification assigned by the system prompt across multi-turn interactions"; the user behavior space is too large, requiring targeted search while keeping each conversation realistic.
- Method: Moves coverage-guided fuzzing into the user behavior space—the TUNA taxonomy forms a 4×4×K coverage grid, and a campaign planner generates scenarios across three buckets (seed, coverage-directed, mutation) with an annealing schedule; at the session level, a user simulator, consistency monitor, and LLM judge ensure realism and score by three-level severity, with two-layer information isolation.
- Coverage and efficiency: Across 15 campaigns (5 roles × 3 models, 240 conversations each), grid coverage is ≥89% for all (12 >98%); the same-budget no-grid baseline reaches only 39–69%, with 19% lower user diversity and fewer failure types.
- Main findings: Violations concentrate on principles requiring the model to "refuse help"—Qwen3-32B's tutor academic integrity clear-breach 83.6%, interviewer structured assessment 81.1% (Table 4); on the antagonist role, open-source models ignore player safety signals (58.0%, 62.4%), while Claude Haiku 4.5 breaks character (stay-in-character 73.0%); most clear breaches occur early in the conversation (mean TTFV 1.8–4.7 turns).
- Authors' conclusion: The authors argue violations stem from goal conflicts between the role specification and the model's training defaults (helpfulness for most roles, safety-first for Claude), which has practical implications for how specifications are written; RoleFUZZER can prioritize pre-deployment mitigation (specification hardening or refusal-style training).
- Measurement validity: Overall agreement between the judge and human annotation is 76.1% (77.0% between human annotators), with 90.7% agreement on clear breach; the authors acknowledge that the TUNA grid is incomplete, conversations are limited to 8 turns, and experiments are limited to English and the US context.