RoleFUZZER:用用户行为模糊测试检验大语言模型的角色遵循能力
RoleFUZZER: User-Behaviour Fuzzing for Role-Specification Adherence in Large Language Models
AI 导读
研究者提出 RoleFUZZER 框架,将软件测试中的覆盖引导模糊测试引入 LLM 角色规范评估,对导师、财务顾问、AI 面试官等 5 种角色规范进行用户行为搜索。
正文 · 原文
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.
| Comments: | Preprint under review |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Software Engineering (cs.SE) |
| Cite as: | arXiv:2610.38438 [cs.CL] |
| (or arXiv:2610.38438v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.38438 arXiv-issued DOI via DataCite |
Submission history
From: Kshitish Ghate [view email]
[v1]
Wed, 28 Oct 2026 08:19:36 UTC (1,881 KB)
来源:arXiv cs.AI · arxiv.org